ACP Announcement Centre

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Locked
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: ACP Announcement Centre

Post by lefty74 »

Unleashedkb wrote:
Unleashedkb wrote:well i installed this mod on 3.0.4. The installation went right. I am able to even submit the annoucement but I am not able to see the annoucement.

If anyone could guide this to me then it would be great.
could any1 help me pls?
i already replied to you ;)
Matthew1992 wrote: Site = http://www.advertisingcentral.org


EDIT

It is now appearing.
Still trying to figure out how to change the width of the forum.

Also,
My administrator tabs seem to be faded. Here is two screenshots. Advertising Central is my forum, and Marie1988 is a forum I am a staff member at.

Marie1988

Image

Advertising Central

Image
for the width, look in announcement_centre.html

find

Code: Select all

	<div style="margin: 10px 25px 0 25px;">
replace with

Code: Select all

	<div>
alternatively, you can upgrade to version 1.0.4 (you can find this version in the development forum) and then just use the black pearl version of the announcement_centre.html that i have already provided.

the question on your tabs i am more then confident that this has nothing to do with my mod.
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.

Matthew1992
Registered User
Posts: 43
Joined: Tue Jan 13, 2009 12:14 am

Re: ACP Announcement Centre

Post by Matthew1992 »

Matthew1992 wrote: Site = http://www.advertisingcentral.org


EDIT

It is now appearing.
Still trying to figure out how to change the width of the forum.

Also,
My administrator tabs seem to be faded. Here is two screenshots. Advertising Central is my forum, and Marie1988 is a forum I am a staff member at.

Marie1988

Image

Advertising Central

Image
for the width, look in announcement_centre.html

find

Code: Select all

	<div style="margin: 10px 25px 0 25px;">
replace with

Code: Select all

	<div>
alternatively, you can upgrade to version 1.0.4 (you can find this version in the development forum) and then just use the black pearl version of the announcement_centre.html that i have already provided.

the question on your tabs i am more then confident that this has nothing to do with my mod.[/quote]

Hi Lefty,
Thank you for your prompt, reply. Are you able to provide me the appropriate links for the upgrade and black pearl version?

Thanks,
Matt

User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: ACP Announcement Centre

Post by lefty74 »

here it is:
http://www.phpbb.com/community/viewtopi ... &t=1195735

re. the style, it is mentioned in teh topic
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.

fr34k123
Registered User
Posts: 28
Joined: Mon Nov 24, 2008 4:09 pm

Re: ACP Announcement Centre

Post by fr34k123 »

Hi,

I downloaded your mod and it work brilliantly :)

I did have some problems when it comes to intsllation, specifically the SQL inserts (i used automod) - but since you provided the sql inserts - everything went smoothly.

Im using the PrototypeV2 * style which i believe is based on Subsilver 2.

Problem i have is the positioning of the announcement block on the index page and also it's width. When enabled the block is not following the rest of the themes width dimensions:

Image

The positioning issue is one when i'd like the annoucement block to be positioned just underneath my theme menu buttons (above the current date and time last visited text). I'm not very good with code, and cannot get it to position itself just underneath the menu bar without it messing up:

Image

Here is my theme's overall_header.html code:

Code: Select all

<!-- ENDIF -->

// ]]>
</script>
</head>
<body class="{S_CONTENT_DIRECTION}">

<a name="top"></a>

<a name="top"></a>


