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

Reply
 
Thread Tools
Random medium sized image on vbadvanced index page. Details »»
Random medium sized image on vbadvanced index page.
Version: 1.00, by phill2003 phill2003 is offline
Developer Last Online: May 2010 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.6.4 Rating:
Released: 12-16-2006 Last Update: Never Installs: 17
Additional Files  
No support by the author.

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

Show Your Support

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

Comments
  #2  
Old 12-17-2006, 05:55 PM
concepts's Avatar
concepts concepts is offline
 
Join Date: May 2005
Location: Woodland Hills, Ca
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed* Will come in use on my board!
Reply With Quote
  #3  
Old 12-18-2006, 04:10 AM
rainyleaves rainyleaves is offline
 
Join Date: Mar 2004
Posts: 227
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack!!!
Can I display most viewed or most rated photo?
Reply With Quote
  #4  
Old 12-18-2006, 08:58 AM
phill2003 phill2003 is offline
 
Join Date: Apr 2003
Posts: 217
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rainyleaves View Post
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....
Reply With Quote
  #5  
Old 12-18-2006, 09:32 AM
rainyleaves rainyleaves is offline
 
Join Date: Mar 2004
Posts: 227
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So great!!! Thanks. Installed.
Reply With Quote
  #6  
Old 12-18-2006, 01:06 PM
daystorm daystorm is offline
 
Join Date: Apr 2006
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any way to have this link to their profile?
Reply With Quote
  #7  
Old 12-18-2006, 01:49 PM
phill2003 phill2003 is offline
 
Join Date: Apr 2003
Posts: 217
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 02-20-2007, 03:54 PM
melscamera melscamera is offline
 
Join Date: Aug 2006
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 View Post
Installed* Will come in use on my board!
Reply With Quote
  #9  
Old 02-21-2007, 07:23 AM
GrendelKhan{TSU's Avatar
GrendelKhan{TSU GrendelKhan{TSU is offline
 
Join Date: Jun 2005
Location: Boston | Seoul, S. Korea
Posts: 1,311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I assume this only works with Photopost? (you should mentoin that in the summary )
Reply With Quote
  #10  
Old 03-26-2007, 10:31 PM
jijo jijo is offline
 
Join Date: Nov 2006
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
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 01:32 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.04751 seconds
  • Memory Usage 2,298KB
  • Queries Executed 23 (?)
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
  • (6)bbcode_code
  • (3)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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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