Refacere Overall_header

Pentru întrebări legate de facilităţile forumului phpBB 3.1.x, acest loc este cel mai potrivit.
Reguli forum
Aveti o problema si vreti sa primiti ajutor? Click aici ! Nu uitati si de regulamentul forumului !
Jimmi
Junior
Junior
Mesaje: 10
Membru din: 04-Apr-2015, 12:27:09
Versiune: 3.1.7
MOD: Nu
Server: Windows
Nivel phpBB: Neexperimentat
Nivel php: Neexperimentat

Refacere Overall_header

Mesaj de Jimmi » 10-Iul-2015, 20:22:23

Am incercat sa refac overall_header-ul default de pe 3.1.5(http://imgur.com/FQkySvu) cu cel de pe GTA-MP(http://imgur.com/n02sLN8)

Cod: Selectaţi tot

<!DOCTYPE html>
<html dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
{META}
<title><!-- IF UNREAD_NOTIFICATIONS_COUNT -->({UNREAD_NOTIFICATIONS_COUNT}) <!-- ENDIF --><!-- IF not S_VIEWTOPIC and not S_VIEWFORUM -->{SITENAME} - <!-- ENDIF --><!-- IF S_IN_MCP -->{L_MCP} - <!-- ELSEIF S_IN_UCP -->{L_UCP} - <!-- ENDIF -->{PAGE_TITLE}<!-- IF S_VIEWTOPIC or S_VIEWFORUM --> - {SITENAME}<!-- ENDIF --></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}&t={S_TOPIC_ID}"><!-- ENDIF -->
<!-- ENDIF -->

<!-- IF U_CANONICAL -->
   <link rel="canonical" href="{U_CANONICAL}">
<!-- ENDIF -->

