Support Forums


Go Back   68 Classifieds Forums > Help & Support > Modules / Plugins / Modifications

Notices

 
LinkBack Thread Tools Display Modes
Old 12-22-2008, 02:03 PM   #11
Coder
 
Join Date: Mar 2006
Posts: 4,548
Rep Power: 110
Lhotch is just really niceLhotch is just really nice
Default

Quote:
Originally Posted by asklexi View Post
v4.0.9 Developer.
crate a php file in the do root of your site with the rest of your script files with what ever name you would like and inside it put the following....

PHP Code:
<?php
require_once('includes/init.php');
$class_tpl->assign('body','mytemplate.tpl');
$class_tpl->display('layout.tpl.php');
?>
Then inside your template folder create a template file to hold the body of you page and call it what ever you would like. Just replace the "mytemplate.tpl" with what ever the name of the template is you create for the body.

The simply create a link on your site to the php file you created and your good to go.
__________________
Larry.
Lhotch is offline   Reply With Quote
Old 12-22-2008, 02:05 PM   #12
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 1,180
Rep Power: 30
seymourjames has a spectacular aura about
Default

Not sure why you want to do this - there is no real advantage in terms of SEO and people very rarely remember specific urls for inner pages. What is far more important is content and structure. The use of title tags, page titles and meta descriptions on links etc.

That being said, the first line makes an html url for all those php pages, the second line is specific to a particular page (number 16)

RewriteRule ^page/([0-9]+)\.html$ pages.php?page=$1 [NC]

RewriteRule ^xyz\.html$ page/16.html [NC]
__________________
TemplateCodes.com
seymourjames is offline   Reply With Quote
Old 12-22-2008, 10:16 PM   #13
Member
 
Join Date: Dec 2008
Posts: 34
Rep Power: 3
cflo is on a distinguished road
Default

Thank you for your help, I am sorry for asking so many questions, but I am still not really clear on the code. So what does (xyz) stand for?
RewriteRule ^xyz\.html$ page/16.html [NC][/quote]
Are you just giving me an example of a folder?
Do I need to modify anything else in this second line other than the page number?

Quote:
Originally Posted by seymourjames View Post
Not sure why you want to do this - there is no real advantage in terms of SEO and people very rarely remember specific urls for inner pages. What is far more important is content and structure. The use of title tags, page titles and meta descriptions on links etc.

That being said, the first line makes an html url for all those php pages, the second line is specific to a particular page (number 16)

RewriteRule ^page/([0-9]+)\.html$ pages.php?page=$1 [NC]

RewriteRule ^xyz\.html$ page/16.html [NC]
cflo is offline   Reply With Quote
Old 12-23-2008, 09:23 AM   #14
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 1,180
Rep Power: 30
seymourjames has a spectacular aura about
Default

xyz is just an example. A name.

please put the version you are using in your signature.
__________________
TemplateCodes.com
seymourjames is offline   Reply With Quote
Old 12-25-2008, 02:12 PM   #15
Member
 
Join Date: Dec 2008
Posts: 34
Rep Power: 3
cflo is on a distinguished road
Default

I am using: v4.0.9 Developer

Quote:
Originally Posted by seymourjames View Post
xyz is just an example. A name.
please put the version you are using in your signature.
cflo is offline   Reply With Quote
Old 12-25-2008, 03:47 PM   #16
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 1,180
Rep Power: 30
seymourjames has a spectacular aura about
Default

put it in your signature so we can always see it.
__________________
TemplateCodes.com
seymourjames 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
MODIFICATION: Changing the photo layout on the viewlisting.tpl page. cwp Modules / Plugins / Modifications 9 06-15-2009 11:47 PM
Page Editor new Pages, location ? jj30 v4 Questions & Support 6 07-05-2008 11:18 AM
Changing the name of a field and changing page backgound Sandy68Classi v3.1 Modules & Modifications 7 10-16-2007 01:31 AM
Easy and free SEO trick, Give Pages Actual Names! RyanG v3.1 Modules & Modifications 0 01-16-2007 05:00 PM
Changing look of categories on home page Baz HTML, CSS, and Design Help 2 11-09-2006 01:29 PM


All times are GMT -4. The time now is 10:13 PM.


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