<div id="wrapheader">

	<div id="menubar">
		<table width="100%" height="60" cellspacing="0" valign="middle">
		<tr>
			<td class="genmed" valign="middle" height="60">
				<!-- IF not S_IS_BOT --><a href="{U_LOGIN_LOGOUT}" class="genmenu">{L_LOGIN_LOGOUT}</a>&nbsp;<!-- ENDIF -->
				<!-- IF U_RESTORE_PERMISSIONS --> &nbsp;<a href="{U_RESTORE_PERMISSIONS}" class="genmenu">{L_RESTORE_PERMISSIONS}</a><!-- ENDIF -->
				<!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN --> &nbsp;<span style="color: red;">{L_BOARD_DISABLED}</span><!-- ENDIF -->
				<!-- IF not S_IS_BOT -->
					<!-- IF S_USER_LOGGED_IN -->
						<!-- IF S_DISPLAY_PM --> &nbsp;<a href="{U_PRIVATEMSGS}" class="genmenu">{PRIVATE_MESSAGE_INFO}<!-- IF PRIVATE_MESSAGE_INFO_UNREAD -->, {PRIVATE_MESSAGE_INFO_UNREAD}<!-- ENDIF --></a><!-- ENDIF -->
					<!-- ELSE --> &nbsp;<a href="{U_REGISTER}" class="genmenu">{L_REGISTER}</a>
					<!-- ENDIF -->
				<!-- ENDIF -->
			</td>
			<td class="genmed" align="{S_CONTENT_FLOW_END}">
				<a href="{U_FAQ}" class="genmenu">{L_FAQ}</a>
				<!-- IF S_DISPLAY_SEARCH -->&nbsp; &nbsp;<a href="{U_SEARCH}" class="genmenu">{L_SEARCH}</a><!-- ENDIF -->
				<!-- IF not S_IS_BOT -->
					<!-- IF S_DISPLAY_MEMBERLIST -->&nbsp; &nbsp;<a href="{U_MEMBERLIST}" class="genmenu">{L_MEMBERLIST}</a><!-- ENDIF -->
					<!-- IF S_USER_LOGGED_IN -->&nbsp; &nbsp;<a href="{U_PROFILE}" class="genmenu">{L_PROFILE}</a><!-- ENDIF -->
				<!-- ENDIF -->
			</td>
		</tr>
		</table>
	</div>

	<div id="logodesc">
		<table width="100%" cellspacing="0">
		<tr>
			<td colspan="2"><a href="{U_INDEX}">{SITE_LOGO_IMG}</a></td>

		</tr>		
		</table>	
	</div>	

	<div id="xtramenu">
	  <table width="100%" height="25" cellspacing="0">
		  <tr>
		    <td align="left">
			    <a href="" class="genmenu">Forum Home</a>&nbsp;&nbsp;
			    <a href="" class="genmenu">PCFrags Home</a>&nbsp;&nbsp;
		    	<a href="" class="genmenu">Our Reviews</a>
		    </td>
				<td align="right">
		    	<b>Links | </b>&nbsp;&nbsp;
		    	<a href="" class="genmenu"><img src="{T_THEME_PATH}/images/arrow.png" width="4" height="7" alt="*" /> Krystal</a>&nbsp;&nbsp;
		    	<a href="" class="genmenu"><img src="{T_THEME_PATH}/images/arrow.png" width="4" height="7" alt="*" /> Body1</a>&nbsp;&nbsp;
		    	<a href="" class="genmenu"><img src="{T_THEME_PATH}/images/arrow.png" width="4" height="7" alt="*" /> ClanThemes</a>&nbsp;&nbsp;
		    	<!-- Example Link <a href="http://www.yoursite.com/musicplayerfile.html" rel="popup console 200 200 noicon" class="genmenu"><img src="{T_THEME_PATH}/images/arrow.png" width="4" height="7" alt="*" /> Example</a> -->
		   	</td>																		
	  	</tr>
		</table>
	</div>
		<div id="datebar">
		<table width="100%" cellspacing="0">
		<tr>
			<td class="gensmall"><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ENDIF --></td>
			<td class="gensmall" align="{S_CONTENT_FLOW_END}">{CURRENT_TIME}<br /></td>
		</tr>
		</table>
	</div>
</div>


<div id="wrapcentre">

	<!-- IF S_DISPLAY_SEARCH -->
	<p class="searchbar">
		<span style="float: {S_CONTENT_FLOW_BEGIN};"><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a> | <a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a></span>
		<!-- IF S_USER_LOGGED_IN -->
		<span style="float: {S_CONTENT_FLOW_END};"><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a> | <a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></span>
		<!-- ENDIF -->
	</p>
	<!-- ENDIF -->					

	<br style="clear: both;" />

	<!-- INCLUDE breadcrumbs.html -->
<!-- INCLUDE announcement_centre.html -->	<br />


	<br />
I know that it's probably a really easy fix, but with me being a complete noob, i'm unsure of the exact code that should be added (if any) and where!!!

Any help for a coding noob is greatly appreciated :)

User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: ACP Announcement Centre

Post by lefty74 »

you can try this

Code: Select all

<!-- ENDIF -->

// ]]>
</script>
</head>
<body class="{S_CONTENT_DIRECTION}">

<a name="top"></a>

<a name="top"></a>


<div id="wrapheader">

   <div id="menubar">
	  <table width="100%" height="60" cellspacing="0" valign="middle">
	  <tr>
		 <td class="genmed" valign="middle" height="60">
			<!-- IF not S_IS_BOT --><a href="{U_LOGIN_LOGOUT}" class="genmenu">{L_LOGIN_LOGOUT}</a>&nbsp;<!-- ENDIF -->
			<!-- IF U_RESTORE_PERMISSIONS --> &nbsp;<a href="{U_RESTORE_PERMISSIONS}" class="genmenu">{L_RESTORE_PERMISSIONS}</a><!-- ENDIF -->
			<!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN --> &nbsp;<span style="color: red;">{L_BOARD_DISABLED}</span><!-- ENDIF -->
			<!-- IF not S_IS_BOT -->
			   <!-- IF S_USER_LOGGED_IN -->
				  <!-- IF S_DISPLAY_PM --> &nbsp;<a href="{U_PRIVATEMSGS}" class="genmenu">{PRIVATE_MESSAGE_INFO}<!-- IF PRIVATE_MESSAGE_INFO_UNREAD -->, {PRIVATE_MESSAGE_INFO_UNREAD}<!-- ENDIF --></a><!-- ENDIF -->
			   <!-- ELSE --> &nbsp;<a href="{U_REGISTER}" class="genmenu">{L_REGISTER}</a>
			   <!-- ENDIF -->
			<!-- ENDIF -->
		 </td>
		 <td class="genmed" align="{S_CONTENT_FLOW_END}">
			<a href="{U_FAQ}" class="genmenu">{L_FAQ}</a>
			<!-- IF S_DISPLAY_SEARCH -->&nbsp; &nbsp;<a href="{U_SEARCH}" class="genmenu">{L_SEARCH}</a><!-- ENDIF -->
			<!-- IF not S_IS_BOT -->
			   <!-- IF S_DISPLAY_MEMBERLIST -->&nbsp; &nbsp;<a href="{U_MEMBERLIST}" class="genmenu">{L_MEMBERLIST}</a><!-- ENDIF -->
			   <!-- IF S_USER_LOGGED_IN -->&nbsp; &nbsp;<a href="{U_PROFILE}" class="genmenu">{L_PROFILE}</a><!-- ENDIF -->
			<!-- ENDIF -->
		 </td>
	  </tr>
	  </table>
   </div>

   <div id="logodesc">
	  <table width="100%" cellspacing="0">
	  <tr>
		 <td colspan="2"><a href="{U_INDEX}">{SITE_LOGO_IMG}</a></td>

	  </tr>      
	  </table>   
   </div>   

   <div id="xtramenu">
	 <table width="100%" height="25" cellspacing="0">
		<tr>
		  <td align="left">
			 <a href="" class="genmenu">Forum Home</a>&nbsp;&nbsp;
			 <a href="" class="genmenu">PCFrags Home</a>&nbsp;&nbsp;
			 <a href="" class="genmenu">Our Reviews</a>
		  </td>
			<td align="right">
			 <b>Links | </b>&nbsp;&nbsp;
			 <a href="" class="genmenu"><img src="{T_THEME_PATH}/images/arrow.png" width="4" height="7" alt="*" /> Krystal</a>&nbsp;&nbsp;
			 <a href="" class="genmenu"><img src="{T_THEME_PATH}/images/arrow.png" width="4" height="7" alt="*" /> Body1</a>&nbsp;&nbsp;
			 <a href="" class="genmenu"><img src="{T_THEME_PATH}/images/arrow.png" width="4" height="7" alt="*" /> ClanThemes</a>&nbsp;&nbsp;
			 <!-- Example Link <a href="http://www.yoursite.com/musicplayerfile.html" rel="popup console 200 200 noicon" class="genmenu"><img src="{T_THEME_PATH}/images/arrow.png" width="4" height="7" alt="*" /> Example</a> -->
			</td>                                                      
		</tr>
	  </table>
   </div>
