PDA

View Full Version : User Profile Member Link for Coppermine Gallery


DILLIGAF
08-01-2006, 10:00 PM
It?s my time to give back to the vb.org community. Our site is using Coppermine Photo Gallery for our members and we needed a way to have a link in the member?s profile that would go directly to their gallery and not just the general page. So, with a little bit of code, I wrote it. (very little that is) I felt there may be others that can use this little add-on to link there members too. If you use it please remember to click install, it will let me know if this hack was worth posting or not.


REQUIREMENTS: 1) Coppermine Gallery (http://coppermine-gallery.net/ (http://coppermine-gallery.net/)) 1.4.0 or better (Installed and working)
2) VB Bridge (Installed and working for Coppermine)

VERSION: 1.0

VERSIONS SUPPORTED: 3.5.X (maybe 3.6.x? but untested)

PROCESS: One plug-in install, and one template mod

INSTALL TIME: One minute or less

DIFFICULTY: Super Easy


INSTALL INSTRUCTIONS:
******* Step One *************
Download the CMG_memberlink_plugin.xml and add it as a new plug-in with the Plugin Manager in your AdminCP


******** Step Two *************
******** Add this line into your MEMBERINFO template where you want gallery link to show********
******** Make sure to edit the URL to point to your gallery *****

<a href="http://www.YOURDOMAINNAME.com/YOUR GALLERY/index.php?cat=$cmcatid" title="View My Gallery">View My Gallery</a>



******* Step Three ************
Click the install button on vBulletin.org

****** Step Four ************
Enjoy!

Veer
08-02-2006, 07:26 PM
Thanks, any screen shoot? :)

SIN77
08-02-2006, 07:34 PM
i was thinking about installing coppermine, if i do this will be a nice add on

DILLIGAF
08-02-2006, 10:46 PM
Thanks, any screen shoot? :)

It's a bit hard to show a text link of what it does in a screen shot. All it does is add the members category id for coppermine to the end of the URL link to the gallery.

blind-eddie
08-05-2006, 01:57 PM
How about a screen shot of your admincp and usercp?To show us what it will look like.Im just curious,This hack enables members with permission to start there own gallery? Or is this a done manually per member request?
I just want to make sure this is the hack I have been searching for. Thank You.

DILLIGAF
08-07-2006, 01:02 AM
How about a screen shot of your admincp and usercp?To show us what it will look like.Im just curious,This hack enables members with permission to start there own gallery? Or is this a done manually per member request?
I just want to make sure this is the hack I have been searching for. Thank You.
Coppermine gives ever member their own gallery when you install the VB bridge for itl. It is a baic few steps to setup the bridge. The VB Bridge is included with Coppermine. The little hack I created just makes a link to the user's gallery for others to view.

joeyhavlock
07-24-2007, 04:58 AM
What if the member has not created a gallery in coppermine yet?

Konstantinos
09-28-2007, 03:19 PM
cool i was looking for this, :) works in 3.6.8

zeus_r6
12-24-2007, 09:54 PM
works great...now to figure out how to get that link into the postbit!

liquidrage
03-10-2008, 11:19 AM
To add it to your postbit.
Make this into an xml file.

<?xml version="1.0" encoding="ISO-8859-1" ?>
<plugins>
<plugin active="1">
<title>CMG Post User</title>
<hookname>postbit_display_complete</hookname>
<phpcode>$cmuserid = sprintf("1%04d",$post['userid']);</phpcode>
</plugin>
</plugins>

It is basically the same thing as the other one. You'll need both. Save it and import that.

Then, the HTML part in the postbit that you're adding will look like:

<a href="http://www.YOURDOMAINNAME.com/YOUR GALLERY/index.php?cat=$cmuserid " title="View My Gallery">View My Gallery</a>


Again, it's the same thing as above, just with a different variable name. The differences in the XML file are just the unique name, and that the hook fires are the postbit.

Example:
http://www.flyersphans.com/forums/

mc0676
05-02-2008, 07:58 AM
Don't work in 3.7.0

The template to edit is the member_about_me but the link don't work.:(