KhurramMunawar wrote: Sat Feb 18, 2017 8:16 pm what will be the logout link for the user, if i want him to logout using this extension.
can we use language variables ?
ucp.php?mode=logout
as the buttons URLCheck the customise tab of your ACP to ensure that the extension is disabled and data deleted. Then purge the cache, log out of the forumKaycee wrote: Sat Feb 18, 2017 9:50 pm I installed this extension but could not enable it. Every time click on confirm enable, it returns with a blank page. Any help?
headerlink
folder from the serverhifikabin
to root/ext/
Code: Select all
<?php
/**
*
* @package phpBB Extension - Header Links
* @copyright (c) 2015 HiFiKabin
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/
/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang))
{
$lang = array();
}
// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
//
// Some characters you may want to copy&paste:
// ’ » “ ” …
//
$lang = array_merge($lang, array(
'HEADERLINK_MENU' => 'Links',
'HEADERLINK_MENU_HOVER' => 'Zeige Links',
));
Code: Select all
<?php
/**
*
* @package phpBB Extension - Header Links
* @copyright (c) 2015 HiFiKabin
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/
/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang))
{
$lang = array();
}
// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
//
// Some characters you may want to copy&paste:
// ’ » “ ” …
//
$lang = array_merge($lang, array(
'ACP_HEADERLINK' => 'Header Link',
'ACP_HEADERLINK_CONFIG' => 'Header Link',
'ACP_HEADERLINK_CONFIG_EXPLAIN' => 'Das ist die Konfigurationsseite für die Header Link Extension.' ,
'ACP_HEADERLINK_INFO' => 'Hier kannst du bis zu 8 Links einfügen, jeden mit eigener Benennung und eigenem Ziel. Fülle nur das Formular unten aus',
'ACP_HEADERLINK_INT_URL' => 'Interne URLs können ohne http:// und Domain eingetragen werden Z.B. app.php/help/faq ',
'ACP_HEADERLINK_EXT_URL' => 'Externe URLs müssen mit http:// eingetragen werden ',
'ACP_HEADERLINK_LINK_1' => 'Erster Link',
'ACP_HEADERLINK_LINK_2' => 'Zweiter Link',
'ACP_HEADERLINK_LINK_3' => 'Dritter Link',
'ACP_HEADERLINK_LINK_4' => 'Vierter Link',
'ACP_HEADERLINK_LINK_5' => 'Fünfter Link',
'ACP_HEADERLINK_LINK_6' => 'Sechster Link',
'ACP_HEADERLINK_LINK_7' => 'Siebter Link',
'ACP_HEADERLINK_LINK_8' => 'Achter Link',
'ACP_HEADERLINK_URL_PLACEHOLDER' => 'Link URL',
'ACP_HEADERLINK_NAME_PLACEHOLDER' => 'Link Name',
'ACP_HEADERLINK_HOVER_PLACEHOLDER' => 'Link bei Mouse over',
'ACP_HEADERLINK_TARGET' => 'Öffne Link in neuem Tab',
'ACP_HEADERLINK_DISABLE' => 'Schalte diesen Link aus',
'ACP_HEADERLINK_GUEST' => 'Aktiviere diesen Link nur für Gäste',
'ACP_HEADERLINK_MEMBER' => 'Aktiviere diesen Link nur für Mitglieder',
'ACP_HEADERLINK_ACTIVE' => 'Aktiviere diesen Link für alle',
'HEADERLINK_CONFIG' => 'Header Link Einstellungen',
'HEADERLINK_SAVED' => 'Header Link Einstellungen gespeichert',
));
Many thanks, added to my site
this link does not workName the button and hover as you wish and use ucp.php?mode=logout as the buttons URL
Code: Select all
@media only screen and (max-width: 700px), only screen and (max-device-width: 700px)
{
.phpbb-navbar {
border-radius: 0 !important;
margin: 1px -5px 0;
}
.phpbb-navbar .phpbb-menu, .headerbar {
border-radius: 0px ;
}
}
headerlink
folder from the serverhifikabin
to root/ext/
Yes, I didn't realise that the session needed to be appended. Sorry, but I don't think you can have a 'Log Out' button without a lot of extra coding that is beyond the scope of this extensionKhurramMunawar wrote: Mon Feb 20, 2017 2:42 amthis link does not workName the button and hover as you wish and use ucp.php?mode=logout as the buttons URL
I think there is a session id issue for individual user.