WebmasterSite.net
PHP scripts to enable your creativity
Home
Web Scripts
WSN Links
WSN Gallery
WSN Knowledge Base
WSN Forum
WSN Classifieds
WSN Directory
WSN AdUnblocker
WSN FormEmail
WSN InstaChat
WSN Redirector
WSN Webcomic
WSN Guest
Reviews
WSN For WordPress
WSN For Web Designers
Webmaster Resource Links
Register
Log In
Username
Password
Login
Forgot your password?
WSN Support Forums
Paid Scripts Support
Shortening custim template URLs
Shortening custim template URLs
Details
Discussion
7
Print
Comments on Shortening custim template URLs
•
webflair
Forum Regular
Usergroup:
Customer
Joined:
Nov 27, 2006
Total Topics:
187
Total Comments:
465
•
webflair
#1 -
Quote
-
Permalink
Posted Dec 06, 2006 - 5:53 AM:
Is it possible to shorten a URL such as this
www.jayweddings.co.uk/link....pper=custom-detailswrapper
I read somewhere in the manual about adding a bit of PHP, but it doesnt say where to add it and what to actually do in the templates.
•
webflair
Forum Regular
Usergroup:
Customer
Joined:
Nov 27, 2006
Total Topics:
187
Total Comments:
465
•
webflair
#2 -
Quote
-
Permalink
Posted Dec 06, 2006 - 6:35 AM:
OK I shortened it a bit by using
<?php
$custom = 'yes';
$TID = 'fulldetails1';
require 'link.php';
?>
In a file named weddingservicedetials.php
I call this by using... www.jayweddings.co.uk/weddingservicedetails.php?action=detail&id={LINKID}&customwrapper=custom-detailswrapper
How can i call the custom wrapper using that new php file?
•
webflair
Forum Regular
Usergroup:
Customer
Joined:
Nov 27, 2006
Total Topics:
187
Total Comments:
465
•
webflair
#3 -
Quote
-
Permalink
Posted Dec 06, 2006 - 7:06 AM:
I tried
<?php
$custom = 'yes';
$TID = 'fulldetails1';
require 'templates/default/custom/detailswrapper.tpl';
require 'link.php';
?>
But that didint work
•
webflair
Forum Regular
Usergroup:
Customer
Joined:
Nov 27, 2006
Total Topics:
187
Total Comments:
465
•
webflair
#4 -
Quote
-
Permalink
Posted Dec 06, 2006 - 7:14 AM:
Tried...
<?php
$customwrapper = 'custom-detailswrapper';
$custom = 'yes';
$TID = 'fulldetails1';
require 'link.php';
?>
Nope, didnt work
•
webflair
Forum Regular
Usergroup:
Customer
Joined:
Nov 27, 2006
Total Topics:
187
Total Comments:
465
•
webflair
#5 -
Quote
-
Permalink
Posted Dec 06, 2006 - 7:42 AM:
I got round this by adding <!-- usewrapper=no --> to the custom template, and adding the wrapper html into the custom template.
•
Paul
developer
Usergroup:
Administrator
Joined:
Dec 20, 2001
Location:
Diamond Springs, California
Total Topics:
61
Total Comments:
7868
•
Paul
#6 -
Quote
-
Permalink
Posted Dec 06, 2006 - 12:00 PM:
Admin -> Settings -> SEO, type in the old url and the new one you want it shortened to.
•
webflair
Forum Regular
Usergroup:
Customer
Joined:
Nov 27, 2006
Total Topics:
187
Total Comments:
465
•
webflair
#7 -
Quote
-
Permalink
Posted Dec 06, 2006 - 5:28 PM:
Wow, i don't know how i missed that. that really is impressive. i've never seen that in any other script.
Cheers
Search thread for
Go ►
Download thread as
text
HTML
Go ►
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on Shortening custim template URLs
Forum Regular
Usergroup: Customer
Joined: Nov 27, 2006
Total Topics: 187
Total Comments: 465
Is it possible to shorten a URL such as this www.jayweddings.co.uk/link....pper=custom-detailswrapper
I read somewhere in the manual about adding a bit of PHP, but it doesnt say where to add it and what to actually do in the templates.
Forum Regular
Usergroup: Customer
Joined: Nov 27, 2006
Total Topics: 187
Total Comments: 465
OK I shortened it a bit by using
<?php
$custom = 'yes';
$TID = 'fulldetails1';
require 'link.php';
?>
In a file named weddingservicedetials.php
I call this by using... www.jayweddings.co.uk/weddingservicedetails.php?action=detail&id={LINKID}&customwrapper=custom-detailswrapper
How can i call the custom wrapper using that new php file?
Forum Regular
Usergroup: Customer
Joined: Nov 27, 2006
Total Topics: 187
Total Comments: 465
I tried
<?php
$custom = 'yes';
$TID = 'fulldetails1';
require 'templates/default/custom/detailswrapper.tpl';
require 'link.php';
?>
But that didint work
Forum Regular
Usergroup: Customer
Joined: Nov 27, 2006
Total Topics: 187
Total Comments: 465
Tried...
<?php
$customwrapper = 'custom-detailswrapper';
$custom = 'yes';
$TID = 'fulldetails1';
require 'link.php';
?>
Nope, didnt work
Forum Regular
Usergroup: Customer
Joined: Nov 27, 2006
Total Topics: 187
Total Comments: 465
I got round this by adding <!-- usewrapper=no --> to the custom template, and adding the wrapper html into the custom template.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Admin -> Settings -> SEO, type in the old url and the new one you want it shortened to.
Forum Regular
Usergroup: Customer
Joined: Nov 27, 2006
Total Topics: 187
Total Comments: 465
Wow, i don't know how i missed that. that really is impressive. i've never seen that in any other script.
Cheers