<!-- INCLUDE announcement_centre.html -->
	  <div id="datebar">
	  <table width="100%" cellspacing="0">
	  <tr>
		 <td class="gensmall"><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ENDIF --></td>
		 <td class="gensmall" align="{S_CONTENT_FLOW_END}">{CURRENT_TIME}<br /></td>
	  </tr>
	  </table>
   </div>
</div>


<div id="wrapcentre">

   <!-- IF S_DISPLAY_SEARCH -->
   <p class="searchbar">
	  <span style="float: {S_CONTENT_FLOW_BEGIN};"><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a> | <a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a></span>
	  <!-- IF S_USER_LOGGED_IN -->
	  <span style="float: {S_CONTENT_FLOW_END};"><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a> | <a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></span>
	  <!-- ENDIF -->
   </p>
   <!-- ENDIF -->               

   <br style="clear: both;" />

   <!-- INCLUDE breadcrumbs.html -->
   <br />


   <br />
fr34k123 wrote:Problem i have is the positioning of the announcement block on the index page and also it's width. When enabled the block is not following the rest of the themes width dimensions:
lefty74 wrote:for the width, look in announcement_centre.html

find

Code: Select all

       <div style="margin: 10px 25px 0 25px;">


replace with

Code: Select all

       <div>
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.

fr34k123
Registered User
Posts: 28
Joined: Mon Nov 24, 2008 4:09 pm

Re: ACP Announcement Centre

Post by fr34k123 »

Hi
thanks for the quick reply.

I already tried the edit you provided, but this is the result:

Image

There must be more code needed to make it align correctly - question is - what code?

Thanks for your help - it's greatly appreciated :)

fr34k123
Registered User
Posts: 28
Joined: Mon Nov 24, 2008 4:09 pm

Re: ACP Announcement Centre

Post by fr34k123 »

lefty74 wrote:for the width, look in announcement_centre.html

find

Code: Select all

       <div style="margin: 10px 25px 0 25px;">


replace with

Code: Select all

       <div>

