Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
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_melSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
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.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
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_melSend private message  
Back to topPage bottom
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',
 




____________
www.DutchaGoGo.com (development/under construction ...Forever?¿?)
 
Joshua203Send private messageVisit poster's website  
Back to topPage bottom
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_melSend private message  
Back to topPage bottom
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
 




____________
Out of Order
 
spydieSend private messageVisit poster's website  
Back to topPage bottom
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_melSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Add Link In Header For Black_pearl 
 
yep.

But try to investigate a bit by yourself aswell.
 




____________
Out of Order
 
spydieSend private messageVisit poster's website  
Back to topPage bottom
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_melSend private message  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
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


  

 

  cron