The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to check version...
I am working on sort of a hack for vbulletin but will have its own admin control panel. I am trying to figure out how to check the version to see if there is an update, like vbulletin does in the admin control panel. How exactly do you do that?
|
#2
|
||||
|
||||
try
PHP Code:
|
#3
|
|||
|
|||
No, I am talking about how vb's admin cp says this...
You are running version xxx Latest version is xxx How do you get it to check via the javascript... I see where it calls vbulletin.com but unsure how to make a script that it calls. So that way my hack (which has its own cp) will check if a newer version available. |
#4
|
||||
|
||||
as far as i know, the version.js script is just this:
Quote:
Code:
<script language="Javascript"> if ('<?php echo $templateversion; ?>' < hack_version) { document.write("<div align=\"center\" class=\"tblhead\" style=\"padding:4px\"><b><a href=\"http://vbulletin.com/forum/showthread.php?postid="+vb_announcementid+"\"><span class=\"tblhead\"><font size=\"2\">There is a newer version of vBulletin than the version you are running!</font></span></a></b>"); document.write("<br><a href=\"http://vbulletin.com/members/\"><span class=\"tblhead\">Download vBulletin version "+vb_version+" from the Members' Area</span></a>.</div>"); } </script> JS script: Quote:
Code:
<script language="javascript"> if ('<?php echo($templateversion); ?>' < vb_version) { document.write("<div align=\"center\"><b><a href=\"FORUM URL/showthread.php?postid="+hack_announcementid+"\"><font size=\"2\">There is a newer version of HACK NAME than the version you are running!</font></a></b></div>"); } </script> don't forget to call it with the script tags first |
#5
|
|||
|
|||
Thanks, that worked =P
Didnt think it was that simple. I see checkversion coming to vbulletin.com. Do you know what needs to be inside that or does vbulletin allow me to run that (cause it works fine just caling it from them). |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|