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



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

Re: Migrate to Mywords - 1 script for multiple modules
by bjuti on 2010/5/4 18:37:12

Tnx mate!
Re: Migrate to Mywords - 1 script for multiple modules
by kaotik on 2010/5/4 11:22:34

bjuti:
This will allow you to add custom descriptions and keywords per post. If you don't add them, the site will generate them automaticly.

open mywords/post around line 170 find:
le="color: #000000"><?php //Trackback if ($post->getVar('pingstatus')) { $tb = new MWTrackback($xoopsConfig['sitename'], $editor->getVar('name')); RMTemplate::get()->add_head( $tb->rdf_autodiscover(date('r', $post->getVar('pubdate')), $post->getVar('title'), TextCleaner::getInstance()->truncate($post->content(true), 255), $post->permalink(), MWFunctions::get_url(true).$post->id(), $editor->getVar('name')) ); }


replace with this:
le="color: #000000"><?php //Trackback if ($post->getVar('pingstatus')) { $tb = new MWTrackback($xoopsConfig['sitename'], $editor->getVar('name')); RMTemplate::get()->add_head( $tb->rdf_autodiscover(date('r', $post->getVar('pubdate')), $post->getVar('title'), TextCleaner::getInstance()->truncate($post->content(true), 255), $post->permalink(), MWFunctions::get_url(true).$post->id(), $editor->getVar('name')) ); } $metaDesc=$post->get_meta('mymeta_desc',false); $Mdesc = substr($post_arr['text'], 0, 150); $Mdesc=strip_tags($Mdesc); if (empty($metaDesc)) { $xoTheme->addMeta( 'meta', 'description', $Mdesc); } else { $xoTheme->addMeta( 'meta', 'description', $metaDesc); } $metaKeys=$post->get_meta('mymeta_keys',false); if (empty($metaKeys)) { $Mkeys=preg_replace('/s/',',', $Mdesc); //replace all spaces with , $xoTheme->addMeta( 'meta', 'keywords', $Mkeys); } else { $xoTheme->addMeta( 'meta', 'keywords', $metaKeys); }


Now edit your post and ADD these 2 custom fields:
mymeta_desc
-Used for description
mymeta_keys
-Used for keywords
Re: Migrate to Mywords - 1 script for multiple modules
by bjuti on 2010/5/4 10:52:23

Gee! Tnx! Is far as I seen it's automatic generation? Is is possible user to enter meta desc. of it's own? Eg. Every article that I wrote i do make specific meta desc enabling unique criteria for Google with keywords stiffing etc. :)
Re: Migrate to Mywords - 1 script for multiple modules
by kaotik on 2010/5/4 10:34:08

I've provided a meta description and keywords solution here.
Re: Migrate to Mywords - 1 script for multiple modules
by bjuti on 2010/5/4 9:19:34

Great. MyWord does need only meta description to be awsome!

Who's Online

204 user(s) are online (158 user(s) are browsing Support Forums)


Members: 0


Guests: 204


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