Support Forums

Old 01-14-2008, 01:45 AM   #1
Junior Member
 
Join Date: Jan 2008
Posts: 4
Rep Power: 0
razsports is on a distinguished road
Default How to edit pages?

I am trying to edit the home page and the pages where you actually see the listings. How do I go about doing this? I don't want the categories to be in a box while visiting the home page. I am lost for words here.
razsports is offline   Reply With Quote
Old 01-14-2008, 02:30 AM   #2
civ
Senior Member
 
civ's Avatar
 
Join Date: Mar 2006
Location: Greer, SC
Posts: 670
Rep Power: 27
civ will become famous soon enough
Default

Have you looked at the templates yet? home.tpl.php, viewlisting(2).tpl.php, etc
__________________
Civ's Modules (____NOW v4 COMPATIBLE____):

Stop Incomplete Listings! (proven revenue booster!)
Scam Filter (Just say no to Nigerians!) updated
Similar Listings (keep visitors longer)
Feedback Mod (testimonial builder)
Listing Status Reminder free!
civ is offline   Reply With Quote
Old 01-14-2008, 04:25 AM   #3
Junior Member
 
Join Date: Jan 2008
Posts: 4
Rep Power: 0
razsports is on a distinguished road
Default

" Have you looked at the templates yet? home.tpl.php, viewlisting(2).tpl.php, etc."


Hi civ,

The answer is, yes. I tried making changes to my home page via my admin. panel. It did not work. Errors came up as soon as I removed any of the coding.
razsports is offline   Reply With Quote
Old 01-14-2008, 09:54 AM   #4
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,624
Rep Power: 47
Mike-N-Tosh is just really niceMike-N-Tosh is just really nice
Default

razsports,

As you don't list what version of the software that you are using (designer or developer AND version 3.1.x), it makes it more difficult for others to assist you.

If you have the developer version and if I understand what your goals are, then this may be a solution for you.

Open the index.php file in the root directory of your 68c installation. find this near the bottom of the file:
PHP Code:
$class_tpl->display('layout.tpl.php'); 
replace it with this:
PHP Code:
$class_tpl->display('mylayout.tpl.php'); 
I actually use 'layout2.tpl.php'.

Next (to make all of your "pages" created in the "pages" of your admin to ALSO use this template) open your pages.php file, again in the root directory and again near the bottom of the page you will need to replace the same code as you did in the index.php file.

Lastly to make this all work, copy your original layout.tpl.php file that is located in your template folder (default if you haven't made a custom template) and save it in your template folder with the same name that you are pointing your index.php AND pages.php files too. Change your new layoutX.tpl.php file however you want it to look like.

PLEASE ENSURE THAT YOU HAVE ORIGINAL BACKUPS OF BOTH YOUR INDEX.PHP AND PAGES.PHP FILES

Check my site and you will see that this is how I have done this. To follow the logic... The change in the index.php will make your homepage go to your new layout file (e.g. when someone type in yoursite.com/net/whatever). The change in the pages.php file will ensure that any time that your "pages" are loaded will also use your new layout file.

Hope that helps!
-Mike
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified)
Sandbox (v3.1.10, v4.0.9, 4.1.3)
Visit My blog for tips, tricks, tutorials, reviews for 68 Classifieds as well as my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 01-14-2008, 12:43 PM   #5
Junior Member
 
Join Date: Jan 2008
Posts: 4
Rep Power: 0
razsports is on a distinguished road
Default

I am using the developer version- and the latest new update.
razsports is offline   Reply With Quote
Old 01-14-2008, 01:25 PM   #6
civ
Senior Member
 
civ's Avatar
 
Join Date: Mar 2006
Location: Greer, SC
Posts: 670
Rep Power: 27
civ will become famous soon enough
Default

Quote:
Originally Posted by razsports View Post
" Have you looked at the templates yet? home.tpl.php, viewlisting(2).tpl.php, etc."


Hi civ,

The answer is, yes. I tried making changes to my home page via my admin. panel. It did not work. Errors came up as soon as I removed any of the coding.
Well what were the errors? Help us out here.

And keep in mind that if you intend to edit the templates via the admincp, you'll need to give them (and their containing folders) 777 permissions. This was in the documentation.
__________________
Civ's Modules (____NOW v4 COMPATIBLE____):

Stop Incomplete Listings! (proven revenue booster!)
Scam Filter (Just say no to Nigerians!) updated
Similar Listings (keep visitors longer)
Feedback Mod (testimonial builder)
Listing Status Reminder free!
civ is offline   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
Captcha works on some pages, not on others weblogic v3.1 Questions & Support 10 09-20-2007 02:02 PM
adding content to specific pages archavir v3.1 Questions & Support 6 08-21-2007 05:08 AM
How to edit pages.. margaretm v3.1 Questions & Support 2 06-25-2007 09:17 AM
Edit paymethod lekxaphi v3.0 Questions & Support 8 03-02-2007 04:07 PM
the html pages don't show up... FlyingBee v3.1 Questions & Support 8 12-08-2006 10:36 AM


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


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