Go Back   Pligg CMS Forum > Pligg Help > General Help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-16-2007, 06:50 PM
New Pligger
 
Join Date: Mar 2007
Posts: 17
Thanks: 0
Thanked 2 Times in 2 Posts
Lightbulb Setting default meta description

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
The Following User Says Thank You to Biomech For This Useful Post:
  #2 (permalink)  
Old 03-19-2007, 12:20 PM
Casual Pligger
 
Join Date: Mar 2007
Posts: 48
Thanks: 0
Thanked 13 Times in 6 Posts
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
Constant Pligger
 
Join Date: Feb 2007
Posts: 107
Thanks: 11
Thanked 1 Time in 1 Post
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: 4
Thanked 0 Times in 0 Posts
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
__________________
----------------------------------------------------------------------
http://www.bizdig.com

BizDig, What do you have to dig?
----------------------------------------------------------------------
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,547
Thanks: 254
Thanked 649 Times in 513 Posts
The titles of the pages are set in each .php file.
__________________
I accept donations for my time helping users like you on the forum and IRC.
Reply With Quote
The Following User Says Thank You to kbeeveer46 For This Useful Post:
  #6 (permalink)  
Old 04-25-2007, 04:18 PM
New Pligger
 
Join Date: Mar 2007
Posts: 13
Thanks: 4
Thanked 0 Times in 0 Posts
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!
__________________
----------------------------------------------------------------------
http://www.bizdig.com

BizDig, What do you have to dig?
----------------------------------------------------------------------
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,547
Thanks: 254
Thanked 649 Times in 513 Posts
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.
__________________
I accept donations for my time helping users like you on the forum and IRC.
Reply With Quote
The Following User Says Thank You to kbeeveer46 For This Useful Post:
  #8 (permalink)  
Old 04-27-2007, 12:57 PM
New Pligger
 
Join Date: Mar 2007
Posts: 13
Thanks: 4
Thanked 0 Times in 0 Posts
Thank you for your help, KB!
__________________
----------------------------------------------------------------------
http://www.bizdig.com

BizDig, What do you have to dig?
----------------------------------------------------------------------
Reply With Quote
  #9 (permalink)  
Old 09-27-2007, 03:35 PM
spartacus's Avatar
Casual Pligger
 
Join Date: Mar 2007
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Meta tags w/Pligg

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: 183
Thanks: 13
Thanked 24 Times in 19 Posts
<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
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Meta Description Problems HelloKitty General Help 0 10-17-2007 08:34 AM
How to set default description meta? tezzer General Help 5 10-04-2007 01:50 AM
9.6 error xbizsky Bug Report 28 07-04-2007 03:54 AM
Upgrade from 5.10 to 9 bizdiggers Installation and Upgrade Help 19 02-11-2007 04:21 AM
Installation - Tables never created julientarta Installation and Upgrade Help 28 02-02-2007 11:04 PM


Search Engine Friendly URLs by vBSEO 3.2.0