Add Link In Header For Black_pearl »  Show posts from    to     

Icy Phoenix


phpBB 3 MODS And Styles (Not Compatible With phpBB 3.1) - Add Link In Header For Black_pearl



yuv_got_mel [ Sat 15 Aug, 2009 17:32 ]
Post 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.


Mighty Gorgon [ Sat 15 Aug, 2009 21:18 ]
Post subject: Re: Add Link In Header For Black_pearl
Maybe something like this:
Code: [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.


yuv_got_mel [ Sun 16 Aug, 2009 06:08 ]
Post 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.


Joshua203 [ Sun 16 Aug, 2009 18:59 ]
Post 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',


yuv_got_mel [ Mon 17 Aug, 2009 06:20 ]
Post 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?


spydie [ Mon 17 Aug, 2009 09:29 ]
Post 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


yuv_got_mel [ Mon 17 Aug, 2009 17:33 ]
Post subject: Re: Add Link In Header For Black_pearl
Should the script be:

'U_CHAT' => append_sid("{$phpbb_root_path}chat/index.$phpEx"),


???



spydie [ Mon 17 Aug, 2009 18:55 ]
Post subject: Re: Add Link In Header For Black_pearl
yep.

But try to investigate a bit by yourself aswell.


yuv_got_mel [ Fri 21 Aug, 2009 16:30 ]
Post 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;




Powered by Icy Phoenix