Popup Menu Script Works on old host, but not x10?

Status
Not open for further replies.

GG-Xtreme

New Member
Messages
430
Reaction score
0
Points
0
I have a vB-themed forum running MyBB (http://mercx.exofire.net/forum) that includes popup search and Quick Links menus like vBulletin, and the menus worked fine on my old host, but for some reason, after switching to x10, they no longer work. The script left on my old host is exactly identical, but it only works there. Here is the code I used for the Quick Links:

HTML:
<td class="vbmenu_control" align="center"><a href="usercp.php" id="usercp" onclick="return openMenu(this)"><strong>Quick Links </strong><img src="http://mercx.exofire.net/forum/images/MyBulletin_v2/popup_down.gif" border="0" /></a>

<!-- user cp tools menu -->
<div class="vbmenu_popup2" id="usercp-popup" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead">Quick Links</td></tr>
<tr><td class="vbmenu_option"><a href="search.php?action=getdaily">Today's Posts</a></td></tr>
<tr><td class="vbmenu_option"><a href="misc.php?action=markread">Mark Forums Read</a></td></tr>
<tr><td class="vbmenu_option"><a href="#" onclick="MyBB.popupWindow('misc.php?action=buddypopup', 'buddyList', 170, 300);">Open Buddy List</a></td></tr>
<tr><td class="vbthead"><a href="usercp.php"><u>User Control Panel</u></a></td></tr>
<tr><td class="vbmenu_option"><a href="usercp.php?action=editsig">Edit Signature</a></td></tr>
<tr><td class="vbmenu_option"><a href="usercp.php?action=profile">Edit Profile</a></td></tr>
<tr><td class="vbmenu_option"><a href="usercp.php?action=options">Edit Options</a></td></tr>
<tr><td class="thead">Miscellaneous</td></tr>
<tr><td class="vbmenu_option"><a href="private.php">Private Messages</a></td></tr>
<tr><td class="vbmenu_option"><a href="usercp.php?action=subscriptions">Subscribed Threads</a></td></tr>
<tr><td class="vbmenu_option"><a href="member.php?action=profile&uid=1">My Profile</a></td></tr>
<tr><td class="vbmenu_option"><a href="online.php">Who's Online</a></td></tr>
</table>
</div>

<!-- / user cp tools menu -->

What could be causing my script to fail?
 
Last edited:

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
Is it just not showing up, or not working?
 

GG-Xtreme

New Member
Messages
430
Reaction score
0
Points
0
If I click the link, instead of the menu popping up, it takes me to the target (ie. Quick Links takes me to usercp.php). On my old host, using the EXACT same script, the menu popped up, similar to the Quick Links menu on vBulletin forums.
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
Hmm, I'm not sure on that one I have FireBug and no JS errors came up for me. Sure it's listed in the template? We don't block anything that would affect the menu.
 

GG-Xtreme

New Member
Messages
430
Reaction score
0
Points
0
Yep, I copied the templates over from the old site, I even compared them in an editor, both are exactly the same, but the script doesn't work on this site. Oh well, I need to re-do the theme to match the new site anyway, I might write a .js file for the menus.
 

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
You know it's illegal to use the vB menu on non-vB product, as that's there copyright worked, unless it's not there script.
 

GG-Xtreme

New Member
Messages
430
Reaction score
0
Points
0
It's not their script, I wrote it myself. vBulletin I believe uses a .js file, whereas mine is just inline script.

Edit: Ok I've tried about EVERY method of making a pop up menu on the web, and NONE of them work, I even tried copying the HTML of the working page onto my site, and it doesn't work, so I can't see how it's not a server-side problem. Even if I make an HTML file on my desktop it works, but on my site it doesn't.
Edit:
I guess I can't bump threads then...
 
Last edited:

lambada

New Member
Messages
2,444
Reaction score
0
Points
0
No, you can't bump threads and doing so is considered bad practice - if no-one has replied then no-one online knows the solution.

I'm also at a loss as to what could cause it - especially as JavaScript is always executed on the client side and never server side.

Is there any PHP code or CGI code that could affect the menu?
 

GG-Xtreme

New Member
Messages
430
Reaction score
0
Points
0
The file 'popup_menu.js' is used for the popups. The thing is, MyBB's inline post editing popup menus work fine, but even copying them didn't work. My popups were originally using a different code, but that didn't work on x10 (it worked everywhere else though). I'm lost.
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
I'm not really sure, I know of some people using vB on the servers and their popup menus work fine, I don't understand why yours don't and do not even give errors.
 

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
You have
Code:
[/COLOR][/FONT][FONT=Tahoma][COLOR=Black]style="display:none"
set, could this be the problem?
 
Status
Not open for further replies.
Top