hooligan

Untitled

Jan 19th, 2013
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.01 KB | None | 0 0
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2.  
  3. <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">
  4. <codes>
  5. <code version="1.0">
  6. <installcode><![CDATA[$db->hide_errors();
  7. $db->query_write("ALTER TABLE " . TABLE_PREFIX . "forum ADD (forumkeywords MEDIUMTEXT NOT NULL DEFAULT '')");
  8. $db->query_write("ALTER TABLE " . TABLE_PREFIX . "forum ADD (forumdescription MEDIUMTEXT NOT NULL DEFAULT '')");
  9. $db->show_errors();]]></installcode>
  10. <uninstallcode><![CDATA[$db->hide_errors();
  11. $db->query_write("ALTER TABLE " . TABLE_PREFIX . "forum DROP forumkeywords");
  12. $db->query_write("ALTER TABLE " . TABLE_PREFIX . "forum DROP forumdescription");
  13. $db->show_errors();
  14. ]]></uninstallcode>
  15. </code>
  16. </codes>
  17. <templates>
  18. </templates>
  19. <plugins>
  20. <plugin active="1">
  21. <title>Add SEOed Keywords/Description</title>
  22. <hookname>forumdata_start</hookname>
  23. <phpcode><![CDATA[
  24. $this->validfields['forumkeywords'] = array(TYPE_STR, REQ_NO);
  25. $this->validfields['forumdescription'] = array(TYPE_STR, REQ_NO);
  26. ]]></phpcode>
  27. </plugin>
  28. <plugin active="1">
  29. <title>Add Special Keywords-Description</title>
  30. <hookname>forumadmin_edit_form</hookname>
  31. <phpcode><![CDATA[
  32. print_table_header($vbphrase['key_desc']);
  33. print_textarea_row($vbphrase['forumkeywords'], 'forum[forumkeywords]', $forum['forumkeywords']);
  34. print_textarea_row($vbphrase['forumdescription'], 'forum[forumdescription]', $forum['forumdescription']);
  35. ]]></phpcode>
  36. </plugin>
  37. </plugins>
  38. <phrases>
  39. <phrasetype name="Forum-Related" fieldname="forum">
  40. <phrase name="forumkeywords"><![CDATA[Add Special Keywords]]></phrase>
  41. <phrase name="forumdescription"><![CDATA[Add Special Description]]></phrase>
  42. <phrase name="key_desc"><![CDATA[Place Special Keywords/Description for Each Forum]]></phrase>
  43. </phrasetype>
  44. </phrases>
  45. <options>
  46. </options>
  47. </product>
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58. *** Installation Instructions: (Also attached here)
  59. *** -------------------------
  60.  
  61. 1. Installing the Plugin:
  62.  
  63. Admincp > Plugin System > Manage Products
  64. Click: Import Product
  65. Browse: Your computer for downloaded file "product-forum_seo.xml"
  66. After selecting the file, click Import button.
  67.  
  68. **********************************************************************
  69. 2. Only Template Edit: headinclude
  70.  
  71.  
  72. i) Edit - headinclude Template:
  73. **********************************************************************
  74.  
  75. Find:
  76. <meta name="keywords" content="$threadinfo[title], $vboptions[keywords]" />
  77. <meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$threadinfo[title] $foruminfo[title_clean]" />
  78.  
  79. Replace With:
  80. <meta name="keywords" content="$foruminfo[forumkeywords],$threadinfo[title],$vboptions[keywords]" />
  81. <meta name="description" content="$foruminfo[forumdescription]. <if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$threadinfo[title] $foruminfo[title_clean]" />
  82.  
  83. **********************************************************************
  84.  
  85. Find:
  86. <meta name="keywords" content="$foruminfo[title_clean], $vboptions[keywords]" />
  87. <meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$foruminfo[description_clean]" />
  88.  
  89. Replace With:
  90. <meta name="keywords" content="$foruminfo[forumkeywords],$threadinfo[title],$vboptions[keywords]" />
  91. <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