Announcement

  •  » Extensions
  •  » [Contact Form] missing contact link in footer for guest

#1 2013-04-10 17:41:15

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13571

[Contact Form] missing contact link in footer for guest

With the latest version of ContactForm 2.5.b on Piwigo 2.5, guest has no contact link in the footer (while early version of the plugin were adding this link).

The link is in the menu, but not in the footer.

Offline

 

#2 2013-05-21 12:12:58

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13571

Re: [Contact Form] missing contact link in footer for guest

Hi mistic100,

What do you think about:

Code:

[pierrick@pierrick-desktop] ~/public_html/piwigo/dev/branches/2.5/plugins/ContactForm
$ svn diff main.inc.php 
Index: main.inc.php
===================================================================
--- main.inc.php        (revision 22694)
+++ main.inc.php        (working copy)
@@ -77,6 +77,11 @@
   {
     contact_form_initialize_emails();
   }
+
+  // always show a contact link in footer (but don't reveal the webmaster email)
+  if ( !is_classic_user() and !$conf['ContactForm']['cf_allow_guest'] ) return;
+  if ( !count(get_contact_emails()) ) return;
+  $template->assign('CONTACT_MAIL', true);
   
   $template->set_prefilter('tail', 'contact_form_footer_link');
 }

Offline

 

#3 2013-09-03 00:29:04

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13571

Re: [Contact Form] missing contact link in footer for guest

I have applied it as a quick fix, but I didn't officially commited it on SVN. Would you like me to commit?

Offline

 
  •  » Extensions
  •  » [Contact Form] missing contact link in footer for guest

Board footer

Powered by FluxBB

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