 | [Solved] Shoutbox mod |  |
Posted: 07/05/2007 8:35 AM |
|
|
|
|
|
| Citation |
| Posts |
556 |
| Word Cnt. |
20,326 |
| BDay |
Jan 26 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Nov 26, 2006
Local time: 9:45 PM
Location: west midlands:uk
|

|
|
|
|
 |
Hey nightrider,
Is there a chance i could add the shoutbox on every page of my forum? It is getting used quite often now coz i use it for competitions etc and it would be great if it could be on every page so members dont have to keep going back to the index page.... |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Shoutbox mod |  |
Posted: 07/05/2007 4:49 PM |
|
|
|
|
|
| Citation |
| Posts |
1017 |
| Word Cnt. |
64,643 |
| BDay |
Apr 18 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Apr 01, 2007
Local time: 12:45 AM
Location: UNITED ARAB EMIRATES
|

|
|
|
|
 |
Yes, you can add it. Simply copy the shoutbox code from templates/subSilver/index_body.tpl file and paste it into templates/subSilver/overall_header.tpl file.
If you don't get it, just give me your templates/subSilver/index_body.tpl code and overall_header.tpl code and I will make it for you.
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Shoutbox mod |  |
Posted: 07/06/2007 7:48 AM |
|
|
|
|
|
| Citation |
| Posts |
556 |
| Word Cnt. |
20,326 |
| BDay |
Jan 26 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Nov 26, 2006
Local time: 9:45 PM
Location: west midlands:uk
|

|
|
|
|
 |
ok, i did do this for something else but it never worked then nightrider sorted it for me, il give it ago later on and il let you know if it works or not!
Thanks  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Shoutbox mod |  |
Posted: 07/06/2007 3:21 PM |
|
|
|
|
|
| Citation |
| Posts |
556 |
| Word Cnt. |
20,326 |
| BDay |
Jan 26 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Nov 26, 2006
Local time: 9:45 PM
Location: west midlands:uk
|

|
|
|
|
 |
Hey...
Iv tried this mate, the shout box is there but its just all white, no messages can be wrote in there, iv tried this on my test forum:
http://toddlersandbabies.co.uk/test/index.php You'l probably have to join though, as i think nightrider wont be around for a while! |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Shoutbox mod |  |
Posted: 07/06/2007 4:01 PM |
|
|
|
|
|
| Citation |
| Posts |
1017 |
| Word Cnt. |
64,643 |
| BDay |
Apr 18 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Apr 01, 2007
Local time: 12:45 AM
Location: UNITED ARAB EMIRATES
|

|
|
|
|
 |
oOps!
For this complete empty shoutbox, i cannot do anything!  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Shoutbox mod |  |
Posted: 07/07/2007 4:32 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 4:45 PM
Location: St Pete, FL
|

|
|
|
|
 |
If you added the Shoutbox to the Overall Header, then you will have to add the code that you added to the index.php file into the includes/page_header.php file too to get this to work...
OPEN
includes/page_header.php
FIND
| Code:
|
|
'PRIVMSG_IMG' => $icon_pm,
|
AFTER, ADD
| Code:
|
// Start add - Fully integrated shoutbox MOD
'U_SHOUTBOX' => append_sid("shoutbox.$phpEx"),
'L_SHOUTBOX' => $lang['Shoutbox'],
'U_SHOUTBOX_MAX' => append_sid("shoutbox_max.$phpEx"),
// End add - Fully integrated shoutbox MOD
|
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Shoutbox mod |  |
Posted: 07/07/2007 5:21 AM |
|
|
|
|
|
| Citation |
| Posts |
1017 |
| Word Cnt. |
64,643 |
| BDay |
Apr 18 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Apr 01, 2007
Local time: 12:45 AM
Location: UNITED ARAB EMIRATES
|

|
|
|
|
 |
Ahaan. I thought we should add the code only in overall_header.tpl  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Shoutbox mod |  |
Posted: 07/07/2007 6:28 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 4:45 PM
Location: St Pete, FL
|

|
|
|
|
 |
That would have worked if the original MOD had added the code to the page_header.php file. Then many other files could see the settings too. But in this case, the MOD added the code to the index.php file, so ONLY the index_body.tpl file could see the settings. Since the shoutbox code was moved to the overall_header.tpl file, then the code need to also be added to the page_header.php file so that the overall_header.tpl file could see the settings...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Shoutbox mod |  |
Posted: 07/07/2007 6:58 AM |
|
|
|
|
|
| Citation |
| Posts |
1017 |
| Word Cnt. |
64,643 |
| BDay |
Apr 18 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Apr 01, 2007
Local time: 12:45 AM
Location: UNITED ARAB EMIRATES
|

|
|
|
|
 |
Ah, I see.
Thanks for making me understand so that I can be careful next time. |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Shoutbox mod |  |
Posted: 07/07/2007 8:03 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 4:45 PM
Location: St Pete, FL
|

|
|
|
|
 |
Well if you forget and run into a similar problem in the future, I imagine that you will be more likely to remember this discussion and be able to figure it out. The more you see it, the more obvious it will become...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|