Editing the title (not story titles, meta title)

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 08-04-2007, 08:48 PM
New Pligger
 
Join Date: Aug 2007
Posts: 21
OK, so the title tag isn't really "meta", but you know...

I want to know how to change that bit. I found the meta tag template earlier, so that's covered.

Still puzzled over where to change the main title, though.

UPDATED:

Found this in the pligg.tpl file via another post here:

Quote:
<title>{$pretitle}{#PLIGG_Visual_Name#}{$posttitle }</title>
So, where can I find the info feeding into this little thing?

Last edited by SportsGuy; 08-04-2007 at 09:17 PM.
Reply With Quote
  #2 (permalink)  
Old 08-05-2007, 06:59 PM
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,215
Are you talking about the title of the page that shows up in the title bar of a web browser as shown in this picture?



You can edit that in the .php files. Every php file should have code that looks like this that sets the page title

Code:
$main_smarty->assign('posttitle', " / " . $main_smarty->get_config_vars('PLIGG_Visual_Profile_ModifyProfile'));
That code is in profile.php and sets the page title for the profile page.

In /templates/your_template/pligg.tpl you will see where <title></title> is used in the html code
Code:
<title>{$pretitle}{#PLIGG_Visual_Name#}{$posttitle}</title>
Reply With Quote
  #3 (permalink)  
Old 08-07-2007, 08:57 AM
New Pligger
 
Join Date: Aug 2007
Posts: 21
Quote:
Originally Posted by kbeeveer46 View Post
Are you talking about the title of the page that shows up in the title bar of a web browser as shown in this picture?

Yes

Quote:
You can edit that in the .php files. Every php file should have code that looks like this that sets the page title

Code:
$main_smarty->assign('posttitle', " / " . $main_smarty->get_config_vars('PLIGG_Visual_Profile_ModifyProfile'));
That code is in profile.php and sets the page title for the profile page.
Excellent

Quote:
In /templates/your_template/pligg.tpl you will see where <title></title> is used in the html code
Code:
<title>{$pretitle}{#PLIGG_Visual_Name#}{$posttitle}</title>
...and my original question remains - how do I edit this code to get the desired result? When I last made a change to the code I originally posted in my first post, it broke the site - so clearly it didn't like my change.

Seeing the reference in the "Smarty" code is great, but again, what do I do?

My goal is NOT to remove any post titles hat are included in titles, but to remove the reference to Pligg and place my own information in it's place.
Reply With Quote
  #4 (permalink)  
Old 08-07-2007, 09:33 AM
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,215
If you still see Pligg in the name then you need to change the name of your site in admin > modify language. I think it's the first entry.
Reply With Quote
  #5 (permalink)  
Old 08-07-2007, 11:17 AM
New Pligger
 
Join Date: Aug 2007
Posts: 21
Thanks kbeeveer! Worked as easily as that. Man, I HATE when I over think things...
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change page title only for story page - Google hadock Questions and Comments 15 03-02-2011 12:27 PM
Story title as meta tag chat2fanna Questions and Comments 1 09-25-2008 08:12 AM
how to completely REMOVE links from the title in the full story page? VictorML Questions and Comments 5 09-18-2008 10:26 AM
How to direct story title in summary page to the original story? chris79 Questions and Comments 4 02-03-2008 08:28 PM
SEO / meta tag / url method phalcon Questions and Comments 0 06-11-2007 06:32 PM


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