Support Forums

Text above page

This is a discussion on Text above page within the Templates, HTML, CSS, and Design Help forums, part of the General category; I want to put some text on top of this page http://localhost/68Classifiedsv4/category.php?type=9 I thought it would have been in showlistings.tpl.php ...


Go Back   68 Classifieds Forums > General > Templates, HTML, CSS, and Design Help

Reply
 
Thread Tools Display Modes
Old 04-20-2006, 04:49 PM   #1
Member
 
Join Date: Mar 2006
Location: Uk
Posts: 43
Rep Power: 23
build is on a distinguished road
Default Text above page

I want to put some text on top of this page
http://localhost/68Classifiedsv4/category.php?type=9

I thought it would have been in

showlistings.tpl.php

But no matter what I put in that it does not show

What I want is to put some text above the

photo title etc etc so people know that they can click then to sort the fields

ALSO

In admin under
Templates/Page Content

You can edit the home page
Where is that page stored

I have looked in home.tpl.php BUT I cannot see any of the text that is on the home page
__________________
Regards

John

Useing Developer
build is offline   Reply With Quote
Old 04-20-2006, 04:53 PM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 135
Eric Barnes is just really nice Eric Barnes is just really nice
Default

If you login to administration then modify that category it should have a field where you can enter promotional text that will show above the listings on that page.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 04-20-2006, 05:18 PM   #3
Member
 
Join Date: Mar 2006
Location: Uk
Posts: 43
Rep Power: 23
build is on a distinguished road
Default

Quote:
Originally Posted by suzkaw
If you login to administration then modify that category it should have a field where you can enter promotional text that will show above the listings on that page.
Yes Eric I found that BUT you can do no formating to it in there

You only can put html code by hand.

Is there no other way that you can put text in?
__________________
Regards

John

Useing Developer
build is offline   Reply With Quote
Old 04-20-2006, 05:31 PM   #4
curmudgeon
 
Join Date: Mar 2006
Posts: 5,416
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

You could add it to layout.tpl.php right in the data cell where the body is displayed.....ie

PHP Code:
<td valign="top" class="padding">
<!-- 
// Content // -->

     
{* This includes the content portion *}
     {include 
file=$body}
                
<!-- 
// End Content // -->
</td
Right below the 1st content comment marker insert your text. You could even add an {if} statement to check and only show it if the category matches certain ones where you want it displayed.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 04-20-2006, 06:53 PM   #5
Member
 
Join Date: Mar 2006
Location: Uk
Posts: 43
Rep Power: 23
build is on a distinguished road
Default

Quote:
Originally Posted by Lhotch
You could add it to layout.tpl.php right in the data cell where the body is displayed.....ie

PHP Code:
<td valign="top" class="padding">
<!-- 
// Content // -->

     
{* This includes the content portion *}
     {include 
file=$body}
                
<!-- 
// End Content // -->
</td
Right below the 1st content comment marker insert your text. You could even add an {if} statement to check and only show it if the category matches certain ones where you want it displayed.
Larry

That put it at the bottom

see snap shot

All I want to do is put some text on TOP of the cats and format it all
Attached Images
File Type: jpg text at top.jpg (20.6 KB, 23 views)
__________________
Regards

John

Useing Developer
build is offline   Reply With Quote
Old 04-20-2006, 07:38 PM   #6
curmudgeon
 
Join Date: Mar 2006
Posts: 5,416
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by build
Larry

That put it at the bottom

see snap shot

All I want to do is put some text on TOP of the cats and format it all
Where exactly in the data cell did you put it?

it should appear above the category box if you placed it above the body variable in the code above. I placed notes in the following code snippet on where it shoudl go.

PHP Code:
<td valign="top" class="padding">

PLACE YOUR MESSAGE HERE!

<!-- 
// Content // -->

     
{* This includes the content portion *}
     {include 
file=$body}
                
<!-- 
// End Content // -->
</td
Keep in mind this will appear in EVERY page though. I recommend you use an IF statement to determine if the user is viewing a category and only then display it.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 04-21-2006, 08:05 AM   #7
Member
 
Join Date: Mar 2006
Location: Uk
Posts: 43
Rep Power: 23
build is on a distinguished road
Default

Quote:
Originally Posted by Lhotch
Where exactly in the data cell did you put it?

it should appear above the category box if you placed it above the body variable in the code above. I placed notes in the following code snippet on where it shoudl go.

PHP Code:
<td valign="top" class="padding">

PLACE YOUR MESSAGE HERE!

<!-- 
// Content // -->

     
{* This includes the content portion *}
     {include 
file=$body}
                
<!-- 
// End Content // -->
</td
Keep in mind this will appear in EVERY page though. I recommend you use an IF statement to determine if the user is viewing a category and only then display it.
Larry

Yes after I had posted the above I went and had a look to see why it went at the bottom. Hmmmmmm yes you are correct I had put it at the bottom


"EVERY PAGE" yes I have found that out when I put it at the top
That will be no good at all.

Larry how is it the you cannot put things in like this for EACH page you get up? I find it a bit of a pain to have to do all this coding etc just to put a bit of text on one of the pages. I thought that I could just add a table to the top of that page then format it how I wanted it, even inside that table.


I'm haveing the same problem with the home page ( the text at the top)
I see you can alter this in admin under Templates/Page Content/Modify
BUT I do all my html code etc with another program and cannot find where that text is saved. (Is it a template or saved where?) So cannot edit it
I use a program called Search And Replace also and that can find anything BUT it does not find the text at the top of the home page for some reason.


Now comes the "IF STATMENT" I'm sorry but how would I write that so that it would only show the text that I put in on that page (as snap shot from last post)
You might think why I want to put any text on that page.
Well I have had about 30 people doing a test on the site to see what they think of the new script. more that half of them picked up the about the SORT on that page and said why do you not put some text above those box's to say that you can sort the fields.

Thanks for your time so far.
__________________
Regards

John

Useing Developer
build is offline   Reply With Quote
Old 04-21-2006, 09:31 AM   #8
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 135
Eric Barnes is just really nice Eric Barnes is just really nice
Default

John,

That text is stored in the db. If you use another program to create the html just view source and copy and paste it into this.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Reply

Thread Tools
Display Modes



All times are GMT -4. The time now is 02:18 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0