How to change the title

Current Version: 1.0.6
Released: 09.01.10
Forum rules
Before creating a new support thread, please take a look in the board3 Portal FAQ and use the search!
Many questions have already been answered.

Topic author
AIpx
Active Member
Posts: 4
Joined: 28. April 2009 11:53

How to change the title

Post by AIpx »

Your Portal Version: 1.0.2
Your phpBB Type: Premodded phpBB
MODs installed: No
Your knowledge: Basic Knowledge
Boardlink: http://pokerhold-m.com

What have you done before the problem was there?
I look into differents files without success

What have you already tryed to solve the problem?
nothing of more

Description and Message
Hello,

I would like to change the name of the portalboard page " portail" by the title of my website and i don't find where it is :( Someone can help me please ? Thanks very much ;)
User avatar

Kevin
Site Admin
Posts: 2989
Joined: 7. January 2006 20:11
phpBB.de User: Saint
phpBB.com User: Saint_hh
Location: Hamburg
Contact:

Re: How to change the title

Post by Kevin »

language/fr/mods/lang_portal.php

Code: Select all

    // General
    'PORTAL'                => 'Portal', 
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~

Kein Support per PN / No support via PM!

Topic author
AIpx
Active Member
Posts: 4
Joined: 28. April 2009 11:53

Re: How to change the title

Post by AIpx »

Thanks kevin ! it's ok ;)

I have other questions if you can help me.

1) i use a redirection . How can i put the portal at http://www.pokerhold-m.com instead of http://www.pokerhold-m.com/PHPBB3 without using my index.htm page please ?

2) Where can i add meta description for the portalboard please ?

3) How can i change the color of block "menu" , "help" etc to have the same style as my forum please ?

4 ) How can i do the update 1.0.2 to 1.0.3 please ?


Regards,

Thanks ;)
User avatar

Kevin
Site Admin
Posts: 2989
Joined: 7. January 2006 20:11
phpBB.de User: Saint
phpBB.com User: Saint_hh
Location: Hamburg
Contact:

Re: How to change the title

Post by Kevin »

Forum Rules wrote:Before creating a new support thread, please take a look in the board3 Portal FAQ and use the search!
Many questions have already been answered.
  1. see above (board3 Portal FAQ)
  2. meta descriptions can be added in the overall_header.html - but this is for the complete forum. There is no way to add meta tags for the portal only
  3. see above (board3 Portal FAQ)
  4. update_board3portal_102.xml is included in the package, in the contrib directory
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~

Kein Support per PN / No support via PM!

Topic author
AIpx
Active Member
Posts: 4
Joined: 28. April 2009 11:53

Re: How to change the title

Post by AIpx »

Kevin wrote:1) see above (board3 Portal FAQ)
Ok sorry and thank for the link , i will try to do that "Moving portal.php outside of your forums directory" :oops:
Kevin wrote:2 )meta descriptions can be added in the overall_header.html - but this is for the complete forum. There is no way to add meta tags for the portal only
Ok thanks, can i ask you an exemple please ? when i open my overall_header i can find :

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">
<head>

<head>
{SEO_BASE_HREF}
<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<title>{PAGE_TITLE}<!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF --></title>

<!-- // MOD : MSSTI RSS Feeds (V1.0.4) - Start-->
But i'm not a king in php :? Thanks
Kevin wrote:3 ) see above (board3 Portal FAQ)
Ok thank you vm
Kevin wrote:4) update_board3portal_102.xml is included in the package, in the contrib directory
I just try but i can't find :

"V'U_PORTAL'=> append_sid("{$phpbb_root_path}portal.$phpEx"), in includes / functions.php

and i can't find in the overall_header :

<!-- IF not $S_IN_PORTAL or not S_DISPLAY_MAINMENU -->

and i can't find

<li class="icon-home"><a href="{U_PORTAL}">{L_PORTAL}</a> &#187; <a href="{U_INDEX}" accesskey="h">{L_INDEX}</a></li>

but i have

<li class="icon-home"><a href="{U_INDEX}" accesskey="h">{L_INDEX}</a> <!-- BEGIN navlinks --><strong>&#8249;</strong> <a href="{navlinks.U_VIEW_FORUM}">{navlinks.FORUM_NAME}</a><!-- END navlinks --></li>

Sorry :oops:
Last edited by AIpx on 28. April 2009 15:58, edited 1 time in total.
User avatar

