How to get the best out of AA and your computer
by steve zeus 30 Mar 2013, 00:38
"Love You" :lol: ;)

Steve & Maxine.
"Zeus Heights"
Altinkum
Image

"No one can make you feel inferior without your consent"
"gunesteki yerimizi seviyoruz."
by CrashTester100 30 Mar 2013, 01:31
johnnetplus wrote:I have two scripts for an exchange rate feature. I will test this weekend. If I come unstuck I may contact you for some guidance. I'll also look at amending the script to allow the active topics to appear on each page. Too late now. Thanks again.


John, are you OK at editing the style templates? The following instructions will display the View Unanswered, View New posts, View Active Topics links on the navigation bar.

Image

In the ACP go to Styles > Template > Autumns Color (your style) and then select Edit. Choose the Overall_Header.html template file from the drop down list. Copy the code from this page into a notepad file as a backup in case you need to restore it if an edit goes wrong.

Then replace the entire code with the following: Note, I have assumed you have made no previous edits to this file. If your header image file was changed but not the file name then this will not be changed.

Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.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-style-type" content="text/css" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<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} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>

<!--
   phpBB style name: prosilver
   Based on style:   prosilver (this is the default phpBB3 style)
   Original author:  Tom Beddard ( http://www.subBlue.com/ )
   Modified by:     
   
   NOTE: This page was generated by phpBB, the free open-source bulletin board package.
         The phpBB Group is not responsible for the content of this page and forum. For more information
         about phpBB please visit http://www.phpbb.com
-->

<script type="text/javascript">
// <![CDATA[
   var jump_page = '{LA_JUMP_PAGE}:';
   var on_page = '{ON_PAGE}';
   var per_page = '{PER_PAGE}';
   var base_url = '{A_BASE_URL}';
   var style_cookie = 'phpBBstyle';
   var style_cookie_settings = '{A_COOKIE_SETTINGS}';
   var onload_functions = new Array();
   var onunload_functions = new Array();

   <!-- IF S_USER_PM_POPUP -->
      if ({S_NEW_PM})
      {
         var url = '{UA_POPUP_PM}';
         window.open(url.replace(/&amp;/g, '&'), '_phpbbprivmsg', 'height=225,resizable=yes,scrollbars=yes, width=400');
      }
   <!-- ENDIF -->

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

   /**
   * New function for handling multiple calls to window.onload and window.unload by pentapenguin
   */
   window.onload = function()
   {
      for (var i = 0; i < onload_functions.length; i++)
      {
         eval(onload_functions[i]);
      }
   }

   window.onunload = function()
   {
      for (var i = 0; i < onunload_functions.length; i++)
      {
         eval(onunload_functions[i]);
      }
   }

// ]]>
</script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/styleswitcher.js"></script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/forum_fn.js"></script>
<!--[if lt IE 7.]><script defer="defer" type="text/javascript" src="{T_TEMPLATE_PATH}/pngfix.js"></script><![endif]-->

<link href="{T_THEME_PATH}/print.css" rel="stylesheet" type="text/css" media="print" title="printonly" />
<link href="{T_STYLESHEET_LINK}" rel="stylesheet" type="text/css" media="screen, projection" />

<link href="{T_THEME_PATH}/normal.css" rel="stylesheet" type="text/css" title="A" />
<link href="{T_THEME_PATH}/medium.css" rel="alternate stylesheet" type="text/css" title="A+" />
<link href="{T_THEME_PATH}/large.css" rel="alternate stylesheet" type="text/css" title="A++" />

<!-- IF S_CONTENT_DIRECTION eq 'rtl' -->
   <link href="{T_THEME_PATH}/bidi.css" rel="stylesheet" type="text/css" media="screen, projection" />
<!-- ENDIF -->

</head>

<body id="phpbb" class="section-{SCRIPT_NAME} {S_CONTENT_DIRECTION}">
<div id="header-bg"></div>
<div id="wrap-bg">

<div id="wrap">
   <a id="top" name="top" accesskey="t"></a>
   <div id="page-header">
      <div class="headerbar">
         <div class="inner"><span class="corners-top"><span></span></span>

         <div id="site-description">
            <a href="{U_INDEX}" title="{L_INDEX}" id="logo">{SITE_LOGO_IMG}</a>
            <h1>{SITENAME}</h1>
            <p>{SITE_DESCRIPTION}</p>
            <p class="skiplink"><a href="#start_here">{L_SKIP}</a></p>
         </div>
         
      <!-- IF S_DISPLAY_SEARCH and not S_IN_SEARCH -->
         <div id="search-box">
            <form action="{U_SEARCH}" method="post" id="search">
            <fieldset>
               <input name="keywords" id="keywords" type="text" maxlength="128" title="{L_SEARCH_KEYWORDS}" class="inputbox search" value="<!-- IF SEARCH_WORDS-->{SEARCH_WORDS}<!-- ELSE -->{L_SEARCH_MINI}<!-- ENDIF -->" onclick="if(this.value=='{LA_SEARCH_MINI}')this.value='';" onblur="if(this.value=='')this.value='{LA_SEARCH_MINI}';" />
               <input class="button2" value="{L_SEARCH}" type="submit" /><br />
               <a href="{U_SEARCH}" title="{L_SEARCH_ADV_EXPLAIN}">{L_SEARCH_ADV}</a> {S_SEARCH_HIDDEN_FIELDS}
            </fieldset>
            </form>
         </div>
      <!-- ENDIF -->

         <span class="corners-bottom"><span></span></span></div>
      </div>

      <div class="navbar">
         <div class="inner"><span class="corners-top"><span></span></span>

         <ul class="linklist navlinks">
            <li class="icon-home"><a href="{U_INDEX}" accesskey="h">{L_INDEX}</a> <!-- BEGIN navlinks --> <strong>&#8249;</strong> <a href="{navlinks.U_VIEW_FORUM}">{navlinks.FORUM_NAME}</a><!-- END navlinks --></li>

            <li class="rightside"><a href="#" onclick="fontsizeup(); return false;" onkeypress="fontsizeup(); return false;" class="fontsize" title="{L_CHANGE_FONT_SIZE}">{L_CHANGE_FONT_SIZE}</a></li>

            <!-- IF U_EMAIL_TOPIC --><li class="rightside"><a href="{U_EMAIL_TOPIC}" title="{L_EMAIL_TOPIC}" class="sendemail">{L_EMAIL_TOPIC}</a></li><!-- ENDIF -->
            <!-- IF U_EMAIL_PM --><li class="rightside"><a href="{U_EMAIL_PM}" title="{L_EMAIL_PM}" class="sendemail">{L_EMAIL_PM}</a></li><!-- ENDIF -->
            <!-- IF U_PRINT_TOPIC --><li class="rightside"><a href="{U_PRINT_TOPIC}" title="{L_PRINT_TOPIC}" accesskey="p" class="print">{L_PRINT_TOPIC}</a></li><!-- ENDIF -->
            <!-- IF U_PRINT_PM --><li class="rightside"><a href="{U_PRINT_PM}" title="{L_PRINT_PM}" accesskey="p" class="print">{L_PRINT_PM}</a></li><!-- ENDIF -->
         </ul>

         <!-- IF not S_IS_BOT and S_USER_LOGGED_IN -->
         <ul class="linklist leftside">
            <li class="icon-ucp">
               <a href="{U_PROFILE}" title="{L_PROFILE}" accesskey="u">{L_PROFILE}</a>
                  <!-- IF S_DISPLAY_PM --> (<a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a>)<!-- ENDIF --> &bull;
               <a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a>
               <!-- IF U_RESTORE_PERMISSIONS -->
               <a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a>
               <!-- ENDIF -->  &bull;
            </li>
         </ul>
         <!-- ENDIF -->
         <ul class="linklist rightside">
            <li class="icon-faq"><a href="{U_FAQ}" title="{L_FAQ_EXPLAIN}">{L_FAQ}</a></li>
            <!-- IF not S_IS_BOT -->
               <!-- IF S_DISPLAY_MEMBERLIST --><li class="icon-members"><a href="{U_MEMBERLIST}" title="{L_MEMBERLIST_EXPLAIN}">{L_MEMBERLIST}</a></li><!-- ENDIF -->
               <!-- IF not S_USER_LOGGED_IN and S_REGISTER_ENABLED --><li class="icon-register"><a href="{U_REGISTER}">{L_REGISTER}</a></li><!-- ENDIF -->
               <li class="icon-logout"><a href="{U_LOGIN_LOGOUT}" title="{L_LOGIN_LOGOUT}" accesskey="l">{L_LOGIN_LOGOUT}</a></li>
            <!-- ENDIF -->
         </ul>
<!-- IF S_DISPLAY_SEARCH or (S_USER_LOGGED_IN and not S_IS_BOT) -->
<ul class="linklist">
   <!-- IF S_DISPLAY_SEARCH -->
      <li><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a><!-- IF S_USER_LOGGED_IN --> &bull; <a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><!-- ENDIF --> &bull; <a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a></li>
   <!-- ENDIF -->
</ul>
<!-- ENDIF -->
         <span class="corners-bottom"><span></span></span></div>
      </div>

   </div>

   <a name="start_here"></a>
   <div id="page-body">
      
       <!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN and (U_MCP or U_ACP) -->
      <div id="message" class="rules">
         <div class="inner"><span class="corners-top"><span></span></span>
            <strong>{L_INFORMATION}:</strong> {L_BOARD_DISABLED}
         <span class="corners-bottom"><span></span></span></div>
      </div>
      <!-- ENDIF -->


**If the edit does not show on the forums you may need to refresh the template in the ACP once this change is made**

Additionally, if you would like to remove the un-necessary site name and description from the header find the following code in the Overall_Header.html file;

Code: Select all
<div id="site-description">
            <a href="{U_INDEX}" title="{L_INDEX}" id="logo">{SITE_LOGO_IMG}</a>
            <h1>{SITENAME}</h1>
            <p>{SITE_DESCRIPTION}</p>
            <p class="skiplink"><a href="#start_here">{L_SKIP}</a></p>
         </div>


And replace it with this;

Code: Select all
<div id="site-description">
            <a href="{U_INDEX}" title="{L_INDEX}" id="logo">{SITE_LOGO_IMG}</a>
            <p class="skiplink"><a href="#start_here">{L_SKIP}</a></p>
         </div>
by lynn 30 Mar 2013, 07:53
I have just been catching up with this thread and I am sat here laughing my head off. I just love seeing the banter between members "creep"ing" in again. I really do just "love it", every pun intended lol :lol:

Then reading on and the dialogue about the work on the forum between John and Paul had me in stitches. It was like reading a foreign language, I am sooooooooo glad they understand what they are talking about :oops: :lol:

Keep up the good work and we will soon be back to normal yeah :D

Lynn :)
by johnnetplus 30 Mar 2013, 12:41
UPDATE:

