vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   New Version of VB On / Off Switch (https://vborg.vbsupport.ru/showthread.php?t=104453)

tidy_boy 01-07-2006 02:41 PM

Quote:

Originally Posted by calorie
There are about five consecutive document.writeln lines in the vB admincp index.php file that you may comment out to avoid seeing that upgrade notice. Alternatively, you could add something to the condition of the if statement that surrounds the document.writelns to toggle the notice on or off, but either way, you'll need to edit the file.

What would need commenting out in the admincp index.php file

peterska2 01-07-2006 02:46 PM

That would be

Code:

?>
<script type="text/javascript" src="http://version.vbulletin.com/versioncheck.js"></script>
<script type="text/javascript" src="http://version.vbulletin.com/version.js?id=VBF5076CBA"></script>
<script type="text/javascript">
<!--
if (typeof(vb_version) != "undefined" && isNewerVersion("<?php echo $vbulletin->options['templateversion']; ?>", vb_version))
{
        var current_version = "<?php echo $vbulletin->options['templateversion']; ?>";
        var latest_string = "<?php echo $vbphrase['latest_version_available_x']; ?>";
        var current_string = "<?php echo $vbphrase['you_are_running_vbulletin_version_x']; ?>";
        var download_string = "<?php echo $vbphrase['download_vbulletin_x_from_members_area']; ?>";

        document.writeln('<table cellpadding="4" cellspacing="0" border="0" align="center" width="90%" class="tborder"><tr><td class="tcat" align="center"><b><?php echo $vbphrase['there_is_a_newer_vbulletin_version']; ?></b></td></tr><tr><td class="alt1" align="center">');
        document.writeln('<p><b><a href="http://www.vbulletin.com/forum/showthread.ph' + 'p?p=' + vb_announcementid + '" target="_blank">' + construct_phrase(latest_string, vb_version) + "</a></b></p>");
        document.writeln('<p>' + construct_phrase(current_string, current_version.bold()) + '</p>');
        document.writeln('<p><a href="http://members.vbulletin.com/" target="_blank">' + construct_phrase(download_string, vb_version.bold()) + '</a></p>');
        document.writeln('</td></tr></table>');
}
//-->
</script>

<?php


tidy_boy 01-07-2006 02:58 PM

Thankyou :D

Omranic 01-14-2006 05:33 PM

Switch On/Off New vBulletin Version Notification in admincp

kall 01-14-2006 05:48 PM

Quote:

Originally Posted by RaceJunkie
If no one installed any hacks then this site would be useless.. Right?

The key thing there was 'hacking your FILES'. Zachery is suggesting that the poster use only Plugins or Extensions, which do not require File hacking.

RaceJunkie 01-14-2006 11:44 PM

Quote:

Originally Posted by kall
The key thing there was 'hacking your FILES'. Zachery is suggesting that the poster use only Plugins or Extensions, which do not require File hacking.

Thanks Kall for clearing that up for me..


All times are GMT. The time now is 01:33 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01048 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete