Announcement

  •  » Extensions
  •  » how can I add a link to my blog in the menu?

#1 2009-09-30 03:53:48

a1000
Member
2009-09-23
19

how can I add a link to my blog in the menu?

Hi!
I have a blog in the same host, but in another directory. Now the main page is piwigo, so, I need to put a link to my blog in the header of the site. The menu may be a good idea. How can I do that?

Thank you.

Offline

 

#2 2009-09-30 06:52:46

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

Re: how can I add a link to my blog in the menu?

1/ In the wiki

wiki wrote:

// links : list of external links to add in the menu. An example is the best
// than a long explanation :
//
// $conf['links'] = array(
//   'http://phpwebgallery.net' => 'PWG website',
//   'http://forum.phpwebgallery.net' => 'PWG forum',
//   'http://phpwebgallery.net/doc' => 'PWG wiki'
//   );
//
// If the array is empty, the "Links" box won't be displayed on the main
// page.
$conf['links'] = array();

or

2/ With [extension by grum] Advanced Menu Manager


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

 

#3 2009-09-30 13:43:34

a1000
Member
2009-09-23
19

Re: how can I add a link to my blog in the menu?

hi ddtddt !

I took a look in the wiki (=

Thank you!

Offline

 

#4 2010-06-20 00:19:03

mike
Guest

Re: how can I add a link to my blog in the menu?

I have this same request but i do not understand the response, do i need to put that code somwhere.  sorry im a noob

 

#5 2010-06-20 00:43:25

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

Re: how can I add a link to my blog in the menu?

For 1

Plugin [extension by Piwigo Team] LocalFiles Editor

tab 1

paste code


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

 

#6 2012-04-07 15:17:32

boone
Guest

Re: how can I add a link to my blog in the menu?

Hello,

I didnt understand this either, but I tired adding that code in the local files editor but now I cant access any page of my gallery, not even the admin menu. What has happened?

Please help. I dont want to have to rebuild my whole site.

Boone

 

#7 2012-04-07 16:16:22

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

Re: how can I add a link to my blog in the menu?

What releace piwigo you use ?


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

 

#8 2012-04-07 18:53:11

boone
Guest

Re: how can I add a link to my blog in the menu?

2.3.3

 

#9 2012-04-07 19:14:29

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

Re: how can I add a link to my blog in the menu?

you can use extension 2.3.3
to delete local file
By FTP go to local/config/

rename config.inc.php to oldconfig.inc.php

you can paste your code on forum for help you to correct ;-)


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

 

#10 2012-04-07 21:10:02

boone
Guest

Re: how can I add a link to my blog in the menu?

Fantastique! Merci!

I had to delete the file twice for some reason but thank you that has fixed it perfectly. You have saved me a lot of time and frustration.

I would have posted code, had I known what file I should of been looking at and if I knew what code also ;)

However, my original issue still remains, how do I insert a blog or any other link for that matter in the menu bar?

I have attached an image with some red lines of where I potentially would like to insert links. Could you tell me which files or code I will need to edit to add links where these red lines are please?

http://img268.imageshack.us/img268/2002/menuzr.png

Again thank you.

 

#11 2012-04-07 23:32:12

desertprincess
Member
1970-01-01
4

Re: how can I add a link to my blog in the menu?

I struggled with this too. As a temporary measure, I added my outside links into the header in the configuration area. I too, am unable to figure out how to get it into the menu. I'm using Advanced Menu plugin, but it seems to prepend my domain name (http://www.snipmypic.com/index.php?3=ht … ic.com/xmb instead of going to the link snipmypic.com/xmb.

Offline

 

#12 2012-04-08 00:26:42

boone
Guest

Re: how can I add a link to my blog in the menu?

As far as the Advanced Menu plugin is concerned I have seen alot of posts with people suggesting to use this to add custom links, but like me, I dont think it answers the right question.  Yes its a good plugin for custom links etc but it adds an extra menu/block whereas I would prefer the option of having at least one additional custom link in the menu bar.

I don't seem to have the same problem your having with the web address. In my Advance menu I have the links set up in a personalised menu like so...

Code:

<li><a href="http://example.com/blog" title="Blog">Blog</a></li>

<li><a href="index.php?/contact" title="Contact form">Contact</a></li>

rather than the links tab in the Advanced Menu plugin. Then I just removed access to Menu and Specials blocks and voila, I have my own custom menu. When I click the blog link, it goes to the correct address unlike yours? :/ ...but I still want it in that menu bar!!! :D haha

 

#13 2012-04-08 00:35:11

boone
Guest

Re: how can I add a link to my blog in the menu?

Trial and error.... I HAVE THE ANSWER PEOPLE!

For those looking for this option:

http://img833.imageshack.us/img833/8329/bloglinkv.png

In stripped only, you will have to try this in other themes yourselves.

Go to themes/stripped/template

find index.tpl, rename as indexOLD.tpl

open in a good editor and find

Code:

<div class="titrePage">
  <div class="browsePath">
    <span id="menuswitcher" title="{'Show/hide menu'|@translate}">{'Menu'|@translate}</span><span class="arrow"> »</span>
    <h2>{$TITLE}</h2>
  </div>

and replace with

Code:

<div class="titrePage">
  <div class="browsePath">
    <span id="menuswitcher" title="{'Show/hide menu'|@translate}">{'Menu'|@translate}</span><span class="arrow"> »</span>
    <a href="http://example.com" title="Blog">Blog</a><span class="arrow"> »</span>
    <h2>{$TITLE}</h2>        
  </div>

Save as index.tpl, upload, and Bob's your uncle! :D

Your welcome.

 

#14 2013-12-20 14:49:02

Stephen Winters
Member
Oregon
2013-12-20
24

Re: how can I add a link to my blog in the menu?

Hi,
I made a backup of the index.tpl file and then changed the code as explained in the above message by boone, and it works great. (using the Stripped theme). I added "website" (which links to the main website) to the menu. However, I somehow an unwanted effect.  I'm not sure what I did wrong. The word "titrepage" is up just above the breadthumb menu. See picture below. Here is a picture:

http://piwigo.org/forum/showimage.php?pid=148263&amp;filename=Titrepage.jpg

http://pgallery.winterssewing.com/

Here is the code as I changed it.

Code:

titrePage<div class="titrePage">
  <div class="browsePath">
    <span id="menuswitcher" title="{'Show/hide menu'|@translate}">{'Menu'|@translate}</span><span class="arrow"> »</span>
    <a href="http://winterssewing.com" title="Main Website">website</a><span class="arrow"> »</span>
    <h2>{$TITLE}</h2>

In trying to get rid of the "titrepage" label I replaced the original index.tpl file, but "titrepage" remained (and the addition of "website" to the menu also remained.)  I cleared my browser cache. It still remained. I opened a different web browser. It still remained. Does Piwigo have a cache that I need to clear?

Does anyone know how to get rid of the "titrepage, or know what I did wrong?

Thanks,
Stephen

Last edited by Stephen Winters (2013-12-20 15:03:06)


Stephen Winters
An upholsterer since 1966, who has a passion for writing, computers, photography & video
http://winterssewing.com | http://upholsteryresource.com

Offline

 

#15 2013-12-20 14:59:14

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: how can I add a link to my blog in the menu?

Hello

don't you see the "titrePage" at the very begining of your code ?

Offline

 
  •  » Extensions
  •  » how can I add a link to my blog in the menu?

Board footer

Powered by FluxBB

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