hi, there was actually no need to change the table names in the code as in the includes/constants everything is taking care of.Todesengel wrote:Great mod, I got it to work but I had some problems. Main problem was, your SQL says to create this table.
And then the mod is requesting this tableCode: Select all
CREATE TABLE `phpbb_announcement_centre`
All I had to do was change the name of the table in the codes. Is there anyway to add the annoucement to the overall_header?Code: Select all
ANNOUNCEMENTS_LEFTY74_TABLE',
Also my guests see the same message my reg users do, they are not seeing the announcement_guest_text when a guest is browsing. Any ideas on where I can start? I dug through the code as much as possible and I cannot figure out why it will not work. My SQL tables are updating with the information that I have put in the guest field. But it is not displaying it. Here is my code for the disply in index_body.tpl. (I am using the scrolling one I found on your site.)
Code: Select all
<!-- BEGIN announcement_displayed --> <table width="100%" cellpadding="0" cellspacing="0" border="1" class="forumline"> <tr> <th class="thCornerL" height="25" nowrap="nowrap"> {L_ANNOUNCEMENT} </th> </tr> <tr> <td class="row1" width="100%"><span class="gen"><marquee align="middle" behavior="scroll" direction="left" height="30" scrolldelay="100" scrollamount="8" loop="true" onmouseover="this.stop()" onmouseout="this.start()">{SITE_ANNOUNCEMENTS_LEFTY74}</marquee></span></td> </tr> </table><br /> <!-- END announcement_displayed --> <!-- BEGIN guest_announcement_displayed --> <table width="100%" cellpadding="0" cellspacing="0" border="0" class="forumline"> <tr> <th class="thCornerL" height="25" nowrap="nowrap"> {L_ANNOUNCEMENT} </th> </tr> <tr> <td class="row1" width="100%"><span class="gen"><marquee align="middle" behavior="scroll" direction="left" height="30" scrolldelay="100" scrollamount="2" loop="true" onmouseover="this.stop()" onmouseout="this.start()">{GUEST_ANNOUNCEMENTS_LEFTY74}</marquee></span></td> </tr> </table><br /> <!-- END guest_announcement_displayed -->
Yes, it worked fine for me when I tested it with Easymod. However, I only tested it on Vanilla boards, not on heavily modded boards.Azbot wrote:can you intsall this with easy mod?
im new to easy mod and all sorts of installing even havinmg my own web page so i jst want stuff that installs the easy way!
and sum of the stuff ive downloaded has not worked from here
using easy mod!
Code: Select all
// BEGIN ACP Site Announcement Centre MOD lefty74
define('phpbb_announcement_centre_TABLE', $table_prefix.'phpbb_announcement_centre');
define('phpbb_announcement_centre_SHOW_ALL', 0);
define('phpbb_announcement_centre_SHOW_REG', 1);
define('phpbb_announcement_centre_SHOW_MOD', 2);
define('phpbb_announcement_centre_SHOW_ADM', 3);
define('phpbb_announcement_centre_SHOW_YES', 1);
define('phpbb_announcement_centre_SHOW_NO', 0);
define('phpbb_announcement_centre_GUEST_YES', 1);
define('phpbb_announcement_centre_GUEST_NO', 0);
define('phpbb_announcement_centre_FORUM_TOPIC_LATEST', 1);
define('phpbb_announcement_centre_FORUM_TOPIC_FIRST', 0);
// END ACP Site Announcement Centre MOD lefty74
that worked at the timelefty74 wrote: Hi,
I had a quick look at integramod, i noticed they have a subfolder called modules in the admin folder.
You could try to create a file called admin_announcement_centre.php with the follwoing contents and stick it in there.If that does not work I recommend to ask on the integramod site, they probably know the answer straight away. This does not mean I don't want to help, just that they will probably more capable in helping.Code: Select all
<?php /*************************************************************************** * admin_announcement_centre.php * ------------------- * begin : Sunday, Feb 25, 2007 * last modified : Monday, May 7, 2007 * copyright : (C) lefty74 * email : [email protected] * * * * ***************************************************************************/ if( !empty($setmodules) ) { $file = basename(__FILE__); $module['General']['Announcements'] = $file; return; } ?>
cheers
lefty
sorry, what is it you are looking for? easymod?Bohauo wrote:i have looked for it and i can't find it... i have seached here and on the site where i first got your mod but as i said i can't find it, would you be so kind to add a link to it or something like that???