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.


