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
  #72  
Old 11-22-2005, 01:27 PM
melodiq melodiq is offline
 
Join Date: Jun 2005
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I must be a complete noob because I cannot get this to work at all.. my big question is what template and where do you add $randpic???
Reply With Quote
  #73  
Old 11-22-2005, 02:18 PM
dodgechargerfan dodgechargerfan is offline
 
Join Date: Aug 2005
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, really, you can put it wherever you want the picture to show up.

In my case, I edited the header, and put the variables right under the logo.

All you have to do is put the variable in where you want it. You can format it if you want, too.

I have mine in a table like this:

Code:
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
	<td align="center">$randpic1</a></td>
	<td align="center">$randpic2</a></td>
	<td align="center">$randpic3</a></td>
	<td align="center">$randpic4</a></td>
	<td align="center">$randpic5</a></td>
	<td align="center">$randpic6</a></td>
	<td align="$stylevar[right]">
		&nbsp;
	</td>
</tr>
</table>
That puts 6 random images in a row across the top of my forums just below the logo and above the forum content.
Reply With Quote
  #74  
Old 11-22-2005, 02:35 PM
melodiq melodiq is offline
 
Join Date: Jun 2005
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

still ain't working... below is my header code...

where do i put the code you suggested?

<!-- logo -->
<a name="top"></a>
<table border="2" bordercolor=#3E5C92 bgcolor=#738FBF width="$stylevar[outertablewidth]" cellpadding="2" cellspacing="2" align="center">
<tr>
<td align="center"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[right]">
&nbsp;
</td>
</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output
Reply With Quote
  #75  
Old 11-22-2005, 07:53 PM
dodgechargerfan dodgechargerfan is offline
 
Join Date: Aug 2005
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<!-- logo -->
<a name="top"></a>
<table border="2" bordercolor=#3E5C92 bgcolor=#738FBF width="$stylevar[outertablewidth]" cellpadding="2" cellspacing="2" align="center">
<tr>
<td align="center"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[right]">
&nbsp;
</td>
</tr>
</table>
<!-- /logo -->
$randpic
<!-- content table -->
$spacer_open
Reply With Quote
  #76  
Old 11-22-2005, 08:10 PM
melodiq melodiq is offline
 
Join Date: Jun 2005
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

still not working... i know i have my paths set correctly for the images but they are not showing up...
Reply With Quote
  #77  
Old 11-22-2005, 08:23 PM
melodiq melodiq is offline
 
Join Date: Jun 2005
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just figured it out... i didn't have the trailing front slash for the paths... thnx fellas...
Reply With Quote
  #78  
Old 11-26-2005, 12:29 PM
fabriceg fabriceg is offline
 
Join Date: Feb 2005
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

Sorry for this silly question, but… where did you set vars (the path, etc.) ?

$folder = $vbulletin->options['randimg_path'];
$imgurl = $vbulletin->options['randimg_url'];
$exts = $vbulletin->options['randimg_types'];
Reply With Quote
  #79  
Old 11-29-2005, 02:28 PM
c0rupted c0rupted is offline
 
Join Date: Aug 2003
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can't seem to get this working for me, no matter where i put the $randpic it still doesn't show. I've tried all kind of different paths and it still hasn't worked.
Reply With Quote
  #80  
Old 11-29-2005, 02:30 PM
melodiq melodiq is offline
 
Join Date: Jun 2005
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

make sure there are no trailing slashes on your paths.... that's what screwed me up...

Quote:
Originally Posted by c0rupted
can't seem to get this working for me, no matter where i put the $randpic it still doesn't show. I've tried all kind of different paths and it still hasn't worked.
Reply With Quote
  #81  
Old 11-29-2005, 02:51 PM
c0rupted c0rupted is offline
 
Join Date: Aug 2003
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by melodiq
make sure there are no trailing slashes on your paths.... that's what screwed me up...
nope.
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 04:15 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04648 seconds
  • Memory Usage 2,309KB
  • 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
  • (1)bbcode_code
  • (1)bbcode_php
  • (2)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