forum.coppermine-gallery.net

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

Code: [Select]
<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

Code: [Select]
$uidlink = $post['userid'] + 10000;

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

Code: [Select]
<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