Adding an additional link in to Board index after logged in

Support for phpBB mods/hacks.

Moderator: Moderators

Adding an additional link in to Board index after logged in

Postby daiviet_nguyen on Mon Feb 02, 2009 2:43 am

Hi,

I have downloaded and successfully installed phpBB-3.0.0.zip into my localhost machine.

My OS is Windows XP.

After logging in -- we have the following links under Board index in the left hand side:

User Control Panel (0 new messages) • View your posts

I want to add in another link, so it will look like this:

User Control Panel (0 new messages) • View your posts • Your Menalto Gallery

Now when clicking on Your Menalto Gallery will take me to http://localhost/WebWork/gallery2/index.php

But I could not set the action for it, which is going to localhost Gallery2 site.

*
* *

I have figured out how to get the link in. I will describe it briefly:

1. I modified F:\Codes\WebWork\phpBB3\language\en\common.php to add in the following entry:

'MENALTO_GALLERY' => 'Your Menalto Gallery',

2. I modified F:\Codes\WebWork\phpBB3\styles\prosilver\template\overall_header.html to add in the following entry at the right location:

<li class="icon-gallery"><a href="{U_MENALTO_GALLERY}" title="{L_MENALTO_GALLERY}">{L_MENALTO_GALLERY}</a></li>

3. I then removed everything from F:\Codes\WebWork\phpBB3\cache directory, except for .htaccess.

I logged in with a user registered user, the new link appears.

*
* *

The problem is I could not figure out how to set the value for U_MENALTO_GALLERY -- its value
is http://localhost/WebWork/gallery2/index.php.

Looking at the cached file F:\Codes\WebWork\phpBB3\cache\tpl_prosilver_overall_header.html.php

I understand that the code turned into:


<li class="icon-gallery"><a href="<?php echo (isset($this->_rootref['U_MENALTO_GALLERY'])) ? $this->_rootref['U_MENALTO_GALLERY'] : ''; ?>" title="<?php echo ((isset($this->_rootref['L_MENALTO_GALLERY'])) ? $this->_rootref['L_MENALTO_GALLERY'] : ((isset($user->lang['MENALTO_GALLERY'])) ? $user->lang['MENALTO_GALLERY'] : '{ MENALTO_GALLERY }')); ?>"><?php echo ((isset($this->_rootref['L_MENALTO_GALLERY'])) ? $this->_rootref['L_MENALTO_GALLERY'] : ((isset($user->lang['MENALTO_GALLERY'])) ? $user->lang['MENALTO_GALLERY'] : '{ MENALTO_GALLERY }')); ?></a></li>


How do we set the value for $this->_rootref['U_MENALTO_GALLERY']?

Thank you very much for your help and best regards.

Viet Nguyen.
daiviet_nguyen
Registered User
Registered User
 
Posts: 1
Joined: Mon Feb 02, 2009 2:25 am

Five Hundred Times

Postby gohome on Thu Apr 16, 2009 8:00 am

In the traffic court of a large mid-western city, a young lady was brought before the judge to answer a ticket given her for driving through a red light. She explained to his honor that she was a school teacher and requested an immediate disposal of her case in order that she might hasten on to her classes. A wild gleam came into the judge's eye. "You are a school teacher, eh?" said he. "Madam, I shall realize my lifelong ambition. Sit down at that table and write 'I went through a red light' five hundred times."

Genius only means hard-working all one's life .( Mendeleyer , Russian Chemist)
More Games,joke,
Warhammer Online Power Leveling and famous. Click http://www.ygscn.net You will get more.
gohome
Registered User
Registered User
 
Posts: 18
Joined: Thu Apr 16, 2009 2:27 am


Return to phpBB Mods

Who is online

Users browsing this forum: No registered users and 1 guest

cron