Quote:
Originally posted by BeatDown
"warn ... warn ... warn" :banana:
I am interested in this one for sure. Can you send it my way?
Do you think it would be simple to modify it to allow polls that are posted in several "named" forums to show up on the vbHome (Lite) page?
I'll go with a single forum instead of a single user, but being able to have polls from several forums (not all) would be ideal.
Many thanks, dude.
|
open your vbHome index.php. Find:
Code:
$iuserperms = 'AND thread.postuserid IN (' . $activepollusers . ')';
and REPLACE WITH:
Code:
$pollfora = 'AND forumid IN (' . $pollfora . ')';
then find
Code:
WHERE thread.visible=1 AND thread.open<>10 $iuserperms
and REPLACE WITH:
Code:
WHERE thread.visible=1 AND thread.open<>10 $pollfora
Save and upload modified index.php.
Next, go to your forum's admin directory and run setting.php (
www.yourdomain.com/forums/admin/setting.php). Scroll all the way down to the section called "vbHome Page" and click on the [edit] link next to activepollusers.
Change the following settings to: Title ->
Variable Name ->
Description ->
Code:
The forum ID('s) assigned to your home page polls.<br>Multiple fora allowed - seperate each with a comma (,).
Leave the other settings alone.
Now go to your admin control panel and change the vbHome settings as you normally would.
Hope this works, cos I typed all this from memory.