MyBB Community Forums

Full Version: Add number to variable
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In my Edit Template: member_profile

How can I add 1000 to the variable 'cat' below?

<a style="font-size:20px" href="../copper/index.php?cat={$memprofile['uid']}">

I need to be 10001 instead of 1 for user #1.

Thanks in advance!

Is there a way to get ?cat to equal 10001 for user number 1?

I hope someone can help me here.

I need to add 10000 to the variable ?cat so that user 1 is output as 10001

Anyone?

(2012-05-12, 06:00 AM)bgrella Wrote: [ -> ]In my Edit Template: member_profile

How can I add 1000 to the variable 'cat' below?

<a style="font-size:20px" href="../copper/index.php?cat={$memprofile['uid']}">

I need to be 10001 instead of 1 for user #1.

Thanks in advance!

Is there a way to get ?cat to equal 10001 for user number 1?

I hope someone can help me here.

I need to add 10000 to the variable ?cat so that user 1 is output as 10001

Anyone?


SOLVED.

SOLUTION:
Install Yumi PHP plugin:


<?php $memnum=$memprofile['uid']+10000 ?>

<div align="center"><a style="font-size:20px" href="../copper/index.php?cat=$memnum">

SOLVED.

SOLUTION:
Install Yumi PHP plugin:


<?php $memnum=$memprofile['uid']+10000 ?>

<div align="center"><a style="font-size:20px" href="../copper/index.php?cat=$memnum">