Announcement

#1 2021-05-05 07:54:49

stevebni
Member
2021-05-03
28

Bootstrap Darkroom: Remove "Contact Webmaster" from footer?

Does anyone know how to remove the rather dated "Contact Webmaster" link from the footer of the Bootstrap Darkroom theme?

It's not just that the notion of a "webmaster" relates more to 1998 than 2021, but that I also adds the admin email directly into the source for the page, so it's a spammers paradise.

I can hide the entire footer area using css, but that also hides the "Powered By Piwigo" bit, which I have no issue with, and also hides the PersFooter plugin.

Offline

 

#2 2021-05-05 19:19:37

Katryne
Member
2016-12-03
368

Re: Bootstrap Darkroom: Remove "Contact Webmaster" from footer?

Hello !
There is something about it in the Theme documentation : https://github.com/tkuther/piwigo-boots … kroom/wiki It says :


To remove that link, use a custom plugin:

Code:

add_event_handler('loc_end_page_tail', 'removecontact');
function removecontact() {
  global $template;
   
  $template->clear_assign('CONTACT_MAIL');
}

http://photos.katrynou.fr/ v.14.1.0 https://album.chauvigne.info/ v.13.8.0
Système d'exploitation: Linux - Hébergeur 1&1-Ionos PHP: 8.0.28 - MySQL: 5.7.38
Bibliothèque graphique: External ImageMagick 6.9.10-23

Offline

 

#3 2021-05-05 19:44:08

stevebni
Member
2021-05-03
28

Re: Bootstrap Darkroom: Remove "Contact Webmaster" from footer?

That's really good of you to find that. I did look in the docs, but couldn't see it.

I now need to learn how to make/use a custom plugin.

Offline

 

#4 2021-05-05 19:48:27

stevebni
Member
2021-05-03
28

Re: Bootstrap Darkroom: Remove "Contact Webmaster" from footer?

OK, that was really easy to work out.

Thanks ever so much for the help.

Offline

 

#5 2021-05-05 20:00:46

stevebni
Member
2021-05-03
28

Re: Bootstrap Darkroom: Remove "Contact Webmaster" from footer?

One question for you on this, if you don't mind...

How do I make multiple Personal Plugins?

I've tried adding more than one to the edit box in LocalFiles Editor, but it just breaks the site.

Thanks.

Offline

 

#6 2021-05-05 20:12:49

stevebni
Member
2021-05-03
28

Re: Bootstrap Darkroom: Remove "Contact Webmaster" from footer?

Apologies for all the posts... But I've worked out how to add multiple personal plugins now. It is obvious, I just couldn't get my head around how it worked initially.

Thanks again.

Offline

 

#7 2023-03-07 03:45:52

AK_CCM
Member
Donauwoerth (Germany)
2023-02-25
7

Re: Bootstrap Darkroom: Remove "Contact Webmaster" from footer?

Hello,

the custom plugin with the code mentioned above doesn't work.
I'm using Piwigo 13.6.0 with Bootstrap Darkroom 2.5.17.

Are there any changes needed?

Regards, Andreas

Offline

 

#8 2023-03-07 07:31:28

Katryne
Member
2016-12-03
368

Re: Bootstrap Darkroom: Remove "Contact Webmaster" from footer?

Andreas, I did it, but cannot remember how. I have 2 plugins installed : Contact and contact1 menu. My mail is normally not available, even in source mode since it's a contact form.
And this is the only way of contacting me. Try the plugins, maybe they remove the link in the footer.
Sorry for the lack of precision.

https://album.chauvigne.info/


http://photos.katrynou.fr/ v.14.1.0 https://album.chauvigne.info/ v.13.8.0
Système d'exploitation: Linux - Hébergeur 1&1-Ionos PHP: 8.0.28 - MySQL: 5.7.38
Bibliothèque graphique: External ImageMagick 6.9.10-23

Offline

 

#9 2023-03-07 16:00:38

