The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Coppermine Random Photos on vBulletin FORUMHOME (easy) Details »» | |||||||||||||||||||||||||||
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 |
#22
|
||||
|
||||
I tried that DjTaz, it just won't load. Worked fine in forumhome though.
|
#23
|
|||
|
|||
Is it possible to display the user pictures instead of random pictures
|
#24
|
|||
|
|||
Yes , its possible to display just the users gallery if you want that - i have that done in the members profiles when you go to a members profile page near the bottom.
http://www.theotherzone.com/member.php?u=1 is something like what you want ?? Or do you want a that persons gallery to display on the page when they enter ? The problem i see with that is no one gets to see anyone elses gallery, which defeats the purpose of it |
#25
|
|||
|
|||
Quote:
Quote:
|
#26
|
|||
|
|||
Hi, thanks for this mod, but I am having a problem.
I have edited the coppermine.php file with the following and uploaded to forum root. My coppermine folder is called photoalbum and is in the ame location as my forum folder. Code:
$coppath = "/photoalbum/"; // Path to the gallery from the coppermine.php file $hostname = "localhost"; // The Coppermine hostname - usually localhost $username = "dbo1*******"; // Coopermine Database Username $copperpass= "B*******"; // Password to the Coppermine Database $copperdb= "db1*******"; // Coppermine Database $prefix= "cpg148"; // Coppermine Prefix (sometimes cpg133 , or cpg11d) $amount= "6"; // Amount of photos to select I have edited and uploaded the index.php file as follows: Code:
// ######################### REQUIRE BACK-END ############################ require_once('./global.php'); require_once('coppermine.php'); require_once(DIR . '/includes/functions_bigthree.php'); require_once(DIR . '/includes/functions_forumlist.php'); When I try to return to my forum I get a blank page with the message "Unable to connect to the database server at this time." I am assuming that this is because there is an error with either the hostname, db login or db password. I copied and pasted the login and password directly from the MySQL admin panel provided by my host so I am assuming the problem is with hostname. Any suggestions would be appreciated please. |
#27
|
|||
|
|||
is the prefix correct ?
|
#28
|
|||
|
|||
Hmm, well I changed it and now at least I can get into the forum with no error message and I see the table below the navbar with "Gallery" in the top left corner but no images appear.
Thanks |
#29
|
|||
|
|||
You still looking to port this to 3.6.3 or have you moved up a level since ? Im only going back over the old threads now :S
|
#30
|
|||
|
|||
Hi,
im not really good at coding.. but I want all my random pictures to display on a Ajax page can you please help me modify this code. Original Code:
echo('<a target = "_new" href="' . $copperminepath . '/displayimage.php?album=' . $albumid . '&pos=-' . $pos . '">'); Code:
<a href="#" onClick="ajaxwin=dhtmlwindow.open('ajaxbox', 'ajax', 'picture-path.htm', 'Ajax Win Title', 'width=650px,height=400px,left=300px,top=100px,resize=0,scrolling=1'); return false"> Thank you. Andres Carvajal http://www.simplementetodo.com |
#31
|
|||
|
|||
Has anyone updated this for 4.0 at all
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|