We have been setting up a new phpBB 3.0 forum at Çavetroniçs Įnformatiçs Açademią™ which uses the black_pearl theme. We would like to add a link in the header for our Ajax 'Chat'
The menu_block.html has been edited with the {L_CHAT} added.
Specifically we have questions how the new link should be attributed in the functions.php.
Here is some of the code:
'U_LOGIN_LOGOUT' => $u_login_logout,
'U_INDEX' => append_sid("{$phpbb_root_path}index.$phpEx"),
'U_SEARCH' => append_sid("{$phpbb_root_path}search.$phpEx"),
'U_REGISTER' => append_sid("{$phpbb_root_path}UCP.$phpEx", 'mode=register'),
'U_PROFILE' => append_sid("{$phpbb_root_path}UCP.$phpEx"),
'U_MODCP' => append_sid("{$phpbb_root_path}MCP.$phpEx", false, true, $user->session_id),
'U_FAQ' => append_sid("{$phpbb_root_path}faq.$phpEx"),
There needs to be an addition for the U_CHAT . How should the U_CHAT on the function.php appear?
Are there other areas that may also be tricky through this procedure?
Any and all help will be most appreciated.
SOLVED Add Link In Header For Black_pearl
Subject: Re: Add Link In Header For Black_pearl
Maybe something like this:
You need to use the real file name... I have used "chat.php" but I don't know the real address of your file.
You need to use the real file name... I have used "chat.php" but I don't know the real address of your file.
Subject: Re: Add Link In Header For Black_pearl
Thank you, as you can tell from the header (at link), a location has been made for the Chat.
The link it needs to go to is either http://www.cavetronics.com/forum/chat/ or http://www.cavetronics.com/forum/chat/index.php. It is Ajax chat, which integrates into the phpBB 3 folder (which is named 'forum' in this case).
The file 'index.php' is located here: forum/chat/index.php
I'm somewhat unsure of how that is supposed be written to include the folders.
The link it needs to go to is either http://www.cavetronics.com/forum/chat/ or http://www.cavetronics.com/forum/chat/index.php. It is Ajax chat, which integrates into the phpBB 3 folder (which is named 'forum' in this case).
The file 'index.php' is located here: forum/chat/index.php
I'm somewhat unsure of how that is supposed be written to include the folders.
Subject: Re: Add Link In Header For Black_pearl
if you want to use {L_CHAT} you need to add to the language directory...
'CHAT' => 'Chat',
'CHAT' => 'Chat',
Subject: Re: Add Link In Header For Black_pearl
Yes, I'm aware of changing the language file. However, do I not have to assign the function first?
My biggest hangup is that I do not know how to code a sub directory. It appears from the code that all links in the header are located in the root folder (called 'forum'). The problem is that AJAX chat is located in: forum/chat/index.php
How should that appear in the code?
My biggest hangup is that I do not know how to code a sub directory. It appears from the code that all links in the header are located in the root folder (called 'forum'). The problem is that AJAX chat is located in: forum/chat/index.php
How should that appear in the code?
Subject: Re: Add Link In Header For Black_pearl
If you´re not using L_ Vars when yes . full root path to chat/index.php
Subject: Re: Add Link In Header For Black_pearl
Should the script be:
'U_CHAT' => append_sid("{$phpbb_root_path}chat/index.$phpEx"),
???
:shock:
'U_CHAT' => append_sid("{$phpbb_root_path}chat/index.$phpEx"),
???
:shock:
Subject: Re: Add Link In Header For Black_pearl
yep.
But try to investigate a bit by yourself aswell.
But try to investigate a bit by yourself aswell.
Subject: Re: Add Link In Header For Black_pearl
I figured it out...how to add a "Chat" link in the header.
For users of phpBB 3.0.5, using the black_pearl template, and AJAX chat, this is the code I was so nicely offered from strahd1970 on another forum. It worked for him; and it works on my site too.
Open menu_block.html
After the search, insert the code below on a new line afterwards.
<a href="http://www.cavetronics.com/forum/chat/">Chatrooms</a> <img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />
For users of phpBB 3.0.5, using the black_pearl template, and AJAX chat, this is the code I was so nicely offered from strahd1970 on another forum. It worked for him; and it works on my site too.
Open menu_block.html
After the search, insert the code below on a new line afterwards.
<a href="http://www.cavetronics.com/forum/chat/">Chatrooms</a> <img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />
Page 1 of 1
You cannot post new topicsYou cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events
This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by Icy Phoenix based on phpBB
Generation Time: 0.1783s (PHP: 11% SQL: 89%)
SQL queries: 14 - Debug Off - GZIP Enabled