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

Reply
 
Thread Tools
Coppermine Random Photos on vBulletin FORUMHOME (easy) Details »»
Coppermine Random Photos on vBulletin FORUMHOME (easy)
Version: 1.00, by AcidX AcidX is offline
Developer Last Online: Feb 2013 Show Printable Version Email this Page

Version: 3.5.5 Rating:
Released: 08-18-2006 Last Update: 11-14-2006 Installs: 23
Template Edits
Code Changes Additional Files Is in Beta Stage  
No support by the author.

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');
(save the changes > upload the file in the forum root)


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>&raquo; <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 -->
(Save the template.)



All done.
I know you like it -

Here's the live demo and some screenshots:

Show Your Support

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

Comments
  #22  
Old 02-02-2007, 04:21 PM
Soliloquy's Avatar
Soliloquy Soliloquy is offline
 
Join Date: Mar 2006
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried that DjTaz, it just won't load. Worked fine in forumhome though.
Reply With Quote
  #23  
Old 03-20-2007, 12:55 PM
tandy tandy is offline
 
Join Date: Jun 2006
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible to display the user pictures instead of random pictures
Reply With Quote
  #24  
Old 03-20-2007, 04:03 PM
DjTaz DjTaz is offline
 
Join Date: Apr 2003
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #25  
Old 03-20-2007, 06:58 PM
tandy tandy is offline
 
Join Date: Jun 2006
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DjTaz View Post
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 ??
That's exactly what i need.

Quote:
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
This one i do it and we can see the others gallery too.
Reply With Quote
  #26  
Old 07-06-2007, 02:02 PM
Hengest Hengest is offline
 
Join Date: May 2007
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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');
And finally I copied and pasted the code provided into the forumhome template just below $navbar.

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.
Reply With Quote
  #27  
Old 07-08-2007, 09:08 PM
DjTaz DjTaz is offline
 
Join Date: Apr 2003
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is the prefix correct ?
Reply With Quote
  #28  
Old 07-09-2007, 07:27 PM
Hengest Hengest is offline
 
Join Date: May 2007
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #29  
Old 03-17-2008, 08:59 PM
DjTaz DjTaz is offline
 
Join Date: Apr 2003
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #30  
Old 11-02-2008, 03:51 AM
andres28 andres28 is offline
 
Join Date: Jan 2005
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 . '">');
and I need to integrate this code into the one on top.

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
Reply With Quote
  #31  
Old 01-26-2010, 03:15 PM
BAJR BAJR is offline
 
Join Date: Dec 2009
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone updated this for 4.0 at all
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 07:53 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05735 seconds
  • Memory Usage 2,311KB
  • Queries Executed 25 (?)
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
  • (2)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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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