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)

PixelFx 01-04-2006 06:08 PM

New Version of VB On / Off Switch
 
Can someone please make a plugin or code hack for the admincp, so that you can change in the vb options weather or not to display in the admincp

There is a newer version of vBulletin available to download

code block?

Example say we just wanted to patch or update our site with a plugin, example 3.5.2 to 3.5.3, but didn't want to have the reminder up after doing that. It would be cool if someone made it something where we can turn the warning or information block on and off.

This would be good for people that also dont' plan on upgrading there current versons of vbulletin. Again to clarify I'm just talking about the block above the stats in the admincp, not the very top bar where it shows your version info.

Thanks muchly :D

Cyricx 01-04-2006 06:43 PM

Ummm...

Being the last few releases, and especially 3.5.3 are more security patches...

Why wouldn't you at least patch it?

I mean... why leave a security hole on your site?

For example, my live site is on 3.5.1, but I've done the patch for 3.5.2 and 3.5.3, and am planning on upgrading it to 3.5.3 very soon.

But to not do at least the patches seems like your kinda opening a door for a hackin ass whoopin ;)

Rich 01-04-2006 07:51 PM

Hello,
He wants to know how to remove that reminder AFTER you use a patch. I myself patched my site and will be upgrading on a later date. Now that "I" have it patched, I could possibly turn off the reminder if the mod he is suggesting were created.

Replicators 01-04-2006 07:53 PM

Only thing that worries me about upgrading is redo-ing all the php editing for all the mod's installed.

PixelFx 01-05-2006 02:01 PM

Quote:

Originally Posted by Cyricx
Ummm...

Being the last few releases, and especially 3.5.3 are more security patches...

Why wouldn't you at least patch it?

I mean... why leave a security hole on your site?

For example, my live site is on 3.5.1, but I've done the patch for 3.5.2 and 3.5.3, and am planning on upgrading it to 3.5.3 very soon.

But to not do at least the patches seems like your kinda opening a door for a hackin ass whoopin ;)

You didn't read what I said, I said wanted something to be able to toggle warning on and off after doing a patch.

After once again finishing all the hack installs. I prob want to wait till 3.5.4, before spending another week 10 hours a day chopping up my site. So reason I asked above, it would be nice to be able to turn the warning off :P

Zachery 01-05-2006 03:42 PM

Quote:

Originally Posted by PixelFx
You didn't read what I said, I said wanted something to be able to toggle warning on and off after doing a patch.

After once again finishing all the hack installs. I prob want to wait till 3.5.4, before spending another week 10 hours a day chopping up my site. So reason I asked above, it would be nice to be able to turn the warning off :P

Stop hacking your files ;) and keep better docs if you do.

Cyricx 01-05-2006 05:48 PM

Heheh I cheat...

I keep a thread on my forum of all the files I've editted and every edit I do I do with this format -

Code:

// ##### START HACK - (hack name) #####
code
// ##### END HACK - (hack name) #####

If I have to replace something I do
Code:

// ##### START HACK - (hack name) #####
// ##### REPLACED THIS #####
/*
code I'm replacing
*/
// ##### WITH THIS #####
new code
// ##### END HACK - (hack name) #####

Then to upgrade all I have to do is open up an old file and a new one, do a search for "start hack" and rip through them. :)

I've hacked about a dozen files and it takes me about 15 mins to upgrade :)

Just the updating templates part that annoys me and makes me wait to do a full upgrade hehe.

PixelFx 01-06-2006 03:09 AM

Then to upgrade all I have to do is open up an old file and a new one, do a search for "start hack" and rip through them. :)

I've hacked about a dozen files and it takes me about 15 mins to upgrade :)

Just the updating templates part that annoys me and makes me wait to do a full upgrade hehe.[/QUOTE]

thanks guys ;) I've hacked my site to death now, well not death but its got lots and lots of changes ....

demo ... http://www.orbsydia.ca *twitch* just um one more hack .. twitch .. just one ..... mor ... hac...

this site is too addictive :P

calorie 01-06-2006 05:43 AM

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.

RaceJunkie 01-06-2006 10:02 PM

Quote:

Originally Posted by Zachery
Stop hacking your files ;) and keep better docs if you do.


If no one installed any hacks then this site would be useless.. Right?

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 11:50 AM.

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.01218 seconds
  • Memory Usage 1,759KB
  • 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
  • (3)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (16)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete