<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Foglio di stile]]></title><description><![CDATA[<p dir="auto">Come creo un foglio di stile con url statici per questa pagina?</p>
<p dir="auto"><a href="http://vincenzoriccio.altervista.org/phpBB2/rdf.php?fid=18&amp;count=20" rel="nofollow ugc">http://vincenzoriccio.altervista.org/php...8&amp;count=20</a></p>
]]></description><link>https://dev.connect.gt/topic/48342/foglio-di-stile</link><generator>RSS for Node</generator><lastBuildDate>Thu, 26 Nov 2026 19:26:29 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/48342.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 08 Oct 2007 19:23:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Foglio di stile on Wed, 10 Oct 2007 11:10:45 GMT]]></title><description><![CDATA[<p dir="auto">Sposto nella sezione CSS, così siete tra amici XD</p>
]]></description><link>https://dev.connect.gt/post/608036</link><guid isPermaLink="true">https://dev.connect.gt/post/608036</guid><dc:creator><![CDATA[shad]]></dc:creator><pubDate>Wed, 10 Oct 2007 11:10:45 GMT</pubDate></item><item><title><![CDATA[Reply to Foglio di stile on Mon, 08 Oct 2007 21:28:03 GMT]]></title><description><![CDATA[<p dir="auto">Scusami non volevo essere scortese, ma sto lavorando sul mio forum e allora ho scritto di fretta.</p>
<p dir="auto">Ora provo e ti faccio sapere!</p>
<p dir="auto">PS Così devo aggiungere?</p>
<p dir="auto">$rdf = "&lt;?xml version="1.0" encoding="ISO-8859-1" ?&gt; &lt;?xml-stylesheet href="my-style.css" type="text/css"?&gt;</p>
]]></description><link>https://dev.connect.gt/post/608051</link><guid isPermaLink="true">https://dev.connect.gt/post/608051</guid><dc:creator><![CDATA[vriccio]]></dc:creator><pubDate>Mon, 08 Oct 2007 21:28:03 GMT</pubDate></item><item><title><![CDATA[Reply to Foglio di stile on Mon, 08 Oct 2007 21:20:44 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><strong>vriccio</strong></p>
<p dir="auto"><strong>Allora voglio che</strong> 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.</p>
</blockquote>
<p dir="auto">Visto che me lo hai chiesto con tanta gentilezza <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">Ad occhio la porzione di codice che devi modificare è questa prima dichiarazione di $rdf:</p>
<pre><code>$rdf = "&lt;?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?&gt;
&lt;rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns=\"http://my.netscape.com/rdf/simple/0.9/\"&gt;

&lt;channel&gt;
    &lt;title&gt;" . $board_config['sitename'] . " Forum&lt;/title&gt;
    &lt;link&gt;" . $index_url . "&lt;/link&gt;
    &lt;descrition&gt;" . $board_config['site_desc'] . "&lt;/description&gt;
&lt;/channel&gt;
";
</code></pre>
<p dir="auto">Ci devi aggiungere, nella prima riga, il richiamo al foglio di stile che ti ho scritto nel primo messaggio.</p>
<p dir="auto"><img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/customizations/54a3bffb-5e4a-4eb8-81dc-99b2072e5d05-175.gif?v=12b9555a9a1" class="not-responsive emoji emoji-customizations emoji--ciauz" style="height:1.4em;width:auto;vertical-align:middle" title=":ciauz:" alt="" /></p>
]]></description><link>https://dev.connect.gt/post/608035</link><guid isPermaLink="true">https://dev.connect.gt/post/608035</guid><dc:creator><![CDATA[laburno]]></dc:creator><pubDate>Mon, 08 Oct 2007 21:20:44 GMT</pubDate></item><item><title><![CDATA[Reply to Foglio di stile on Mon, 08 Oct 2007 21:06:45 GMT]]></title><description><![CDATA[<p dir="auto">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.</p>
<pre><code>&lt;?php
// CTracker_Ignore: File Checked By Human
/***************************************************************************
 *                                  rdf.php
 *                            -------------------
 *   begin                : Saturday, Mar 2, 2002
 *   copyright            : (C) 2002 Matthijs van de Water
 *                                   Sascha Carlin
 *   email                : matthijs@beryllium.net
 *                          sc@itst.org
 *
 *   $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&amp;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'] &lt;&gt; 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 = "&lt;?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?&gt;
&lt;rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns=\"http://my.netscape.com/rdf/simple/0.9/\"&gt;

&lt;channel&gt;
    &lt;title&gt;" . $board_config['sitename'] . " Forum&lt;/title&gt;
    &lt;link&gt;" . $index_url . "&lt;/link&gt;
    &lt;description&gt;" . $board_config['site_desc'] . "&lt;/description&gt;
&lt;/channel&gt;
";

$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-&gt;sql_query($sql);

if ( !$topics_query )
{
    die("Failed obtaining list of active topics");
}
else
{
    $topics = $db-&gt;sql_fetchrowset($topics_query);
}

if ( count($topics) == 0 )
{
    die("No topics found");
}
else
{
    // $topics contains all interesting data
    for ($i = 0; $i &lt; 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 .= "
&lt;item&gt;
    &lt;title&gt;" . $title . "&lt;/title&gt;
    &lt;link&gt;" . $url . "&lt;/link&gt;
&lt;/item&gt;
";
    }
}

// Create RDF footer
$rdf .= "
&lt;/rdf:RDF&gt;";

// Output the RDF
echo $rdf;

?&gt;
</code></pre>
]]></description><link>https://dev.connect.gt/post/608050</link><guid isPermaLink="true">https://dev.connect.gt/post/608050</guid><dc:creator><![CDATA[vriccio]]></dc:creator><pubDate>Mon, 08 Oct 2007 21:06:45 GMT</pubDate></item><item><title><![CDATA[Reply to Foglio di stile on Mon, 08 Oct 2007 20:55:39 GMT]]></title><description><![CDATA[<p dir="auto">Ciao vriccio,<br />
devi inserire come prima riga nel documenti xml questa istruzione per richiamare il foglio di stile esterno:</p>
<pre><code>&lt;?xml-stylesheet href="my-style.css" type="text/css"?&gt;
</code></pre>
<p dir="auto">Nelle regole CSS ovviamente, dovrai fare riferimento ai nomi degli item.<br />
Per maggiori informazioni:<br />
<a href="http://www.w3.org/Style/styling-XML" rel="nofollow ugc">http://www.w3.org/Style/styling-XML</a></p>
<p dir="auto"><img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/customizations/54a3bffb-5e4a-4eb8-81dc-99b2072e5d05-175.gif?v=12b9555a9a1" class="not-responsive emoji emoji-customizations emoji--ciauz" style="height:1.4em;width:auto;vertical-align:middle" title=":ciauz:" alt="" /></p>
]]></description><link>https://dev.connect.gt/post/608034</link><guid isPermaLink="true">https://dev.connect.gt/post/608034</guid><dc:creator><![CDATA[laburno]]></dc:creator><pubDate>Mon, 08 Oct 2007 20:55:39 GMT</pubDate></item></channel></rss>