>>
Site Map
>>
Forums
>>
Site Related - This Site
Forum module - topics in forum:
Site Related - This Site - <font color=green>Post about any site related problem's or issues here <b>(THIS SITE ONLY)</b>, or make any suggestions.</font>
How to get topic and categories page title
The title of the page
http://phpnuke-uk.net/article-topic-13.html
is "PHP-N uk ie s :: PHP-Nuke Community Support Site >> Internet"
How have you modified news module to get that?
Is it possible to have a different page title of all categories
http://phpnuke-uk.net/article-category-2.html
Now the title is "PHP-N uk ie s :: PHP-Nuke Community Support Site >> News"
how to get:
" PHP-N uk ie s :: PHP-Nuke Community Support Site >> Hosting"
or
" PHP-N uk ie s :: PHP-Nuke Community Support Site >> Internet >> Hosting"
Thanks in advance!
So are you asking how to create news categories or how to get the title bar text?
how to get the title bar text
Its a hack called "Dynamic Titles" - cant remember exactly where to get it tho - as am still on hols in Cyprus. A Google should find it for ya.
I've find it, but i can't get the category title in the bar: it shows the name of module (News) at the end of the title (es
http://phpnuke-uk.net/article-category-2.html), can you help me to add the $cid title
| Code: : |
if($name=="News"){
global $file,$sid,$new_topic;
$newpagetitle= "$item_delim $name";
if ($new_topic!=""){
$sql = "SELECT topictext FROM ".$prefix."_topics WHERE topicid='$new_topic'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$top = $row[topictext];
$newpagetitle= "$item_delim $top";
}
if ($file=="article"){
$sql = "SELECT title, topic FROM ".$prefix."_stories WHERE sid='$sid'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$art = $row[title];
$top = $row[topic];
$sql = "SELECT topictext FROM ".$prefix."_topics WHERE topicid='$top'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$top = $row[topictext];
$newpagetitle= "$item_delim $top $item_delim $art";
}
} |
EDIT: Try placeing your code in the
| Code: : |
| [code] ... YOUR CODE [/code] |
tags as it is easier to read - Dashe 
Can some kind sole send the mod to me please the links i,ve found are no longer active 
found it 