Warning: The author of this contribution does not provide support for it anymore.

ACP Announcement Centre

Announcements work great! but... - ACP Announcement Centre

Announcements work great! but...

by Kegli » Wed Feb 23, 2011 8:00 pm

I've understood and read ad nauseum about how you need to configure ACP AC to a specific style if it's not the original two, and I've found that the announcement mod works awesome on those two, but I have a particular style that I can't seem to get it going no matter how many times I try switching around, arranging and fiddling!

The site is http://www.esportsbarrie.ca

The style is called 1Game

Thanks for ANY advice.

-Kev
Kegli
Registered User
Posts: 6
Joined: Wed Feb 23, 2011 7:55 pm
Contact:

Re: Announcements work great! but...

by Kegli » Thu Feb 24, 2011 1:06 am

I tried in AutoMOD under details for ACP AC to apply "subsilver2" changes to "1Game" but then there is an error before overall_header.html is missing some code apparently

Code: Select all

<div id="datebar">
         <table width="100%" cellspacing="0">

is not there, so it can't add before "<!-- INCLUDE announcement_centre.html -->"

here's my code for overall_header.html

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 http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
{META}
<title>{SITENAME} <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>
<!-- IF S_ENABLE_FEEDS -->
   <!-- IF S_ENABLE_FEEDS_OVERALL --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {SITENAME}" href="{U_FEED}" /><!-- ENDIF -->
   <!-- IF S_ENABLE_FEEDS_NEWS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_NEWS}" href="{U_FEED}?mode=news" /><!-- ENDIF -->
   <!-- IF S_ENABLE_FEEDS_FORUMS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_ALL_FORUMS}" href="{U_FEED}?mode=forums" /><!-- ENDIF -->
   <!-- IF S_ENABLE_FEEDS_TOPICS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_TOPICS_NEW}" href="{U_FEED}?mode=topics" /><!-- ENDIF -->
   <!-- IF S_ENABLE_FEEDS_TOPICS_ACTIVE --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_TOPICS_ACTIVE}" href="{U_FEED}?mode=topics_active" /><!-- ENDIF -->
   <!-- IF S_ENABLE_FEEDS_FORUM and S_FORUM_ID --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FORUM} - {FORUM_NAME}" href="{U_FEED}?f={S_FORUM_ID}" /><!-- ENDIF -->
   <!-- IF S_ENABLE_FEEDS_TOPIC and S_TOPIC_ID --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_TOPIC} - {TOPIC_TITLE}" href="{U_FEED}?f={S_FORUM_ID}&amp;t={S_TOPIC_ID}" /><!-- ENDIF -->
<!-- ENDIF -->
<link rel="stylesheet" href="{T_STYLESHEET_LINK}" type="text/css" />

<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(/&amp;/g, '&'), name, 'height=' + height + ',resizable=yes,scrollbars=yes,width=' + width);
   return false;
}

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

   if (page !== null && !isNaN(page) && page == Math.floor(page) && page > 0)
   {
      if (base_url.indexOf('?') == -1)
      {
         document.location.href = base_url + '?start=' + ((page - 1) * per_page);
      }
      else
      {
         document.location.href = base_url.replace(/&amp;/g, '&') + '&start=' + ((page - 1) * per_page);
      }
   }
}

/**
* 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>
<link REL="SHORTCUT ICON" HREF="http://www.esportsbarrie.ca/favicon.ico">
</head>
<body class="{S_CONTENT_DIRECTION}">

<a name="top"></a>
<div id="top"><div id="render" align="right"></div></div>
<div id="wrap">
<div class="borderwrap">

   <div id="submenu">      
   <div class="left"><a href="{U_INDEX}">{L_INDEX}</a></div>
      <div class="left"><a href="{U_PROFILE}">{L_PROFILE}</a></div>
      <div class="left"><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a></div>
      <div class="right"><a href="{U_FAQ}">{L_FAQ}</a></div>
      <div class="right"><a href="{U_SEARCH}"> <font color="red">{L_SEARCH}</font></a></div>
      <div class="right"><a href="{U_MEMBERLIST}">{L_MEMBERLIST}</a></div>   
<div class="right">   <!-- IF S_DISPLAY_PM --><a href="{U_PRIVATEMSGS}"><!-- IF S_DISPLAY_PM -->{PRIVATE_MESSAGE_INFO}<!-- ENDIF --></a></div>
   <!-- ELSEIF S_REGISTER_ENABLED --><div class="right"><a href="{U_REGISTER}">{L_REGISTER}</a></div><!-- ENDIF -->
   </div>
</div>
<!-- IF not S_USER_LOGGED_IN and not S_IS_BOT -->
<div id="uplink">
   <p class="register">( <a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a><!-- IF S_REGISTER_ENABLED --> | <a href="{U_REGISTER}">{L_REGISTER}</a><!-- ENDIF --> )</p>
</div>
<!-- ENDIF -->
</td>
<div id="wrapcentre">

<!-- INCLUDE breadcrumbs.html -->
<br />
Kegli
Registered User
Posts: 6
Joined: Wed Feb 23, 2011 7:55 pm
Contact:

Re: Announcements work great! but...

by lefty74 » Thu Feb 24, 2011 9:44 am

try and put the <!-- INCLUDE announcement_centre.html --> below the <!-- INCLUDE breadcrumbs.html -->
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.
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: Announcements work great! but...

by Kegli » Fri Feb 25, 2011 7:06 am

Hey lefty, it worked! Can you maybe take a look though and guess why it's sort of floating on its own up there? (It'll do if you can't) :)

http://www.esportsbarrie.ca
Kegli
Registered User
Posts: 6
Joined: Wed Feb 23, 2011 7:55 pm
Contact:

Re: Announcements work great! but...

by lefty74 » Fri Feb 25, 2011 1:00 pm

hi kegli, are you sure you uploaded the announcement_centre.html from the right style? Could it be you uploaded the announcement_centre.html from the prosilver style to yours?
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.
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: Announcements work great! but...

by Kegli » Fri Feb 25, 2011 3:37 pm

Thanks! I used another style's html and refreshed the template style and it's all good! thanks lefty!
Kegli
Registered User
Posts: 6
Joined: Wed Feb 23, 2011 7:55 pm
Contact:

Re: Announcements work great! but...

by lefty74 » Fri Feb 25, 2011 4:44 pm

i'd suggest you try the subsilver2 one as the one you are using, you are missing the images on the corners.
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.
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact: