Pages: 1 2
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
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:
add_event_handler('loc_end_page_tail', 'removecontact'); function removecontact() { global $template; $template->clear_assign('CONTACT_MAIL'); }
Offline
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
OK, that was really easy to work out.
Thanks ever so much for the help.
Offline
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
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
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
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/
Offline
/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}
Offline
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
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 :
$lang['Contact webmaster'] = '';
for any language you are using.
Look here : https://blackland.legtux.org/
Offline
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
Like that ? https://blackland.legtux.org/
Read my first answer, at the beginning of this thread : custom plugin ! It took 5 seconds to do.
Offline
Actually a better and working trick, go to CSS file and volia, its gone.
in css file
#copyright {
display: none;
}
Offline
Seems like the solutions above doesn't work anymore
Offline
Pages: 1 2