Gossamer Forum
Skip to Content


Quote Reply
Dynamic site
Hi Andy,

Should the OrderRandPro plugin work with a dynamically generated site?

I iinstalled the plugin and have this for my sort order in admin setup;
"isNew DESC,isPopular DESC,Sort_Position DESC,Title"

So it looks like the 'Sort_Postion' has been correctly installed.

I just don't see much randomness going on in the sort order.

Cheers,

Piers
Quote Reply
Re: [Piers] Dynamic site In reply to
Hi,

Afraid not. You need to setup a cronjob, that will run however often you want.


Code
perl /full/path/to/cgi-bin/admin/admin.cgi '?do=plugin&plugin=OrderRandPro&func=create_category'


That should do the trick :)

Cheers
Andy
Programmer/Designer/LinksSQL Freak Cool

http://www.ultranerds.com
http://www.imagesql.com
Quote Reply
Re: [Andy] Dynamic site In reply to
Hi there Andy,

Hope you had a good holiday? Well deserved I'm sure.

I called the plugin from the browser to test and it populated the lsql_Links / Sort_Position field with numbers.

Two observations;

1) The numbers always remain the same even when I call the plugin again from the browser.
2) Admin/Build options - "build_sort_order_category" is set to "isNew DESC,isPopular DESC,Sort_Position DESC,Title", but the sort order is set by title ascending - nothing random in the displayed order.

The only possible thing that is different from a standard install was the following hack which you developed to display my paid links in a random order;
random_paid_in_category

Cheers,

Piers
Quote Reply
Re: [Piers] Dynamic site In reply to
Hi,

Please email me GLinks admin details, and FTP details - and I'll have a look for ya :)

Cheers
Andy
Programmer/Designer/LinksSQL Freak Cool

http://www.ultranerds.com
http://www.imagesql.com