I tried the above edit - refreshed the template, purged the cache - and no change :(

code after edit:

Code: Select all

<!-- IF ANNOUNCEMENT_ENABLE-->
	<!-- IF ANNOUNCEMENT_ENABLE_GUESTS and not S_USER_LOGGED_IN and not ANNOUNCEMENT_SHOW_EVERYONE and not ANNOUNCEMENT_SHOW or ANNOUNCEMENT_SHOW-->
	 <div>
		<table width="100%" class="tablebg" cellspacing="1" >
			<tr>
				<th>
				<!-- IF ANNOUNCEMENT_ENABLE_GUESTS and not S_USER_LOGGED_IN and not ANNOUNCEMENT_SHOW_EVERYONE and not ANNOUNCEMENT_SHOW-->
					<!-- IF ANNOUNCEMENT_TITLE_GUESTS -->{ANNOUNCEMENT_TITLE_GUESTS} <!-- ELSE --> {L_ANNOUNCEMENT_TITLE_GUESTS}<!-- ENDIF -->
					<!-- ELSEIF ANNOUNCEMENT_SHOW-->
					<!-- IF ANNOUNCEMENT_TITLE --> {ANNOUNCEMENT_TITLE} <!-- ELSE --> {L_ANNOUNCEMENT_TITLE}<!-- ENDIF -->
				<!-- ENDIF -->
				</th>
			</tr>
			<tr>

User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: ACP Announcement Centre

Post by lefty74 »

Code: Select all

		<br style="clear: both;" />
	<!-- INCLUDE announcement_centre.html -->

	
	<div id="datebar">
try this in overall_header.html

for announcement_centre.html

try

Code: Select all

	<div style="margin: 10px 0px 0 0px;">
i have this for version 1.1.4 and works ok
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.

fr34k123
Registered User
Posts: 28
Joined: Mon Nov 24, 2008 4:09 pm

Re: ACP Announcement Centre

Post by fr34k123 »

lefty74 wrote:

Code: Select all

		<br style="clear: both;" />
	<!-- INCLUDE announcement_centre.html -->

	
	<div id="datebar">
try this in overall_header.html
I tried this code and i still get the same results whereby it overlaps the text beneath :(
lefty74 wrote: for announcement_centre.html

try

Code: Select all

	<div style="margin: 10px 0px 0 0px;">
i have this for version 1.1.4 and works ok
I tried that code - and the width has now changed to match the forum boards :)

I'm still confused when it comes to the positioning and why it keeps overlapping the text beneath

User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: ACP Announcement Centre

Post by lefty74 »

here is what mine looks like
http://screencast.com/t/kCkItOpUBjV

and this is the overall_header.html for it

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">
<head>

<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="resource-type" content="document" />
<meta name="distribution" content="global" />
<meta name="copyright" content="2000, 2002, 2005, 2007 phpBB Group" />
<meta name="keywords" content="" />
<meta name="description" content="" />
{META}
<title>{SITENAME} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>

<link rel="stylesheet" href="{T_STYLESHEET_LINK}" type="text/css" />

<script language="JavaScript" src="styles/PrototypeV2/template/motionpack.js"></script>

<script type="text/javascript" src="styles/PrototypeV2/template/add-event.js"></script>
<script type="text/javascript" src="styles/PrototypeV2/template/popup.js"></script>

<!--[if lt IE 7]>
<script language="JavaScript">
function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6.
{
   var arVersion = navigator.appVersion.split("MSIE")
   var version = parseFloat(arVersion[1])
   if ((version >= 5.5) && (document.body.filters))
   {
      for(var i=0; i<document.images.length; i++)
      {
         var img = document.images[i]
         var imgName = img.src.toUpperCase()
         if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
         {
            var imgID = (img.id) ? "id='" + img.id + "' " : ""
            var imgClass = (img.className) ? "class='" + img.className + "' " : ""
            var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
            var imgStyle = "display:inline-block;" + img.style.cssText
            if (img.align == "left") imgStyle = "float:left;" + imgStyle
            if (img.align == "right") imgStyle = "float:right;" + imgStyle
            if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
            var strNewHTML = "<span " + imgID + imgClass + imgTitle
            + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
            + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
            + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
            img.outerHTML = strNewHTML
            i = i-1
         }
      }
   }   
}
window.attachEvent("onload", correctPNG);
</script>
<![endif]-->

<script type="text/javascript">
// <![CDATA[
<!-- IF S_USER_PM_POPUP -->
	if ({S_NEW_PM})
	{
		popup('{UA_POPUP_PM}', 400, 225, '_phpbbprivmsg');
	}
<!-- ENDIF -->

function popup(url, width, height, name)
{
	if (!name)
	{
		name = '_popup';
	}

	window.open(url.replace(/&/g, '&'), name, 'height=' + height + ',resizable=yes,scrollbars=yes,width=' + width);
	return false;
}

function jumpto()
{
	var page = prompt('{LA_JUMP_PAGE}:', '{ON_PAGE}');
	var perpage = '{PER_PAGE}';
	var base_url = '{A_BASE_URL}';

	if (page !== null && !isNaN(page) && page > 0)
	{
		document.location.href = base_url.replace(/&/g, '&') + '&start=' + ((page - 1) * perpage);
	}
}

/**
* Find a member
*/
function find_username(url)
{
	popup(url, 760, 570, '_usersearch');
	return false;
}

/**
* Mark/unmark checklist
* id = ID of parent container, name = name prefix, state = state [true/false]
*/
function marklist(id, name, state)
{
	var parent = document.getElementById(id);
	if (!parent)
	{
		eval('parent = document.' + id);
	}

	if (!parent)
	{
		return;
	}

	var rb = parent.getElementsByTagName('input');
	
	for (var r = 0; r < rb.length; r++)
	{
		if (rb[r].name.substr(0, name.length) == name)
		{
			rb[r].checked = state;
		}
	}
}

<!-- IF ._file -->

	/**
	* Play quicktime file by determining it's width/height
	* from the displayed rectangle area
	*
	* Only defined if there is a file block present.
	*/
	function play_qt_file(obj)
	{
		var rectangle = obj.GetRectangle();

		if (rectangle)
		{
			rectangle = rectangle.split(',')
			var x1 = parseInt(rectangle[0]);
			var x2 = parseInt(rectangle[2]);
			var y1 = parseInt(rectangle[1]);
			var y2 = parseInt(rectangle[3]);

			var width = (x1 < 0) ? (x1 * -1) + x2 : x2 - x1;
			var height = (y1 < 0) ? (y1 * -1) + y2 : y2 - y1;
		}
		else
		{
			var width = 200;
			var height = 0;
		}

		obj.width = width;
		obj.height = height + 16;

		obj.SetControllerVisible(true);

		obj.Play();
	}
<!-- ENDIF -->

// ]]>
</script>
</head>
<body class="{S_CONTENT_DIRECTION}">

<a name="top"></a>

<a name="top"></a>


<div id="wrapheader">

	<div id="menubar">
		<table width="100%" height="60" cellspacing="0" valign="middle">
		<tr>
			<td class="genmed" valign="middle" height="60">
				<!-- IF not S_IS_BOT --><a href="{U_LOGIN_LOGOUT}" class="genmenu">{L_LOGIN_LOGOUT}</a>&nbsp;<!-- ENDIF -->
				<!-- IF U_RESTORE_PERMISSIONS --> &nbsp;<a href="{U_RESTORE_PERMISSIONS}" class="genmenu">{L_RESTORE_PERMISSIONS}</a><!-- ENDIF -->
				<!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN --> &nbsp;<span style="color: red;">{L_BOARD_DISABLED}</span><!-- ENDIF -->
				<!-- IF not S_IS_BOT -->
					<!-- IF S_USER_LOGGED_IN -->
						<!-- IF S_DISPLAY_PM --> &nbsp;<a href="{U_PRIVATEMSGS}" class="genmenu">{PRIVATE_MESSAGE_INFO}<!-- IF PRIVATE_MESSAGE_INFO_UNREAD -->, {PRIVATE_MESSAGE_INFO_UNREAD}<!-- ENDIF --></a><!-- ENDIF -->
					<!-- ELSE --> &nbsp;<a href="{U_REGISTER}" class="genmenu">{L_REGISTER}</a>
					<!-- ENDIF -->
				<!-- ENDIF -->
			</td>
			<td class="genmed" align="{S_CONTENT_FLOW_END}">
				<a href="{U_FAQ}" class="genmenu">{L_FAQ}</a>
				<!-- IF S_DISPLAY_SEARCH -->&nbsp; &nbsp;<a href="{U_SEARCH}" class="genmenu">{L_SEARCH}</a><!-- ENDIF -->
				<!-- IF not S_IS_BOT -->
					<!-- IF S_DISPLAY_MEMBERLIST -->&nbsp; &nbsp;<a href="{U_MEMBERLIST}" class="genmenu">{L_MEMBERLIST}</a><!-- ENDIF -->
					<!-- IF S_USER_LOGGED_IN -->&nbsp; &nbsp;<a href="{U_PROFILE}" class="genmenu">{L_PROFILE}</a><!-- ENDIF -->
				<!-- ENDIF -->
			</td>
		</tr>
		</table>
	</div>

	<div id="logodesc">
		<table width="100%" cellspacing="0">
		<tr>
			<td><a href="{U_INDEX}">{SITE_LOGO_IMG}</a></td>
			<td width="100%" align="center"><h1>{SITENAME}</h1><span class="gen">{SITE_DESCRIPTION}</span></td>
		</tr>		
		</table>	
	</div>	

	<div id="xtramenu">
	  <table width="100%" height="25" cellspacing="0">
		  <tr>
		    <td align="left">
			    <a href="index.php" class="genmenu">Home</a>&nbsp;&nbsp;
			    <a href="#" class="genmenu">Menu Item 1</a>&nbsp;&nbsp;
		    	<a href="#" class="genmenu">Menu Item 2</a>&nbsp;&nbsp;
		    	<a href="#" class="genmenu">Menu Item 3</a>&nbsp;&nbsp;
		    	<a href="#" class="genmenu">Menu Item 4</a>&nbsp;&nbsp;
		    	<a href="#" class="genmenu">Menu Item 5</a>
		    </td>
				<td align="right">
		    	<b>Music Player | </b>&nbsp;&nbsp;
		    	<a href="#" class="genmenu"><img src="{T_THEME_PATH}/images/arrow.png" width="4" height="7" alt="*" /> Music 1</a>&nbsp;&nbsp;
		    	<a href="#" class="genmenu"><img src="{T_THEME_PATH}/images/arrow.png" width="4" height="7" alt="*" /> Music 2</a>&nbsp;&nbsp;
		    	<a href="#" class="genmenu"><img src="{T_THEME_PATH}/images/arrow.png" width="4" height="7" alt="*" /> Music 3</a>&nbsp;&nbsp;
		    	<!-- Example Link <a href="http://www.yoursite.com/musicplayerfile.html" rel="popup console 200 200 noicon" class="genmenu"><img src="{T_THEME_PATH}/images/arrow.png" width="4" height="7" alt="*" /> Example</a> -->
		   	</td>																		
	  	</tr>
		</table>
	</div>
		<br style="clear: both;" />
	<!-- INCLUDE announcement_centre.html -->

	
	<div id="datebar">
		<table width="100%" cellspacing="0">
		<tr>
			<td class="gensmall"><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ENDIF --></td>
			<td class="gensmall" align="{S_CONTENT_FLOW_END}">{CURRENT_TIME}<br /></td>
		</tr>
		</table>
	</div>
	<br />
	
</div>


<div id="wrapcentre">

	<!-- IF S_DISPLAY_SEARCH -->
	<p class="searchbar">
		<span style="float: {S_CONTENT_FLOW_BEGIN};"><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a> | <a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a></span>
		<!-- IF S_USER_LOGGED_IN -->
		<span style="float: {S_CONTENT_FLOW_END};"><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a> | <a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></span>
		<!-- ENDIF -->
	</p>
	<!-- ENDIF -->

	<br style="clear: both;" />

	<!-- INCLUDE breadcrumbs.html -->

	<br />
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.

fr34k123
Registered User
Posts: 28
Joined: Mon Nov 24, 2008 4:09 pm

Re: ACP Announcement Centre

Post by fr34k123 »

Hi, thanks for the reply,

I have copied your whole overall_header code and replaced mine - uploaded, refreshed and all i get is this:

Image

I do have a few mods installed - could it be any of them conflicting with it?

I did also change this section within the overall_header.html so i could have my own banner full width of the theme:

original code:

Code: Select all

 <div id="logodesc">
      <table width="100%" cellspacing="0">
      <tr>
         <td><a href="{U_INDEX}">{SITE_LOGO_IMG}</a></td>
         <td width="100%" align="center"><h1>{SITENAME}</h1><span class="gen">{SITE_DESCRIPTION}</span></td>
      </tr>      
      </table>   
   </div>   
my code:

Code: Select all

<div id="logodesc">
		<table width="100%" cellspacing="0">
		<tr>
			<td colspan="2"><a href="{U_INDEX}">{SITE_LOGO_IMG}</a></td>

		</tr>		
		</table>	
	</div>	
Personally, i dont think the above code has anything to do with it as i have over-written my header code with the one you supplied, and it's still messed up.

Very strange indeed :?

For reference, here's my full overall_header.html code - perhaps and error somewhere?:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">
<head>

<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="resource-type" content="document" />
<meta name="distribution" content="global" />
<meta name="copyright" content="2000, 2002, 2005, 2007 phpBB Group" />
<meta name="keywords" content="" />
<meta name="description" content="" />
{META}
<title>{SITENAME} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>

<link rel="stylesheet" href="{T_STYLESHEET_LINK}" type="text/css" />

<script language="JavaScript" src="styles/PrototypeV2/template/motionpack.js"></script>

<script type="text/javascript" src="styles/PrototypeV2/template/add-event.js"></script>
<script type="text/javascript" src="styles/PrototypeV2/template/popup.js"></script>

<!--[if lt IE 7]>
<script language="JavaScript">
function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6.
{
   var arVersion = navigator.appVersion.split("MSIE")
   var version = parseFloat(arVersion[1])
   if ((version >= 5.5) && (document.body.filters))
   {
      for(var i=0; i<document.images.length; i++)
      {
         var img = document.images[i]
         var imgName = img.src.toUpperCase()
         if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
         {
            var imgID = (img.id) ? "id='" + img.id + "' " : ""
            var imgClass = (img.className) ? "class='" + img.className + "' " : ""
            var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
            var imgStyle = "display:inline-block;" + img.style.cssText
            if (img.align == "left") imgStyle = "float:left;" + imgStyle
            if (img.align == "right") imgStyle = "float:right;" + imgStyle
            if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
            var strNewHTML = "<span " + imgID + imgClass + imgTitle
            + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
            + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
            + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
            img.outerHTML = strNewHTML
            i = i-1
         }
      }
   }   
}
window.attachEvent("onload", correctPNG);
</script>
<![endif]-->

<script type="text/javascript">
// <![CDATA[
<!-- IF S_USER_PM_POPUP -->
	if ({S_NEW_PM})
	{
		popup('{UA_POPUP_PM}', 400, 225, '_phpbbprivmsg');
	}
<!-- ENDIF -->

function popup(url, width, height, name)
{
	if (!name)
	{
		name = '_popup';
	}

	window.open(url.replace(/&/g, '&'), name, 'height=' + height + ',resizable=yes,scrollbars=yes,width=' + width);
	return false;
}

function jumpto()
{
	var page = prompt('{LA_JUMP_PAGE}:', '{ON_PAGE}');
	var perpage = '{PER_PAGE}';
	var base_url = '{A_BASE_URL}';

	if (page !== null && !isNaN(page) && page > 0)
	{
		document.location.href = base_url.replace(/&/g, '&') + '&start=' + ((page - 1) * perpage);
	}
}

/**
* Find a member
*/
function find_username(url)
{
	popup(url, 760, 570, '_usersearch');
	return false;
}

/**
* Mark/unmark checklist
* id = ID of parent container, name = name prefix, state = state [true/false]
*/
function marklist(id, name, state)
{
	var parent = document.getElementById(id);
	if (!parent)
	{
		eval('parent = document.' + id);
	}

	if (!parent)
	{
		return;
	}

	var rb = parent.getElementsByTagName('input');
	
	for (var r = 0; r < rb.length; r++)
	{
		if (rb[r].name.substr(0, name.length) == name)
		{
			rb[r].checked = state;
		}
	}
}

<!-- IF ._file -->

	/**
	* Play quicktime file by determining it's width/height
	* from the displayed rectangle area
	*
	* Only defined if there is a file block present.
	*/
	function play_qt_file(obj)
	{
		var rectangle = obj.GetRectangle();

		if (rectangle)
		{
			rectangle = rectangle.split(',')
			var x1 = parseInt(rectangle[0]);
			var x2 = parseInt(rectangle[2]);
			var y1 = parseInt(rectangle[1]);
			var y2 = parseInt(rectangle[3]);

			var width = (x1 < 0) ? (x1 * -1) + x2 : x2 - x1;
			var height = (y1 < 0) ? (y1 * -1) + y2 : y2 - y1;
		}
		else
		{
			var width = 200;
			var height = 0;
		}

		obj.width = width;
		obj.height = height + 16;

		obj.SetControllerVisible(true);

		obj.Play();
	}
<!-- ENDIF -->

// ]]>
</script>
</head>
<body class="{S_CONTENT_DIRECTION}">

<a name="top"></a>

<a name="top"></a>


<div id="wrapheader">

	<div id="menubar">
		<table width="100%" height="60" cellspacing="0" valign="middle">
		<tr>
			<td class="genmed" valign="middle" height="60">
				<!-- IF not S_IS_BOT --><a href="{U_LOGIN_LOGOUT}" class="genmenu">{L_LOGIN_LOGOUT}</a>&nbsp;<!-- ENDIF -->
				<!-- IF U_RESTORE_PERMISSIONS --> &nbsp;<a href="{U_RESTORE_PERMISSIONS}" class="genmenu">{L_RESTORE_PERMISSIONS}</a><!-- ENDIF -->
				<!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN --> &nbsp;<span style="color: red;">{L_BOARD_DISABLED}</span><!-- ENDIF -->
				<!-- IF not S_IS_BOT -->
					<!-- IF S_USER_LOGGED_IN -->
						<!-- IF S_DISPLAY_PM --> &nbsp;<a href="{U_PRIVATEMSGS}" class="genmenu">{PRIVATE_MESSAGE_INFO}<!-- IF PRIVATE_MESSAGE_INFO_UNREAD -->, {PRIVATE_MESSAGE_INFO_UNREAD}<!-- ENDIF --></a><!-- ENDIF -->
					<!-- ELSE --> &nbsp;<a href="{U_REGISTER}" class="genmenu">{L_REGISTER}</a>
					<!-- ENDIF -->
				<!-- ENDIF -->
			</td>
			<td class="genmed" align="{S_CONTENT_FLOW_END}">
				<a href="{U_FAQ}" class="genmenu">{L_FAQ}</a>
				<!-- IF S_DISPLAY_SEARCH -->&nbsp; &nbsp;<a href="{U_SEARCH}" class="genmenu">{L_SEARCH}</a><!-- ENDIF -->
				<!-- IF not S_IS_BOT -->
					<!-- IF S_DISPLAY_MEMBERLIST -->&nbsp; &nbsp;<a href="{U_MEMBERLIST}" class="genmenu">{L_MEMBERLIST}</a><!-- ENDIF -->
					<!-- IF S_USER_LOGGED_IN -->&nbsp; &nbsp;<a href="{U_PROFILE}" class="genmenu">{L_PROFILE}</a><!-- ENDIF -->
				<!-- ENDIF -->
			</td>
		</tr>
		</table>
	</div>

	<div id="logodesc">
		<table width="100%" cellspacing="0">
		<tr>
			<td colspan="2"><a href="{U_INDEX}">{SITE_LOGO_IMG}</a></td>

		</tr>		
		</table>	
	</div>	

	<div id="xtramenu">
	  <table width="100%" height="25" cellspacing="0">
		  <tr>
		    <td align="left">
			    <a href="http://www.pcfrags.com/forums" class="genmenu">Forum Home</a>&nbsp;&nbsp;
			    <a href="http://www.pcfrags.com" class="genmenu">PCFrags Home</a>&nbsp;&nbsp;
		    	<a href="http://www.pcfrags.com/pc-hardware-reviews.html" class="genmenu">Our Reviews</a>
		    </td>
				<td align="right">
		    	<b>Links | </b>&nbsp;&nbsp;
		    	<a href="https://www.krystal.co.uk/" class="genmenu"><img src="{T_THEME_PATH}/images/arrow.png" width="4" height="7" alt="*" /> Krystal</a>&nbsp;&nbsp;
		    	<a href="http://www.body1.co.uk/BrowseProducts.aspx?CategoryID=269" class="genmenu"><img src="{T_THEME_PATH}/images/arrow.png" width="4" height="7" alt="*" /> Body1</a>&nbsp;&nbsp;
		    	<a href="http://www.clanthemes.com/" class="genmenu"><img src="{T_THEME_PATH}/images/arrow.png" width="4" height="7" alt="*" /> ClanThemes</a>&nbsp;&nbsp;
		    	<!-- Example Link <a href="http://www.yoursite.com/musicplayerfile.html" rel="popup console 200 200 noicon" class="genmenu"><img src="{T_THEME_PATH}/images/arrow.png" width="4" height="7" alt="*" /> Example</a> -->
            </td>                                                      
        </tr>
      </table>
   </div>
 <br style="clear: both;" />
   <!-- INCLUDE announcement_centre.html -->

     <div id="datebar">
      <table width="100%" cellspacing="0">
		<tr>
			<td class="gensmall"><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ENDIF --></td>
			<td class="gensmall" align="{S_CONTENT_FLOW_END}">{CURRENT_TIME}<br /></td>
		</tr>
		</table>
	</div>
</div>


<div id="wrapcentre">

	<!-- IF S_DISPLAY_SEARCH -->
	<p class="searchbar">
		<span style="float: {S_CONTENT_FLOW_BEGIN};"><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a> | <a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a></span>
		<!-- IF S_USER_LOGGED_IN -->
		<span style="float: {S_CONTENT_FLOW_END};"><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a> | <a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></span>
		<!-- ENDIF -->
	</p>
	<!-- ENDIF -->					

	<br style="clear: both;" />

	<!-- INCLUDE breadcrumbs.html -->

	<br />

User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: ACP Announcement Centre

Post by lefty74 »

i replaced mine with urs and this is what i got ....
http://screencast.com/t/W66RzxWBu0k

looks like that in FF IE and safari
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.

fr34k123
Registered User
Posts: 28
Joined: Mon Nov 24, 2008 4:09 pm

Re: ACP Announcement Centre

Post by fr34k123 »

lmao,
i just dont get that - i can't see what i'm doing wrong - ive copied/pasted your edits and it's all messed up for me - very strange

User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: ACP Announcement Centre

Post by lefty74 »

dunno really,
what if you put another

Code: Select all

	<br style="clear: both;" />
underneath

Code: Select all

<-- INCLUDE announcement_centre.html -->
edit:
don't forget to refresh the template.
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.

garfield2
Registered User
Posts: 3
Joined: Sat Feb 28, 2009 6:28 am

Re: ACP Announcement Centre

Post by garfield2 »

Tried installation over Automod on phpBB 3.0.4, got an error report, but all code fixes went successfull.
After that followed the described steps in the ACP System panel:
Do It Yourself Instructions
Once installed, the Announcement Centre module needs to be added in the ACP.

You can do this as follows:
a) Go to System in the ACP
b) Go To Administration Control Panel under Module Management
c) Go to .MODs
d) Go to the Add Module button
e) Type in ACP Announcement Centre and click on Add New Module
f) Make sure you create ACP Announcement Centre as a new Category and enable it
g Click on the ACP Announcement Centre category
h) Go to the dropdown next to the Add Module button
i) Click on Announcement Centre in the dropdown
j) Click on the Add Module button next to the drop down
k) Once added, you need to click on the Enable link next to it
l) The enable should turn into disable
m) Click General

Note:thanks to Venom14228 for most of the instructions

Don't forget to clear your cache and refresh your templates.

NOTE: You will need to submit your announcements once so that the bbcode fields are created

For the subsilver2 template changes please go to templates/subsilver2

Don't forget to clear your cache and refresh your templates.
ACP Shreenshot:
Image

Click on MOD's and got this error:
General Error
SQL ERROR [ mysqli ]
Table 'swteamo_ll.ANNOUNCEMENTS_CENTRE_TABLE' doesn't exist [1146]

SQL

SELECT * FROM ANNOUNCEMENTS_CENTRE_TABLE
BACKTRACE

FILE: includes/db/mysqli.php
LINE: 163
CALL: dbal->sql_error()

FILE: includes/acp/acp_announcements_centre.php
LINE: 114
CALL: dbal_mysqli->sql_query()

FILE: includes/functions_module.php
LINE: 507
CALL: acp_announcements_centre->main()

FILE: adm/index.php
LINE: 74
CALL: p_master->load_active()
In AutoMOD, the mod is still shown as uninstalled. Did i miss something, it seems that the SQL changes are not automated, but i don't know how else to install this mod to work proper.

There is another interesting thing:
Here you are able to manage all kind of modules. Please note that the ACP has a three-level menu structure (Category -> Category -> Module) whereby the others having a two-level menu structure (Category -> Module) which must be kept. Please also be aware that you may lock out yourself if you disable or delete the modules responsible for the module management itself.
Please help...

