coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 bridging => Topic started by: Konstantinos on September 25, 2007, 11:19:56 PM

Title: Bridge works but i have an issue
Post by: Konstantinos on September 25, 2007, 11:19:56 PM
I am using bridge with vb and it works fine.  I want to display a link for the albums in vb member profile , I am using this code

<legend>Gallery</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td><a href="../albums/index.php?cat=1$post[userid]" target=_blank>View all Pictures of $userinfo[username] </a></td>
</tr>
</table>
</fieldset>


Which works fine for all users with id more than 1000

However me that i am admin i have userid 1 and my album is 10001 which means this code will return this link

http://www.site.com/albums/index.php?cat=11  which is wrong and occurs to all under userid 1000

any ideas how to fix this ?
Title: Re: Bridge works but i have an issue
Post by: Nibbler on September 25, 2007, 11:26:25 PM
You need to add 10000 to the userid (using +). You can't just join them.
Title: Re: Bridge works but i have an issue
Post by: Konstantinos on September 25, 2007, 11:37:36 PM
how?
Title: Re: Bridge works but i have an issue
Post by: Nibbler on September 25, 2007, 11:43:09 PM
You need to add something like


$uidlink = $post['userid'] + 10000;


Somewhere before this template, and change the link in the template to


<a href="../albums/index.php?cat=$uidlink"


If you need help with that ask the vb people.
Title: Re: Bridge works but i have an issue
Post by: Konstantinos on September 28, 2007, 07:40:44 PM
There is a plugin in vb.org that does exactly this,

So if anyone who uses vbulletin wants to show coppermine link in MEMBERINFO  http://www.vbulletin.org/forum/showthread.php?t=122834