Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Coppermine Random Photos on vBulletin FORUMHOME (easy) Details »
Coppermine Random Photos on vBulletin FORUMHOME (easy)
Mod Version: 1.00, by AcidX (Contributor) AcidX is offline
Developer Last Online: Feb 2013 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.5.5 Rating: (4 votes - 5.00 average) Installs: 23
Released: 19 Aug 2006 Last Update: 15 Nov 2006 Downloads: 95
Not Supported Template Edits Code Changes Additional Files Is in Beta Stage  

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

(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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

(Save the template.)



All done.
I know you like it -

Here's the live demo and some screenshots:

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	copp1.jpg
Views:	362
Size:	35.4 KB
ID:	52304   Click image for larger version

Name:	copp2.jpg
Views:	263
Size:	76.2 KB
ID:	52305  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Module VbAdvanced: Coppermine Random photos DjTaz vBulletin 3.5 Add-ons 51 13 Apr 2008 13:39
Coppermine CoppermineFetch and Photos on vBulletin FORUMHOME 4Prometheus vBulletin 3.5 Add-ons 5 25 Apr 2007 09:04

Comments
  #2  
Old 19 Aug 2006, 19:29
hgb hgb is offline
 
Join Date: Nov 2005
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

Last edited by hgb; 19 Aug 2006 at 19:32.
Reply With Quote
  #3  
Old 19 Aug 2006, 22:14
Selene Selene is offline
 
Join Date: Feb 2005
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
Reply With Quote
  #4  
Old 19 Aug 2006, 22:33
Selene Selene is offline
 
Join Date: Feb 2005
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
Reply With Quote
  #5  
Old 20 Aug 2006, 04:53
Barakat's Avatar
Barakat Barakat is offline
 
Join Date: Nov 2004
Real name: Barakat
works great ............. thanks a lot for that love it ...
Reply With Quote
  #6  
Old 20 Aug 2006, 12:40
DjTaz DjTaz is offline
 
Join Date: Apr 2003
Originally Posted by Selene
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
If you want this hack to work on all the areas , just put the code into NAVBAR instead of FORUMHOME at the very bottom - that should do the trick for you.

Reply With Quote
  #7  
Old 20 Aug 2006, 12:53
AcidX's Avatar
AcidX AcidX is offline
 
Join Date: Jan 2006
Originally Posted by Selene
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
Thanks for installing.
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
__________________
My mods.
Reply With Quote
  #8  
Old 20 Aug 2006, 13:11
DjTaz DjTaz is offline
 
Join Date: Apr 2003
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
Originally Posted by Selene
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

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

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and change to


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

it should bring you to that users thumbnail page instead of to the photo itself
Reply With Quote
  #9  
Old 21 Aug 2006, 15:18
AcidX's Avatar
AcidX AcidX is offline
 
Join Date: Jan 2006
Indeed.
You got two resonable answers and modifications - I hope you got what you were asking for
__________________
My mods.
Reply With Quote
  #10  
Old 27 Sep 2006, 16:50
Konstantinos's Avatar
Konstantinos Konstantinos is offline
 
Join Date: Apr 2006
why the thumbnails in forum home are much smaller than the thumbs in coppermine home and how to fix this ?
Reply With Quote
  #11  
Old 01 Oct 2006, 19:28
Konstantinos's Avatar
Konstantinos Konstantinos is offline
 
Join Date: Apr 2006
i found a bug. it displays thumbs for uploaded pics that ARENT approved yet by the admin. any fix ?
Reply With Quote
  #12  
Old 14 Nov 2006, 22:44
AcidX's Avatar
AcidX AcidX is offline
 
Join Date: Jan 2006
Re: Coppermine Random Photos on vBulletin FORUMHOME (easy)

Originally Posted by Konstantinos View Post
i found a bug. it displays thumbs for uploaded pics that ARENT approved yet by the admin. any fix ?
Are you sure about this?
__________________
My mods.
Reply With Quote
  #13  
Old 15 Nov 2006, 00:21
DjTaz DjTaz is offline
 
Join Date: Apr 2003
Re: Coppermine Random Photos on vBulletin FORUMHOME (easy)

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

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

to


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and your in business again with only approved photos showing.

Anyone with VBadvanced , you can get the module for it here : http://www.vbulletin.org/forum/showthread.php?t=119432
Reply With Quote
  #14  
Old 15 Nov 2006, 11:04
AcidX's Avatar
AcidX AcidX is offline
 
Join Date: Jan 2006
Re: Coppermine Random Photos on vBulletin FORUMHOME (easy)

Bug fixed. Thanks Tazie!

I replaced the coppermine.php file. Everyone that installed this mod can download the new version now.
__________________
My mods.
Reply With Quote
  #15  
Old 17 Nov 2006, 13:17
Martin-TMGRS Martin-TMGRS is offline
 
Join Date: May 2005
Real name: Martin
Does anyone know how to port this for VB3.6.3 ?? I've tried to put this on my forum and get this error.

Table 'db149830456.thread' doesn't exist
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /index.php(64) : eval()'d code on line 746

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /homepages/46/d101530151/htdocs/mkportal/include/VB/vb_out.php on line 42

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /homepages/46/d101530151/htdocs/mkportal/include/mk_mySQL.php on line 57

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /homepages/46/d101530151/htdocs/mkportal/include/mk_mySQL.php on line 57

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /homepages/46/d101530151/htdocs/mkportal/include/mk_mySQL.php on line 57
Any ideas please and thanks in advance

Last edited by Martin-TMGRS; 17 Nov 2006 at 13:21.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 22:32.

Layout Options | Width: Wide Color: