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

Register | Forgot Password

Subcategories in homepage.

Version: 4.1.39
Example URL: http://www.finewineandflowers.com/
printPrint


Page: 1 2

Subcategories in homepage.
ngprasad
Member

Usergroup: Customer
Joined: Apr 28, 2008
Total Topics: 5
Total Posts: 21
Posted 05/26/08 - 08:43 PM:
quote post
#1
1.How to display all subcategories under categories in homepage?

I have changed below settings.

In switches "Show subcategories on main page" On.
In admin->settings->categories
Max subcategories to show on main page:25

It shows only 8 subcategories under main category.The first seven categories are subcategories,8th subcategory is category.Can you please check it in http://www.finewineandflowers.com/

Wine (2,222)-------Main Category
* Accessories
* Auctions
* Business
* Buy Wine
* Consumer Information
* Education
* Events
* Wine-------Main Category
In the middle all are subcategories.

We need to display all subcategories under "wine" Category.

2.We need the "Flowers by region" not to show the sub categories.

Can you please check it in http://www.finewineandflowers.com/

How to hide the sub categories.Where can i change the code.Can you please specify the filenames.
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6316
Posted 05/26/08 - 09:24 PM:
quote post
#2
After changing the max subcategories total you need to regenerate categories at Admin -> Maintenance -> Regenerate

"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
ngprasad
Member

Usergroup: Customer
Joined: Apr 28, 2008
Total Topics: 5
Total Posts: 21
Posted 05/26/08 - 10:28 PM:
quote post
#3
Thanks for your reply.

We need the "Flowers by region" not to show the sub categories.

Can you please check it in http://www.finewineandflowers.com/

How to hide the sub categories.Where can i change the code.Can you please specify the filenames.
ngprasad
Member

Usergroup: Customer
Joined: Apr 28, 2008
Total Topics: 5
Total Posts: 21
Posted 05/27/08 - 07:25 AM:
quote post
#4
I have fixed above issue.

Used this code in <IF {CATNAME} is Flowers> main.tpl file.
ngprasad
Member

Usergroup: Customer
Joined: Apr 28, 2008
Total Topics: 5
Total Posts: 21
Posted 05/28/08 - 03:14 AM:
quote post
#5
How to limit subcategories on innerpage.

In this page http://www.finewineandflowers.com/index.php?actio... need to display only 5 subcategories under each category.

Where can i limit subcategories on innerpage.
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6316
Posted 05/29/08 - 02:01 AM:
quote post
#6
It has to be the same for the front page and category pages. I'll add an optional parameter to allow specifying the number to show with {CATSUBCATS[ <,> 5]}.

Edited by Paul on 05/29/08 - 02:32 AM

"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
ngprasad
Member

Usergroup: Customer
Joined: Apr 28, 2008
Total Topics: 5
Total Posts: 21
Posted 05/29/08 - 03:54 AM:
quote post
#7
Hi Paul,

Thanks for your reply.

Where can i add this line {CATSUBCATS[ <,> 5]}.

Thanks,
Prasad.
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6316
Posted 05/30/08 - 12:08 PM:
quote post
#8
Where you want to display subcategories, in place of the existing subcategories template code. You seem to have specified the display links in category template.

"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
ngprasad
Member

Usergroup: Customer
Joined: Apr 28, 2008
Total Topics: 5
Total Posts: 21
Posted 06/01/08 - 09:34 AM:
quote post
#9
Hi Paul,

Thanks for your reply.

I have tried below one in displaylinks.tpl.But, it is not working.Can you please help me to fix it.

