Salta al contenuto
  • CATEGORIES
  • La Community Connect.gt
  • Presentati alla Community
  • News Ufficiali da Connect.gt
  • Internet News
  • A Scuola Di
  • Digital Marketing
  • Intelligenza Artificiale
  • SEO & GEO
  • Web Marketing e Content
  • Google Analytics e Web Analytics
  • Google Ads & Advertising
  • YouTube
  • TikTok, Instagram e altri Social
  • Google Adsense, Affiliazioni e Guadagno
  • E-Commerce
  • Coding e Sistemistica
  • Help Center: consigli per il tuo progetto
  • Hosting e Cloud
  • Coding
  • CMS & Piattaforme Self-Hosted
  • Annunci e Collaborazioni
  • Annunci Vendita e Acquisto: Pubblicità, Domini, Link e altro
  • Collaborazioni WEB e Lavoro: offro e cerco
  • Impresa, Fisco e Leggi
  • Consulenza Legale e Professioni Web
  • Consulenza Fiscale, Imprese, Startup e P.Iva
  • Gli Off Topic
  • PC, Smartphone e altri Hardware
  • Tutti i Software
  • GT Fetish Cafè
  • Discussioni
  • 0 Non letti 0
  • Recenti
  • Hashtag
  • Popolare
  • Utenti
  • Privacy
  • Termini e condizioni
  • © 2026 Search On Media Group S.r.l.
Collassa
Connect.gt
Il network Search On
Connect.gt WMF AI Festival Accademia Advanced SEO Tool AgentCy Social Media Strategies Search Tech
Registrati Accedi
Connect.gt
Stream Interest Categorie Hashtag
  1. La community italiana di SEO, marketing digitale e AI
  2. Categorie
  3. Coding e Sistemistica
  4. Coding
  5. Foglio di stile

Foglio di stile

Pianificato Fissato Bloccato Spostato Coding
6 Post 3 Autori 1.2k Visualizzazioni 1 Seguito
  • Da Vecchi a Nuovi
  • Da Nuovi a Vecchi
  • Più Voti
Rispondi
  • Risposta alla discussione
