News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

vBulletin Style Meta Tags

Started by rsw686, March 23, 2008, 09:36:45 PM

Previous topic - Next topic

Bancherd

Quote
So what is the difference, when I would install this MOD ?

Among other things, this mod generates keywords for your particular topic.

Unfortunately, I have to disable this feature because it does not work for Thai-language(I am working on it though  ;D ).

hartiberlin

Quote from: Bancherd on January 24, 2009, 06:53:11 PM


Among other things, this mod generates keywords for your particular topic.



So how does it do it ?

Does it grab some keywords out of the posted text somehow and then inserts
these into the Meta tags ?

How does it find these keywords ?

2. Is it now fully compatible with SMF 2.0B4 with the default theme
or when will it be ?

58tbird

Quote from: SONSiVRi on July 22, 2008, 07:27:35 PM
If you insist to apply subsequent mod (vBulletin Style Meta Tags), those 2 patterns wont be touched because "find" criteria doesnt match but the rest of "vBulletin Style Meta Tags" will be applied and it shown installed. After that you have to modify these patterns by yourself and make mod is running. To do that you need to download and edit "$themedir/index.template.php" by finding and replacing proper codes as you wrote above. But I think its the best way uninstall of "EASY EDIT META DATA". Because you dont need that one while you using "vBulletin Style Meta Tags". Both are working for same job and you only need one. I dunno what "EASY EDIT META DATA" mod does but I think "vBulletin Style Meta Tags" is automated version of it.
Sorry SONSiVRi - I had trouble uninstalling the Easy Edit Meta Data mod because it failed the test for the ModSettings.php and Help.english.php files (all others were successful). Anyway, I ran out of time back then and then got on to other things, but now I'd like to try to complete the process of uninstalling it so I can install your version of the vBulletin Style Meta Tags mod for 1.1.7.

Do you have any idea why I am failing those tests?  A conflict, I suppose, with another mod:
Quote1. Profile_Visitors 4.0   
2. Page Number 2.0   
3. Registered Links 1.0   
4. Select All And Copy Code To Clipboard 1.2   
5. Auto Embed Video/Audio Clips 3.1.2   
6. Easy Edit Meta Data 1.0   
7. nwsw.nwswAdminAttachAnything 1.1 RC3   
8. Custom BBCode 2.00   
9. Registration - Show Gender mod 1.0.0   
10. Website Button 1.1.4  [ Apply Mod ]
11. FavIcon 1.1   
12. Unique Hit Counter 1.0   
13. SMF 1.0.14 / 1.1.6 Update 1.0     
14. Reason For Editing Mod 1.14   
15. BoardHover Mod 1.1.0   
16. Custom Profile Field Mod 3.17   
17. Bookmarks 1.1   
18. vBulletin Style Meta Tags 1.1  [ Apply Mod ]   
19. AdSense Section Targeting Mod 1.0   
20. Related Topics 1.2.0   
21. Ad Managment 2.3   
22. Search Topic 1.01   
23. URL Popup 1.0   
24. Wrap Text Around Image 1.0   
25. Member Notepad 1.0   
26. Admin member list registration date 1.0   
27. SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update 1.0     
28. Custom Action Mod 2.04   
29. SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update 1.0     
30. Gender on Memberlist 1.0  [ Apply Mod ]   
31. Enhance Recent Post 1.0   
32. Social Bookmarks 1.1   
33. NO Right Click 1.0   
34. Image Thumbnail BBCode 1.0   
35. Expand Pages Mod 1.0   
36. SMF 1.1.4 Search "brd" Bug Fix (1.0.1) 1.0.1   
37. Ellow yellow christmas edition smiley set 1.1   
38. SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update 1.0     
39. Attachment Notice 1.0   
40. SMF Sitemap 1.2.2   
41. SMF 1.0.15 / 1.1.7 Update 1.0   
42. Previous and Next Links for Page Index 1.0   
43. Avatar on Member List 1.0  [ Apply Mod ]   
44. Location on Member List 1.0   
45. Users Online Today Mod 1.4.0   
46. AvatarOnBoard 2.0  [ Apply Mod ]   
47. Enhanced Password Reminder 1.0   
48. EmailFlash 2.0     

I'm hoping that by uninstalling Easy Edit Meta Data and instaling your vBulletin Style Meta Tags mod, it will help take care of what Google Diagnostics is telling me:
[1] I have 13 pages with duplicate meta descriptions (it shows the description I entered using the Easy Edit Meta Data mod)
[2] I have 2 pages with duplicate title tags
[3] I have 2 HTTP errors

I don't understand all this, except that it affects my page ranking &/or SEO.  I would like to optimize my page ranking and SE results because I am virtually invisible right now to Google.

SONSiVRi

