Advanced search  

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

Pages: [1]   Go Down

Author Topic: Bridge works but i have an issue  (Read 3939 times)

0 Members and 1 Guest are viewing this topic.

Konstantinos

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 120
Bridge works but i have an issue
« 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 ?
« Last Edit: September 26, 2007, 07:46:08 am by GauGau »
Logged

Nibbler

  • Guest
Re: Bridge works but i have an issue
« Reply #1 on: September 25, 2007, 11:26:25 pm »

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

Konstantinos

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 120
Re: Bridge works but i have an issue
« Reply #2 on: September 25, 2007, 11:37:36 pm »

how?
Logged

Nibbler

  • Guest
Re: Bridge works but i have an issue
« Reply #3 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.
Logged

Konstantinos

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 120
Re: Bridge works but i have an issue
« Reply #4 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
Logged
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 19 queries.