Not Solved popup menu template editing
#1
Not Solved Exclamation 
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 />
</span>


<!-- 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>
</table>
</div></form>



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 experts...how 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
[Image: darkmew.png]

Feel free to PM me if you have any issues with the community. Big Grin
Reply
#2
Not Solved
and if someone has a better/quicker idea i would also love to hear that
[Image: darkmew.png]

Feel free to PM me if you have any issues with the community. Big Grin
Reply
#3
Not Solved
I have a better one
The VB menu popup, but i will not share it
"I thought what I'd do was, I'd pretend I was one of those deaf-mutes." - J.D Salinger
Reply
#4
Not Solved
wow real mature.....

anyway i was not begging around for a script i was looking for help with my own
[Image: darkmew.png]

Feel free to PM me if you have any issues with the community. Big Grin
Reply
#5
Not Solved
I didnt mean that i will not share it in a bad way its just i have chosen not give this mod away
"I thought what I'd do was, I'd pretend I was one of those deaf-mutes." - J.D Salinger
Reply
#6
Not Solved
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.

Cheers.
Dennis Tsang
Former MyBB Team Member
Web: http://dennistt.net
Reply
#7
Not Solved
im sorry i was not clear...the code posted is from the POSTBIT_AUTHOR_USER....what other template must i edit
[Image: darkmew.png]

Feel free to PM me if you have any issues with the community. Big Grin
Reply
#8
Not Solved
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]
"I thought what I'd do was, I'd pretend I was one of those deaf-mutes." - J.D Salinger
Reply
#9
Not Solved
huh!....what are u saying......how bout posting the popup code so i can see what im doing wrong in mine
[Image: darkmew.png]

Feel free to PM me if you have any issues with the community. Big Grin
Reply
#10
Not Solved
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">
menu_register("1");
</script>	

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


Attached Files
.js   menu.js (Size: 13.77 KB / Downloads: 78)
"I thought what I'd do was, I'd pretend I was one of those deaf-mutes." - J.D Salinger
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)