Topic: Need Random pages list
I need plugin or script that will generate a random pages list.
Please tell me does it exist?
You are not logged in. Please login or register.
We had problems with our forum being hacked. From what we can tell, all data is safe, but it forced us to upgrade our PunBB installation. Announcement
GetSimple Support Forum → Scripts & Components → Need Random pages list
I need plugin or script that will generate a random pages list.
Please tell me does it exist?
You should be able to use the Page Caching plugin : http://get-simple.info/extend/plugin/page-caching/65/
It provides a global: $digi_pagesArray you can use in templates.
This array is in the format ["page"]["field"]
Not tested, I'm thinking you could use something like:
$randomkeys = array_rand($digi_pagesArray,10);
foreach($randomkeys as $randomkey) {
echo $digi_pagesArray[$randomkey]["field_1"];
echo $digi_pagesArray[$randomkey]["field_x"];
}to generate your random page pieces.
-Rob A>
You should be able to use the Page Caching plugin : http://get-simple.info/extend/plugin/page-caching/65/
It provides a global: $digi_pagesArray you can use in templates.
This array is in the format ["page"]["field"]
Not tested, I'm thinking you could use something like:
$randomkeys = array_rand($digi_pagesArray,10); foreach($randomkeys as $randomkey) { echo $digi_pagesArray[$randomkey]["field_1"]; echo $digi_pagesArray[$randomkey]["field_x"]; }to generate your random page pieces.
-Rob A>
If you cannot figure that out, tell me some more info about how you want to use the list and ill write a quick plugin for you.
GetSimple Support Forum → Scripts & Components → Need Random pages list
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 4 official extensions. Copyright © 2003–2009 PunBB.