Exclude a group

Gradwank
Posts: 67
Joined: Tue Jan 29, 2013 2:57 pm

Exclude a group

Post by Gradwank »

I have special GROUP of thumbs only displayed on one page, called explicitly in HTACCESS for that page (..../index.php?group_name=SpecialGroup). I do not want group in rotation on other pages, though.


Is there a way to accomplish this? Perhaps setting images in SpecialGroup to some other status that keeps them out of rotation but allows them to be displayed when called directly by htaccess/url?
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: Exclude a group

Post by admin »

With version 50 you can use

<thumb ... skip_group=groupname></thumb>
Don't forget to run script update
Gradwank
Posts: 67
Joined: Tue Jan 29, 2013 2:57 pm

Re: Exclude a group

Post by Gradwank »

I am in 1.49.


What if I were to put thumbs to "pool" or to "old" - would that keep them out of a general rotation on other pages, but if i had a page where i called the group specifically they would still display?
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: Exclude a group

Post by admin »

What if I were to put thumbs to "pool" or to "old" - would that keep them out of a general rotation on other pages, but if i had a page where i called the group specifically they would still display?
No
It will display active only.
Don't forget to run script update
Gradwank
Posts: 67
Joined: Tue Jan 29, 2013 2:57 pm

Re: Exclude a group

Post by Gradwank »

when will 50 be available?
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: Exclude a group

Post by admin »

Beta version is already available.
Don't forget to run script update
Gradwank
Posts: 67
Joined: Tue Jan 29, 2013 2:57 pm

Re: Exclude a group

Post by Gradwank »

Here is another way ... if i can reset their CTR to 0 regularly they will be at bottom of list for sort on these pages, which means not visible, which will do the trick.


I see stats in rot_gallery_stats, rot_gallery_stats1, etc ....

Which of these tables should I find the thumb ID number and reset total_ctr column to 0.0000 in ?

Then i will write simple PHP script and set to cron job. What do you think?
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: Exclude a group

Post by admin »

Guess it will work but sounds mm... strange :)

_stats = master
_stats1 = first slave
and so on
Don't forget to run script update
Gradwank
Posts: 67
Joined: Tue Jan 29, 2013 2:57 pm

Re: Exclude a group

Post by Gradwank »

I dont suppose there is way in htaccess rule to not count clicks on a thumb?

RewriteRule ^gallery/(.*)/(.*)/index.html$ /scj/tube/index.php?content_id=$2 [L]


modifying this rule, is there some parameter that i could pass that would make the click not counted in rotation calcs?
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: Exclude a group

Post by admin »

Clicks are counted only if they go thru out.php
In this case they are not.
Don't forget to run script update
Post Reply