Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="ISO-8859-1"?>
- <product productid="forum_seo" title="Add keywords-description to each forum" description="Add special keywords and description based on each forum theme. Search Engine Optimize (SEO) your forums to enhance your presence on search engines as well as increase your traffic." version="3.6.2" active="1">
- <codes>
- <code version="1.0">
- <installcode><![CDATA[$db->hide_errors();
- $db->query_write("ALTER TABLE " . TABLE_PREFIX . "forum ADD (forumkeywords MEDIUMTEXT NOT NULL DEFAULT '')");
- $db->query_write("ALTER TABLE " . TABLE_PREFIX . "forum ADD (forumdescription MEDIUMTEXT NOT NULL DEFAULT '')");
- $db->show_errors();]]></installcode>
- <uninstallcode><![CDATA[$db->hide_errors();
- $db->query_write("ALTER TABLE " . TABLE_PREFIX . "forum DROP forumkeywords");
- $db->query_write("ALTER TABLE " . TABLE_PREFIX . "forum DROP forumdescription");
- $db->show_errors();
- ]]></uninstallcode>
- </code>
- </codes>
- <templates>
- </templates>
- <plugins>
- <plugin active="1">
- <title>Add SEOed Keywords/Description</title>
- <hookname>forumdata_start</hookname>
- <phpcode><![CDATA[
- $this->validfields['forumkeywords'] = array(TYPE_STR, REQ_NO);
- $this->validfields['forumdescription'] = array(TYPE_STR, REQ_NO);
- ]]></phpcode>
- </plugin>
- <plugin active="1">
- <title>Add Special Keywords-Description</title>
- <hookname>forumadmin_edit_form</hookname>
- <phpcode><![CDATA[
- print_table_header($vbphrase['key_desc']);
- print_textarea_row($vbphrase['forumkeywords'], 'forum[forumkeywords]', $forum['forumkeywords']);
- print_textarea_row($vbphrase['forumdescription'], 'forum[forumdescription]', $forum['forumdescription']);
- ]]></phpcode>
- </plugin>
- </plugins>
- <phrases>
- <phrasetype name="Forum-Related" fieldname="forum">
- <phrase name="forumkeywords"><![CDATA[Add Special Keywords]]></phrase>
- <phrase name="forumdescription"><![CDATA[Add Special Description]]></phrase>
- <phrase name="key_desc"><![CDATA[Place Special Keywords/Description for Each Forum]]></phrase>
- </phrasetype>
- </phrases>
- <options>
- </options>
- </product>
- *** Installation Instructions: (Also attached here)
- *** -------------------------
- 1. Installing the Plugin:
- Admincp > Plugin System > Manage Products
- Click: Import Product
- Browse: Your computer for downloaded file "product-forum_seo.xml"
- After selecting the file, click Import button.
- **********************************************************************
- 2. Only Template Edit: headinclude
- i) Edit - headinclude Template:
- **********************************************************************
- Find:
- <meta name="keywords" content="$threadinfo[title], $vboptions[keywords]" />
- <meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$threadinfo[title] $foruminfo[title_clean]" />
- Replace With:
- <meta name="keywords" content="$foruminfo[forumkeywords],$threadinfo[title],$vboptions[keywords]" />
- <meta name="description" content="$foruminfo[forumdescription]. <if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$threadinfo[title] $foruminfo[title_clean]" />
- **********************************************************************
- Find:
- <meta name="keywords" content="$foruminfo[title_clean], $vboptions[keywords]" />
- <meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$foruminfo[description_clean]" />
- Replace With:
- <meta name="keywords" content="$foruminfo[forumkeywords],$threadinfo[title],$vboptions[keywords]" />
- <meta name="description" content="$foruminfo[forumdescription]. <if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$foruminfo[description_clean]" />
Advertisement
Add Comment
Please, Sign In to add comment