vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - Random medium sized image on vbadvanced index page. (https://vborg.vbsupport.ru/showthread.php?t=134167)

phill2003 12-16-2006 10:00 PM

Random medium sized image on vbadvanced index page.
 
This hack will put a block on your vbadvanced index page with a medium sized random image.

All the instructions to install this are included in the zip file so there is no need for me to go through them again here, I use a size of 400 for my medium images on my site and this hack reflects that, If yours are significantly larger then the image that gets shown will not be very good you will need to adjust the overlay image size to suit.

The overlay image is one i have made myself so i give you permission to use it and do what you want with it :).

For a demo go Here or see the attached image.

If you like this and use it please click install.

I will try to help with any problems you may have but I do have a life lol and it is near crimbo.

I really do hope you enjoy this hack I get a lot of satisfaction from people using my stuff :)

Thanks
phill

concepts 12-17-2006 05:55 PM

Installed* Will come in use on my board!

rainyleaves 12-18-2006 04:10 AM

Nice hack!!!
Can I display most viewed or most rated photo?

phill2003 12-18-2006 08:58 AM

Quote:

Originally Posted by rainyleaves (Post 1140789)
Nice hack!!!
Can I display most viewed or most rated photo?

Yea you just have to alte the query to pull the most looked at photo or the most rated, its not built in....

rainyleaves 12-18-2006 09:32 AM

So great!!! Thanks. Installed.

daystorm 12-18-2006 01:06 PM

Is there any way to have this link to their profile?

phill2003 12-18-2006 01:49 PM

To whos profile the image owner? But yea shouldnt be a problem.

To get it to link to the persons profle you need to edit medium_random.php

find
Code:

select bigimage,cat,id,title,user,description,medwidth,medheight
and replace it with

Code:

select bigimage,cat,id,title,user,description,medwidth,medheight,userid

then find
Code:

$bigimage,$cat,$id,$title,$user,$description,$medwidth,$medheight
and replace it with

Code:

$bigimage,$cat,$id,$title,$user,$description,$medwidth,$medheight,$userid

Then find
Code:

<strong>$user</strong>
and replace it with

Code:

<strong><a href="http://www.yoursite.com/member.php?u=$userid">$user</a></strong>

You may need to alter the url structure to replicate yours (if you have your vbulletin in a subfolder for instance)

But this will do what you want.

melscamera 02-20-2007 03:54 PM

Works great. thank you. One question it seems that the larger size photos will not show they show up for a second and then disappear ??? any ideas how to fix this

Quote:

Originally Posted by concepts (Post 1140460)
Installed* Will come in use on my board!


GrendelKhan{TSU 02-21-2007 07:23 AM

I assume this only works with Photopost? (you should mentoin that in the summary ;))

jijo 03-26-2007 10:31 PM

Thanks for this great mod clicked installed :) but when I enable the module I get following error:

Quote:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND medwidth != '' ORDER BY RAND()' at line 1


All times are GMT. The time now is 07:36 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.01060 seconds
  • Memory Usage 1,737KB
  • 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
  • (6)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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