Announcement

#31 2011-06-28 21:24:14

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7198

Re: [resolved] How to add the "about" in the menu and insert text inside?

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


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#32 2011-06-28 21:27:48

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7198

Re: [resolved] How to add the "about" in the menu and insert text inside?

6) you can add translation
open [Administration > Plugins > LocalFiles Editor > local lang
edit

add

$lang['partner'] = 'partner';


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#33 2011-06-28 22:18:48

evryka23
Member
2011-03-20
40

Re: [resolved] How to add the "about" in the menu and insert text inside?

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

 

#34 2011-06-28 22:22:42

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7198

Re: [resolved] How to add the "about" in the menu and insert text inside?

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 ?


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#35 2011-06-28 22:25:10

evryka23
Member
2011-03-20
40

Re: [resolved] How to add the "about" in the menu and insert text inside?

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

 

#36 2011-06-28 22:26:00

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7198

Re: [resolved] How to add the "about" in the menu and insert text inside?

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 love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#37 2011-06-28 22:27:06

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7198

Re: [resolved] How to add the "about" in the menu and insert text inside?

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 ;-)


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#38 2011-06-28 22:32:11

evryka23
Member
2011-03-20
40

Re: [resolved] How to add the "about" in the menu and insert text inside?

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

 

#39 2011-07-01 09:27:04

evryka23
Member
2011-03-20
40

Re: [resolved] How to add the "about" in the menu and insert text inside?

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

 

#40 2011-07-01 11:32:55

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7198

Re: [resolved] How to add the "about" in the menu and insert text inside?

error in file local lang

by FTP go to local/language

rename hu_HU.lang.php to old_hu_HU.lang.php
.....


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#41 2011-07-01 11:33:59

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7198

Re: [resolved] How to add the "about" in the menu and insert text inside?

evryka23 wrote:

" 6) you can add translation
open [Administration > Plugins > LocalFiles Editor > local lang
edit

add

$lang['partner'] = 'partner'; "

no " end the line


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#42 2011-07-01 18:52:19

evryka23
Member
2011-03-20
40

Re: [resolved] How to add the "about" in the menu and insert text inside?

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

 

#43 2011-07-01 21:42:58

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7198

Re: [resolved] How to add the "about" in the menu and insert text inside?

on your site you're delete my account ?

on database your account is already present ?


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#44 2011-07-02 11:45:21

evryka23
Member
2011-03-20
40

Re: [resolved] How to add the "about" in the menu and insert text inside?

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

 

#45 2011-07-02 11:56:02

evryka23
Member
2011-03-20
40

Re: [resolved] How to add the "about" in the menu and insert text inside?

I will try again soon the same steps you told me. i am curious if it happens again the same error :)

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact