SOLVED Add Link In Header For Black_pearl


Subject: Add Link In Header For Black_pearl
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.

Profile PM  
Subject: Re: Add Link In Header For Black_pearl
Maybe something like this:
Code: [Download] [Hide] [Select]
'U_CHAT' => append_sid("{$phpbb_root_path}chat.$phpEx"),


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.

Profile PM  
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',

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?

Profile PM  
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:

Profile PM  
Subject: Re: Add Link In Header For Black_pearl
yep.

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>&nbsp;&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;

Profile PM  

Page 1 of 1


  
You cannot post new topics
You 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.3359s (PHP: 6% SQL: 94%)
SQL queries: 16 - Debug Off - GZIP Enabled