1
wonder
How to change description?
  • 2005/10/28 19:12

  • wonder

  • Not too shy to talk

  • Posts: 144

  • Since: 2005/5/22


I'm using news module as the main page, but in the browser bar, I want to use a personalized sentence instead of the latest news published. What files have I to change... and where?

Thks

2
JMorris
Re: How to change description?
  • 2005/10/28 23:38

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Which version of the News module are you using?

Hervet's News module (1.42) offers custom keywords and page title I believe.

Best Regards,

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

3
wonder
Re: How to change description?
  • 2005/10/29 20:04

  • wonder

  • Not too shy to talk

  • Posts: 144

  • Since: 2005/5/22


I'm using News 1.4

4
wonder
Re: How to change description?
  • 2005/10/29 20:20

  • wonder

  • Not too shy to talk

  • Posts: 144

  • Since: 2005/5/22


I upgraded it for 1.42 just now... but I don't see that option.

5
JMorris
Re: How to change description?
  • 2005/10/29 20:43

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Wonder,

I was mistaken on the page title, but you can change the META data and description. Just go into the module preferences and look for the "Enable meta datas (keywords and description) to be entered ?" option. Turn that on. Once you've done that, you should be able to enter custom meta data for each new article. For old articles, you'll need to go back and add the data you want.

Hope this helps.

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

6
wonder
Re: How to change description?
  • 2005/10/29 20:50

  • wonder

  • Not too shy to talk

  • Posts: 144

  • Since: 2005/5/22


What I was talking about... was something like... well... in XOOPS main page title bar, you have: Official XOOPS Website - Powered by you!.

As I use the news module as main page... it shows My Site Title - Name of the latest news... I want to edit the file where the info to choose that "subtitle" as the latest news title, and put my personal subtitle.

I think I explained it better now... ^^ Thank you for using your time in my problem.

7
JMorris
Re: How to change description?
  • 2005/10/29 21:35

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Ah! Ok, now I understand. If you're only wanting your slogan on your homepage, then you'll need to do a little hacking in your theme using an "if" statement.

I believe something like the following might work:
<title><{$xoops_sitename}> - <{php}>if ($_SERVER['PHP_SELF']=='/modules/news/index.php'){
echo 
'Your Custom Slogan';
}else{
echo 
'<{$xoops_pagetitle}>';
}<{/
php}>title>


Hope this helps.

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

8
wonder
Re: How to change description?
  • 2005/10/29 21:48

  • wonder

  • Not too shy to talk

  • Posts: 144

  • Since: 2005/5/22


It's working greatly! Thank you a lot! But "echo" turns {$xoops_pagetitle} in text...

9
JMorris
Re: How to change description?
  • 2005/10/29 21:53

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Try changing

echo '<{$xoops_pagetitle}>';

to:

echo '$xoops_pagetitle';

I'm a php n00b so this is trial an error for me as well.

Best Regards,

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

10
wonder
Re: How to change description?
  • 2005/10/29 21:56

  • wonder

  • Not too shy to talk

  • Posts: 144

  • Since: 2005/5/22


Now it appears $xoops_pagetitle

And I am noober than you! LOL

Login

Who's Online

491 user(s) are online (423 user(s) are browsing Support Forums)


Members: 0


Guests: 491


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits