1
BDW
Xoops Title Tags - How do I edit?
  • 2006/8/23 8:33

  • BDW

  • Quite a regular

  • Posts: 280

  • Since: 2002/9/28


The great thing about XOOPS 2 is that modules can set there own title tags. The down side however is how they are set up.

For instance in Newbb its set up to give you:

Site Name - Forum - Forum Name - Topic Title

This gives you a Title tag that is too big to be included in search engines such as Yahoo! So where should I be looking so that I can change it to:

Site Name - Topic Title - Forum Name - Forum

And where should I look for other modules?

2
jensclas
Re: Xoops Title Tags - How do I edit?

Guessing....try a search for short url's.

3
BDW
Re: Xoops Title Tags - How do I edit?
  • 2006/8/23 9:19

  • BDW

  • Quite a regular

  • Posts: 280

  • Since: 2002/9/28


I did a search and found this https://xoops.org/modules/smartfaq/faq.php?faqid=362 and it didnt work.


4
jensclas
Re: Xoops Title Tags - How do I edit?

Still on the guessing game - what about this one here or this one on 'tiny url's here

other than that I haven't found a specific answer

Lets us know if you find one.

5
davidl2
Re: Xoops Title Tags - How do I edit?
  • 2006/8/23 9:32

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


Quote:

unhardcore wrote:
I did a search and found this https://xoops.org/modules/smartfaq/faq.php?faqid=362 and it didnt work.



Look at the post from "toddherrold" on that link... there's some good suggestions there.

6
davidl2
Re: Xoops Title Tags - How do I edit?
  • 2006/8/23 9:34

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26



7
BDW
Re: Xoops Title Tags - How do I edit?
  • 2006/8/23 9:37

  • BDW

  • Quite a regular

  • Posts: 280

  • Since: 2002/9/28


ahhh, figured out what i was doing wrong (That'll teach me to read instructions) forgot to change "NewB" to "Foru".

Doh!

8
BDW
Re: Xoops Title Tags - How do I edit?
  • 2006/8/23 9:51

  • BDW

  • Quite a regular

  • Posts: 280

  • Since: 2002/9/28


it changed the description and keyword tags, but not the title tag. Is there no way to hack the newbb module somewhere to edit this?

9
BDW
Re: Xoops Title Tags - How do I edit?
  • 2006/8/23 10:29

  • BDW

  • Quite a regular

  • Posts: 280

  • Since: 2002/9/28


I DID IT, whoohoo!

in viewtopic.php fid the line:

Quote:
$xoops_pagetitle = $xoopsModule->getVar('name'). ' - ' .$myts->htmlSpecialChars($forumdata['forum_name']). ' - ' .$topic_title;


And switch them around.

I've changed mines to this:

Quote:
$xoops_pagetitle = $topic_title. ' - ' .$xoopsModule->getVar('name');


To have the title line:

Quote:
site name - topic title - Forum


Excellent

All I did was went into viewtopic.php and searched for pagetitle and found that line and changed it.

You can do the same with the viewforum.php file.

Login

Who's Online

424 user(s) are online (132 user(s) are browsing Support Forums)


Members: 1


Guests: 423


jjdai,

more...

Donat-O-Meter

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

Latest GitHub Commits