<table {STANDARDTABLE}>
<!-- BEGIN SUBCATEGORIES -->
<!-- BEGIN REGULAR -->
<td {SUBCATWIDTH} valign="top" class="category">
<img src="http://www.webmastersite.net/forums/{IMAGESURL}/folder.gif" alt="" /> <a href="http://www.webmastersite.net/forums/{CATURL}" class="categoryname">{CATNAME}</a> ({CATNUMLINKS}) {CATHASNEW} {CATADMIN}<br />
<!-- BEGIN SUBSUB -->
<IF {CATSUBCATS[ <,> 5]}>
<a href="http://www.webmastersite.net/forums/{CATURL}">{CATNAME}</a>,
</IF>
<!-- END SUBSUB -->
<IF {CATDESCRIPTIONBOOL}><br />{CATDESCRIPTION}</IF>
<IF 0 or 0><br /></IF>
<IF 0>{CATVIEWS} views</IF><IF 0 and 0>, </IF>
<IF 0>{CATNUMONLINE} viewing</IF>
</td>
<!-- END REGULAR -->
<!-- END SUBCATEGORIES -->
</table>

Thanks,
Prasad
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6316
Posted 06/02/08 - 10:30 AM:
quote post
#10
Delete
<!-- BEGIN SUBSUB -->
<IF {CATSUBCATS[ <,> 5]}>
<a href="http://www.webmastersite.net/forums/{CATURL}">{CATNAME}< /a>,
</IF>
<!-- END SUBSUB -->

Use {CATSUBCATS[ <,> 5]}

"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
ngprasad
Member

Usergroup: Customer
Joined: Apr 28, 2008
Total Topics: 5
Total Posts: 21
Posted 06/02/08 - 08:55 PM:
quote post
#11
Hi Paul,

Thanks for your reply.

I have used below code in displaylinks.tpl.

<table {STANDARDTABLE}>
<!-- BEGIN SUBCATEGORIES -->
<!-- BEGIN REGULAR -->
<td {SUBCATWIDTH} valign="top" class="category">
<img src="http://www.webmastersite.net/forums/{IMAGESURL}/folder.gif" alt="" /> <a href="http://www.webmastersite.net/forums/{CATURL}" class="categoryname">{CATNAME}</a> ({CATNUMLINKS}) {CATHASNEW} {CATADMIN}<br />
{CATSUBCATS[ <,> 5]}
<IF {CATDESCRIPTIONBOOL}><br />{CATDESCRIPTION}</IF>
<IF 0 or 0><br /></IF>
<IF 0>{CATVIEWS} views</IF><IF 0 and 0>, </IF>
<IF 0>{CATNUMONLINE} viewing</IF>
</td>
<!-- END REGULAR -->
<!-- END SUBCATEGORIES -->
</table>

I need to display all subcategories under each category in homepage.

In inner pages,need to display 5 subcategories and more.. link under each category.

By using above code it displays all subcategories in homepage and innerpage.If i change Settings->Categories
Max subcategories to show on main page:5.
It displays 5 sub categories in homepage and inner pages.But i need all subcategories in homepage.And also in inner pages subcategories are displaying in order list.I need to display in side by side.Where can i change it.

Thanks,
Prasad.

Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6316
Posted 06/04/08 - 04:19 PM:
quote post
#12
You never upgraded. Until you do things will remain the same... plus you remain vulnerable to critical security flaw I emailed you about.

"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
ngprasad
Member

Usergroup: Customer
Joined: Apr 28, 2008
Total Topics: 5
Total Posts: 21
Posted 06/11/08 - 02:27 AM:
quote post
#13
Hi Paul,

I have regenerated category counter.Still same problem.

Can you please explain clearly.

What do you mean by "You never upgraded. Until you do things will remain the same... ".Please explain.

I haven't received any mail.Please send to this mail id ngprasad16@gmail.com.

Thanks,
Prasad.
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6316
Posted 06/12/08 - 11:05 PM:
quote post
#14
You're running WSN Links 4.1.39. The current version is 4.1.47. As long as you continue using the old version, nothing will ever change from how it worked (or didn't work, in this case) in that version.

