PDA

View Full Version : Add-On Releases - Random medium sized image on vbadvanced index page.


phill2003
12-16-2006, 10:00 PM
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 (http://www.thatsshocking.com) 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
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 select bigimage,cat,id,title,user,description,medwidth,me dheight

and replace it with

select bigimage,cat,id,title,user,description,medwidth,me dheight,userid


then find $bigimage,$cat,$id,$title,$user,$description,$medw idth,$medheight

and replace it with

$bigimage,$cat,$id,$title,$user,$description,$medw idth,$medheight,$userid


Then find <strong>$user</strong>

and replace it with

<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

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:

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

CrashfAB
06-13-2007, 09:50 PM
I assume this only works with Photopost? (you should mentoin that in the summary ;))

I would love something like this but I use coppermine

duckdodger
06-13-2007, 10:39 PM
How would I go about having the image redirect to a specific forum topic?

pierre27
06-19-2007, 05:59 PM
Sorry I am new to this, how do you make a new block


5. go to your vb admin cp and make a new block for the vba cmps using these options.

6. (a) module title, call it what you want
(b) column, center
(c) active, yes
(d) update all pages, yes
(e) file to include, random_medium_block.php
(f) identifier, medium_random
(g) clean file output, yes
(h) use shell template, no
(i) leave the rest as default and click save.

Thank you