• User Newbie

    Problema inserimento sub-template

    Ciao,
    sono appena arrivato, e innanzitutto mando un saluto a tutti i partecipanti!

    ho un problema che mi limita nell'installare un sub-template.

    Ecco la procedura che ho eseguito fin ora:

    ho installato mod_subtemplate_104 e entrando nell'amministrazione del forum, ho constatato che c'è una nuova voce: sub templates.
    Fin qui tutto ok, ma poi cliccando su quella voce mi chiede cosa fare.

    Ora nel file dell'installazione c'è questo testo:

    How-to set a sub-template :

    A sub-template is basicly a standard templates, but most of the files can be removed,

    as the sub-template process use the main template files by default (if not found in

    the sub-templates dir, the same-name main template file will be used).

    A sub-template dir is always set in a main template dir (ie: templates/subSilver/subColor

    for the sub-template subColor)

    In each main template directory you are using, you have to create an empty file named

    sub_templates.cfg being writable (CHMOD 666).

    In this file will be stored the sub-template configuration (links to forums and cats,

    the css file name (.css), and the images file name (.cfg) ).

    You can set many images set for the same sub-template, only by having different images

    config file in the same sub-template. A sub-template can be also only a reduce images

    set (ie only a logo ).

    The mod only requires to use in the overall_header.tpl's the external css sheet,

    rather than the ugly style redifining. So you'll have to :

    * inhibate all the redifined "<style></style>"

    (deleting all the lines within those tags will be perfect,

    and will decrease the bandwidth usage of your board),

    * activate in overall_header.tpl the line :

    <link rel="stylesheet" href="templates/subSilver/{T_HEAD_STYLESHEET}" type="text/css">

    When your sub-templates will be ready, just go to the admin control panel,

    choose "Sub-template", create a new sub-template ref, then link it to the forums

    or categories you want it to appear.

    Ma non ci capisco un tubo...

    Potete aiutarmi gentilmente? Non so cosa fare...

    (Considerate che vorrei passre un template già esistente su un mio forum, in un altro mio forum, in una sezione apposita. Intanto ho installato lo stile nel nuovo forum, ma ora?)

    Grazie, grazie e grazie...

    Scusate ma sono proprio negato.. image


  • Super User

    Ciao Démyan

    Dovresti creare una sottocartella nel template attuale ed inserire un file vuoto chiamandolo sub_templates.cfg dandogli i permessi CHMOD 666.

    Dovresti, successivamente, aprire il file overall_header.tpl ed "oscurare" tutto ciò che si trova tra "<style></style>". Inoltre dovresti rendere attiva la linea <link rel="stylesheet" href="templates/subSilver/{T_HEAD_STYLESHEET}" type="text/css">

    Per effettuare altre traduzioni del testo potresti provare ad utilizzare [url=http://translate.google.com/translate_t?hl=it]questo visto che io non sono ferratissimo in inglese 😉

    Spero di esserti stato d'aiuto 🙂


  • User Newbie

    Grazie mille cionfs, fino a creare un file vuoto sub_templates.cfg con permessi 666 ci sono riuscito.

    Ora non capisco che significa oscurare...


  • Super User

    @Démyan said:

    Grazie mille cionfs, fino a creare un file vuoto sub_templates.cfg con permessi 666 ci sono riuscito.

    Ora non capisco che significa oscurare...

    tutto quello che si trova tra <style> e </style> mettilo tra <!-- e -->

    Esempio

    <!--<style>
    codice
    codice
    codice
    </style>-->

    😉


  • User Newbie

    Ciao, ieri ho provato a completare il lavoro, ma non riesco proprio...

    Ricapitolo i miei passi fin qui:

    • installo la mod

    • vedo che nel pannello amministrazione mi da una nuova voce: sub templates

    • clicco sopra la voce e mi appare una serie di opzioni per settare il sub templates dove voglio.

    • leggendo nel file dell'installazione (quello postato sopra), scopro che per settare un nuovo sub template devo fare delle modifiche...

    Conclusione:

    • 😞 😞 😞

  • Super User

    Purtroppo le modifiche vanno apportate per poter avere i sub-template 😉