With Paul's help above I have added the script and amended where appropriate and we now have the following features:

1. ACTIVE TOPICS : Now appears throughout the board (on the Board Index line at the top of the page) so no need to click on the banner or press back on your browser. The annoying thing is that it has wrapped itself a line down. I shall fix this but at least it is there for usage!

2. HEADING REMOVED : We had two headings. One was the banner and the other was from the scripts. We didn't need two only one. So that has been removed.

3. LIVE EXCHANGE RATES : Some members asked for this and thus I have put another version back. It is slightly different as it includes the Euro as well. I have amended the colours to help make it look like the rest of the site. It is currently at the bottom of each page on the left handside. I will try to 'centre' it later.

Kind regards John
by CrashTester100 30 Mar 2013, 14:49
Hi john. im on the road at present and only have my phone to work from so i will have to keep my replies short.

To remove the View My Posts looks for the following code and remove it;

<a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a>

It displays on one line for me but I think the reason it wraps down a line for you and others is because of username length. Maybe you could remove the words view to retain all links and shorten it?
by johnnetplus 30 Mar 2013, 15:37
Paul,

That's done the trick. It has left behind a bullet point but unsure what piece of code to remove hence left it well alone. I tend to think it separates the 'User control panel (0 new messages) from the rest of those options. So it sits a lot better now. Thanks again. Safe journey. :)

