MemberID in HTML or PHP Block on Member Page

Hello,

i need the User ID for a link like this, but how can i get the User ID?

<a href="/zibepla/login.php?id=USERID"><b>another tool</b></a>

I have try many different things.

Please help.

Thanks Jahn

Quote · 22 Sep 2009

1)
Builders/Page Builder -> Account

Add a new HTML Block

Caption Lang Key: Member Tools
Visible for: Member     
HTML-content:

SAVE
(HTML-content nothing here)

2)
Open phpMyAdmin

Find last insert ID on table PageCompose (where Caption = Member Tools)

Edit and set:

Desc: Member Tools
Funch: PHP

Content:

$member = (int)$_COOKIE['memberID'];

echo "<div class=\"boxContent\">";
echo "<table class=\"profile_info_block\" cellspacing=0 cellpadding=1>";

echo "<tr>
<td class=\"profile_info_label\">Member Tools: </td>
<td class=\"profile_info_value\" >
<a href=\"/zibepla/login.php?id=$member\" target=\"_blank\"> Another Tool</a>
</td></tr>";

echo "</table>";
echo "</div>";


3)
Go back to Builders/Page Builder -> Account and move your new block down/up a bit and drop it,
then move it back where you will have it.

(You need to move a block here every time you save something to DB, if not you can't see your last chang)

=====================

If it's only one link, you can also add it inside Member Info box, easy to add it here to..

Quote · 22 Sep 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.