MyBB Community Forums

Full Version: popup menu template editing
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
hi again ....

i am underway of making a popup profile menu for mybb.....

the error i am encountering is that the links inside the menu are for the poster in the threads first post and not like the current post like i intend

see image for details

[Image: wesb2leytzlg228fk6wa.jpg]

i also edited my functions_post.php according to >>>THIS THREAD<<<

attached the my code....

<a href="member.php?action=profile&amp;uid={$post['uid']}" id="profile" onclick="return openMenu(this)" class="popup_button">{$post['profilelink']}</span></strong><br /></a>

<span class="smalltext">
	<strong>{$post['usertitle']}<br />

	{$post['groupimage']}<br /><br/>
	{$post['useravatar']}<br /><br/>
	{$lang->postbit_posts} {$post['postnum']}<br />
	{$lang->postbit_group} {$usergroup['title']}<br />
	{$lang->postbit_joined} {$post['userregdate']}<br />
	{$lang->postbit_status} {$post['onlinestatus']}<br />

<!-- profile popup  form -->
<div class="menupop" id="profile-popup" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="tcat">{$post['profilelink']}</td></tr>
<tr><td class="menu_option" ><a href="member.php?action=profile&amp;uid={$post['uid']}"><font color="black">View Users Profile</a></td></tr></font>
<tr><td class="menu_option"><a href="private.php?action=send&amp;uid={$post['uid']}"><font color="black">Send User a Private Message</a></td></tr></font>
<tr><td class="menu_option"><a href="{$post['website']}" target="_blank"><font color="black">Visit Users Website</a></td></tr></font>
<tr><td class="menu_option"><a href="search.php?action=finduser&amp;uid={$post['uid']}"><font color="black">Find More Posts By User</a></td></tr></font>

please look it over and correct what i have done wrong....

i already saw ZiNgA BuRgA's version...but i wanted to do my own...since i could not get it to work.

while i am asking do i make plugins...

when i say that what do i put in the php files so that they edit the templates i want them to edit.....

i understand a lot about templates and mybb...but i kinda lack at php....

so if anyone can point me in the right directions (short of w3 schools)
i would be grateful

thanks again
and if someone has a better/quicker idea i would also love to hear that
I have a better one
The VB menu popup, but i will not share it
wow real mature.....

anyway i was not begging around for a script i was looking for help with my own
I didnt mean that i will not share it in a bad way its just i have chosen not give this mod away
Did you modify the postbit_author_user template? That's the place where you should make the changes.

dikidera Wrote:I have a better one
The VB menu popup, but i will not share it

Who cares if you have a better one, if you're not sharing it? If you are not willing to help the poster, then don't post.

im sorry i was not clear...the code posted is from the POSTBIT_AUTHOR_USER....what other template must i edit
To make it clear even if i post it it would only work if installed properly but i cant make mods for mybb only for trackers so it would be problematic
Otherwise if you install it on forum it would look like
[Image: f_WinBitsmodim_34d2dc1.png]
huh!....what are u bout posting the popup code so i can see what im doing wrong in mine
This code is different
You would need menu.js and everytime u wanna open a menu u must register it like so
<script type="text/javascript">

Then the menu itself
<div id="1_menu" class="menu_popup" style="display:none;">				
<table border="1" cellspacing="2" cellpadding="2">
<td colspan="2" align="center" class="thead"><b>Quick Menu</b></td>
<td class="subheader"><a href="member.php"><b>Member</b></a></td>
Pages: 1 2