1
nmshah
meta tags to pages published by mastop publish
  • 2007/10/22 9:51

  • nmshah

  • Just can't stay away

  • Posts: 556

  • Since: 2007/7/2 8


Is there a way to add meta tags to the pages published by mastop publis? I tried xbs tags but not sure how to use it specially with mastop publish.

2
Edwinspie
Re: meta tags to pages published by mastop publish
  • 2007/11/1 22:15

  • Edwinspie

  • Just popping in

  • Posts: 84

  • Since: 2006/8/18


Hi Nmshah,

This is what i got from Fernando Santos from the Mastop Team and it does the job quit well:

Quote:
There is not a "automatic way" to enter the page description and keywords meta-tags, but you can set the "xoops_meta_keywords" and "xoops_meta_description" using parts of Mastop Publish page:

- Open the mastop_publish/index.php file.
- Go to the end of file, just above this line: $mpu_classe->updateCount();
- Insert this lines:
$xoTheme->addMeta('meta', "keywords", $mpu_classe->getVar("mpb_30_titulo")); // Get the Title of the Page and put it on 'keywords'
$xoTheme->addMeta('meta', "description", substr(strip_tags($mpu_classe->getVar("mpb_35_conteudo")), 0, 200)); // Get the 200 firsts characters of the content and put it on 'description'

- Save the file and test (here works ok using XOOPS 2.0.16).



Hope this will help you

Best regards,

Edwin

PS: I use Mastop publisher on multiple websites and i think the module is ABSOLUTELY great!
Big thanks to Mastop and again to Fernando Santos who was very helpful!

3
nmshah
Re: meta tags to pages published by mastop publish
  • 2008/2/12 19:23

  • nmshah

  • Just can't stay away

  • Posts: 556

  • Since: 2007/7/2 8


thanks a lot works great.

Login

Who's Online

299 user(s) are online (270 user(s) are browsing Support Forums)


Members: 0


Guests: 299


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