MyBB Central

Full Version: How Can I Pup Up The user Profile
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Guys!
I wanna pup up the user profile like vb That when a user clicks on a user name a pup up window shows.
ThanksBig Grin
in postbit/postbit_classic
replace:
Code:
<strong><span class="largetext">{$post['profilelink']}</span></strong>

with:
Code:
<strong><span class="largetext"><a href="#" id="profilelink_{$post['pid']}">{$post['username_formatted']}</span></strong></a>
<div id="profilelink_{$post['pid']}_popup" class="popup_menu" style="display: none;">
<div class="popup_item_container">
<a href="{$mybb->settings['bburl']}/member.php?action=profile&amp;uid={$post['uid']}" class="popup_item">view Profile</a>
</div>
<div class="popup_item_container">
<a href="{$mybb->settings['bburl']}/search.php?action=finduser&amp;uid={$post['uid']}" class="popup_item">find Users Posts</a>
</div>
<div class="popup_item_container">
<a href="{$mybb->settings['bburl']}/search.php?action=finduserthreads&uid={$post['uid']}" class="popup_item">find Users Threads</a>
</div>
<div class="popup_item_container">
<a href="{$post['website']}" target="_blank" " class="popup_item">visit Users Website</a>
</div>
<div class="popup_item_container">
<a href="{$mybb->settings['bburl']}/private.php?action=send&amp;uid={$post['uid']}" class="popup_item">PM User</a>
</div>
<div class="popup_item_container">
<a href="{$mybb->settings['bburl']}/member.php?action=emailuser&amp;uid={$post['uid']}" class="popup_item">E-Mail User</a>
</div>
</div><br />
<script language="javascript" type="text/javascript">
new PopupMenu("profilelink_{$post['pid']}");
</script>
PERFECT .....
Thankyou for this, looks really neat.
I want to bring the items to right please change the code for RTL themes!
Excelent!

Thanks Smile
And how can I popup a Item on the Showthread template by example?

Like the vB dropdown menus for Search, View Mode, etc?
Any Idea for Popup on the Forumdisplay template?