Pagenumer in meta tags

Register an Account
Pligg Chat Room
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
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
  #2 (permalink)  
Old 11-21-2008, 09:39 PM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Galleria
 
Join Date: Jun 2006
Posts: 3,829
You can set this in the admin > configure>


Get the full Pligg Module Pack today.

Anyone want the domain MyHubb.com ? Bid Now!




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: 34
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 Questions and Comments 2 04-08-2009 01:09 AM
Question About Meta tags? gjrb29 Questions and Comments 1 02-24-2009 10:09 PM
Tags not cloud in Pligg v9.9 bhatiacane Questions and Comments 4 05-03-2008 02:16 AM
Meta Tags are still saying Pligg? bbrian017 Questions and Comments 27 01-09-2008 03:11 PM
Custom Meta Tags and Custom Titles spufz Questions and Comments 1 06-17-2007 04:40 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