 | [Solved] ACP Site Announcement Centre mod problem on index |  |
Posted: 06/07/2007 6:00 AM |
|
|
|
|
|
| Citation |
| Posts |
556 |
| Word Cnt. |
20,326 |
| BDay |
Jan 26 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Nov 26, 2006
Local time: 5:40 PM
Location: west midlands:uk
|

|
|
|
|
 |
I just installed this mod and i get this error on index:
| Code:
|
|
Fatal error: Cannot redeclare multi_bbcode() (previously declared in /home/toddlers/public_html/test/includes/bbcode.php:37) in /home/toddlers/public_html/test/includes/bbcode.php on line 35
|
|
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] ACP Site Announcement Centre mod problem on index |  |
Posted: 06/07/2007 7:45 AM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 5:40 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
Did you install the beta version? If you did then that maybe why you're getting errors. The BETA versions are for the advanced developers.
If you installed the standard version I doubt you'd come into any errors
at a guess this is though
This one should work ok
[code]##############################################################
## MOD Title: ACP Site Announcement Centre
## MOD Author: lefty74 < > (Heiko Carstens) http://www.lefty74.com
## MOD Description: Adds a site announcement box to the top of your forums that can be edited easily in the admin panel.
## Admin can choose who should see the Site Announcements (All, Registered, Mods, Admin only)
## Separate announcements for guests only can be shown
## MOD Version: 1.1.1
##
## Installation Level: Easy
## Installation Time: 16 minutes
## Files To Edit: common.php
## index.php
## posting.php
## language/lang_english/lang_main.php
## language/lang_english/lang_admin.php
## includes/bbcode.php
## includes/constants.php
## includes/functions_post.php
## includes/page_header.php
## templates/subSilver/index_body.tpl
## Included Files: admin/admin_announcement_centre.php
## templates/subSilver/posting_smilies_announcement_centre_text.tpl
## templates/subSilver/admin/announcement_centre_config_body.tpl
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
## Generator: Phpbb.ModTeam.Tools
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
## This mod was initially based on the News Block Mod v.1.0.4 and improved up to v1.3.1 by me
## The original author has decided to continue to develop his mod from his old version v1.0.4
## so I am releasing this mod on its own since I do not want to downgrade back to 1.0.4
## Thanks to dannyscats for the original idea of this Mod
##############################################################
## MOD History:
##
## 2007-02-05 - Version 0.0.1
## - Mod created (initially based on News Block Mod)
##
## 2007-02-07 - Version 0.0.2
## - Added some more constants
##
## 2007-02-25 - Version 1.0.0
## - rewritten most of the code and created as ACP Site Announcement Centre
##
## 2007-03-11 - Version 1.1.0
## - added a Preview box in the ACP, many thanks to eviL<3 for allowing me to use his code for bbcode.php
##
## 2007-03-12 - Version 1.1.1
## - fixed bug in preview
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
############################################################## |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] ACP Site Announcement Centre mod problem on index |  |
Posted: 06/07/2007 1:00 PM |
|
|
|
|
|
| Citation |
| Posts |
556 |
| Word Cnt. |
20,326 |
| BDay |
Jan 26 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Nov 26, 2006
Local time: 5:40 PM
Location: west midlands:uk
|

|
|
|
|
 |
| Yea its the standard one iv got iv just checked, i tried to av a look at the coding earlier but nothing seemed to work, so i gave up as i dont wanna mess things up so i put it back as it was!! |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] ACP Site Announcement Centre mod problem on index |  |
Posted: 06/07/2007 1:04 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 5:40 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
Ok, well Nightrider will know what "Cannot redeclare multi_bbcode()" means...
I wanna know too  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] ACP Site Announcement Centre mod problem on index |  |
Posted: 06/07/2007 1:25 PM |
|
|
|
|
|
| Citation |
| Posts |
556 |
| Word Cnt. |
20,326 |
| BDay |
Jan 26 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Nov 26, 2006
Local time: 5:40 PM
Location: west midlands:uk
|

|
|
|
|
 |
lol  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: ACP Site Announcement Centre mod problem on index |  |
Posted: 06/07/2007 9:09 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 12:40 PM
Location: St Pete, FL
|

|
|
|
|
 |
The reason why this is happening is because the includes/bbcode.php file has been included twice. This MOD adds an include for the bbcode.php file to the index.php file. So try this and see if it corrects your problem...
OPEN
index.php
FIND
| Code:
|
|
include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
|
REPLACE WITH
| Code:
|
|
include_once($phpbb_root_path . 'includes/bbcode.'.$phpEx);
|
Actually, if you see the first line from the FIND above near the top of the index.php file, you can delete the added include code from this MOD. You only need one include to the bbcode.php file and I think another MOD, such as the Smilies Invasion MOD, already added it to the index.php file...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] ACP Site Announcement Centre mod problem on index |  |
Posted: 06/08/2007 9:06 AM |
|
|
|
|
|
| Citation |
| Posts |
556 |
| Word Cnt. |
20,326 |
| BDay |
Jan 26 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Nov 26, 2006
Local time: 5:40 PM
Location: west midlands:uk
|

|
|
|
|
 |
Thats sorted i did it on my live forum coz i had problems on my test forum, i did summat cant remember what though, coz i thought summat was up with the forum and it turned out to be just my server coz nothing would work on my live forum neither, but i get this error on my test forum, iv tried to sort it, but i may have made things worse, so be prepared lol:
| Code:
|
|
Parse error: syntax error, unexpected T_IF in /home/toddlers/public_html/test/includes/constants_arcade.php on line 1
|
|
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] ACP Site Announcement Centre mod problem on index |  |
Posted: 06/08/2007 1:41 PM |
|
|
|
|
|
| Citation |
| Posts |
556 |
| Word Cnt. |
20,326 |
| BDay |
Jan 26 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Nov 26, 2006
Local time: 5:40 PM
Location: west midlands:uk
|

|
|
|
|
 |
wohooooooo i sorte dit myself lol!! I'm getting good at this!!!
Its a bit of a shame that the acp announcement mod or the news block dont show up all the forum pages, it would be pretty cool of it wasnt just the index page, wonder if anyone has thought of that lol |
|
|
 |
 |
| Back to Top |
|
|
 | Re: ACP Site Announcement Centre mod problem on index |  |
Posted: 06/08/2007 3:35 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 12:40 PM
Location: St Pete, FL
|

|
|
|
|
 |
If you want this to display on every page rather than just the index page, you could probably remove the code added to the index.php and index_body.tpl files and add it to the page_header.php and overall_header.tpl files instead. That would make it so that this is a Global Announement MOD. I can help you with that if you need assistance...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] ACP Site Announcement Centre mod problem on index |  |
Posted: 06/08/2007 4:20 PM |
|
|
|
|
|
| Citation |
| Posts |
556 |
| Word Cnt. |
20,326 |
| BDay |
Jan 26 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Nov 26, 2006
Local time: 5:40 PM
Location: west midlands:uk
|

|
|
|
|
 |
| ah cool i could do that, think it should be quite simple, il av a go at it maybe after the weekend as im a bit busy until then! I like trying new things out too! Still cant get over how i managed to fix problems out myself earlier lol, im getting good at finding them now though!! |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|