Icy Phoenix

     
 

SOLVED Add Link In Header For Black_pearl

SOLVED Add Link In Header For Black_pearl

Article
Reply with quote    Download Post  
Post 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.



 
yuv_got_mel - View user's profile Send private message  
yuv_got_mel [ Sat 15 Aug, 2009 17:32 ]
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us


SOLVED Add Link In Header For Black_pearl

Comments
Reply with quote    Download Post  
Post 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.



 
Mighty Gorgon - View user's profile Send private message  
Mighty Gorgon [ Sat 15 Aug, 2009 21:18 ]
Reply with quote    Download Post  
Post 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.



 
yuv_got_mel - View user's profile Send private message  
yuv_got_mel [ Sun 16 Aug, 2009 06:08 ]
Reply with quote    Download Post  
Post 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',



 
Joshua203 - View user's profile Send private message  
Joshua203 [ Sun 16 Aug, 2009 18:59 ]
Reply with quote    Download Post  
Post 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?



 
yuv_got_mel - View user's profile Send private message  
yuv_got_mel [ Mon 17 Aug, 2009 06:20 ]
Reply with quote    Download Post  
Post Re: Add Link In Header For Black_pearl 
 
If you´re not using L_  Vars when yes . full root path to chat/index.php



 
spydie - View user's profile Send private message  
spydie [ Mon 17 Aug, 2009 09:29 ]
Reply with quote    Download Post  
Post Re: Add Link In Header For Black_pearl 
 
Should the script be:

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


???  





 
yuv_got_mel - View user's profile Send private message  
yuv_got_mel [ Mon 17 Aug, 2009 17:33 ]
Reply with quote    Download Post  
Post Re: Add Link In Header For Black_pearl 
 
yep.

But try to investigate a bit by yourself aswell.



 
spydie - View user's profile Send private message  
spydie [ Mon 17 Aug, 2009 18:55 ]
Reply with quote    Download Post  
Post 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;



 
yuv_got_mel - View user's profile Send private message  
yuv_got_mel [ Fri 21 Aug, 2009 16:30 ]
Display posts from previous:    

HideWas this topic useful?

Post new topic  Reply to topic  Page 1 of 1
 
 




 


 

  cron