"58tbird"
For uninstalling mod; you can unintall even it says there is mismatch. Only mismatch ones left untouched, and rest of wiped out while uninstalling. Then all you need to is; manually uninstall left code parts. You can check those by unpacking mod (archieve) file and looking correct lines in install.xml. You didn't wrote (or I couldn't see) which meta mod is yours, overtaken or original (there are two)? I presume you used original one. So in your case those two modifications are;

<file name="$sourcedir/ModSettings.php">

<!-- -->
<operation>
<search position="before"><![CDATA[ require_once($sourcedir . '/ManageServer.php');

$subActions = array(
'basic' => 'ModifyBasicSettings',]]></search>
<add><![CDATA[
'meta' => 'ModifyMetaSettings',
]]></add>
</operation>
<!--  -->
<operation>
<search position="before"><![CDATA[ $context['sub_template'] = 'show_settings';

$subActions = array(
'basic' => 'ModifyBasicSettings',]]></search>
<add><![CDATA[
'meta' => 'ModifyMetaSettings',
]]></add>
</operation>
<operation>
<search position="before"><![CDATA[ 'basic' => array(
'title' => $txt['mods_cat_features'],
'href' => $scripturl . '?action=featuresettings;sa=basic;sesc=' . $context['session_id'],
),]]></search>
<add><![CDATA[ 'meta' => array(
'title' => $txt['mods_cat_meta'],
'href' => $scripturl . '?action=featuresettings;sa=meta;sesc=' . $context['session_id'],
),
]]></add>
</operation>
<!--  -->
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
// Function to load template/modify meta settings
function ModifyMetaSettings()
{
global $context, $txt, $scripturl, $modSettings, $db_prefix, $helptxt;

$config_vars = array(
array('large_text', 'meta_description', '5', &$txt['meta_description'], 'meta_description'),
array('large_text', 'meta_keywords', '5', &$txt['meta_keywords'], 'meta_keywords'),
array('text', 'meta_author', '40', &$txt['meta_author'], 'meta_author'),
array('text', 'meta_copyright', '40', &$txt['meta_copyright'], 'meta_copyright'),
);

// Saving?
if (isset($_GET['save']))
{

saveDBSettings($config_vars);
writeLog();

redirectexit('action=featuresettings;sa=meta');
}

$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=meta';
$context['settings_title'] = $txt['meta_mod'];

prepareDBSettingContext($config_vars);

}
]]></add>
</operation>
</file>


<file name="$languagedir/Help.english.php">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$helptxt['meta_description'] = 'You can enter a description of your board.  If you leave it blank, your page title will appear in the description. <br/> It is recommended to keep it to less than 200 characters.';
$helptxt['meta_keywords'] = 'Enter your keywords spaced by commas eg house, car. <br/> It is recommended to keep it to less than 200 characters.';
$helptxt['meta_author'] = 'Put your name in the page.  Not all search engines recognise this tag.';
$helptxt['meta_copyright'] = 'Put your copyright information in the meta data, use &amp;copy; for the copyright symbol.';
]]></add>
</operation>
</file>



There is no replace code, so you need to basically find codes between <add>....</add> tags and wipe them out. <search>...</search> These tags is for where goes modification codes placed to. Namely we can call it markers. You don't touch them. Just wipe out codes between <add></add> tags. Just in case, make sure you backed up your forum before uninstalling. Feel free to ask un-clear parts you still have in mind, but I may not answer right-away. Because last time I logged in simplemachines was around 1 month ago.
My Mods - IP View Permission - Recycle Bin Cleaner - Ip to Country
www.sonsivri.com - microcontrollers
- Houston, we have a problem.

zerog12avity

#124
Not sure if the mod is working... How do I check? I went to [view source] on foxfire, but it is only showing the default keywords that I added in Feature and Option / Layout page. I installed package v. 1.1 into 2.0B4

any help would be appreciated

roberto174

Quote from: zerog12avity on February 10, 2009, 12:28:27 PM
Not sure if the mod is working... How do I check? I went to [view source] on foxfire, but it is only showing the default keywords that I added in Feature and Option / Layout page. I installed package v. 1.1 into 2.0B4
here's my site www.homeowners411.com [nofollow]

any help would be appreciated

Same thing, doesnt work correctly, i'm using 2.0 RC1

It just changes the title of the page but no keywords and description tuning, nothing, still default behavior.

zerog12avity

Looking for a good place to get keywords. Not sure if mine are the best to use.
If you have any links or suggetions I would appreciate it.
Thanks

Mai Pen Rai

Mai Pen Rai - means "No worries" in Thai

Mai Pen Rai.se

X3mE

It's working on RC1.

But I have a problem with description tags - I am getting weird non-unicode question marks in my descriptions sometimes for topic pages, I don't know what's causing them... Is there any solution?
Kids, you tried your best and you failed miserably. The lesson is - never try.