Kind regards John
by Ronsgame 30 Mar 2013, 16:41
Lynn - the word 'Gobbledook' sprang to mind when I saw it. Mind you, I suppose a knitting or crochet pattern would flumux some people. Each to his or her own.

Veronica

Live Simply. Love Generously. Care Deeply.
by CrashTester100 30 Mar 2013, 18:18
No problem John :)

To remove one of the the bullet points delete the &bull; just before the line of code you just deleted to remove the View Your Posts link.
by johnnetplus 03 Apr 2013, 19:46
Just to let members know I have 'centered' the Exchange Rates box at the bottom of the page. It was previously on the left handside and looked odd. Hence I've moved it.

I have also reduced the size of the banner which sits at the top of the pages. This now allows more room for postings and you can see more of the page.

These were all things which members suggested and thus we have listened and amended accordingly. Or should I say after I have 'pulled even more of my hair out' and got it to play ball!! Right off for a well earned beer. Enjoy folks. :P

Kind regards John
by PJRichards 04 Apr 2013, 06:27
You have done a grand job, you should all be proud of yourselves, everyone that has helped you too.

When I was doing my course I hated the HTML part of it but it did get you the results you wanted in the end.

Like this Forum, we have the best results thanks to your hard work, crashtester, and anyone else that has given you input. The Forum looks great now.

WELL DONE ALL OF YOU.... :lol:

Who is online

Users browsing this forum: No registered users and 2 guests