Seo Friendly Title

Discussions about the phpBB3 Forum. How to get the best from this powerful script.
Note that there is no official support for phpBB3 here, a place to share more than to ask for.

Moderator: Moderators

Seo Friendly Title

Postby magicseo » Mon Jan 28, 2013 4:33 am

Hi,
i am the run a community forum called http://kuperforum.com i want to make title of my forum post seo friendly it's going very long and i have searched for this and i got this solution.
Code: Select all
#
#-----[ FIND ]------------------------------------------
#

page_header($user->lang['VIEW_TOPIC'] .' - ' . $topic_data['topic_title']);

#
#-----[ REPLACE WITH ]------------------------------------------
#

page_header($topic_data['topic_title']);


but when i edit the code i am getting error anybody can suggest what should change in the following code and when i searched for the code in my forum it shows like this:
Code: Select all
page_header($user->lang['VIEW_TOPIC'] . ' - ' . $topic_data['topic_title'], true, $forum_id);


Thank You,
Vikash Kumar Munda
magicseo
 
Posts: 2
Joined: Mon Jan 28, 2013 4:09 am

Advertisement

Re: Seo Friendly Title

Postby HB » Mon Jan 28, 2013 10:27 pm

What's the error?
Dan Kehn
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1561
Joined: Mon Oct 16, 2006 2:25 am

Re: Seo Friendly Title

Postby magicseo » Tue Jan 29, 2013 9:15 am

HB wrote:What's the error?

i am gettiing this error
Parse error: syntax error, unexpected $end in /home/content/04/10178804/html/viewtopic.php on line 1413
magicseo
 
Posts: 2
Joined: Mon Jan 28, 2013 4:09 am

Re: Seo Friendly Title

Postby HB » Wed Jan 30, 2013 4:30 pm

So you probably have a typo around that line number. :)

To elaborate... the phpBB code typically generates the page content in memory and then at the very end, outputs it to the HTTP response stream. The advantage of this approach is you can write the page generation code slightly out of order, e.g., you generate headers at any point even though technically they must be at the beginning of the HTML output. But by default, PHP dumps unrecognized text directly to the HTML response. So, returning to your issue, if you have a typo, the result can be that HTML outputting unexpectedly begins before the headers are output, which is flagged as an error later in processing. That's what it's complaining about... you're generating header output even though non-header output has already been (inadvertently) created.

The upshot of my point is that you've got a coding error and you'll need to fix it.
Dan Kehn
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1561
Joined: Mon Oct 16, 2006 2:25 am


Return to phpBB Forum

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 10 guests