The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to randomly cycle content displayed on front page (section manager)?
Is there a way to randomly display content in a section each time the front page is loaded? I don't see it as an option in the "display order" dropdown.
I was told at the vb forums it would have to be some sort of modification. Has anyone tried this? |
#2
|
|||
|
|||
bump ... anyone?
|
#3
|
||||
|
||||
I'm a little confused. Are you looking to display content from a random section each time the home page loads? Or display content in a random order?
|
#4
|
|||
|
|||
Display content in a random order within a section (regardless of category). There's no option to display in random order right now.
|
#5
|
||||
|
||||
Create a new plugin that hooks into vbcms_collection_section_querydata and add the following code:
PHP Code:
|
#7
|
||||
|
||||
Quote:
This does work on sections that includes sub sections. |
#8
|
|||
|
|||
I can't get this to work. Did as you said, I'm guessing you have to select the section in the array(x,x) part? I tried putting in different numbers and it's not working.
I have Home > Articles (section) > (categories) of articles > actual content. See attachment. What am I doing wrong? And how do I figure out what "node" my home content is in (if it's not 1 because that doesn't seem to work)? |
#9
|
||||
|
||||
Quote:
2. If you want to see what node controls your homepage, go to admincp -> Settings -> Options -> Content Management -> Default Page 3. What do you mean when you say it's "not working"? It's not randomizing the content? It's giving you a blank page? It's doing something else unexpected? 4. What version of vBulletin? |
#10
|
|||
|
|||
Thanks for your help on this. Can this be set up with a cache so that it doesn't run a new query when paginating through articles in that section?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|