Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
[Solved] ACP Site Announcement Centre mod problem on index
Post new topic   Reply to topic View previous topic :: View next topic
Goto page: 1, 2, 3  Next
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
[Solved] ACP Site Announcement Centre mod problem on index
PostPosted: 06/07/2007 6:00 AM Reply with quote
Citation
~^Karen^~
Citation
Posts 556
Word Cnt. 20,326
BDay Jan 26
Sign Aquarius
Sex Sex:Female
Joined: Nov 26, 2006
Local time: 5:40 PM
Location: west midlands:uk
greatbrE.gif
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
View user's profile Find all posts by ~^Karen^~ Send private message   Visit poster's website Yahoo Messenger MSN Messenger
Re: [Solved] ACP Site Announcement Centre mod problem on index
PostPosted: 06/07/2007 7:45 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 5:40 PM
Location: Birmingham, UK.
greatbrE.gif
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
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: [Solved] ACP Site Announcement Centre mod problem on index
PostPosted: 06/07/2007 1:00 PM Reply with quote
Citation
~^Karen^~
Citation
Posts 556
Word Cnt. 20,326
BDay Jan 26
Sign Aquarius
Sex Sex:Female
Joined: Nov 26, 2006
Local time: 5:40 PM
Location: west midlands:uk
greatbrE.gif
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
View user's profile Find all posts by ~^Karen^~ Send private message   Visit poster's website Yahoo Messenger MSN Messenger
Re: [Solved] ACP Site Announcement Centre mod problem on index
PostPosted: 06/07/2007 1:04 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 5:40 PM
Location: Birmingham, UK.
greatbrE.gif
Ok, well Nightrider will know what "Cannot redeclare multi_bbcode()" means...

I wanna know too Laughing
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: [Solved] ACP Site Announcement Centre mod problem on index
PostPosted: 06/07/2007 1:25 PM Reply with quote
Citation
~^Karen^~
Citation
Posts 556
Word Cnt. 20,326
BDay Jan 26
Sign Aquarius
Sex Sex:Female
Joined: Nov 26, 2006
Local time: 5:40 PM
Location: west midlands:uk
greatbrE.gif
lol  banana
Back to Top
View user's profile Find all posts by ~^Karen^~ Send private message   Visit poster's website Yahoo Messenger MSN Messenger
Re: ACP Site Announcement Centre mod problem on index
PostPosted: 06/07/2007 9:09 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 12:40 PM
Location: St Pete, FL
peace.gif
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...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] ACP Site Announcement Centre mod problem on index
PostPosted: 06/08/2007 9:06 AM Reply with quote
Citation
~^Karen^~
Citation
Posts 556
Word Cnt. 20,326
BDay Jan 26
Sign Aquarius
Sex Sex:Female
Joined: Nov 26, 2006
Local time: 5:40 PM
Location: west midlands:uk
greatbrE.gif
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
View user's profile Find all posts by ~^Karen^~ Send private message   Visit poster's website Yahoo Messenger MSN Messenger
Re: [Solved] ACP Site Announcement Centre mod problem on index
PostPosted: 06/08/2007 1:41 PM Reply with quote
Citation
~^Karen^~
Citation
Posts 556
Word Cnt. 20,326
BDay Jan 26
Sign Aquarius
Sex Sex:Female
Joined: Nov 26, 2006
Local time: 5:40 PM
Location: west midlands:uk
greatbrE.gif
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
View user's profile Find all posts by ~^Karen^~ Send private message   Visit poster's website Yahoo Messenger MSN Messenger
Re: ACP Site Announcement Centre mod problem on index
PostPosted: 06/08/2007 3:35 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 12:40 PM
Location: St Pete, FL
peace.gif
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...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] ACP Site Announcement Centre mod problem on index
PostPosted: 06/08/2007 4:20 PM Reply with quote
Citation
~^Karen^~
Citation
Posts 556
Word Cnt. 20,326
BDay Jan 26
Sign Aquarius
Sex Sex:Female
Joined: Nov 26, 2006
Local time: 5:40 PM
Location: west midlands:uk
greatbrE.gif
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
View user's profile Find all posts by ~^Karen^~ Send private message   Visit poster's website Yahoo Messenger MSN Messenger
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours
Goto page: 1, 2, 3  Next
Page 1 of 3


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.0934s (PHP: 56% - SQL: 44%) - SQL queries: 58 - GZIP disabled - Debug on