Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

[UPDATE] ContactPage v3

(Page 1 of 2)
> >
Quote Reply
[UPDATE] ContactPage v3
Hi,

I've been a busy person Angelic I decided it was finally time (after quite a few years) to rewrite ContactPage from the ground up. There are quite a few changes:

1) You can now configure pretty much everything from the admin panel:

  • Length of CAPTCHA images
  • CAPTCHA required for images?
  • Can send to link owners?
  • Can sent to users?
  • IPs to block (including ranges)
  • Fields that are required


2) There are now 3 different HTML / email templates:
  • Admin
  • User
  • Links
The idea between splitting these up, was so that its easier to customize the emails going out (i.e you would probably want the emails to look different for "users", compared to "link owners")

3) There is now a "log" feature, which keeps track of all outgoing messages (and IP addresses, in case you need to block IPs)
4) CAPTCHA images are generated on the fly now (no more static images!), and automatically cleared out when they are not in use any more.

I think thats about it. All existing users can download the new version from the "Members Area". To find out more, or to purchase, please visit:

http://www.ultranerds.co.uk/Products/Plugins/Gossamer_Links_Plugins/Paid_Plugins/Contact_Page_L7/

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!

Last edited by:

Andy: Apr 11, 2013, 11:10 AM
Quote Reply
Re: [Andy] [UPDATE] ContactPage v3 In reply to
Hi Andy,
first gratulation to your new page design. Looks much more professional...

I have some modifications in your contact plugin 2.5
When I'm testing contact page 3.0 will it overwrite my actual contact page?
What files do I have to backup?

Thanks

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] [UPDATE] ContactPage v3 In reply to
Hi,

Quote:
first gratulation to your new page design. Looks much more professional...

Thanks Cool

Quote:
I have some modifications in your contact plugin 2.5
When I'm testing contact page 3.0 will it overwrite my actual contact page?
What files do I have to backup?

Yes, you would need to backup contact.cgi . The templates are called different things now, so that shouldn't be a problem.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [UPDATE] ContactPage v3 In reply to
Absolutely fabulous! Works like a Swiss watch Wink
Quote Reply
Re: [katakombe] [UPDATE] ContactPage v3 In reply to
Great to hear :) Makes it worth all the time I spent re-doing it hehe

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [UPDATE] ContactPage v3 In reply to
Hi Andy,
I have a problem with the new plugin.
When I'm using
Code:
<%config.db_cgi_url%>/contact.cgi?id=<%ID%>

or
Code:
<%config.db_cgi_url%>/contact.cgi?user=<%LinkOwner%>


The plugin is always using only contact_form_admin.html,
but not contact_form_link.html or contact_form_user.html

And another problem:
When I'm getting an error message, the field for the security image appears for logged in user below the form.
But without security image? And in my setting logged in users can use the form without security image.

Thanks

Matthias
gpaed.de

Last edited by:

Matthias70: Apr 13, 2013, 9:06 AM
Quote Reply
Re: [Matthias70] [UPDATE] ContactPage v3 In reply to
Hi,

Could you PM/ email me a couple of example URLs + FTP, and I'll take a look for you?

EDIT: I just tested this on a fresh install, and it works perfectly for me (as it should). Its gotta be a a weird glitch with your site / how its setup. Its almost 8pm here now, so I probably wont be able to have a look at it today (unless you email me in the next 15 mins :))

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!

Last edited by:

Andy: Apr 13, 2013, 11:55 AM
Quote Reply
Re: [Andy] [UPDATE] ContactPage v3 In reply to
If some is interested,
the template problem was gone today.
Perhaps a mod perl caching problem...

Hi Andy,
the issue with the security image, that appears on error messages even when the image is not activated for logged users, remains.

In the older plugin I was using <%LinkOwner%> in the email template to write
"Hello <%LinkOwner%> there is a message for you"

<%LinkOwner%> or <%SendToLinkOwner%> does not work in the new email templates.
Is there a way to integrate this again.

Thanks

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] [UPDATE] ContactPage v3 In reply to
Hi,

Thanks - I found the bug. In the contact_form_*.html templates, please find:

Code:
<input type="hidden" name="session_id" value="<%session_id%>" />

Change to:

Code:
<%if session_id%>
<input type="hidden" name="session_id" value="<%session_id%>" />
<%endif%>

I will get this fixed up and released in a few mins.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [UPDATE] ContactPage v3 In reply to
Hi,

3.0.2 is now in the Members Area.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [UPDATE] ContactPage v3 In reply to
Hi Andy,
now the security image is working fine Smile

I changed some code in the templates, cause I think users should use the emails and names they registered.
I made this fields hidden for logged in users. Maybe it's something for your plugin. Otherwise I have to change the code with every further update ;-)

Code:
<%if user.Name%><input type="hidden" value="<%user.Name%>" name="Contact_Form_Name"><%user.Name%><%else%>
<input type="text" id="Contact_Form_Name" name="Contact_Form_Name" value="<%if Contact_Form_Name%><%escape_html Contact_Form_Name%><%endif%>" class="text" />
<%endif%>

