vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Random Images Anywhere (https://vborg.vbsupport.ru/showthread.php?t=94433)

DefenceTalk 11-29-2005 03:35 PM

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.

concepts 12-10-2005 04:27 PM

How do I put this into a module? for my CMPS?

DA KING 12-14-2005 02:44 AM

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?

dodgechargerfan 12-15-2005 10:34 PM

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>

dodgechargerfan 12-15-2005 10:47 PM

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 />

dodgechargerfan 12-18-2005 12:10 PM

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.

dodgechargerfan 12-18-2005 12:55 PM

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.

MSheraz86 12-18-2005 09:00 PM

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 :D
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!

Dsyn11 01-13-2006 05:43 PM

this works fine EXCEPT on index.php home page. What's going on?

matt_turpin 01-18-2006 11:53 AM

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.


All times are GMT. The time now is 08:54 AM.

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.01200 seconds
  • Memory Usage 1,751KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (9)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete