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 |
#12
|
|||
|
|||
![]()
i found a bug. it displays thumbs for uploaded pics that ARENT approved yet by the admin. any fix ?
|
#13
|
||||
|
||||
![]()
Are you sure about this?
|
#14
|
|||
|
|||
![]()
Yes they are sure - the coppermine.php script isnt set to check for approvals , it just randomly checks all the files. Luckily i have a fix for that if you wish
change the code in coppermine.php line 27 from Code:
$MZresult = @mysql_query("SELECT * FROM ".$prefix."_pictures ORDER BY RAND() LIMIT 0,$amount"); Code:
$MZresult = @mysql_query("SELECT * FROM ".$prefix."_pictures WHERE approved='YES' ORDER BY RAND() LIMIT 0,$amount"); Anyone with VBadvanced , you can get the module for it here : https://vborg.vbsupport.ru/showthread.php?t=119432 |
#15
|
||||
|
||||
![]()
Bug fixed. Thanks Tazie!
![]() I replaced the coppermine.php file. Everyone that installed this mod can download the new version now. |
#16
|
|||
|
|||
![]()
Does anyone know how to port this for VB3.6.3 ?? I've tried to put this on my forum and get this error.
Quote:
|
#17
|
|||
|
|||
![]()
Martin - only spotted this now - where exactly did you put this , and where does that error appear ? Is coppermine running ok on its own ?
A little more info is required to get this going please... |
#18
|
|||
|
|||
![]()
I have same question. Who can help us ?
|
#19
|
|||
|
|||
![]() in the line that says 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>'; } |
#20
|
||||
|
||||
![]()
I've installed this (thanks!) and it runs fine, but I'd love to get it to display in the left hand column. Any chance of that?
|
#21
|
|||
|
|||
![]()
just paste the code into the right hand column tempate instead of forumhome and do the rest the same.
You want a <br> in somewhere to drop it down a line each time , but i dont have that hack so im not sure |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|