PDA

View Full Version : Quick Help: Settings Button Gone in Header? Screenshot and code included.


Lazorbeam
07-22-2011, 05:25 PM
Looks like the settings button is gone from my header:

https://vborg.vbsupport.ru/external/2011/07/19.png

There is a small square that can still be clicked to access usercp.php. I searched for usercp.php and the header template came up. Here's the code that contains a link to the user CP. I tried to change it, but no luck:

<li><a href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase control_panel}</a></li>
<li><a href="{vb:link member, {vb:raw bbuserinfo}}">{vb:rawphrase your_profile}</a></li>
<vb:if condition="$notifications_total">
<li class="popupmenu notifications" id="notifications">
<a class="popupctrl" href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase your_notifications}: <span class="notifications-number"><strong>{vb:raw notifications_total}</strong></span></a>
<ul class="popupbody popuphover">
{vb:raw notifications_menubits}
</ul>
</li>
<vb:else />
<li class="popupmenu nonotifications" id="nonotifications">
<a class="popupctrl" href="usercp.phps{vb:raw session.sessionurl_q}">{vb:rawphrase your_notifications}</a>

Any idea?

kh99
07-22-2011, 05:36 PM
I think the problem is that the phrase name is your_control_panel, so that the first line you posted should read:

<li><a href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase your_control_panel}</a></li>

Lazorbeam
07-22-2011, 05:56 PM
Hmm, no dice. I even went ahead and created a global phrase named your_control_panel, called it Settings. Nothing happened.

kh99
07-22-2011, 06:11 PM
So you don't have a phrase called "your_control_panel" already? There should be one.

Anyway, as a test, what happens if you just put the text in there like:

<li><a href="usercp.php{vb:raw session.sessionurl_q}">Settings</a></li>


ETA: also, when you created the phrase, what Phrase Type did you choose? The existing your_control_panel has type "User Tools (global)".

Lazorbeam
07-22-2011, 11:33 PM
So you don't have a phrase called "your_control_panel" already? There should be one.

Anyway, as a test, what happens if you just put the text in there like:

<li><a href="usercp.php{vb:raw session.sessionurl_q}">Settings</a></li>


ETA: also, when you created the phrase, what Phrase Type did you choose? The existing your_control_panel has type "User Tools (global)".

Found my problem.

I was changing the template of the site's parent style. The child styles weren't inheriting the changes because header is customized for both (bad practice, I know).

I thank you for your help, kind sir.