New HTML Block with dynamic profile edit link

How do I go about inserting a dynamic link into an HTML block?  I tried using the following:


<a href="pedit.php?ID={memberID}">

and it didn't work

Any ideas?


and yes I did find the block via phpmyadmin and edit it directly as well as doing it through the page builder with the same result...

Quote · 12 Apr 2010

Referencing a couple of other posts this is what I came up with for my php block and it works...


The content for my PHP block is as follows:

$memID = $_COOKIE['memberID'];
$nick = getNickName($memID);
?><p style="margin:9px;">Hi <? echo $nick ?>!  Your profile is incomplete please click <a href="pedit.php?ID=<? echo $memID ?>">here</a> to finish filling out your profile.  Profiles with more details are viewed 83% more than profiles with little information.</p>

The following line pulls the current logged in users id from the cookie set on their computer:

$memID = $_COOKIE['memberID'];

This line gets the nickname of the user:

$nick = getNickName($memID);

and this prints the username within the html:

<? echo $nick ?>

and this prints the userid inside my edit link within the html:

<? echo $memID ?>

Just in case anyone else is stuck on this...

Keywords: PHP Block, MemberID, Member ID, Dynamic Link, Nickname, Username

Quote · 14 Apr 2010
 
 
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.