Adding link and icon in header
Forum rules
In order the get any support, you will have to do following:
1. Use a describing title!
2. Describe your problem and what happened when the problem occured
3. Tell us what version of phpBB3 you are currently using.
Else your topic may be ignored or locked!
In order the get any support, you will have to do following:
1. Use a describing title!
2. Describe your problem and what happened when the problem occured
3. Tell us what version of phpBB3 you are currently using.
Else your topic may be ignored or locked!
Adding link and icon in header
I have installed phpfreechat inside my phpbb-directory. I added my forums header and footer.
The forum has the icon for Log out, Members and FAQ just below the search-square, i would like to have an icon and link to my chat there also.
Is this something that is easily done? I have looked how other chats that put icon and link there but i dont really understand how my idea is done.
I´m running phpbb 3.0.7
The forum has the icon for Log out, Members and FAQ just below the search-square, i would like to have an icon and link to my chat there also.
Is this something that is easily done? I have looked how other chats that put icon and link there but i dont really understand how my idea is done.
I´m running phpbb 3.0.7
Re: Adding link and icon in header
I think i found something here.... http://www.phpbb.com/kb/article/adding- ... ur-header/
I just need to modify it for my purpose, perhaps you guys can lead me right...
First line to add, in functions.php says
'U_NAME' => append_sid("{$phpbb_root_path}name.$phpEx"),
or
'U_NAME' => 'http://www.name.of.website.com/index.$phpEx',
First of all, 'U_NAME', the NAME-part could be CHAT? (U_CHAT)?
Second of all, the path to my chat is in phpbb-root /phpfreechat/index.php should i use the second of thoose above?
next part, the icon. They call it icon-name just as an example? If my icons name is chat-icon the i modify the line according to that?
next part, same as above?
and next the same?
When it comes to the overall_header-part i modyfiy the name of icon and 'U_NAME'?
And last, the language i modify to my language.
Has i got it right?
[edit]I tried this and it didnt work, not even shows icon and link. [/edit]
I just need to modify it for my purpose, perhaps you guys can lead me right...
First line to add, in functions.php says
'U_NAME' => append_sid("{$phpbb_root_path}name.$phpEx"),
or
'U_NAME' => 'http://www.name.of.website.com/index.$phpEx',
First of all, 'U_NAME', the NAME-part could be CHAT? (U_CHAT)?
Second of all, the path to my chat is in phpbb-root /phpfreechat/index.php should i use the second of thoose above?
next part, the icon. They call it icon-name just as an example? If my icons name is chat-icon the i modify the line according to that?
next part, same as above?
and next the same?
When it comes to the overall_header-part i modyfiy the name of icon and 'U_NAME'?
And last, the language i modify to my language.
Has i got it right?
[edit]I tried this and it didnt work, not even shows icon and link. [/edit]
Re: Adding link and icon in header
this is what it should look like in the functions.php file if your link will be in phpbb-root /phpfreechat/index.php
then it should be like this:
in the header it would be:
Open: styles/prosilver/theme/bidi.css, find:
Inline-after, add:
Open: styles/prosilver/theme/buttons.css, find:
Inline-after, add:
Open: styles/prosilver/theme/colours.css, find:
After, add:
Open: language/en/common.php, find:
Before, add:
and just like the article says!
then it should be like this:
Code: Select all
'U_CHAT' => append_sid("{$phpbb_root_path}phpfreechat/index.$phpEx"),
Code: Select all
<li class="icon-chat"><a href="{U_CHAT}" title="{L_CHAT_EXPLAIN}">{L_CHAT}</a></li>
Code: Select all
.rtl .icon-search
Inline-after, add:
Code: Select all
, .rtl .icon-chat
Open: styles/prosilver/theme/buttons.css, find:
Code: Select all
.icon-search
Inline-after, add:
Code: Select all
, .icon-chat
Open: styles/prosilver/theme/colours.css, find:
Code: Select all
.icon-search { background-image: url("{T_THEME_PATH}/images/icon_search.gif"); }
After, add:
Code: Select all
.icon-chat { background-image: url("{T_THEME_PATH}/images/icon_chat.gif"); }
Code: Select all
));
Before, add:
Code: Select all
'CHAT' => 'Free Chat',
'CHAT_EXPLAIN' => 'View the chat page',
and just like the article says!
Uploading your new icon
Next, you need to upload your new icon to styles/prosilver/theme/images and ensure it's called 'icon_chat.gif'.
Re: Adding link and icon in header
I got it working, it was another modd that had a line in the overall_header that made a mess but i put the line before instead of after.
Now i have link and icon there and it works.
BIG thanks for your effort cisco007!
Now i have link and icon there and it works.
BIG thanks for your effort cisco007!
Re: Adding link and icon in header
hello guys I tried according above link (tutorial on another page) but I couldnt work for me. even I did all steps properly.. please help me frnz I dont know php.. but i want to make my forum pls help me to learn phpBB step by step..
Last edited by jmsoni on 12 Jul 2010, 20:19, edited 1 time in total.
Re: Adding link and icon in header
well you have to at least tell us what you did, how you did it, what where the results, what you did you edit the files, and a link to where the problem is at!
Re: Adding link and icon in header
Frnz I did all steps to add new button on header but i cudnt get anything I did all steps as here http://www.phpbb.com/kb/article/adding- ... ur-header/cisco007 » 12 Jul 2010, 20:15 wrote:well you have to at least tell us what you did, how you did it, what where the results, what you did you edit the files, and a link to where the problem is at!
:O but didnt get anything.. Please help me this is the first time I am working with this kinds of stuffs actually I'm 3d artist and compositor and also making live shooting films but now i want to make my forum pls help me how can i create button and add link for other page..
Also I have more questions which I'll ask later and step by step.. Pls I will really appreciate you frnz.
Re: Adding link and icon in header
did you go to the ACP - Styles and purge the cache on the theme, template, and imageset, and purge the cache!? and i wanted a link to your site or where ever you are doing this so i can take a look!
Re: Adding link and icon in header
Nope..!!! I didn't purge that style.. is it needed? (funny question, sorry)..! one more funny question.. how can i purge style?cisco007 » 12 Jul 2010, 20:33 wrote:did you go to the ACP - Styles and purge the cache on the theme, template, and imageset, and purge the cache!? and i wanted a link to your site or where ever you are doing this so i can take a look!
Re: Adding link and icon in header
hey frnz, I have done all things again and also refresh and remove all cash from ACP. but still not getting any button... I have created icon gif file with 16X14 pix flat yellowish green color but cant see anything..
this is my url: http://pixelandgrain.net/forum/
pls help me
this is my url: http://pixelandgrain.net/forum/
pls help me