Code:
<%if user.Email%><input type="hidden" value="<%Email%>" name="Contact_Form_Email"><%user.Email%><%else%>
<input type="text" id="Contact_Form_Email" name="Contact_Form_Email" value="<%if Contact_Form_Email%><%escape_html Contact_Form_Email%><%elsif user.Email%><%user.Email%><%endif%>" class="text" />
<%endif%>

What about some more code for the email templates?
<%LinkOwner%>, <%get_detailed_url($ID)%>

Thanks

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] [UPDATE] ContactPage v3 In reply to
Hi,

Cool :)

For the logged in users, I will leave the plugin as it is.

Quote:
What about some more code for the email templates?
<%LinkOwner%>, <%get_detailed_url($ID)%>

For the "links" ones, you can use these in the email template:

<%link.xx%> ... such as: <%link.Title%>, <%link.URL%> etc

For the "to users" option, you can use:

<%user_to.xxx%>... such as: <%user_to.Username%>, <%user_to.Name%> etc

Hope that helps :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [UPDATE] ContactPage v3 In reply to
Hi Andy,
yes that was very helpful.
But I can not get detailed url to work
I tried
Code:

<%link.detailed%>
<%detailed_url%>
<%link.detailed_url%>

But no success.

By the way! Every mail is like this
Email:
Message:
Name:

How can I put "Email:" after "Name:"

Edit:
PS: <%config.db_cgi_url%>/contact.cgi?id=<%ID%> is case sensitive on my site.
I was using <%config.db_cgi_url%>/contact.cgi?ID=<%ID%>
That's why I had problems...
Thanks

Matthias
gpaed.de

Last edited by:

Matthias70: Apr 15, 2013, 6:17 AM
Quote Reply
Re: [Matthias70] [UPDATE] ContactPage v3 In reply to
Hi,

Ok, for the detailed_url, please open up /Plugins/ContactPage.pm, and find (around line 90):

Code:
my $link = $DB->table("Links")->select( { ID => $in->{id} } )->fetchrow_hashref || {};

if (!$link->{ID}) {
print Links::SiteHTML::display("error", { error => qq|Invalid listing!| });
return;
}

...add this below it:

Code:
$link = Links::SiteHTML::tags('link',$link);

You should then be able to access it in the emails etc via:

Code:
<%link.detailed_url%>

Quote:
By the way! Every mail is like this
Email:
Message:
Name:

How can I put "Email:" after "Name:"

Mmm, thats not quite so easy :) Those values are actually sorted alphabetically, based on the values passed in. If you didn't want to use the <%loop param_loop%> option, I guess you could hard-code them in like so into the email:


Code:
Email => <%Contact_Form_Email%>
Message: => <%Contact_Form_Message%>
Name: => <%Contact_Form_Name%>

Although, I would be careful as that won't actually filter out HTML (like my loop does)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [UPDATE] ContactPage v3 In reply to
Uff, I will stay with <%loop param_loop%> Angelic

detailed_url is just working fine.
Will it be part of the plugin or is it a "Matthias special" Whistle

Thanks

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] [UPDATE] ContactPage v3 In reply to
Hi,

Cool :)

I'll get the detailed_url bug fixed up a bit later on today in the official download. I may also look at adding a bit more documentation about <%link.xxx%> and <%user_to.xxx%> format (I thought I'd put that in the documentation already, but maybe I didn't)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [UPDATE] ContactPage v3 In reply to
Andy, how about

Quote:
mail to search results

?

Here's what I think:

Suppose that the database contains hundreds or thousands of links.

Now, a visitors search for those parameters that he needs (for example: internet access, air conditioning, etc.) and let's say that he get 30 very similar results.

Rather than sending 30 individual mails he's given the opportunity to send a common message at 30 address.

It seems to me that it would be well received and that it would be very useful.

Of course, leave the possibility that only registered users can use this option.

Thanks,
Quote Reply
Re: [katakombe] [UPDATE] ContactPage v3 In reply to
Hi,

Mmmm, that would be quite a bit more work ;) It would need a way to store the ID's of those links , as well as making the code work with that method. I could do this as a custom job, but I'm not really sure it has any direct use for this plugin on its own Whistle

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [UPDATE] ContactPage v3 In reply to
Hi,

Just FYI... version 3.0.3 is now available from the Members Area. This fixes up the missing detailed_url tags in the email/templates.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [UPDATE] ContactPage v3 In reply to
Just to confirm that everything is fine on my side Smile
Quote Reply
Re: [katakombe] [UPDATE] ContactPage v3 In reply to
Oooopppsss ...

<%Plugins::Auth_Community::get_profile($LinkOwner)%> on contact_form_link.html not working Frown

(there is owners tel.nr. etc.)
Quote Reply
Re: [katakombe] [UPDATE] ContactPage v3 In reply to
Hi,

I think it should be:

Code:
<%Plugins::Auth_Community::get_profile($user_to.LinkOwner)%>

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [UPDATE] ContactPage v3 In reply to
Hmm

Code:
<%Plugins::Auth_Community::get_profile($user_to.LinkOwner)%><%prof_phone%>

shows:

Code:
Unknown Tag: 'prof_phone'

Frown
Quote Reply
Re: [katakombe] [UPDATE] ContactPage v3 In reply to
What is the code in get_profile() ?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [UPDATE] ContactPage v3 In reply to
Uff .. What do you mean Andy?
> >