Effettua l'accesso per rispondere
Questa discussione è stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
  • V
    V
    vriccio
    scritto su ultima modifica di
    User 0
    #1
    Foglio di stile

    Come creo un foglio di stile con url statici per questa pagina?

    http://vincenzoriccio.altervista.org/php...8&count=20

    1 Risposta Ultima Risposta
    Miglior risposta 0
    0
    • L
      L
      laburno
      scritto su ultima modifica di
      User Attivo 5
      #2

      Ciao vriccio,
      devi inserire come prima riga nel documenti xml questa istruzione per richiamare il foglio di stile esterno:

      <?xml-stylesheet href="my-style.css" type="text/css"?>
      

      Nelle regole CSS ovviamente, dovrai fare riferimento ai nomi degli item.
      Per maggiori informazioni:
      http://www.w3.org/Style/styling-XML

      1 Risposta Ultima Risposta
      Miglior risposta 0
      0
      • V
        V
        vriccio
        scritto su ultima modifica di
        User 0
        #3

        Allora voglio che questo codice che non è nient'altro che l'rdf.php del mio forum, quando apre quella pagina lo fa su un foglio di stile con url stastici e non come lo fa adesso.

        <?php
        // CTracker_Ignore: File Checked By Human
        /***************************************************************************
         *                                  rdf.php
         *                            -------------------
         *   begin                : Saturday, Mar 2, 2002
         *   copyright            : (C) 2002 Matthijs van de Water
         *                                   Sascha Carlin
         *   email                : [email protected]
         *                          [email protected]
         *
         *   $Id: rdf.php,v 1.2 2002/04/15 13:15:01 mvdwater Exp $
         *
         *
         ***************************************************************************/
        
        /***************************************************************************
         *
         *   This program is free software; you can redistribute it and/or modify
         *   it under the terms of the GNU General Public License as published by
         *   the Free Software Foundation; either version 2 of the License, or
         *   (at your option) any later version.
         *
         ***************************************************************************/
        
        /***************************************************************************
         *
         *   PHPBB 2.0 RDF CONTENT SYNDICATOR
         *   Shows last active topics RDF XML form
         *
         ***************************************************************************
         *
         *   Put this file in your phpBB2 directory.
         *   You can call this script without parameters, what will
         *   result in an RDF with the 10 latest posts from all your forums.
         *   You can specify the number of posts via the url parameter count:
         *
         *   http://www.domain.com/phpBB2/rdf.php?count=50
         *
         *   This will result in an RDF file with the latest 50 posts from
         *   all your forums.
         *
         *   You can also specify to look only at a specified forum using the
         *   fid parameter:
         *
         *   http://www.domain.com/phpBB2/rdf.php?fid=9
         *
         *   This will result in an RDF file with the latest 10 posts from
         *   your forum with the id 9.
         *
         *   You can also mix the paramters:
         *
         *   http://www.domain.com/phpBB2/rdf.php?fid=5&count=3
         *
         *   will show you the latest 3 posts from forum 5.
         *
         *   THIS SCRIPT WILL ONLY SHOW POSTS FROM PUBLIC FORUMS
         *
         ***************************************************************************/
        
        // XML and nocaching headers
        header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
        header ('Expires: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT');
        header ('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
        header ('Content-Type: text/xml');
        
        // Includes of phpBB scripts
        define ('IN_PHPBB', true);
        $phpbb_root_path = './';
        include($phpbb_root_path . 'extension.inc');
        include($phpbb_root_path . 'common.'.$phpEx);
        
        // If not set, set the output count to 10
        $count = ( !isset($HTTP_GET_VARS['count']) ) ? 10 : intval($HTTP_GET_VARS['count']);
        $count = ( $count == 0 ) ? 10 : $count;
        
        // Create main board url (some code borrowed from functions_post.php)
        $script_name = preg_replace('/^\/?(.*?)\/?$/', '\1', trim($board_config['script_path']));
        $viewtopic = ( $script_name != '' ) ? $script_name . '/viewtopic.' . $phpEx : 'viewtopic.'. $phpEx;
        $index = ( $script_name != '' ) ? $script_name . '/index.' . $phpEx : 'index.'. $phpEx;
        $server_name = trim($board_config['server_name']);
        $server_protocol = ( $board_config['cookie_secure'] ) ? 'https://' : 'http://';
        $server_port = ( $board_config['server_port'] <> 80 ) ? ':' . trim($board_config['server_port']) . '/' : '/';
        
        $index_url = $server_protocol . $server_name . $server_port . $index;
        $viewtopic_url = $server_protocol . $server_name . $server_port . $viewtopic;
        
        $rdf = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>
        <rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns=\"http://my.netscape.com/rdf/simple/0.9/\">
        
        <channel>
            <title>" . $board_config['sitename'] . " Forum</title>
            <link>" . $index_url . "</link>
            <description>" . $board_config['site_desc'] . "</description>
        </channel>
        ";
        
        $fid = ( isset($HTTP_GET_VARS['fid']) ) ? intval($HTTP_GET_VARS['fid']) : '';
        $sql_where = ( !empty($fid) ) ? " AND f.forum_id = $fid " : " ";
        
        // SQL statement to fetch active topics of public forums
        $sql = "SELECT DISTINCT t.topic_title, t.topic_last_post_id, p.post_time, f.forum_name
            FROM " . TOPICS_TABLE . " AS t, " . POSTS_TABLE . " AS p, " . FORUMS_TABLE . " AS f
            WHERE
                t.forum_id = f.forum_id
                    AND f.auth_view = " . AUTH_ALL . "
                    AND p.topic_id = t.topic_id
                    AND p.post_id = t.topic_last_post_id
                    $sql_where
            ORDER BY p.post_time DESC LIMIT $count";
        $topics_query = $db->sql_query($sql);
        
        if ( !$topics_query )
        {
            die("Failed obtaining list of active topics");
        }
        else
        {
            $topics = $db->sql_fetchrowset($topics_query);
        }
        
        if ( count($topics) == 0 )
        {
            die("No topics found");
        }
        else
        {
            // $topics contains all interesting data
            for ($i = 0; $i < count($topics); $i++)
            {
                $title = $topics[$i]['topic_title'];
                $url = $viewtopic_url . "?" . POST_POST_URL . "=" . $topics[$i]['topic_last_post_id'] . "#" . $topics[$i]['topic_last_post_id'];
        
                $rdf .= "
        <item>
            <title>" . $title . "</title>
            <link>" . $url . "</link>
        </item>
        ";
            }
        }
        
        // Create RDF footer
        $rdf .= "
        </rdf:RDF>";
        
        // Output the RDF
        echo $rdf;
        
        ?>
        
        1 Risposta Ultima Risposta
        Miglior risposta 0
        0
        • L
          L
          laburno
          scritto su ultima modifica di
          User Attivo 5
          #4

          vriccio

          Allora voglio che questo codice che non è nient'altro che l'rdf.php del mio forum, quando apre quella pagina lo fa su un foglio di stile con url stastici e non come lo fa adesso.

          Visto che me lo hai chiesto con tanta gentilezza 🙂

          Ad occhio la porzione di codice che devi modificare è questa prima dichiarazione di $rdf:

          $rdf = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>
          <rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns=\"http://my.netscape.com/rdf/simple/0.9/\">
          
          <channel>
              <title>" . $board_config['sitename'] . " Forum</title>
              <link>" . $index_url . "</link>
              <descrition>" . $board_config['site_desc'] . "</description>
          </channel>
          ";
          

          Ci devi aggiungere, nella prima riga, il richiamo al foglio di stile che ti ho scritto nel primo messaggio.

          1 Risposta Ultima Risposta
          Miglior risposta 0
          0
          • V
            V
            vriccio
            scritto su ultima modifica di
            User 0
            #5

            Scusami non volevo essere scortese, ma sto lavorando sul mio forum e allora ho scritto di fretta.

            Ora provo e ti faccio sapere!

            PS Così devo aggiungere?

            $rdf = "<?xml version="1.0" encoding="ISO-8859-1" ?> <?xml-stylesheet href="my-style.css" type="text/css"?>

            1 Risposta Ultima Risposta
            Miglior risposta 0
            0
            • shadS
              shadS
              shad
              Moderatore
              scritto su ultima modifica di
              User Attivo 5
              #6

              Sposto nella sezione CSS, così siete tra amici XD

              1 Risposta Ultima Risposta
              Miglior risposta 0
              0

              Ciao! Sembra che tu sia interessato a questa conversazione, ma non hai ancora un account.

              Stanco di dover scorrere gli stessi post a ogni visita? Quando registri un account, tornerai sempre esattamente dove eri rimasto e potrai scegliere di essere avvisato delle nuove risposte (tramite email o notifica push). Potrai anche salvare segnalibri e votare i post per mostrare il tuo apprezzamento agli altri membri della comunità.

              Con il tuo contributo, questo post potrebbe essere ancora migliore 💗

              Registrati Accedi
              Rispondi
              • Risposta alla discussione
              Effettua l'accesso per rispondere
              • Da Vecchi a Nuovi
              • Da Nuovi a Vecchi
              • Più Voti


              • Accedi

              • Non hai un account? Registrati

              • Accedi o registrati per effettuare la ricerca.
              • Primo post
                Ultimo post
              Home Accedi Registrati
              Menu
              • CATEGORIES
              • La Community Connect.gt
              • Presentati alla Community
              • News Ufficiali da Connect.gt
              • Internet News
              • A Scuola Di
              • Digital Marketing
              • Intelligenza Artificiale
              • SEO & GEO
              • Web Marketing e Content
              • Google Analytics e Web Analytics
              • Google Ads & Advertising
              • YouTube
              • TikTok, Instagram e altri Social
              • Google Adsense, Affiliazioni e Guadagno
              • E-Commerce
              • Coding e Sistemistica
              • Help Center: consigli per il tuo progetto
              • Hosting e Cloud
              • Coding
              • CMS & Piattaforme Self-Hosted
              • Annunci e Collaborazioni
              • Annunci Vendita e Acquisto: Pubblicità, Domini, Link e altro
              • Collaborazioni WEB e Lavoro: offro e cerco
              • Impresa, Fisco e Leggi
              • Consulenza Legale e Professioni Web
              • Consulenza Fiscale, Imprese, Startup e P.Iva
              • Gli Off Topic
              • PC, Smartphone e altri Hardware
              • Tutti i Software
              • GT Fetish Cafè
              • Discussioni
              • Non letti 0
              • Recenti
              • Hashtag
              • Popolare
              • Utenti
              • Privacy
              • Termini e condizioni
              • © 2026 Search On Media Group S.r.l.