Kevin
Site Admin
Posts: 2989
Joined: 7. January 2006 20:11
phpBB.de User: Saint
phpBB.com User: Saint_hh
Location: Hamburg
Contact:

Re: How to change the title

Post by Kevin »

AIpx wrote:Ok thanks, can i ask you an exemple please ?
Erm, taking a look into your source code brings up this:

Code: Select all

<meta name="description" lang="fr" content="Portail Pokerhold-M : Passion Poker - Les bons plans poker : Passion Poker" />
<meta name="keywords"    content="Passion, Poker, plans, poker, bons, Les, Pokerhold, Portail" />
 
You already have meta tags given. ;)
AIpx wrote:I just try but i can't find : "V'U_PORTAL' => append_sid("{$phpbb_root_path}portal.$phpEx"),
Search for: U_PORTAL
Might be that you forgot to do this edit with V. 1.0.2 - i cant see the link in your forum. You might do the edits as stated in the install.xml
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~

Kein Support per PN / No support via PM!

Topic author
AIpx
Active Member
Posts: 4
Joined: 28. April 2009 11:53

Re: How to change the title

Post by AIpx »

Hi,

Thanks Kevin , i have try to do " Moving portal.php outside of your forums directory" and if avec the messages :

[phpBB Debug] PHP Notice: in file /homez.143/pokerhol/www/portal.php on line 22: main(./phpBB3/portal/includes/lang_adm_additional_blocks.php) [function.main]: failed to open stream: No such file or directory

[phpBB Debug] PHP Notice: in file /homez.143/pokerhol/www/portal.php on line 22: main() [function.include]: Failed opening './phpBB3/portal/includes/lang_adm_additional_blocks.php' for inclusion (include_path='.:/usr/local/lib/php')

[phpBB Debug] PHP Notice: in file /homez.143/pokerhol/www/portal.php on line 58: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3011)

Thanks
User avatar

Kevin
Site Admin
Posts: 2989
Joined: 7. January 2006 20:11
phpBB.de User: Saint
phpBB.com User: Saint_hh
Location: Hamburg
Contact:

Re: How to change the title

Post by Kevin »

This file does not exist: http://www.pokerhold-m.com/phpBB3/porta ... blocks.php
It seems that you are using a portal.php from B3P package 1.0.3 without having properly updated to it (the rest of the installation is still v. 1.0.2).
The lang_adm_additional_blocks.php has been added in v. 1.0.3.
Use a portal.php of the 1.0.2 package or update to 1.0.3 before trying to move it outside the phpBB root directory.
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~

Kein Support per PN / No support via PM!

Anotheridiot
Active Member
Posts: 11
Joined: 9. October 2008 12:59
phpBB.com User: Anotheridiot
Location: Dublin, Ireland

Re: How to change the title

Post by Anotheridiot »

Kevin wrote:language/fr/mods/lang_portal.php

Code: Select all

    // General
    'PORTAL'                => 'Portal', 
I did this, but it has also changed a portal link I had in the main_menu.html

Code: Select all

<li><a href="{U_PORTAL}">{L_PORTAL}</a></li>
and the link for portal in the overall header and overall footer breadcrumbs.

I have done the same thing in common.php for

Code: Select all

'INDEX'						=> 'index',
But it has not ended up with the same result in the breadcrumbs.

Ive gotten around it in the main menu by changing

Code: Select all

<li><a href="{U_PORTAL}">Home</a></li>
Now I'm poking around in overall header nad overall footer to see if I can figure out how to fix.
-Dan
_______________________________________
Lifes not fair... but the Root Password Helps !

Anotheridiot
Active Member
Posts: 11
Joined: 9. October 2008 12:59
phpBB.com User: Anotheridiot
Location: Dublin, Ireland

Re: How to change the title

Post by Anotheridiot »

the line in overall header is

Code: Select all

				<li class="icon-home"><!-- IF U_PORTAL --><a href="{U_PORTAL}">{L_PORTAL}</a> &#187; 
to be changed to

Code: Select all

				<li class="icon-home"><!-- IF U_PORTAL --><a href="{U_PORTAL}">Home</a> &#187; 
Overall footer edits are
change

Code: Select all

			<li class="icon-home"><!-- IF U_PORTAL --><a href="{U_PORTAL}">{L_PORTAL}</a> &#187; <!-- ENDIF -->
