PDA

View Full Version : New Version of VB On / Off Switch


PixelFx
01-04-2006, 06:08 PM
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
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
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 -


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


If I have to replace something I do

// ##### 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 (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
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
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

?>
<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 (https://vborg.vbsupport.ru/showthread.php?t=105317)

kall
01-14-2006, 05:48 PM
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
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..