P.S.:
Tried also the automated install way from the first post, got another error:
General Error
SQL ERROR [ mysqli ]

Table 'phpbb_announcement_centre' already exists [1050]

SQL

CREATE TABLE phpbb_announcement_centre ( announcement_show tinyint(1) DEFAULT '0' NOT NULL, announcement_enable_guests tinyint(1) DEFAULT '0' NOT NULL, announcement_show_birthdays tinyint(1) DEFAULT '0' NOT NULL, announcement_birthday_avatar tinyint(1) DEFAULT '0' NOT NULL, announcement_draft text NOT NULL, announcement_draft_bbcode_uid varchar(8) DEFAULT '' NOT NULL, announcement_draft_bbcode_bitfield varchar(255) DEFAULT '' NOT NULL, announcement_draft_bbcode_options int(11) UNSIGNED DEFAULT '7' NOT NULL, announcement_text text NOT NULL, announcement_text_bbcode_uid varchar(8) DEFAULT '' NOT NULL, announcement_text_bbcode_bitfield varchar(255) DEFAULT '' NOT NULL, announcement_text_bbcode_options int(11) UNSIGNED DEFAULT '7' NOT NULL, announcement_text_guests text NOT NULL, announcement_text_guests_bbcode_uid varchar(8) DEFAULT '' NOT NULL, announcement_text_guests_bbcode_bitfield varchar(255) DEFAULT '' NOT NULL, announcement_text_guests_bbcode_options int(11) UNSIGNED DEFAULT '7' NOT NULL, announcement_title varchar(255) DEFAULT '' NOT NULL, announcement_title_guests varchar(255) DEFAULT '' NOT NULL, announcement_show_group varchar(255) DEFAULT '' NOT NULL ) CHARACTER SET `utf8` COLLATE `utf8_bin`

BACKTRACE

FILE: includes/db/mysqli.php
LINE: 163
CALL: dbal->sql_error()

FILE: install/index.php
LINE: 225
CALL: dbal_mysqli->sql_query()

FILE: install/index.php
LINE: 43
CALL: load_schema()

Locked

Return to “[3.0.x] MOD Database Releases”