The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Is there anyway (using Javascript or otherwise) to automatically refresh the AdminCP menu (left side frame) during a product install, using the PHP install code for instance.
I'm developing a product that will include a cpnav XML file, and would rather not have to instruct users to "refresh the page" or "press F5" so they can see the new menu options. My first thought would be JavaScript code to instruct the left side menu frame to refresh itself, but I'm not sure if it's possible, how it would be done, or whether or not it would work within the product install code. Besides that one issue, everything is seamless. Many of the mods I see are telling their users to refresh, or logout then log back-in. Any ideas? |
#2
|
||||
|
||||
![]()
This should get you started:
Code:
<script type="text/javascript"> function Reload () { var f = document.getElementById('nav'); f.src = f.src; } </script> Then you need to initiate the code, you will have to setup code that will process it once your hack is installed. But this code below will allow you to perform the action via link: Code:
<input type="button" value="Reload" onclick="Reload();"> |
#3
|
||||
|
||||
![]()
Thank you!
I think I'm going to give it a try, making sure to check that the XML file exists before attempting refresh ![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|