Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Random Images Anywhere Details »»
Random Images Anywhere
Version: .1, by jugo jugo is offline
Developer Last Online: Oct 2009 Show Printable Version Email this Page

Version: 3.5.0 RC2 Rating:
Released: 08-15-2005 Last Update: 08-15-2005 Installs: 121
Uses Plugins
 
No support by the author.

1st of all I really love this plugin stuff.

Now for the Release. Please be gentle as this is my first release ever.

I want to thank Loneranger because I used his XML file as a template for mine. This was fun to make. I hope you guys enjoy it.

This will allow you to display random images anywhere you want.

Features:
  • Reads from a specified directory.
  • Only reads files whose filenames contain your specified text delimeter.
  • Can specify file extensions to display (GIF JPG PNG)
  • Perfect for babe of the week, etc.

See a working example here: http://www.freaks-network.com/forum/

The header images on the left will change whenever the page is refreshed.

Note: This generates a variable. Just insert the following wherever you want the random image to appear:

PHP Code:
$randpic 

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #82  
Old 11-29-2005, 03:35 PM
DefenceTalk DefenceTalk is offline
 
Join Date: Dec 2004
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by c0rupted
nope.
Nice hack. You know what would be cool? Turn this into a random thumb rotator for forum images (category image) hack out here somewhere.
Reply With Quote
  #83  
Old 12-10-2005, 04:27 PM
concepts's Avatar
concepts concepts is offline
 
Join Date: May 2005
Location: Woodland Hills, Ca
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do I put this into a module? for my CMPS?
Reply With Quote
  #84  
Old 12-14-2005, 02:44 AM
DA KING DA KING is offline
 
Join Date: Nov 2005
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

its not working for me! HEEEEEEEEEEEELP!

I have tried everything!

my site is "www.dawire.net"

the PATH for my site is "public_html/forums/images/randompics/"

My delimiter is "random" and I even went a inserted that in all my pics in that directory.

I even put the "$randpic" code in the header template and I get is a big red X. Can someone help me please?
Reply With Quote
  #85  
Old 12-15-2005, 10:34 PM
dodgechargerfan dodgechargerfan is offline
 
Join Date: Aug 2005
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone figured out if certain browsers or I don't know what might cause the variable to not work?

I have one user that cannot see the images on his home computer, but can on his work computer.

I got a copy of the source grabbed from View Source in IE and the IMG code that would normally get placed where the $randpic# variable is in the code is simply not there at all.

It's like his browser doesn't process the variable.

So instead of this:
Code:
<td align="center"><img src="http://www.moparnuts.com/forums/images/banner/qnutsbobs70gtx2.jpg" border="0" alt="bobs70gtx2" width=200 /></a></td>
his browser has this:
Code:
<td align="center"></a></td>
Reply With Quote
  #86  
Old 12-15-2005, 10:47 PM
dodgechargerfan dodgechargerfan is offline
 
Join Date: Aug 2005
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DA KING
its not working for me! HEEEEEEEEEEEELP!

I have tried everything!

my site is "www.dawire.net"

the PATH for my site is "public_html/forums/images/randompics/"

My delimiter is "random" and I even went a inserted that in all my pics in that directory.

I even put the "$randpic" code in the header template and I get is a big red X. Can someone help me please?
I'm not sure what the fix is , but I can see what's going on.

You're generating this for the images:
Code:
<img src="attachment.php?attachmentid=35&stc=1&thumb=1" border=0 align="center">
The variable should be generating something more like a url.
Code:
<img src="http://www.moparnuts.com/forums/images/banner/qnutsbobs70gtx2.jpg" border="0" alt="bobs70gtx2" width=200 />
Reply With Quote
  #87  
Old 12-18-2005, 12:10 PM
dodgechargerfan dodgechargerfan is offline
 
Join Date: Aug 2005
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dodgechargerfan
Has anyone figured out if certain browsers or I don't know what might cause the variable to not work?

I have one user that cannot see the images on his home computer, but can on his work computer.

I got a copy of the source grabbed from View Source in IE and the IMG code that would normally get placed where the $randpic# variable is in the code is simply not there at all.

It's like his browser doesn't process the variable.

So instead of this:
Code:
<td align="center"><img src="http://www.moparnuts.com/forums/images/banner/qnutsbobs70gtx2.jpg" border="0" alt="bobs70gtx2" width=200 /></a></td>
his browser has this:
Code:
<td align="center"></a></td>
I have now seen this problem on my own computer with a portal page that I am building. The banner shows up fine on the regular forum pages, but not in the banner. When I look at the generated source, I see everything but what would have replaced the variable - like the second code example above.
Reply With Quote
  #88  
Old 12-18-2005, 12:55 PM
dodgechargerfan dodgechargerfan is offline
 
Join Date: Aug 2005
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jugo
Ummmm...yes to the top one as long as you include GLOBAL.PHP (correct me if I am wrong Master Coders) :nervous: ..
I've been looking at this one and am about to test it on a drupal portal.

I think there's two ways to go about this.

1. drupal's index.php is pretty simple and has a couple of includes. Adding another would be pretty simple.

2. one of the includes that drupal has is common.inc which has a bunch of functions that get used by various modules of drupal. I am going to try and add the function from your xml file into that include file and see how it goes.

I would suspect that any other portal solution would have similar architecture that one could take advantage of.

Does anyone see any issues with either of these approaches?


I guess that including global.php would be a good thing to do if there were other functions/features that we could take advantage of in the portal.
I just started the portal stuff 3 days ago, so I have no idea if there is anything in global that would be beneficial.
Reply With Quote
  #89  
Old 12-18-2005, 09:00 PM
MSheraz86's Avatar
MSheraz86 MSheraz86 is offline
 
Join Date: Dec 2005
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dodgechargerfan

Look for:
Code:
<td align=center><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
CHANGE to:
Code:
<td align=center><a href="$vboptions[forumhome].php$session[sessionurl_q]">$randimg</a></td>
Correction is as follows
Code:
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]">$randpic </a></td>
It's $randpic not $randimg

Some TOUGH mod to figure out at start but thanks to you i've managed to get there :nervous:.

It's just what i was looking for Great mod!
Reply With Quote
  #90  
Old 01-13-2006, 05:43 PM
Dsyn11 Dsyn11 is offline
 
Join Date: Nov 2005
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this works fine EXCEPT on index.php home page. What's going on?
Reply With Quote
  #91  
Old 01-18-2006, 11:53 AM
matt_turpin matt_turpin is offline
 
Join Date: Dec 2005
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed this on my FFXI message board, and it's a huge hit. I have about 107 game screenshots from my game group. Only having one show at a time, randomly, on the frontpage is a fun way to keep everyone's interest. Some members have claimed to just sit clicking refresh to see all the pics. For being a vBulletin newbie, I didn't have too much trouble getting it to work. Installing the plugin was pretty easy. I had a little trouble figuring out what the plugin wanted for the directory location (not the directory URL). The hardest part for me was making a table that looked like a vBulletin table and putting it on the page in a way that didn't break formatting or anything. But, as I mentioned, I'm still learning. It's a really cool plugin though - the first modification other than a style change I've done so far.
Reply With Quote
Reply


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


All times are GMT. The time now is 10:41 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05066 seconds
  • Memory Usage 2,320KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (9)bbcode_code
  • (1)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete