Setting default meta description

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-16-2007, 06:50 PM
New Pligger
 
Join Date: Mar 2007
Posts: 14
Using Pligg 9.1 with the Yget template, I found that my frontpage had no meta description.

Each story page has its own dynamic description which works fine.

You can add a default meta description to your Pligg site by modifying the following code.

In /templates/meta.tpl replace this code:

Code:
{if $meta_description neq ""}
   <meta name="description" content="{$meta_description}" />
{/if}
With this code:

Code:
{if $meta_description neq ""}
   <meta name="description" content="{$meta_description}" />
{else}
   <meta name="description" content="Define your default description here" />
{/if}
Hope that this helps anyone who's in a similar situation.


--
Biomech
www.hidemyemail.net
Reply With Quote
  #2 (permalink)  
Old 03-19-2007, 12:20 PM
Casual Pligger
 
Join Date: Mar 2007
Posts: 46
Yep. Figured out the same thing a couple of days ago. Good one and necessary for search engines.
Reply With Quote
  #3 (permalink)  
Old 03-19-2007, 10:29 PM
Casual Pligger
 
Join Date: Feb 2007
Posts: 93
This is is how I have it set up in templates/meta.tpl:

Code:
{* define your meta data here *}
		
{if $meta_description neq ""}
<meta name="description" content="{$meta_description}" />
{else}
<meta name="description" content="description" />
{/if}
{if $meta_keywords neq ""}
<meta name="keywords" content="{$meta_keywords}, generic keywords" />
{else}
<meta name="keywords" content="generic keywords" />
{/if}
	<meta name="Language" content="{#PLIGG_Visual_Meta_Language#}" />
	<meta name="Robots" content="All" />
		
{* the extra tabs are to make it lineup when viewing the source *}

Same thing as yours but also for keywords, the only difference is that I have it set so that the tags which make up the keywords are followed by my generic list of keywords as well.

Last edited by sonaro; 03-19-2007 at 11:39 PM.
Reply With Quote
  #4 (permalink)  
Old 04-25-2007, 04:13 PM
New Pligger
 
Join Date: Mar 2007
Posts: 13
Thanks for the good info!

Amyone knows how to change the Title of a page?

The default pligg title for front page is "domain name / Published"
eg: here is what it has for my site (from View Source): http://www.bizdig.com
<title>BizDig / Published</title>

which file holds such settings?
Please advise.
Thanks
Reply With Quote
  #5 (permalink)  
Old 04-25-2007, 04:14 PM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,215
The titles of the pages are set in each .php file.
Reply With Quote
  #6 (permalink)  
Old 04-25-2007, 04:18 PM
New Pligger
 
Join Date: Mar 2007
Posts: 13
You are so fast, KB!
So what do I need to change if I want to add sth for my title for the front page?

Thank you!
Reply With Quote
  #7 (permalink)  
Old 04-25-2007, 06:22 PM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,215
For example, on the index page we look in index.php and see this line
Code:
$main_smarty->assign('posttitle', " / " . $main_smarty->get_config_vars('PLIGG_Visual_Published_News'));
That sets the page title for the index page. "PLIGG_Visual_Published_News" is a variable in your lang.conf file or admin > modify language.
Reply With Quote
  #8 (permalink)  
Old 04-27-2007, 12:57 PM
New Pligger
 
Join Date: Mar 2007
Posts: 13
Thank you for your help, KB!
Reply With Quote
  #9 (permalink)  
Old 09-27-2007, 03:35 PM
spartacus's Avatar
Casual Pligger
 
Join Date: Mar 2007
Posts: 37
I could be wrong, but I think leaving this code in your Meta file:

<meta name="Language" content="{#PLIGG_Visual_Meta_Language#}" />

results in Google ads advertising CMS systems. Anyone know how to remove this and replace with whatever is being used in the language area under admin for this variable (en-us being the default). If you try to alter this in any way your site goes down until you revert it back.

Thx
Reply With Quote
  #10 (permalink)  
Old 10-03-2007, 01:08 PM
Constant Pligger
 
Join Date: Feb 2007
Posts: 226
<META HTTP-EQUIV="CONTENT-LANGUAGE" CONTENT="Language abbreviation here" />

That declares the primary language used in the document. Just replace the old one with that.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
After Install Pligg 1.0.0 Pligg_Users Table Doesn' t Exist airweb Questions and Comments 2 07-21-2009 02:59 AM
Installation - Tables never created julientarta Questions and Comments 30 03-23-2009 07:41 PM
How to set default description meta? tezzer Questions and Comments 5 10-04-2007 01:50 AM
9.6 error xbizsky Questions and Comments 28 07-04-2007 03:54 AM
Upgrade from 5.10 to 9 bizdiggers Questions and Comments 19 02-11-2007 04:21 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development