It's your responsibility to keep a valid email account in your custom account. http://scripts.webmastersite.net/wsnlinks/members/
If you can't recieve email at the account you've provided, or you've selected to prevent emails from administrators, then you won't get security udpates.

If you're one of those people with the systems that try to force the sender to reply to verify, I just delete those since an email to all customers generates a hundred of those.

"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
ngprasad
Member

Usergroup: Customer
Joined: Apr 28, 2008
Total Topics: 5
Total Posts: 21
Posted 06/13/08 - 01:03 AM:
quote post
#15
I have tried to upgrade new version.But it shows below errors

Warning: ftp_site() [function.ftp-site]: No file name in /home2/finewine/public_html/includes/filefunctions.php on line 172

Warning: copy(../quotelist.php) [function.copy]: failed to open stream: Permission denied in /home2/finewine/public_html/includes/filefunctions.php on line 32

Warning: ftp_delete() [function.ftp-delete]: Could not delete upgradesavedtopics.php: No such file or directory in /home2/finewine/public_html/includes/filefunctions.php on line 141

Warning: ftp_delete() [function.ftp-delete]: Could not delete email.php: No such file or directory in /home2/finewine/public_html/includes/filefunctions.php on line 141

Warning: ftp_delete() [function.ftp-delete]: Could not delete contactreply.php: No such file or directory in /home2/finewine/public_html/includes/filefunctions.php on line 141

Warning: ftp_delete() [function.ftp-delete]: Could not delete chat.php: No such file or directory in /home2/finewine/public_html/includes/filefunctions.php on line 141

Warning: ftp_delete() [function.ftp-delete]: Could not delete invites.php: No such file or directory in /home2/finewine/public_html/includes/filefunctions.php on line 141

Warning: ftp_delete() [function.ftp-delete]: Could not delete report.php: No such file or directory in /home2/finewine/public_html/includes/filefunctions.php on line 141

Warning: ftp_delete() [function.ftp-delete]: Could not delete bulkedit.php: No such file or directory in /home2/finewine/public_html/includes/filefunctions.php on line 141

Warning: ftp_delete() [function.ftp-delete]: Could not delete 2checkout.php: No such file or directory in /home2/finewine/public_html/includes/filefunctions.php on line 141

Warning: ftp_delete() [function.ftp-delete]: Could not delete postreply.php: No such file or directory in /home2/finewine/public_html/includes/filefunctions.php on line 141

Warning: ftp_delete() [function.ftp-delete]: Could not delete privatemessaging.php: No such file or directory in /home2/finewine/public_html/includes/filefunctions.php on line 141

Warning: ftp_delete() [function.ftp-delete]: Could not delete index.php: No such file or directory in /home2/finewine/public_html/includes/filefunctions.php on line 141

Warning: ftp_delete() [function.ftp-delete]: Could not delete download.php: No such file or directory in /home2/finewine/public_html/includes/filefunctions.php on line 141

Warning: ftp_delete() [function.ftp-delete]: Could not delete search.php: No such file or directory in /home2/finewine/public_html/includes/filefunctions.php on line 141

Warning: ftp_delete() [function.ftp-delete]: Could not delete end.php: No such file or directory in /home2/finewine/public_html/includes/filefunctions.php on line 141

Warning: ftp_delete() [function.ftp-delete]: Could not delete adminlogin.php: No such file or directory in /home2/finewine/public_html/includes/filefunctions.php on line 141

Warning: ftp_delete() [function.ftp-delete]: Could not delete showvotes.php: No such file or directory in /home2/finewine/public_html/includes/filefunctions.php on line 141

Warning: ftp_delete() [function.ftp-delete]: Could not delete setup.php: No such file or directory in /home2/finewine/public_html/includes/filefunctions.php on line 141

Warning: ftp_site() [function.ftp-site]: No file name in /home2/finewine/public_html/includes/filefunctions.php on line 172

Please help me to upgrade it.
Search thread for
Download thread as

Page: 1 2



You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.