The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
php code
Code:
<?php if (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') { echo '<meta name="robots" content="noindex,follow">'. "\n"; } ?> --------------- Added [DATE]1455054033[/DATE] at [TIME]1455054033[/TIME] --------------- Want to stop bots from duplicate content now that the site has both https and http versions. It was a breeze adding the above php code to wordpress, vbulleting throws warning errors when I place the code in the header. Any feedback as to a solution for the above code in vbulletin header, or work around duplicate http and https pages for a vbulletin forum. |
#2
|
||||
|
||||
I would create a plugin as follows:
Product: vBulletin Title: Add meta Tag Execution Order: 5 Plugin PHP Code: PHP Code:
Click "Save." |
#3
|
|||
|
|||
Quote:
--------------- Added [DATE]1455056840[/DATE] at [TIME]1455056840[/TIME] --------------- I do not have a hook location header_head... Only header_redirect... I'm using Dragonbyte so not sure which hook location to choose. dbtech_dbseo_process_content_meta (Dragonbyte Tech:seo lite)) or a golbal_start? header_redirect? --------------- Added [DATE]1455060664[/DATE] at [TIME]1455060664[/TIME] --------------- HOOK LOCATION? did I miss a step? |
#4
|
||||
|
||||
I am so sorry for leaving that out...
Hook Location: parse_templates |
#5
|
|||
|
|||
Ha Left me hanging! But hey, the free help here is better than ANYTHING available. Dude thank you it worked perfect and verified in "view source". You are the man! I'm looking for a good programmer if you know someone...
|
Благодарность от: | ||
MarkFL |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|