to

Code: Select all

			<li class="icon-home"><!-- IF U_PORTAL --><a href="{U_PORTAL}">Home</a> &#187; <!-- ENDIF -->
Templates need to be refreshed after these changes.
-Dan
_______________________________________
Lifes not fair... but the Root Password Helps !
User avatar

Kevin
Site Admin
Posts: 2989
Joined: 7. January 2006 20:11
phpBB.de User: Saint
phpBB.com User: Saint_hh
Location: Hamburg
Contact:

Re: How to change the title

Post by Kevin »

Thanks for sharing, but this is not a good way to do it. What you have done now is to "hardcode" it and is more "quick & dirty" than anything else. You need to edit every file, that doesn't make no sense. Also this is not a solution for multilingual forums, e.g. French and English "Portail" and "Portal".

Simply change it in the language files, like i've told above:
language/ your language /mods/lang_portal.php

Code: Select all

    // General
    'PORTAL'                => 'Whatever',  
Change Whatever to the name you want to have for the portal link and description.
Don't forget to purge the cache afterwards. ;)
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~

Kein Support per PN / No support via PM!

Anotheridiot
Active Member
Posts: 11
Joined: 9. October 2008 12:59
phpBB.com User: Anotheridiot
Location: Dublin, Ireland

Re: How to change the title

Post by Anotheridiot »

What my point was making that edit in lang_portal.php does change the page title, but it also changes the appearance of text for all occurances of {L_PORTAL} on the page.

So for example if it was to be changed to

Code: Select all

        // General
        'PORTAL'                => 'WHATEVER',  
The page title ends up as
WEBSITE * WHATEVER.

But the breadcrumbs in overall footer and overall header, all occurances of the {L_PORTAL} change to whatever as well.
So if you were viewing this forum it would read

* WHATEVER ‹ Board index ‹ Portal ‹ board3 Portal - English Support

Ive been studying some online marketing techniques lately and have discovered that google uses the page title like the cover of a book. The More descriptive the title, the more relevant hits your site will get.

Because Ive pretty much quoted from one of my study documents, I feel I have to mention that the document I have taken most of my start from is called Online Marketing by Damien Mulley
-Dan
_______________________________________
Lifes not fair... but the Root Password Helps !
User avatar

Kevin
Site Admin
Posts: 2989
Joined: 7. January 2006 20:11
phpBB.de User: Saint
phpBB.com User: Saint_hh
Location: Hamburg
Contact:

Re: How to change the title

Post by Kevin »

Okay, but to just change the portal title it would have been easier to modify

Code: Select all

// output page
page_header($user->lang['PORTAL']); 
in portal.php and define an own variable, like "P_TITLE" or something and add it to the lang file.
Just one edit instead of several in several templates. ;)

Anyway, main thing is that you have what you wanted to have. ;)
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~

Kein Support per PN / No support via PM!

Anotheridiot
Active Member
Posts: 11
Joined: 9. October 2008 12:59
phpBB.com User: Anotheridiot
Location: Dublin, Ireland

Re: How to change the title

Post by Anotheridiot »

Yeah that works much better.

I undid all my previous edits and went with the following. Much tidier and neater solution.

in portal.php
Find

Code: Select all

// output page
page_header($user->lang['PORTAL']); 
Replace with

Code: Select all

// output page
page_header($user->lang['PORTAL_TITLE']); 
In /language/en/mods/lang_portal.php
Find

Code: Select all

	'PORTAL_INSTALL_TEXT'		=> 'An installation file has been detected. If you want to update your portal (or any other mod), please execute the installer. If you have already done so, please remove or rename the directory for security reasons.',
Add After

Code: Select all

	'PORTAL_TITLE'			=> 'WHATEVER',
-Dan
_______________________________________
Lifes not fair... but the Root Password Helps !
User avatar

Kevin
Site Admin
Posts: 2989
Joined: 7. January 2006 20:11
phpBB.de User: Saint
phpBB.com User: Saint_hh
Location: Hamburg
Contact:

Re: How to change the title

Post by Kevin »

Anotheridiot wrote:Much tidier and neater solution.
Yeah, i subscribe to that! :)

Have a nice weekend (public holiday today in Germany)!
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~

Kein Support per PN / No support via PM!
Locked

Return to “board3 Portal 1.0.x - English Support”