Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
1 + 4 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
   

Re: Wordbook and changing title
by technews on 2006/5/23 2:19:51

thanks, saved time searching for no reason :)

great stuff
Re: Wordbook and changing title
by Kiki1 on 2005/9/3 13:30:54

hsalazr canu tell me have can i do that with module articles, xoopspool, mylinks, tutorials, wfdownloads, and newwbb 1.0 version... i have this problem and i have tried everthing but nothing helps, i dont undertanda that, please help, it means allot in search engine
Re: Wordbook and changing title
by yokonozco on 2005/5/23 0:20:46

Hey Hsalazar:

Your code works fine...
Thanks and i waiting to a new release of wordbook (with the mondarse help) and the soapbox.

When http://www.mesadepruebas.com reborn? =)

Thanks for all.

Yoko
Re: Wordbook and changing title
by janmetpet on 2005/5/16 18:37:02

Hsalazar,

Totally works as advertised. It's exactly what I wished for. Wordbook rocks more than ever! Thank you for the quick (and dirty) response and for sharing your knowledge!

Grtz J.
Re: Wordbook and changing title
by hsalazar on 2005/5/16 5:22:23

janmetpet:

Here's a quick and dirty solution to your request to include category/term in the browser title.

XOOPS' Smarty implementation includes a specific variable to put there some of the content of the browser title. This variable is called xoops_pagetitle. All you need to do is to retrieve whatever variables and to make the appropriate assignment in the relevant page.

Since this sounds too academic, this is what it means:

1. Open file entry.php.

2. In some of the last lines, before ending the file, add the following (I'll put it in several lines, but of course you write it in just one):
le="color: #000000"><?php $xoopsTpl->assign('xoops_pagetitle', $myts->htmlSpecialChars($xoopsModule->name()).' - '. $thisterm['catname'].' - '. $thisterm['term']);

Assuming you have a site called Abracadabra, assuming you renamed your Wordbook module to WitchWords, assuming your first category is called Spells, assuming your term is called Eternal love, and assuming you're using Mozilla Firefox as your browser, then you'd see in the browser title something like:
le="color: #000000"><?php Abracadabra - WitchWords - Spells - Eternal love - Mozilla Firefox

Being things as they are, you have no way to change the first and the last word. The other three are optional, and they are, of course, the ones included in the line you just added.

That's about it. Hope it works ok.

Cheers.

Who's Online

479 user(s) are online (400 user(s) are browsing Support Forums)


Members: 0


Guests: 479


more...

Donat-O-Meter

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

Latest GitHub Commits