How to disable Calendar in Vbulletin

Discussion in 'vBulletin' started by casperl, Dec 22, 2006.

  1. #1
    Hi,

    I think i dont need Calendar in my new forum. I wan to disbale it totally! Means removing all possible links to it. I searched on google and admin cp but could not find an answer.

    How can i do this?
     
    casperl, Dec 22, 2006 IP
  2. Endurer

    Endurer Well-Known Member

    Messages:
    1,113
    Likes Received:
    84
    Best Answers:
    0
    Trophy Points:
    140
    #2
    You can remove the calendar link by removing this code from your navbar template:

    <td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
    Code (markup):
    I think that there's an option to hide calendar from a certain usergroup. Take a look at usergroup permission in admincp.
     
    Endurer, Dec 22, 2006 IP
  3. casperl

    casperl Peon

    Messages:
    1,560
    Likes Received:
    57
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I can find those lines in default template but could not find them in my custom template. Here is the content of that file in my custom template:


    
    <!-- breadcrumb -->
    <div id="navbar-row">
    <if condition="is_array($navbits)">
    	<div class="navbar navbar-top"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a> $navbits[breadcrumb]
    	 &raquo; <strong>$navbits[lastelement]</strong></div>
    <else />
    	<div class="navbar navbar-top"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></div>
    </if>
    </div>
    <br class="spacer8" />
    <!-- / breadcrumb -->
    
    <!-- pm notification -->
    <if condition="THIS_SCRIPT != 'private' && $show['member'] && $show['pmstats'] && $vbulletin->userinfo['pmunread']">
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <tbody>
    	<tr>
    		<td class="panelsurround" align="center">
    		<div class="panel">
    			<div class="pm-new" style="width:$stylevar[formwidth]; text-align: center;">
    				<phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase>
    			</div>
    		</div>
    		</td>
    	</tr>
    </tbody>
    </table>
    <br />
    </if>
    <!-- / pm notification -->
    
    <if condition="$show['popups']">
    <!-- NAVBAR POPUP MENUS -->
    	
    	<if condition="$show['searchbuttons']">
    	<!-- header quick search form -->
    	<div class="vbmenu_popup" id="navbar_search_menu" style="display:none">
    		<form action="search.php?do=process" method="post">
    		<table cellpadding="4" cellspacing="1" border="0">
    		<tr>
    			<td class="thead">$vbphrase[search_forums]</td>
    		</tr>
    		<tr>
    			<td class="vbmenu_option" title="nohilite">
    				<input type="hidden" name="do" value="process" />
    				<input type="hidden" name="quicksearch" value="1" />
    				<input type="hidden" name="childforums" value="1" />
    				<input type="hidden" name="exactname" value="1" />
    				<input type="hidden" name="s" value="$session[sessionhash]" />
    				<div><input type="text" class="bginput" name="query" size="25" tabindex="1001" /><input type="submit" class="button" value="$vbphrase[go]" tabindex="1004" /></div>
    			</td>
    		</tr>
    		<tr>
    			<td class="vbmenu_option" title="nohilite">
    				<label for="rb_nb_sp0"><input type="radio" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />$vbphrase[show_threads]</label>
    				&nbsp;
    				<label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />$vbphrase[show_posts]</label>
    			</td>
    		</tr>
    		<tr>
    			<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
    		</tr>
    		</table>
    		</form>
    	</div>
    	<!-- / header quick search form -->
    	</if>
    
    	<if condition="$show['member']">
    	<!-- user cp tools menu -->
    	<div class="vbmenu_popup" id="usercptools_menu" style="display:none">
    		<table cellpadding="4" cellspacing="1" border="0">
    		
    		<tr><td class="thead">$vbphrase[quick_links]</td></tr>		
    		<if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[todays_posts]</a></td></tr></if>
    		<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td></tr>
    		<tr><td class="vbmenu_option"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td></tr>
    				
    		<tr><td class="thead"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_control_panel]</a></td></tr>
    		<if condition="$show['siglink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr></if>
    		<!--<if condition="$show['avatarlink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td></tr></if>-->
    		<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a></td></tr>
    		<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>
    		
    		<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
    		<if condition="$show['pmmainlink']"><tr><td class="vbmenu_option"><a href="private.php$session[sessionurl_q]" rel="nofollow">$vbphrase[private_messages]</a></td></tr></if>
    		<tr><td class="vbmenu_option"><a href="subscription.php$session[sessionurl_q]" rel="nofollow">$vbphrase[subscribed_threads]</a></td></tr>
    		<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr>
    		<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php$session[sessionurl_q]">$vbphrase[whos_online]</a></td></tr></if>
    		 
    		</table>
    	</div>
    	<!-- / user cp tools menu -->
    	</if>
    <!-- / NAVBAR POPUP MENUS -->
    
    <!-- PAGENAV POPUP -->
    
    	<div class="vbmenu_popup" id="pagenav_menu" style="display:none">
    		<table cellpadding="4" cellspacing="1" border="0">
    		<tr>
    			<td class="thead" nowrap="nowrap">$vbphrase[go_to_page]</td>
    		</tr>
    		<tr>
    			<td class="vbmenu_option" title="nohilite">
    			<form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
    				<input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
    				<input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]" />
    			</form>
    			</td>
    		</tr>
    		</table>
    	</div>
    
    <!-- / PAGENAV POPUP -->
    </if>
    
    $_phpinclude_output
    
    
    Code (markup):
    What should i do?
     
    casperl, Dec 22, 2006 IP
  4. reteep

    reteep Active Member

    Messages:
    181
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #4
    Usergroup Manager -> Registered Members -> Edit -> Calendar Permissions -> Set everything to know and your calender will be gone for regged members.
     
    reteep, Dec 23, 2006 IP
  5. casperl

    casperl Peon

    Messages:
    1,560
    Likes Received:
    57
    Best Answers:
    0
    Trophy Points:
    0
    #5
    This did not work either. :( The link is still shown to registered and unregistered users althoughi set everything to no for both of them.
     
    casperl, Dec 23, 2006 IP
  6. casperl

    casperl Peon

    Messages:
    1,560
    Likes Received:
    57
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Ok. I found the calendar link in header template and removed from there.. Thanks for the answers..
     
    casperl, Dec 23, 2006 IP