<!--
   phpBB style name: prosilver
   Based on style:   prosilver (this is the default phpBB3 style)
   Original author:  Tom Beddard ( http://www.subBlue.com/ )
   Modified by:
-->

<!-- IF S_ALLOW_CDN -->
<script>
   WebFontConfig = {
      google: {
         families: ['Open Sans:n6']
      }
   };

   (function(d) {
      var wf = d.createElement('script'), s = d.scripts[0];
      wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1.5.18/webfont.js';
      wf.async = true;
      s.parentNode.insertBefore(wf, s);
   })(document);
</script>
<!-- ENDIF -->
<link href="{T_STYLESHEET_LINK}" rel="stylesheet">
<link href="{T_STYLESHEET_LANG_LINK}" rel="stylesheet">
<link href="{T_THEME_PATH}/responsive.css?assets_version={T_ASSETS_VERSION}" rel="stylesheet" media="all and (max-width: 700px), all and (max-device-width: 700px)">

<!-- IF S_CONTENT_DIRECTION eq 'rtl' -->
   <link href="{T_THEME_PATH}/bidi.css?assets_version={T_ASSETS_VERSION}" rel="stylesheet">
<!-- ENDIF -->

<!-- IF S_PLUPLOAD -->
   <link href="{T_THEME_PATH}/plupload.css?assets_version={T_ASSETS_VERSION}" rel="stylesheet">
<!-- ENDIF -->

<!--[if lte IE 9]>
   <link href="{T_THEME_PATH}/tweaks.css?assets_version={T_ASSETS_VERSION}" rel="stylesheet">
<![endif]-->

<!-- EVENT overall_header_head_append -->

{$STYLESHEETS}

<!-- EVENT overall_header_stylesheets_after -->

</head>
<body id="phpbb" class="mortimati nojs notouch section-{SCRIPT_NAME} {S_CONTENT_DIRECTION} {BODY_CLASS}">
<header role="banner" id="top" class="navbar navbar-inverse navbar-static-top flat-nav">
  <div class="container">
    <div class="navbar-header">
   <!-- Main navigation block -->
   <nav class="collapse navbar-collapse flat-nav-collapse" role="navigation" aria-label="Primary">
     <ul class="nav navbar-nav navbar-nav-fancy">
        <li class=""><a href="./index.php" data-original-title="" title="">Acasă</a></li>
      
      <li class=""><a href="./faq.php" data-original-title="" title="">Întrebări frecvente</a></li>
               
      </ul>
     <ul class="nav navbar-nav navbar-right navbar-nav-fancy">
      
      <li><a href="./ucp.php?mode=register&" data-original-title="" title="">Înregistrează-te</a></li>
      
      <li><a href="./ucp.php?mode=login&" data-original-title="" title="">Loghează-te</a></li>
     </ul>
   </nav>
   </div>
  </div>
</div>
<!-- EVENT overall_header_body_before -->

<div id="wrap">
   <a id="top" class="anchor" accesskey="t"></a>
   <div id="page-header">
      <div class="headerbar" role="banner">
         <div class="inner">

         <div id="site-description">
            <a id="logo" class="logo" href="<!-- IF U_SITE_HOME -->{U_SITE_HOME}<!-- ELSE -->{U_INDEX}<!-- ENDIF -->" title="<!-- IF U_SITE_HOME -->{L_SITE_HOME}<!-- ELSE -->{L_INDEX}<!-- ENDIF -->">{SITE_LOGO_IMG}</a>
            <h1>{SITENAME}</h1>
            <p>{SITE_DESCRIPTION}</p>
            <p class="skiplink"><a href="#start_here">{L_SKIP}</a></p>
         </div>

         <!-- EVENT overall_header_searchbox_before -->
         <!-- IF S_DISPLAY_SEARCH and not S_IN_SEARCH -->
         <div id="search-box" class="search-box search-header" role="search">
            <form action="{U_SEARCH}" method="get" id="search">
            <fieldset>
               <input name="keywords" id="keywords" type="search" maxlength="128" title="{L_SEARCH_KEYWORDS}" class="inputbox search tiny" size="20" value="{SEARCH_WORDS}" placeholder="{L_SEARCH_MINI}" />
               <button class="button icon-button search-icon" type="submit" title="{L_SEARCH}">{L_SEARCH}</button>
               <a href="{U_SEARCH}" class="button icon-button search-adv-icon" title="{L_SEARCH_ADV}">{L_SEARCH_ADV}</a>
               {S_SEARCH_HIDDEN_FIELDS}
            </fieldset>
            </form>
         </div>
         <!-- ENDIF -->

         </div>
      </div>
      <!-- EVENT overall_header_navbar_before -->
      <!-- INCLUDE navbar_header.html -->
   </div>

   <!-- EVENT overall_header_page_body_before -->

   <a id="start_here" class="anchor"></a>
   <div id="page-body" role="main">
      <!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN and (U_MCP or U_ACP) -->
      <div id="information" class="rules">
         <div class="inner">
            <strong>{L_INFORMATION}{L_COLON}</strong> {L_BOARD_DISABLED}
         </div>
      </div>
      <!-- ENDIF -->

      <!-- EVENT overall_header_content_before -->
Si primesc erori in error_log

Cod: Selectaţi tot

[10-Jul-2015 17:57:20 UTC] PHP Fatal error:  Uncaught exception 'Twig_Error_Loader' with message 'Unable to find template "overall_header.html" (looked into: ./styles/prosilver/template, ./styles/prosilver/theme) in "index_body.html" at line 1.' in /home/pgzone/public_html/teste/vendor/twig/twig/lib/Twig/Loader/Filesystem.php:202
Stack trace:
#0 /home/pgzone/public_html/teste/phpbb/template/twig/loader.php(107): Twig_Loader_Filesystem->findTemplate('overall_header....')
#1 /home/pgzone/public_html/teste/vendor/twig/twig/lib/Twig/Loader/Filesystem.php(138): phpbb\template\twig\loader->findTemplate('overall_header....')
#2 /home/pgzone/public_html/teste/vendor/twig/twig/lib/Twig/Environment.php(265): Twig_Loader_Filesystem->getCacheKey('overall_header....')
#3 /home/pgzone/public_html/teste/vendor/twig/twig/lib/Twig/Environment.php(312): Twig_Environment->getTemplateClass('overall_header....', NULL)
#4 /home/pgzone/public_html/teste/phpbb/template/twig/environment.php(151): Twig_Environment->loadTemplate('overall_header....', NULL)
#5 /home/pgzone/public_ in /home/pgzone/public_html/teste/vendor/twig/twig/lib/Twig/Loader/Filesystem.php on line 202

Avatar utilizator
Dragosvr92
Moderator
Moderator
Mesaje: 2287
Membru din: 22-Noi-2010, 07:37:38
Versiune: 3.1.10
MOD: Da
Server: UNIX/Linux
Nivel phpBB: Experimentat
Nivel php: Mediu
Localitate: Romania
Contact:

Re: Refacere Overall_header

Mesaj de Dragosvr92 » 12-Iul-2015, 10:02:50

Link urile si cuvintele trebuie sa foloseasca atributele ce le genereaza din fisierele de limba si setarile forumului. Din cauza acestui fisier, index ul nu poste fi tradus de nici un pachet de limba instalat.

Este posibil sa iti fi scapat si vreun EVENT, sau sa ai setarile cmod gresite pentru fisier. Asigurate ca fisierul are permisiunile 755.
"Calitatea răspunsurilor primite este direct proporţională cu calitatea întrebării."
ID Vechi >> TheKiller || Avatar on Memberlist 1.0.3

Jimmi
Junior
Junior
Mesaje: 10
Membru din: 04-Apr-2015, 12:27:09
Versiune: 3.1.7
MOD: Nu
Server: Windows
Nivel phpBB: Neexperimentat
Nivel php: Neexperimentat

Re: Refacere Overall_header

Mesaj de Jimmi » 12-Iul-2015, 21:11:12

Sau fisierul care era .html l-am redenumit in .php sa modific ceva in el si am uitat sa il pun i-ar .html si de aia dadea eroare....

Avatar utilizator
Dragosvr92
Moderator
Moderator
Mesaje: 2287
Membru din: 22-Noi-2010, 07:37:38
Versiune: 3.1.10
MOD: Da
Server: UNIX/Linux
Nivel phpBB: Experimentat
Nivel php: Mediu
Localitate: Romania
Contact:

Re: Refacere Overall_header

Mesaj de Dragosvr92 » 12-Iul-2015, 22:44:46

Sau fisierul era pur si simplu inaccesibil(sau mai degraba inexistent), cum ti am zis ca ar putea sa fie din cauza permisiunilor chmod.

Daca ai avut overall_header.php sau orice alta extensie, phpBB nu stie cum sa faca diferenta pentru ca cere doar fisierul exact cu extensia html.

Iar celelalte observatii ar trebui rezolvate. Instaleaza limba romana pe forum si adauga variabilele necesare daca vrei sa iti functioneze cum trebuie. Sa tina cont de sid si de sesiuni cand dai click pe un link. Si cuvintele sa fie traduse de pachetul de limba. Mult noroc in continuare !
"Calitatea răspunsurilor primite este direct proporţională cu calitatea întrebării."
ID Vechi >> TheKiller || Avatar on Memberlist 1.0.3

Scrie răspuns

Înapoi la “3.1.x Cum pot să...?”

Cine este conectat

Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 1 vizitator