![]() |
Userid Link
Hi,
When you click on a username (for example in a post), the link is https://vborg.vbsupport.ru/member.php?u=145764 but I'd like to change that link to: https://vborg.vbsupport.ru/member.php?u=$userid+2 i.e. i would like to change the variable $userid = $userid+2 how would i have to do this? thank you! |
Look near the bottom of the postbit (or postbit_legacy) for the code.
|
i found the code.
i dont know how to change the code. $userid=$userid+2 doesn't work. |
Replace $post[userid] with <if condition="$post['userid'] = $post['userid'] + 2">$post['userid']</if>
|
I think there is a misunderstanding. sorry for my bad explanations.
When you click on a username you are redirected to for example: https://vborg.vbsupport.ru/member.php?u=100 but I want that the link is: https://vborg.vbsupport.ru/member.php?u=200 (i.e. two times userid) ------------------------------------------------- When you click on a username you are redirected to for example: https://vborg.vbsupport.ru/member.php?u=150 but I want that the link is: https://vborg.vbsupport.ru/member.php?u=300 (i.e. two times userid) How do i do that? thank you again! |
Oh, then replace + 2 with * 2.
|
in the template postbit i have now:
Quote:
Quote:
|
Code:
<if condition="$post['userid'] = $post['userid'] * 2">$post[userid]</if> |
All times are GMT. The time now is 03:07 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|