The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
![]() |
|||||||||||||||||||||||||||
Coppermine Random Photos on vBulletin FORUMHOME (easy)
![]() Developer Last Online: Feb 2013 ![]() ![]()
This is basicaly the easiest way to have random photos from your Coppermine Gallery displayed on your vBulletin home page.
Tested and working perfectly. Here's the installation process containing only 3 steps. Requirements : Coppermine Photo Gallery Installed. Installation steps : 1. Download coppermine.php and edit the database info. After you're done, upload it in your forum root. 2. Open your vBulletin index.php file and under require_once('./global.php'); add the following line: Code:
require_once('coppermine.php'); 3. Open your Style Manager ("Styles & Templates" in the AdminCP menu) and edit the FORUMHOME template. Depending on where you want your random pictures to appear, you should paste this code eather under $navbar or <!-- end what's going on box -->. The code you need to paste is: Code:
<!-- / COPPERMINE GALLERY --> <br> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class='tcat' colspan='0' align=left> <span class='smallfont'> <strong>» <a href='$coppath'>Gallery</a> </strong></span></td> </tr> <tr> <td class='alt1' width='100%' align-middle valign=middle> $copphotos </td></tr></table> <!-- / COPPERMINE GALLERY --> All done. I know you like it - ![]() Here's the live demo and some screenshots: Show Your Support
|
Comments |
#2
|
|||
|
|||
![]()
my logo is just like here....top and to the left.... how would i put the pics to the right of the logo and and will it work with 3.6 ?
thx |
#3
|
|||
|
|||
![]()
Hi,
great hack. Installed! and yes it works fully with 3.6.0 as im running it there. Just a question, what if i want to display those random pics code under forumnav, but on ALL FORUMS not just FORUMHOME, then which template should i modify |
#4
|
|||
|
|||
![]()
another question:
what if i want to open the thumbnail pics in a "new" window ? which lines do i modify in coppermine.php for that |
#5
|
||||
|
||||
![]()
works great ............. thanks a lot for that love it ...
|
#6
|
|||
|
|||
![]() Quote:
![]() |
#7
|
||||
|
||||
![]() Quote:
If you want to open the pics in a new window, just open the coppermine.php file, find the line: $copphotos.='<td><a target = "_parent" and replace it with: $copphotos.='<td><a target = "_blank" That should do the trick ![]() |
#8
|
|||
|
|||
![]()
OOPS - I MAY HAVE MISREAD THE QUESTION HERE - I THOUGHT YOU WANTED TO OPEN THE THUMBNAILS INSTEAD OF THE PHOTO , SORRY ... WELL THIS IS HOW THAT IS DONE ANYWAY :s
Quote:
Im not sure why you would want to do this , and i checked the codes on it - the amount of recoding would be huge if you wanted to make the thumbnail display instead of the image since coppermine isnt even set up to show a single thumbnail on its own. That being said ... if you change some of the code in coppermine.php from this : Find Code:
$copphotos.='<td><a target = "_parent" href="' . $coppath . '/displayimage.php?album=' . $albumid . '&pos=-' . $pos . '"><IMG SRC="' . $coppath . '/albums/' . $MZrow['filepath'].thumb_.$MZrow['filename'] .'" alt=' . $MZrow['filename'] . ' '. 'border=0 height=60>' . '</a><b><br><font size=1>Uploader:</b><br><a href="member.php?u=' . $MZrow['owner_id'] . '"> ' . $MZrow['owner_name'] . '</a><br><font size=1> ' .$ctime. ' </td>'; } Code:
$copphotos.='<td><a target = "_parent" href="' . $coppath . '/thumbnails.php?album=' . $albumid .'"><IMG SRC="' . $coppath . '/albums/' . $MZrow['filepath'].thumb_.$MZrow['filename'] .'" alt=' . $MZrow['filename'] . ' '. 'border=0 height=60>' . '</a><b><br><font size=1>Uploader:</b><br><a href="member.php?u=' . $MZrow['owner_id'] . '"> ' . $MZrow['owner_name'] . '</a><br><font size=1> ' .$ctime. ' </td>'; } |
#9
|
||||
|
||||
![]()
Indeed.
You got two resonable answers and modifications - I hope you got what you were asking for ![]() |
#10
|
|||
|
|||
![]()
why the thumbnails in forum home are much smaller than the thumbs in coppermine home and how to fix this ?
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|