BigIsland270972
Member
Norway
2022-03-15
374

Re: Bootstrap Darkroom: Remove "Contact Webmaster" from footer?

/themes/bootstrap_darkroom/template/footer.tpl

Find this line:

{if isset($CONTACT_MAIL)}
                | <a href="mailto:{$CONTACT_MAIL}?subject={'A comment on your site'|@translate|@escape:url}">{'Contact webmaster'@translate}</a>
{/if}

Change to:

{if isset($CONTACT_MAIL)}
                | <a href="mailto:{$CONTACT_MAIL}?subject={'A comment on your site'|@translate|@escape:url}">{''@translate}</a>
{/if}


Piwigo 14.0 | https://fotoarkiv.no | https://foto.arki.vet | http://Bergen.gallery  | http://Ålesund.gallery | http://geiranger.gallery | http://fjord.photos | http://foto.oslo.no
Apache | PHP 8.1 | MariaDB

Offline

 

#10 2023-03-08 21:57:32

AK_CCM
Member
Donauwoerth (Germany)
2023-02-25
7

Re: Bootstrap Darkroom: Remove "Contact Webmaster" from footer?

If I do the mentioned changes in the footer.tpl, the complete footer is gone.
But the solution for me was simple: I've cleared all between {if isset($CONTACT_MAIL)} and {/if}.

Thanks for your hint, BigIsland270972!

Offline

 

#11 2023-03-08 22:30:27

Katryne
Member
2016-12-03
368

Re: Bootstrap Darkroom: Remove "Contact Webmaster" from footer?

When you will upgrade your site, your file will be replaced and your modification gone.
An easier, durable, long-lasting and safer solution would be to remove the text "contact the webmaster" via the lang file... The link under the text will disapear too.

Use the Local File Editor, language tab and add :

Code:

$lang['Contact webmaster'] = '';

for any language you are using.

Look here : https://blackland.legtux.org/


http://photos.katrynou.fr/ v.14.1.0 https://album.chauvigne.info/ v.13.8.0
Système d'exploitation: Linux - Hébergeur 1&1-Ionos PHP: 8.0.28 - MySQL: 5.7.38
Bibliothèque graphique: External ImageMagick 6.9.10-23

Offline

 

#12 2023-03-08 22:56:16

AK_CCM
Member
Donauwoerth (Germany)
2023-02-25
7

Re: Bootstrap Darkroom: Remove "Contact Webmaster" from footer?

If I clear only the language string the pipe still appears and the mail adress is still in the html code. Okay with one of your mentioned contact-plugins I could clear the mail adress. But I don't need a contact form. And an additional plugin only due to a little cosmetic change?

Does Piwigo have an override functionality so own modifications will be permanent after updates?

Offline

 

#13 2023-03-08 23:11:09

Katryne
Member
2016-12-03
368

Re: Bootstrap Darkroom: Remove "Contact Webmaster" from footer?

Like that ? https://blackland.legtux.org/
Read my first answer, at the beginning of this thread : custom plugin ! It took 5 seconds to do.


http://photos.katrynou.fr/ v.14.1.0 https://album.chauvigne.info/ v.13.8.0
Système d'exploitation: Linux - Hébergeur 1&1-Ionos PHP: 8.0.28 - MySQL: 5.7.38
Bibliothèque graphique: External ImageMagick 6.9.10-23

Offline

 

#14 2023-03-13 20:02:37

myVortexServers
Member
2021-08-04
20

Re: Bootstrap Darkroom: Remove "Contact Webmaster" from footer?

Actually a better and working trick, go to CSS file and volia, its gone.

in css file

#copyright {
    display: none;
   }

Offline

 

#15 2024-02-21 06:59:09

jessica1998
Member
New York (USA)
2022-05-09
11

Re: Bootstrap Darkroom: Remove "Contact Webmaster" from footer?

Seems like the solutions above doesn't work anymore

Offline

 

Board footer

Powered by FluxBB

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