<?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[directory con titoli pagine diversi...]]></title><description><![CDATA[<p dir="auto">Ciao a tutti, premetto che sono una schiappa con il php...per questo chiedo aiuto</p>
<p dir="auto">in pratica ho uno script per creare una directory...dovrei semplicemente far cambiare titolo (tag title) alle pagine a seconda della categoria in cui ci troviamo...quindi title=categoria.</p>
<p dir="auto">Dovrebbe esser semplice...però ho dei problemi. Lo script, gia fatto, invece della categoria come title mi riporta il titolo del sito, sempre uguale in ogni pagina.</p>
<p dir="auto">nel file config.php c'è appunto la variabile $namesite</p>
<p dir="auto">nel file listing.php (quello della categoria) infatti riporta questo codice:</p>
<p dir="auto">code:&lt;?<br />
include ("./dirinc/config.inc.php");<br />
include ($header);<br />
include ("./dirinc/general.class.php");<br />
?&gt;</p>
<p dir="auto">header.php ha questo codice:</p>
<p dir="auto">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;<br />
&lt;? echo $sitename ?&gt;<br />
&lt;/title&gt;<br />
&lt;/head&gt;</p>
<p dir="auto">quindi cambiando $sitename con la variabile della categoria dovrebbe funzionare?...ma che...</p>
<p dir="auto">dove sbaglio?</p>
<p dir="auto">aiuto please...</p>
]]></description><link>https://connect.gt/topic/8527/directory-con-titoli-pagine-diversi</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Jul 2026 02:24:50 GMT</lastBuildDate><atom:link href="https://connect.gt/topic/8527.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 21 Mar 2006 16:19:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to directory con titoli pagine diversi... on Tue, 21 Mar 2006 20:58:21 GMT]]></title><description><![CDATA[<p dir="auto">eheh...vado molto a intuito <img src="https://connect.gt/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=pjkabbjvlkk" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" title=":)" alt="🙂" /></p>
<p dir="auto">cmq essendoci il file listing.php (nel file config.php non riesco a capire quale sia) che elenca i siti delle categorie e riporta la barra di navigazione con appunto la voce della categoria...ho preso la variabile di quest'ultima voce... <img src="https://connect.gt/plugins/nodebb-plugin-emoji/emoji/android/1f622.png?v=pjkabbjvlkk" class="not-responsive emoji emoji-android emoji--cry" title=":cry:" alt="😢" /> ma non funge...non mi da niente nel title e lo script funziona perfettamente...</p>
<p dir="auto">ecco il file config.php dove ho inserito il nome del sito, ma non vedo quella delle categorie</p>
<pre><code>&lt;?
// leave this setting, used to ignore config file for click through script
if &amp;#40;$click != "yes"&amp;#41; &amp;#123;

// admin password and username
$username = "andrea";
$password = "catarsi";

// configuration setup
$authreq = 0;  // are entires automatically added or require authorisation - 1 yes, 0 no &amp;#40;requires auth by admin&amp;#41;
$automail = 1; // e-mails auto sent to submitter and web admin - 1 yes, 0 no

$subshow = 3; // no. of sub-categories shown on main page below main category default 2
$searchresults = 10; //  search results returned
$catlinkreq = 1; // allow links to be added without category set - 1  yes , 0 no
$mod = 1; // allow mods on index page- 1 = yes / 0 =no
$mod_sub =0; // allow mods on sub pages - 1 = yes / 0 = no
$s_catlink = 1; // allow category linkdetails on search page - 1 yes , 0 no &amp;#40;not sure of db effects requires benchmarking&amp;#41;

$cols = "2";  // number of table colums on home page
$sublinks = "3"; // number of sub links to show on home page
$catcols = "3"; // number of colums on listings page for subcatergories
$colper = 100/$cols; // calculation required please leave as is
$catcolper = 100/$catcols; // calculation required please leave as is
$border = "0"; 
$style = "";
$titlebg = "";
$foldergif = "folder1.gif"; // category folder image, put in images directory
$eff = ", "; // if comma leave 1 space, if 
 or 

tag leave 2 spaces at end
$hrcolor = " color=\"#C0C0FF\""; // color of HR line
$topstyle = "cellpadding=\"0\" cellspacing=\"0\""; //style for main table
$menuheader = "";

$sitename = "Volivacanza"; //  enter your site name here
$bgcolor = "#808080"; //  header and footer background table color

$version = "3.0.0"; // leave this setting ALP-site directory version number
$weburl = "http://www.phpeachee.com"; // leave this setting, host site

$headeri = "./templates/headeri1.inc.php"; // header for index - overwrtitten if template used
$footeri = "./templates/footeri1.inc.php"; // footer for index - overwrtitten if template used
$header = "./templates/header1.inc.php"; // header for rest - overwrtitten if template used
$footer = "./templates/footer1.inc.php"; // footer for rest - overwrtitten if template used

