WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

Need help
using a diffrent template for perticular category

Version: 3.20
printPrint


Need help
trraju
Member

Usergroup: Customer
Joined: May 08, 2004
Total Topics: 7
Total Posts: 21
Posted 08/07/05 - 04:14 AM:
quote post
#1
hello

i have many categories for my site and i just wanted to use a diffrent main.tpl for a perticular category , is it possible ?

using different wrapper is possible i know because you have that option to change it when you add the category.

I have tried adding a complete default template with other name and changed the main.tpl and tried adding the template name to the category but i failed, It gave some error, something like this when i have added it locally.

Warning: fopen("templates/default/my", "rb") - Permission denied in c:\apache\htdocs\wsnlinks\filefunctions.php on line 338

Warning: Supplied argument is not a valid File-Handle resource in c:\apache\htdocs\wsnlinks\filefunctions.php on line 341

Please help me in this.

warm regards
trraju

HosterTalk : Discuss about Web Hosting, Marketing and Promotions
HashDot : Networking, hardware and software Solutions, IT News & Articles
SearchHostDirectory : Hosting Directory
AIM : trraju2000 yahoo : trraju2000@yahoo.com MSN : trraju@hashdot.com
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6316
Posted 08/07/05 - 04:37 PM:
quote post
#2
First, main.tpl is not a category template. It's the main index template. So, a custom main.tpl for a category is nonsensical since categories don't use main.tpl.

To give a category a custom template or custom wrapper, click 'edit' by the category.

Warning: fopen("templates/default/my", "rb")


This states that there is no file named 'my'... which would be an odd name for a file anyhow, and can't be a template since a template would be a .tpl. Also a custom templace would normally be in the 'custom' subdirectory.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
trraju
Member

Usergroup: Customer
Joined: May 08, 2004
Total Topics: 7
Total Posts: 21
Posted 08/07/05 - 11:35 PM:
quote post
#3
well i can understand that its non sensical but here if i want to change the way category looks i have to change main.tpl right ?

wrapper changes only header and footer right ?

ok let me be more specific :

visit hostonary.com there on main page you have 4 main categories and you have many subcategories for those 4 main categories.

Now i only want to change the way the subcategories looks inside the "host country wise" main categories.
Yes i can chage the displaylinks.tpl but it will change the look of all sub category page however i want to change the view of subcategory only in "host country wise".

I am confused here.. which file to edit and what i need to do ?

regards

HosterTalk : Discuss about Web Hosting, Marketing and Promotions
HashDot : Networking, hardware and software Solutions, IT News & Articles
SearchHostDirectory : Hosting Directory
AIM : trraju2000 yahoo : trraju2000@yahoo.com MSN : trraju@hashdot.com
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6316
Posted 08/08/05 - 01:25 PM:
quote post
#4
To repeat myself: main.tpl is the template for the main index page. It has nothing to do with the category template, which is displaylinks.tpl.

Also repeating, so set a custom template for a category to be used in place of displaylinks.tpl, click the 'edit' button next to the category.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6316
Posted 08/08/05 - 01:26 PM:
quote post
#5
To repeat myself: main.tpl is the template for the main index page. It has nothing to do with the category template, which is displaylinks.tpl.

Also repeating, so set a custom template for a category to be used in place of displaylinks.tpl, click the 'edit' button next to the category. An example of what you might type there is custom/wsnlinks.tpl

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
trraju
Member

Usergroup: Customer
Joined: May 08, 2004
Total Topics: 7
Total Posts: 21
Posted 08/13/05 - 10:50 PM:
quote post
#6
thanks ... well i am bit stupid in understanding the codes wink

let me try and check if it solves my problem.

regards
trraju

HosterTalk : Discuss about Web Hosting, Marketing and Promotions
HashDot : Networking, hardware and software Solutions, IT News & Articles
SearchHostDirectory : Hosting Directory
AIM : trraju2000 yahoo : trraju2000@yahoo.com MSN : trraju@hashdot.com
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.