MyBB Central

Full Version: View Your Threads Code Bug.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In header_welcomeblock_member

Code:
<a href="{$mybb->settings['bburl']}/search.php?action=getnew">{$lang->welcome_newposts}</a> | <a href="{$mybb->settings['bburl']}/search.php?action=getdaily">{$lang->welcome_todaysposts}</a> | <a href="{$mybb->settings['bburl']}/search.php?action=finduserthreads&amp;uid={$uid}">View Your Threads</a> | <a href="{$mybb->settings['bburl']}/private.php">{$lang->welcome_pms}</a> {$lang->welcome_pms_usage}

What im trying to do is make it work like your profile "View your Threads"

So its

<a href="{$mybb->settings['bburl']}/search.php?action=finduserthreads&amp;uid={$uid}">View Your Threads</a>

But everytime it changes your uid to a random one. The one in your profile is set to your account but this one is just random. So im lost and need your help.
(Jun 15, 2010, 02:17 PM)Deities Wrote: [ -> ]In header_welcomeblock_member

Code:
<a href="{$mybb->settings['bburl']}/search.php?action=getnew">{$lang->welcome_newposts}</a> | <a href="{$mybb->settings['bburl']}/search.php?action=getdaily">{$lang->welcome_todaysposts}</a> | <a href="{$mybb->settings['bburl']}/search.php?action=finduserthreads&amp;uid={$uid}">View Your Threads</a> | <a href="{$mybb->settings['bburl']}/private.php">{$lang->welcome_pms}</a> {$lang->welcome_pms_usage}

What im trying to do is make it work like your profile "View your Threads"

So its

<a href="{$mybb->settings['bburl']}/search.php?action=finduserthreads&amp;uid={$uid}">View Your Threads</a>

But everytime it changes your uid to a random one. The one in your profile is set to your account but this one is just random. So im lost and need your help.

Im assuming your trying to directly modify your index.php?

Why not just install the plugin to save yourself some time?
(Jun 15, 2010, 06:29 PM)Kaleb Wrote: [ -> ]
(Jun 15, 2010, 02:17 PM)Deities Wrote: [ -> ]In header_welcomeblock_member

Code:
<a href="{$mybb->settings['bburl']}/search.php?action=getnew">{$lang->welcome_newposts}</a> | <a href="{$mybb->settings['bburl']}/search.php?action=getdaily">{$lang->welcome_todaysposts}</a> | <a href="{$mybb->settings['bburl']}/search.php?action=finduserthreads&amp;uid={$uid}">View Your Threads</a> | <a href="{$mybb->settings['bburl']}/private.php">{$lang->welcome_pms}</a> {$lang->welcome_pms_usage}

What im trying to do is make it work like your profile "View your Threads"

So its

<a href="{$mybb->settings['bburl']}/search.php?action=finduserthreads&amp;uid={$uid}">View Your Threads</a>

But everytime it changes your uid to a random one. The one in your profile is set to your account but this one is just random. So im lost and need your help.

Im assuming your trying to directly modify your index.php?

Why not just install the plugin to save yourself some time?

Im editing a single template of the member_welcome
But yes a plugin would be awesome if i had the link to where to download such a thing..

So if you say there is a plugin, link please?
Try this code:

PHP Code:
<a href="{$mybb->settings['bburl']}/search.php?action=finduserthreads&uid={$user['uid']}">View Your Threads</a