// langauge pack 
$lang = "lan.en.php"; // default english

// style settings
if &amp;#40;stristr&amp;#40;$PHP_SELF, diradmin&amp;#41; == TRUE&amp;#41; &amp;#123;
$css = "../dirinc/dir.css"; // will be over written if template used
&amp;#125;
else &amp;#123;
$css = "./dirinc/dir.css"; // will be over written if template used
&amp;#125;

// template settings
if &amp;#40;stristr&amp;#40;$PHP_SELF, diradmin&amp;#41; == TRUE&amp;#41; &amp;#123;
$templatedir = "../templates/";
&amp;#125;
else &amp;#123;
$templatedir = "./templates/";
&amp;#125;

$templatefile = "template1.inc.php"; // which template to use

// 1 = default - 'template1.inc.php'
// 2 = slick style - 'template2.inc.php'
// 3 = phpeachee style - 'template3.inc.php'

$template = $templatedir . $templatefile; 


// mail settings text
$mymail = ""; // your admin e-mail for notification
$from = "site admin";
$subject = "Website entry for Site Directory";
$newsite = "Thank you for completing the on-line form to add your site to the site directory.\n";
$newsite .="Once we have checked over the site to ensure it is a valid site will we then notify you via e-mail of approval.\n";
$newsite .="";
$approvesubject = "Website entry for Site Directory"; // subject of e-mail once approval e-mail sent
$approved ="Your site has been approved for the site directory.  Your details will be live under your choosen category."; // message body of e-mail once approval e-mail sent

// site submit text
$emailsent ="Your details have been e-mailed to our administration team, you will also receive details of your submission.";
$approval ="Once your site as been approved we will notify you via e-mail and your site will then be live.

";
$approval .="We aim to approve all sites within 48hrs.";
$thankyou ="Thank you for taking the time to submit your site.";

// loading langauge pack
if &amp;#40;stristr&amp;#40;$PHP_SELF, diradmin&amp;#41; == TRUE&amp;#41; &amp;#123;
include &amp;#40;"../dirinc/$lang"&amp;#41;;
&amp;#125;
else &amp;#123;
include &amp;#40;"./dirinc/$lang"&amp;#41;;
&amp;#125;

&amp;#125;
// database settings
$host = "localhost"; // host name of web site ie www.phpeachee.com
$user = ""; // username for database
$pwd = ""; // password for database
$dbname = ""; // database name to connect to

// connect to database - leave the following settings
@mysql_connect&amp;#40;$host, $user, $pwd&amp;#41; or DIE&amp;#40;"Temporary Server Problems Please Try Again"&amp;#41;;
mysql_select_db&amp;#40;$dbname&amp;#41;;

// loading template options if required
if &amp;#40;$templatefile != ''&amp;#41; &amp;#123;
include &amp;#40;"$template"&amp;#41;;
&amp;#125;
?&gt;
</code></pre>
]]></description><link>https://connect.gt/post/308288</link><guid isPermaLink="true">https://connect.gt/post/308288</guid><dc:creator><![CDATA[dufresne]]></dc:creator><pubDate>Tue, 21 Mar 2006 20:58:21 GMT</pubDate></item><item><title><![CDATA[Reply to directory con titoli pagine diversi... on Tue, 21 Mar 2006 20:45:28 GMT]]></title><description><![CDATA[<p dir="auto">La variabile come e dove la prendi?<br />
Ti dà qualche errore o nn ti scrive nulla e lo script è tranquillo e viene letto?</p>
]]></description><link>https://connect.gt/post/308282</link><guid isPermaLink="true">https://connect.gt/post/308282</guid><dc:creator><![CDATA[albertorrr]]></dc:creator><pubDate>Tue, 21 Mar 2006 20:45:28 GMT</pubDate></item><item><title><![CDATA[Reply to directory con titoli pagine diversi... on Tue, 21 Mar 2006 19:27:20 GMT]]></title><description><![CDATA[<p dir="auto">credo sia lo steso script che ha usato giorgio per la directory <a href="http://www.giorgiotave.it/directory/" rel="nofollow ugc">http://www.giorgiotave.it/directory/</a></p>
<p dir="auto">infatti per lui compare il title della categoria...giorgio come si fa?</p>
<p dir="auto"><img src="https://connect.gt/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=pjkabbjvlkk" class="not-responsive emoji emoji-android emoji--wink" title=";)" alt="😉" /></p>
]]></description><link>https://connect.gt/post/308287</link><guid isPermaLink="true">https://connect.gt/post/308287</guid><dc:creator><![CDATA[dufresne]]></dc:creator><pubDate>Tue, 21 Mar 2006 19:27:20 GMT</pubDate></item></channel></rss>