Support Forums

Old 04-20-2006, 03:49 PM   #1
Member
 
Join Date: Mar 2006
Location: Uk
Posts: 86
Rep Power: 14
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, 03:53 PM   #2
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,765
Rep Power: 110
Eric Barnes is a jewel in the rough
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
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules
Eric Barnes is online now   Reply With Quote
Old 04-20-2006, 04:18 PM   #3
Member
 
Join Date: Mar 2006
Location: Uk
Posts: 86
Rep Power: 14
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, 04:31 PM   #4
Moderator
 
 
Join Date: Mar 2006
Posts: 4,103
Rep Power: 100
Lhotch is just really niceLhotch is just really nice
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.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Lhotch is offline   Reply With Quote
Old 04-20-2006, 05:53 PM   #5
Member
 
Join Date: Mar 2006
Location: Uk
Posts: 86
Rep Power: 14
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, 22 views)
__________________
Regards

John

Useing Developer
build is offline   Reply With Quote
Old 04-20-2006, 06:38 PM   #6
Moderator
 
 
Join Date: Mar 2006
Posts: 4,103
Rep Power: 100
Lhotch is just really niceLhotch is just really nice
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.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Lhotch is offline   Reply With Quote
Old 04-21-2006, 07:05 AM   #7
Member
 
Join Date: Mar 2006
Location: Uk
Posts: 86
Rep Power: 14
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, 08:31 AM   #8
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,765
Rep Power: 110
Eric Barnes is a jewel in the rough
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
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules
Eric Barnes is online now   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
can I run scripts in an content page? dawyatt v3.1 Questions & Support 11 06-22-2007 02:50 PM
Renewal E-mails... HTML or Plain Text? flyingpylon v3.1 Questions & Support 2 11-01-2006 03:24 PM
Problem getting page title flyingpylon v3.1 Questions & Support 5 10-19-2006 01:15 PM
Editing test on the opening page spaceboy v3.1 Questions & Support 1 08-15-2006 07:43 AM
Back Button Erases Previous Page Content garysmith v3.0 Questions & Support 0 04-13-2006 08:22 AM


All times are GMT -4. The time now is 09:26 PM.


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