Hey axe, thanks for getting back to me.
I tried the following but it did not work...
In one of my wordpress template files at the top I put:
Code: Select all
<?php
if (defined('W3PHPBBUSESSION')) {
$us = unserialize(W3PHPBBUSESSION);
print_r($us); exit;
}
?>
In the same template file, further down, I used the link:
Code: Select all
<a class="menulink" href="/memberlist.php?mode=viewprofile&u=<?php echo $us[0]->user_id; ?>" title="View your profile" role="menuitem">
But this doesn't work - in the URL there is no number printed at the end of
&u= so it doesn't seem to pull the user ID.
Is there anything I'm missing here in terms of code?
Hey axe, thanks for getting back to me.
I tried the following but it did not work...
In one of my wordpress template files at the top I put:
[code]<?php
if (defined('W3PHPBBUSESSION')) {
$us = unserialize(W3PHPBBUSESSION);
print_r($us); exit;
}
?>[/code]
In the same template file, further down, I used the link:
[code]<a class="menulink" href="/memberlist.php?mode=viewprofile&u=<?php echo $us[0]->user_id; ?>" title="View your profile" role="menuitem">[/code]
But this doesn't work - in the URL there is no number printed at the end of [c]&u=[/c] so it doesn't seem to pull the user ID.
Is there anything I'm missing here in terms of code?