evryka23 wrote:
Hi!
I would like to add the "about" in the menu and insert text inside. I would like to insert informations about me you know...about my site and so on...
Im new and i really looked for it and read about this but i didnt find how to resolve it :(
I would really appreciate if you could help me with this.
Im using the template named Sylvia.
Thank you!
Erika
1) install/activate [extension by Piwigo Team] LocalFiles Editor from screen [Administration > Plugins > Manage]
2) open [Administration > Plugins > LocalFiles Editor > personal plugin and paste the following code:
<?php
/*
Plugin Name: Plugin Personnel
Version: 1.0
Description: Plugin Personnel
Plugin URI: http://piwigo.org
Author:
Author URI:
*/
add_event_handler('blockmanager_apply','addmenupartner');
function addmenupartner($aMenuRefArray)
{
$menu = &$aMenuRefArray[0];
$block_mbMenu = $menu->get_block('mbMenu');
if (null == $block_mbMenu)
{
return;
}
if (!isset($block_mbMenu->data['partner']))
{
$block_mbMenu->data['partner'] = array(
'TITLE' => l10n('partner'),
'NAME' => l10n('partner'),
'URL' => make_index_url(array('section' => 'page/partner')),
);
}
}
?>
3) install/activate personal plugin
4) install/activate [extension by P@t] Additional Pages
5) open [Administration > Plugins > Additional Pages
add a page
add 'partner' as Permalink
hide page
Offline
6) you can add translation
open [Administration > Plugins > LocalFiles Editor > local lang
edit
add
$lang['partner'] = 'partner';
Offline
Look at my website. I did what you wrote. Click on partner: Page not found ...requested page does not exist..this is what you can see. What i did wrong? :)
Offline
evryka23 wrote:
Look at my website. I did what you wrote. Click on partner: Page not found ...requested page does not exist..this is what you can see. What i did wrong? :)
Are you create partner page with [extension by P@t] Additional Pages ?
Offline
Additional Pages Add additional pages in menubar.
Deactivate Version 2.1.m | By P@t | Visit plugin site
This was what i installed and activated.
Offline
evryka23 wrote:
Look at my website. I did what you wrote. Click on partner: Page not found ...requested page does not exist..this is what you can see. What i did wrong? :)
in plugin perso partner
in additional page partners
Offline
ddtddt wrote:
evryka23 wrote:
Look at my website. I did what you wrote. Click on partner: Page not found ...requested page does not exist..this is what you can see. What i did wrong? :)
in plugin perso partner
in additional page partners
you can update plugin or page ;-)
Offline
Okay, that was the problem, that stupid "s" :) Thank you for your help. Maybe i will need it next time too :) And maybe i need to translate something too :)
Greets,
Erika
Offline
Hi again!
Everything was good till i tried the thing you said with the languages, the 6. point.
" 6) you can add translation
open [Administration > Plugins > LocalFiles Editor > local lang
edit
add
$lang['partner'] = 'partner'; "
instead this code was this one:
<?php
/* File is not existing and will be created by LocalFiles Editor */
?>
Sooo instead of this i inserted what you wrote.
Maybe i deleted something or i don't know what happened but my admin account does not work since than. :(( We restored the page to a date before this happened, and nothing changed about this problem. My pictures dissappeared of course because we restored the page, but when i try to enter in the admin page everything changes to white. I hope you can do something to help me because i don't have more ideas.:(
And sorry for disturb you again...
Greets,
Erika
Offline
error in file local lang
by FTP go to local/language
rename hu_HU.lang.php to old_hu_HU.lang.php
.....
Offline
evryka23 wrote:
" 6) you can add translation
open [Administration > Plugins > LocalFiles Editor > local lang
edit
add
$lang['partner'] = 'partner'; "
no " end the line
Offline
I know,.... that " was not what i inserted, i just put it because it was what you wrote before so i put it in quotation :)
soo...i cant go anywhere because i cannot login at all with my admin account. I don't understand why.
We restored everything so everything is good with the server. I was thinking about something wrong in the piwigo engine or with the plugin. There is somebody who had the same problem maybe? Any idea would be good :(
Offline
on your site you're delete my account ?
on database your account is already present ?
Offline
I did not delete my account, i just can not sign in because i see all a white page since i inserted that code in the local files editor. Other accounts works perfectly, only my account doesn't.
In the database is present my account. Whatever i did another account, i registered again and i added myself as admin, and it works now, i just did not understand how this happen. :)
Offline
I will try again soon the same steps you told me. i am curious if it happens again the same error :)
Offline