Bridge works but i have an issue Bridge works but i have an issue
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Bridge works but i have an issue

Started by Konstantinos, September 25, 2007, 11:19:56 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Konstantinos

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 ?

Nibbler

You need to add 10000 to the userid (using +). You can't just join them.

Konstantinos


Nibbler

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.

Konstantinos

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