vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Admin question (https://vborg.vbsupport.ru/showthread.php?t=96565)

mike3k 09-19-2005 05:32 PM

Admin question
 
hi

Im adding a admin to my site and would like to make it so that they dont see when my VB is out of date and the links to the updates.

Ex
There is a newer version of vBulletin available to downloadLatest version available: 3.0.9
You are currently running vBulletin version 3.0.7
Click here to download vBulletin 3.0.9 from the Members' Area

I would like to make it so they dont see that please, only me the owner.

Thanks

Borgs8472 09-19-2005 06:00 PM

in your index.php under /admincp/index.php

you need to find:
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=YOURVBLICENCEID"></script>
<script type="text/javascript">
<!--
if (typeof(vb_version) != "undefined" && isNewerVersion("<?php echo $vboptions['templateversion']; ?>", vb_version))
{
        var current_version = "<?php echo $vboptions['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?postid=' + 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://www.vbulletin.com/members/" target="_blank">' + construct_phrase(download_string, vb_version.bold()) + '</a></p>');
        document.writeln('</td></tr></table>');
}
//-->
</script>

And put a conditional statement around it, e.g:

<if condition="$bbuserinfo[userid]==YOURUSERID HERE">

The code I posted

</if>

[edit - oops, posted my licence ^_^ ]

mike3k 09-19-2005 06:06 PM

ok i did this but it didnt work when i viewed with the other admin account it still shows on that too

my acc is user id 1

Code:

<if condition="$bbuserinfo[userid]==1">
<script type="text/javascript" src="http://version.vbulletin.com/versioncheck.js"></script>
<script type="text/javascript" src="http://version.vbulletin.com/version.js?id=VBFA757BC5"></script>
<script type="text/javascript">
<!--
if (typeof(vb_version) != "undefined" && isNewerVersion("<?php echo $vboptions['templateversion']; ?>", vb_version))
{
        var current_version = "<?php echo $vboptions['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?postid=' + 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://www.vbulletin.com/members/" target="_blank">' + construct_phrase(download_string, vb_version.bold()) + '</a></p>');
        document.writeln('</td></tr></table>');
}
//-->
</script>
</if>


Kingzor 09-19-2005 07:51 PM

here you go.overwrite your current thing with this
Quote:


<script type="text/javascript" src="http://version.vbulletin.com/versioncheck.js"></script>
<script type="text/javascript" src="http://version.vbulletin.com/version.js?id=VBFA757BC5"></script>
<script type="text/javascript">
var USER_string = "<?php echo $bbuserinfo[userid]; ?>";
if (USER_string == 1)
{
<!--
if (typeof(vb_version) != "undefined" && isNewerVersion("<?php echo $vboptions['templateversion']; ?>", vb_version))
{
var current_version = "<?php echo $vboptions['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?postid=' + 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://www.vbulletin.com/members/" target="_blank">' + construct_phrase(download_string, vb_version.bold()) + '</a></p>');
document.writeln('</td></tr></table>');
}
//-->
}
</script>
make sure to remove <if condition="$bbuserinfo[userid]==1">
and </if>


All times are GMT. The time now is 12:44 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.01146 seconds
  • Memory Usage 1,736KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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