Pligg CMS Forums


Go Back   Pligg CMS Forum > Pligg Help > Customization Assistance



Pagenumer in meta tags

Questions about customizing your Pligg site.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-21-2008, 06:50 PM
New Pligger
Pligg Version: 9.9.0
Pligg Template: Custom
 
Join Date: Jan 2008
Posts: 16
Pagenumer in meta tags

I got problems with duplicate titles,descriptions through Google Webmastertools.

I'd like to add the pagenumber to my meta tags in pligg.tpl.

But how can I identify the specific pagenumber I am on? eg. published/page/3/

I tried a few things but nothing really seem to work. Anyone got an idea?
Reply With Quote
Sponsor
  #2 (permalink)  
Old 11-21-2008, 09:39 PM
chuckroast's Avatar
Coder/Designer
Pligg Version: 1.0
Pligg Template: Shredit
 
Join Date: Jun 2006
Location: PA
Posts: 3,391
You can set this in the admin > configure>


Thank this developer

Get the Pligg 1.0 Module Pack and more ---> download here




Reply With Quote
  #3 (permalink)  
Old 11-22-2008, 04:54 PM
New Pligger
Pligg Version: 9.9.0
Pligg Template: Custom
 
Join Date: Jan 2008
Posts: 16
umm, where exactly in configure? Been through them all and cannot find anything that resembles this.

Not sure my template can this as I have written out every page meta manually in pligg.tpl - just need some code I can insert in that file which represents the actual pagenumer a user is on.

Pseudo code:

if pagenumber<>"" then
put pagenumber + some text in a variable
end if
Reply With Quote
  #4 (permalink)  
Old 11-22-2008, 08:44 PM
Casual Pligger
Pligg Version: 9.9.5
 
Join Date: Nov 2008
Posts: 37
As I remember the Pligg code was not assigning a $main_smarty variable for the page value. You either add a new line like
PHP Code:
$main_smarty->assign('page_number'intval($_GET['page'])) 
or test it via
Code:
{$smarty.get.page}
Reply With Quote
  #5 (permalink)  
Old 11-23-2008, 09:36 AM
New Pligger
Pligg Version: 9.9.0
Pligg Template: Custom
 
Join Date: Jan 2008
Posts: 16
Thank you very very much.. I have been trying this for a long time and finally got it to work.

I placed this in my pligg.tpl
{if ($page_number)<>"0"}Page number: {$page_number}{/if}

and this in index.php and upcomming.php
$main_smarty->assign('page_number', intval($_GET['page']))

Last edited by Ghool; 11-23-2008 at 09:46 AM.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Set Character Limit for Meta Description Tags? blaze General Help 2 04-08-2009 01:09 AM
Meta Tags are still saying Pligg? bbrian017 General Help 27 01-09-2008 03:11 PM
Custom Meta Tags and Custom Titles spufz General Help 1 06-17-2007 04:40 AM
Meta Tags For The Non-Programmer 6devil Template Support 2 01-27-2007 12:02 PM

Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Use the coupon code PLIGG at Dreamhost.com to receive a discount of up to $84.00 Make a donation to support Pligg CMS development