THUMB_LINK for hardcoded categories

Post Reply
SpyCam
Posts: 736
Joined: Fri Oct 26, 2012 9:52 am

THUMB_LINK for hardcoded categories

Post by SpyCam »

Hello,
right now, I am using dynamic list of categories as text links. Template looks like this:

Code: Select all

<ul><category order=alphabet num=1-40 min_gallery_count=5000><li><a href="/popular/<!--CATEGORY_CUSTOM_NAME-->/1.html?<!--THUMB_LINK-->"><!--CATEGORY_CUSTOM_VAR1--></a></li></category></ul>
I would like to hardcode all categories on site so the code in template wold look like this:

Code: Select all

<li>
<a href="/popular/amateur/1.html?<!--THUMB_LINK-->">Amateurs</a>
</li>
Is this the correct way of THUMB_LINK usage?
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: THUMB_LINK for hardcoded categories

Post by admin »

If you hardcode category links it won't be rotated = you don't need thumb_link
Don't forget to run script update
SpyCam
Posts: 736
Joined: Fri Oct 26, 2012 9:52 am

Re: THUMB_LINK for hardcoded categories

Post by SpyCam »

But i have thumb categories that are rotated, so if anyone clicks on text categories i want thumbs to be rotated by this as well
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: THUMB_LINK for hardcoded categories

Post by admin »

Well, you can output categories as

<categories ...>
some JS code like

var category_name[<!--CATEGORY_NAME-->] = THUMB_LINK
</categories>

and later add those codes to the end of proper links ..
Don't forget to run script update
SpyCam
Posts: 736
Joined: Fri Oct 26, 2012 9:52 am

Re: THUMB_LINK for hardcoded categories

Post by SpyCam »

I just asked you if the code in example is OK to use or not. If not, why?
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: THUMB_LINK for hardcoded categories

Post by admin »

If you have only

<a href="/popular/cat1/1.html?<!--THUMB_LINK-->">cat1</a>
<a href="/popular/cat2/1.html?<!--THUMB_LINK-->">cat2</a>

script can not replace tag with proper numbers caz it has to parse somehow your links , find out category name and so on
Don't forget to run script update
SpyCam
Posts: 736
Joined: Fri Oct 26, 2012 9:52 am

Re: THUMB_LINK for hardcoded categories

Post by SpyCam »

OK, thanks
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: THUMB_LINK for hardcoded categories

Post by admin »

np
Don't forget to run script update
Post Reply