1
mercury500
Google indexing module description - not site description
  • 2006/4/4 17:42

  • mercury500

  • Just popping in

  • Posts: 19

  • Since: 2005/2/11


Does anybody know where Google is getting this text? IE, what template file or whatever...A source pageview shows no text of the sort on the pages as shown below:


Flixer.com - Articles
Articles, Creates a Slashdot-like article section, where users can post articles and comment.
http://www.flixer.com/modules/AMS/ - 55k - Cached - Similar pages

Flixer.com - Links
Links, Creates a links section where users can link/submit/rate various links.
http://www.flixer.com/modules/wflinks/ - 18k - Cached - Similar pages

Flixer.com - News
News, Creates a Slashdot-like news section, where users can post news/comments.
http://www.flixer.com/modules/news/ - 38k - Cached - Similar pages

It's grabbing the module description from somewhere - and I'd like to be able to replace that text with something relevant. I believe I see the text it's getting in the INFO box of the module in the Module Admin section...

Thanks

2
martyboy
Re: Google indexing module description - not site description
  • 2006/4/4 17:50

  • martyboy

  • Quite a regular

  • Posts: 256

  • Since: 2004/5/25


The module description is usually in the modules xoops_version.php file look for
$modversion['description'] =


Although if it looks something like this:
$modversion['description'] = _MI_NEWS_DESC;


Then the actuall description text is probably in the language files langauge/english/modinfo.php or langauge/english/main.php

Hope this helps you out
Michael Jackson = King Of Pop

Xoops = King Of CMS

3
mercury500
Re: Google indexing module description - not site description
  • 2006/4/4 17:54

  • mercury500

  • Just popping in

  • Posts: 19

  • Since: 2005/2/11


And there it is..in the language files - modinfo.php.

Thanks.

b

4
mercury500
Re: Google indexing module description - not site description
  • 2006/4/4 18:50

  • mercury500

  • Just popping in

  • Posts: 19

  • Since: 2005/2/11


OOOOOOOhhhh - not a good idea changing this...


I changed all 3 that were being picked up by Google....

The news module one - crashed the whole XOOPS system - White page o' death.

PHPDebug did not yield much until I went to admin.php and got:

Parse error: parse error, unexpected T_STRING in /homepages/28/d145648422/htdocs/flixer/modules/news/language/english/modinfo.php on line 9
Notice [PHP]: Constant _DB_POSLINE_DESC already defined in file modules/backup/language/english/modinfo.php line 24

So, There's a comparison check for these files?

Does anybody know what's the best way to change this info then?

Thanks. And don't try this at home.

And I think I'll change the others back until I know something.

b

5
stelian
Re: Google indexing module description - not site description
  • 2006/4/4 19:52

  • stelian

  • Just popping in

  • Posts: 87

  • Since: 2005/12/17


mercury500 - here is your answare
Quote:
We are going to change several tags in the HTML and add a couple more:

So change (please note I have removed opening and closing "<" and ">" from the statements so this renders in HTML, you will need to fix the tags:

From:
meta name="keywords" content="<{$xoops_meta_keywords}>" /
To:
meta name="keywords" content="<{$xoops_pagetitle}>, <{$xoops_meta_keywords}>" /

From:
meta name="description" content="<{$xoops_meta_description}>" /
To:
meta name="description" content="<{$xoops_pagetitle}>, <{$xoops_meta_description}>" /

6
martyboy
Re: Google indexing module description - not site description
  • 2006/4/4 20:03

  • martyboy

  • Quite a regular

  • Posts: 256

  • Since: 2004/5/25


Now dont qoute me on this as I am no expert but unexpected T_STRING could mean something like missing '' apostrophes I know this from when I tried to clone a module and i got the same thing when i checked xoops_version i noticed the missing ' and when I put it in it was fine.

So it should read something like $modversion['description'] = 'All the latest news from my website';

About the other one I am not too sure, I will use news02(clone) as an example

News02 xoops_version.php
$modversion['description'] = _MI_02_NEWS_DESC;


I know theres no '' in that maybe cos its a constant and not text not sure.

News02 modinfo.php
// A brief description of this module
define('_MI_02_NEWS_DESC','Creates a Slashdot-like news section, where users can post news/comments.');


So you would just change the description text inbetween the ''

Dont know if this will be much help to you but ive changed some language files before to suite my own needs and thats all i have done is change text in the langauge files and it seems to work fine.
Michael Jackson = King Of Pop

Xoops = King Of CMS

7
stelian
Re: Google indexing module description - not site description
  • 2006/4/4 20:12

  • stelian

  • Just popping in

  • Posts: 87

  • Since: 2005/12/17


martyboy - this doesn't help you at all for a good rank on search engines

Login

Who's Online

463 user(s) are online (384 user(s) are browsing Support Forums)


Members: 0


Guests: 463


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