PDA

View Full Version : How i delete help links?


soccerman2015
03-09-2016, 06:37 AM
vbulletin. 4.2.1

we dont need that information, and we want more space.



https://vborg.vbsupport.ru/external/2016/03/12.jpg

thanks for help.

--------------- Added 1457534756 at 1457534756 ---------------

i find code.

its in header template..

it is ok that i delete red line?





<vb:if condition="$show['registerbutton']">
<li><a href="register.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase register}</a></li>
</vb:if>
<li><a rel="help" href="faq.php{vb:raw session.sessionurl_q}">{vb:rawphrase help}</a></li>
<li>
<script type="text/javascript" src="clientscript/vbulletin_md5.js?v={vb:raw vboptions.simpleversion}"></script>
<form id="navbar_loginform" action="login.php?{vb:raw session.sessionurl}do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, {vb:raw show.nopasswordempty})">

MarkFL
03-09-2016, 12:51 PM
Create the following plugin:

Product: vBulletin

Hook Location: parse_templates

Title: Remove "Help" Link From Guest Header

Execution Order: 5

Plugin PHP Code:

if ($show['guest'] AND isset($vbulletin->templatecache['header']))
{
$vbulletin->templatecache['header'] = preg_replace('/<li><a rel="help".*?<\/li>/', '', $vbulletin->templatecache['header']);
}

Plugin is Active: Yes

Click "Save".

soccerman2015
03-09-2016, 12:59 PM
Very much thanks, its works!