My mods:
OS & Browser Detection (1.5 is out!) | Skype Profile Field | GTalk Profile Field | AllCaps Blocker | SMF Syntax Highlighter (Beta) + 2 in development!

Personal websites:
Mobilize.rs (and forum) | Lolmao.info



Bancherd

Quote from: X3mE on February 22, 2009, 06:22:41 AM
It's working on RC1.

But I have a problem with description tags - I am getting weird non-unicode question marks in my descriptions sometimes for topic pages, I don't know what's causing them... Is there any solution?

I have the same problem......always related to the smileys...nbsp in front of the smileys?

X3mE

Actually, the first post of the topic I noticed them on didn't have any smileys :/
Kids, you tried your best and you failed miserably. The lesson is - never try.

My mods:
OS & Browser Detection (1.5 is out!) | Skype Profile Field | GTalk Profile Field | AllCaps Blocker | SMF Syntax Highlighter (Beta) + 2 in development!

Personal websites:
Mobilize.rs (and forum) | Lolmao.info



Bancherd

Perhaps we have different situations...I am using utf-8 and Thai-characters.....and php4.x....on SMF1.1.8.  The first smileys does it every time.   >:(   So I thought it might have something to do with the parse_bbc function, but have not had much time to check into this...

However, I am seeing the same thing with SMF2RC1, so I might have to get serious about this and start digging.  :P

daveaite

I'm having a problem.

My meta is displaying this in the source:

<meta name="keywords" content="Youtube, MP3, converter, Youtube to MP3 converter, PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />

I just want it to display this:

<meta name="keywords" content="Youtube, MP3, converter, Youtube to MP3 converter, " />


I've looked in my index.template file in my theme and it's not there. Apparently when uninstalling easy edit meta and installing this, the meta files gets moved to $modsettings. I don't know how to fix this. "PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" gets placed on every page and I just wanna know how to remove it.

Please help.

Attached is my modsettings, and my index.template.
The BuyPoe Network!


http://vbsocial.com: Forum Styles for vBulletin and SMF

sombra

hi there to all im having this problem

http://www.simplemachines.org/community/index.php?topic=297650.0

they told me if i use this mod it will fix it but i cant see to find if its compatible to smf 2.04

and other tinny question  im using darkbreak theme do i need to do a manual edit?

sombra

well instaled but had a test failed

3. Execute Modification ./Themes/default/index.template.php Test failed 
i did a manual edit to one line i saw in the parse

was this one


   <meta name="description" content="', $context['page_title'], '" />
   <meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />

for


   <meta name="description" content="', !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_description'], '" />
   <meta name="keywords" content="', !empty($context['meta_keywords']) ? $context['meta_keywords'] . ', ' : '', $modSettings['meta_keywords'], '" />

but in a previed post i saw someone telling that there was 2 edits  i only saw one can some one tell me if im rigth or wrong

and how this mod work do i need 2 put metatags or it dos it alone?

Bancherd

Quote from: Bancherd on February 22, 2009, 09:57:16 PM
Perhaps we have different situations...I am using utf-8 and Thai-characters.....and php4.x....on SMF1.1.8.  The first smileys does it every time.   >:(   So I thought it might have something to do with the parse_bbc function, but have not had much time to check into this...

However, I am seeing the same thing with SMF2RC1, so I might have to get serious about this and start digging.  :P

My problem is caused by "&nbsp;" in the database that came with smilies, once I filter this out, the problem is solved for me!  :)

daveaite

Quote from: roberto174 on February 12, 2009, 07:38:52 PM
Quote from: zerog12avity on February 10, 2009, 12:28:27 PM
Not sure if the mod is working... How do I check? I went to [view source] on foxfire, but it is only showing the default keywords that I added in Feature and Option / Layout page. I installed package v. 1.1 into 2.0B4
here's my site www.homeowners411.com

any help would be appreciated

Same thing, doesnt work correctly, i'm using 2.0 RC1

It just changes the title of the page but no keywords and description tuning, nothing, still default behavior.

Having exactly the same problem as these 2 guys. I thought I was doing something wrong. Must be a mod error. Im also using 2.0 RC1
The BuyPoe Network!


http://vbsocial.com: Forum Styles for vBulletin and SMF

sombra

i went to a page to add the url of my site and has an anilazer and it told me i got no

Current Meta Description Tag:
The Tag processed is 0 characters in length

and

is this mod installed correctly on my board? how do i get it to work

sombra


Bancherd

#139
Quote from: sombra on March 19, 2009, 01:54:57 PM
no one? :(

You might try to remove this line from Subs.php  :D

$context['meta_keywords'] = !empty($modSettings['meta_keywords']) ? $modSettings['meta_keywords'] : 'PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum';

Advertisement: