vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced Dynamics > Feedback & Suggestions

Reply
 
Thread Tools Display Modes
  #1  
Old 08-02-2007, 02:34 AM
attroll's Avatar
attroll attroll is offline
Senior Member
 
Join Date: Jan 2004
Posts: 818
Default Random entries module

Would it be possible to put a setting in the random entries module so that it will not display photos that are placed in the entries. I would like to put the random entries on my main page and use the expanded mode for the random entries but if one user has four photos it displays all four photos and it fills the page.
Reply With Quote
  #2  
Old 08-02-2007, 11:31 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Random entries module

I'm not sure about adding that as a default option right now... I can do the next best thing and get you a plugin for it though.

I had to update the files to add a new hook location, so you will need to download the package from here again and update your forum/includes/xml/hooks_vbadyna.xml and forum/vba_dyna_modules/dyna_newrand.php files first. Then login to your Admin CP and add 2 new plugins with the following options:

Plugin #1
Product: vBadvanced Dynamics

Hook Location: vba_dyna_modules_newrand_query

Title: Replace [img] tags (start)

Execution Order: 5

Plugin PHP Code:
PHP Code:
$oldimagesetting $vbulletin->userinfo['showimages'];
$vbulletin->userinfo['showimages'] = false

Plugin #2
Product: vBadvanced Dynamics

Hook Location: vba_dyna_modules_newrand_end

Title: Replace [img] tags (end)

Execution Order: 5

Plugin PHP Code:
PHP Code:
$vbulletin->userinfo['showimages'] = $oldimagesetting
Reply With Quote
  #3  
Old 08-02-2007, 12:24 PM
attroll's Avatar
attroll attroll is offline
Senior Member
 
Join Date: Jan 2004
Posts: 818
Default Re: Random entries module

Cool, thanks Brian. I will give this a try later tonight.
Reply With Quote
  #4  
Old 08-03-2007, 03:13 AM
attroll's Avatar
attroll attroll is offline
Senior Member
 
Join Date: Jan 2004
Posts: 818
Default Re: Random entries module

I installed this and this works. Thank you once again.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Recent Zoints Blog Entries Module tmeer Module & Modification Discussion & Requests 4 11-01-2007 02:52 PM
Some latest threads module entries are always bold jluerken Troubleshooting & Problems 4 04-13-2007 05:10 AM
A more "blog like" VB Journal Last Entries Module bbensen Add-On Modules & Modifications 18 02-25-2006 12:30 AM


All times are GMT -4. The time now is 05:25 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.