PHP-Nuke Services - Addons, Modules, Blocks Vizitati www.westdesign.ro Select Interface Language:EnglishRomanian
  Login or Register HomeForumsDownloadsYour AccountWeb LinksContact   
SectionsShow\Hide
MultiheadlinesShow\Hide
LoginShow\Hide
~ Welcome, alien
Nickname Password
(Register)

~ Membership:

Greetings to the newest member jincesoft
~ New Today: 0
~ New Yesterday: 0
~ Overall: 4306

~ People Online:
~ Visitors: 10
~ Members: 0
~ Total: 10
~Aikon is offline
on Yahoo Msg.
Link to meShow\Hide

aikons.net
Search in FeedsShow\Hide
Search in feeds
HistoryShow\Hide
On 21 May


Speed Up   Pause   Speed Down
DictionaryShow\Hide
Enter the word

Romanian users only

- aikons.net - PHP-Nuke Services Forum Index


This topic is locked: you cannot edit posts or make replies. Page 1 of 1
cat page names
Message Author
Reply with quote
Post Posted: Sunday 16 April, 2006 16:41

In 1.0 to you could display the cat name on it's page using

Code:
   if ($cats["categ_description"]==""){
      $descript="none";
   } else {
      $descript=$cats["categ_description"];
   }
   echo "<table border=\"0\" align=\"center\" cellspacing=\"0\" cellpadding=\"0\">
     <tr>
    <td><b>".$cats["categ_title"]."</b>";
      echo "</td></tr></table>";


but now it shows the same cat name on all pages
What am I missing?

View user's profile Send private message
Reply with quote
Post Posted: Sunday 16 April, 2006 17:18

I don't know what you are saying.
Quote:
you could display the cat name on it's page


Quote:
but now it shows the same cat name on all pages

Again I don't understand what you are saying.

View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Sunday 16 April, 2006 17:51

Say I have a category "news1" and a category "news2" and a category "news3"

The code above in 1.0 would display "news1" on the category page news1 and "news2" on the category page news2 and so on.


When I use the above code in 2.0

If I go to news1 category page it displays "news2"
If I go to news2 category page it displays "news2"
If I go to news3 category page it displays "news2"

View user's profile Send private message
Reply with quote
Post Posted: Sunday 16 April, 2006 17:58

I’m not sure about this, but it could be they all show “news2” because that was the first page I looked at and that somehow set the category name for all pages.

View user's profile Send private message
Reply with quote
Post Posted: Sunday 16 April, 2006 20:15

Quote:
When I use the above code in 2.0

What do you mean by this. You've done some changes in code? If yes then I can't help you. Who knows what you've done there.
If you have many categories with the same name then edit them as you wish. Isn't it logic?

View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Sunday 16 April, 2006 21:30

Quote:
You've done some changes in code?

I cant remember if I moded the code or not but it was part of MH 1.0

Quote:
Isn't it logic?

Laughing


Maybe I should change direction.

If I wanted to show the category name at the top of it's page what code would be needed?

View user's profile Send private message
Reply with quote
Post Posted: Sunday 16 April, 2006 21:54

Currently in index.php you have
Code:
echo "<center><b>"._MH_RSSMH.$sitename."</b></center>";

this prints on a category page as
RSS/RDF/ATOM Multiheadlines – site name

I would prefer to replace site name with the category name

View user's profile Send private message
Reply with quote
Post Posted: Sunday 16 April, 2006 22:34

There wasn't such think what you want. In v1.0 was the same think like now in v2.0 unless you've made changes in code.

If you are so unhappy with that then strip out that code. Anyway four or five lines below is given the category name clearly and centered. Isn't it?

View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Monday 17 April, 2006 00:17

Quote:
Anyway four or five lines below is given the category name clearly and centered. Isn't it?

Yes I see it now, I had used big scissors when stripping out the sub cats, thank you.

Quote:
If you are so unhappy

not unhappy, Multiheadlines is superb.


Did you have any more thoughts about the gt'd cat names?

View user's profile Send private message
Reply with quote
Post Posted: Monday 17 April, 2006 09:51

Quote:
Did you have any more thoughts about the gt'd cat names?

Meaning?

View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Monday 17 April, 2006 12:13

last post in

http://www.aikons.net/ftopict-51.html

View user's profile Send private message
Reply with quote
Post Posted: Monday 17 April, 2006 16:04

Aha. This will need some code changes.
This is how can be done[easily]: on every link [category link] you have to add the category title. After set a rewrite rule[in .htaccess] for this kind of link. Easy as it sounds.

Maybe when I'll have a little time I will play with this. Ok?

View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Monday 17 April, 2006 16:23

ok

View user's profile Send private message
Display posts from previous:
This topic is locked: you cannot edit posts or make replies. Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Page Generation: 0.59 Seconds