How can I make dropdown menus for other uses, like the ones from the 'edit post'..etc?
Can someone give me a code?
Thanks.
To clarify, I only want to go with template edits, because I am on afreehost, and don't have webmaster access if possible.
Does anyone have a code for the default MyBB dropdown menus that I can modify for custom dropdown menus without webmaster access?
I have told you how to do it!
If you look at the source of the page you can find the one which is used for the edit button.
<a href="editpost.php?pid=345706" id="edit_post_345706"><img src="images/english/postbit_edit.gif" alt="Edit this post" title="Edit this post" /></a>
<div id="edit_post_345706_popup" class="popup_menu" style="display: none;"><div class="popup_item_container"><a href="javascript:;" onclick="Thread.quickEdit(345706);" class="popup_item">Quick Edit</a></div><div class="popup_item_container"><a href="editpost.php?pid=345706" class="popup_item">Full Edit</a></div></div>
<script type="text/javascript">
// <!--
if(use_xmlhttprequest == "1")
{
new PopupMenu("edit_post_345706");
}
// -->
</script>
If you can't manage to figure that out, you may want to check out easier solutions like this:
http://javascript.internet.com/generator...-menu.html
(2009-05-08, 06:43 AM)Dennis Tsang Wrote: [ -> ]If you look at the source of the page you can find the one which is used for the edit button.
<a href="editpost.php?pid=345706" id="edit_post_345706"><img src="images/english/postbit_edit.gif" alt="Edit this post" title="Edit this post" /></a>
<div id="edit_post_345706_popup" class="popup_menu" style="display: none;"><div class="popup_item_container"><a href="javascript:;" onclick="Thread.quickEdit(345706);" class="popup_item">Quick Edit</a></div><div class="popup_item_container"><a href="editpost.php?pid=345706" class="popup_item">Full Edit</a></div></div>
<script type="text/javascript">
// <!--
if(use_xmlhttprequest == "1")
{
new PopupMenu("edit_post_345706");
}
// -->
</script>
If you can't manage to figure that out, you may want to check out easier solutions like this:
http://javascript.internet.com/generator...-menu.html
I have figured it out, but the problem is, the code doesn't work for more than one menu, and I want to add multiple of the same style.
@jacobmarshall: I have no webmaster access to my forum, I am using a free host.
Make sure your IDs are different for different menus
Where would I specify such an ID?
If I add a second one, when I click the image I want the menu to drop from, it takes me to an 'edit post unspecified' page.
Quote:<a href="editpost.php?pid=345706" id="edit_post_345706"><img src="images/english/postbit_edit.gif" alt="Edit this post" title="Edit this post" /></a>
<div id="edit_post_345706_popup" class="popup_menu" style="display: none;"><div class="popup_item_container"><a href="javascript:;" onclick="Thread.quickEdit(345706);" class="popup_item">Quick Edit</a></div><div class="popup_item_container"><a href="editpost.php?pid=345706" class="popup_item">Full Edit</a></div></div>
<script type="text/javascript">
// <!--
if(use_xmlhttprequest == "1")
{
new PopupMenu("edit_post_345706");
}
// -->
</script>
Make sure that your second menu has a different id than that one.