[BETA] Contact Us Form-Forum (formerly Thanks for Posting)

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Medar
Registered User
Posts: 1
Joined: Tue Apr 16, 2002 9:34 pm
Contact:

Post by Medar » Thu Nov 03, 2005 6:27 pm

I have this mod installed now - and it does 'work' in terms of the forum is hidden, the contact link works, and the item posts.

Three issues/bugs though:

1. The new "post" to the Contact Forum is not flagged as a "New Topic" on the index.php page, and therefore the proper "New Posts" image stays dull instead of lighting up.

2. The new "post" does not show up as a New Topic - and does not increment the total topics on the index.php page.

3. The "Email Address = " is blank...as there is no input box to enter any email address.

I "think" I got all the steps...but may be missing one or two that caused these issues. I installed version "Contact_Us_Form-Forum_1.1.0".

Thanks!

User avatar
ewelin
Registered User
Posts: 262
Joined: Fri May 21, 2004 2:13 pm
Location: MA, USA
Contact:

Post by ewelin » Fri Nov 04, 2005 3:36 am

double check your edits you may have missed something. Do you have any other mods installed that edited posting.php? the mod should do all of those "bugs" that you found on your install.

mgutt
Registered User
Posts: 346
Joined: Tue Sep 21, 2004 2:54 pm
Location: Germany, Sankt Augustin
Contact:

Post by mgutt » Sat Nov 26, 2005 3:35 pm

Code: Select all

# 
#-----[ FIND ]------------------------------------------ 
# line 929
  case 'reply':
    $page_title = $lang['Post_a_reply'];
# 
#-----[ BEFORE, ADD ]------------------------------------------ 
#

// Start Contact Form Mod
  case 'contact':
    $page_title = '$lang['Contact_form']';
    $hidden_form_fields .= '<input type="hidden" name="' . POST_FORUM_URL . '" value="' . $forum_id . '" />';
    break;
// End Contact Form Mod

has to be:

Code: Select all

# 
#-----[ FIND ]------------------------------------------ 
# line 929
  case 'reply':
    $page_title = $lang['Post_a_reply'];
# 
#-----[ BEFORE, ADD ]------------------------------------------ 
#

// Start Contact Form Mod
  case 'contact':
    $page_title = $lang['Contact_form'];
    $hidden_form_fields .= '<input type="hidden" name="' . POST_FORUM_URL . '" value="' . $forum_id . '" />';
    break;
// End Contact Form Mod

&

Code: Select all

# 
#-----[ OPEN ]------------------------------------------ 
#
templates/subSilver/posting_body.tpl
# 
#-----[ FIND ]------------------------------------------ 
# line 276
<!-- BEGIN switch_username_select -->
<tr> 
  <td class="row gen"><b>{L_USERNAME}</b></td>
  <td class="row genmed"><input type="text" class="post" tabindex="1" name="username" size="25" maxlength="25" value="{USERNAME}" /></td>
</tr>
<!-- END switch_username_select -->
# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
<!-- BEGIN switch_contact_form -->
<tr> 
  <td class="row gen"><b>Email Address</b></td>
  <td class="row genmed"><input type="text" class="post" name="emailaddress" size="25" maxlength="25" value="{EMAILADDRESS}" /></td>
</tr>
<!-- END switch_contact_form -->

has to be:

Code: Select all

# 
#-----[ OPEN ]------------------------------------------ 
#
templates/subSilver/posting_body.tpl
# 
#-----[ FIND ]------------------------------------------ 
# line 276
	<!-- BEGIN switch_username_select -->
	<tr> 
		<td class="row1"><span class="gen"><b>{L_USERNAME}</b></span></td>
		<td class="row2"><span class="genmed"><input type="text" class="post" tabindex="1" name="username" size="25" maxlength="25" value="{USERNAME}" /></span></td>
	</tr>
	<!-- END switch_username_select -->
# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
	<!-- BEGIN switch_contact_form -->
	<tr> 
		<td class="row1"><span class="gen"><b>Email</b></span></td>
		<td class="row2"><span class="genmed"><input type="text" class="post" name="emailaddress" size="25" maxlength="25" value="{EMAILADDRESS}" /></span></td>
	</tr>
	<!-- END switch_contact_form -->
Forums: Honda || phpBB Categories Hierarchy
Mods: Spamfilter against bot registrations || Seo Urls

User avatar
ewelin
Registered User
Posts: 262
Joined: Fri May 21, 2004 2:13 pm
Location: MA, USA
Contact:

Post by ewelin » Mon Nov 28, 2005 8:30 pm

mgutt,

Thanks for that contribution... I'll update the code shortly and update the download.

hm2k
Registered User
Posts: 108
Joined: Mon Jun 09, 2003 2:04 pm
Location: UK
Contact:

Re: [BETA] Contact Us Form-Forum (formerly Thanks for Postin

Post by hm2k » Wed Jun 28, 2006 12:28 am

ewelin wrote: Demo Board: n/a -- Removed due to excessive testing. Will try and setup a test forum at some point.
Demo Username: n/a
Demo Password: n/a


This suggests there's a serious problem with this MOD.

User avatar
ewelin
Registered User
Posts: 262
Joined: Fri May 21, 2004 2:13 pm
Location: MA, USA
Contact:

Re: [BETA] Contact Us Form-Forum (formerly Thanks for Postin

Post by ewelin » Wed Jun 28, 2006 12:36 am

hm2k wrote: This suggests there's a serious problem with this MOD.
Absolutly not... I had set the MOD up on a live site and provided a link requesting that users do not submit anything.... but ppl were constantly submitting posts and I decided to remove it. The MOD works great and I hope to get more time in the near future to continue developing it.

If I had a seperate domain I would put up a live demo again but I don't....

markus_petrux
Former Team Member
Posts: 1887
Joined: Wed Apr 23, 2003 7:11 am
Location: Girona, Catalunya (Spain)
Contact:

Post by markus_petrux » Wed Jun 28, 2006 12:42 am

Have you tried a forum with auto-prune enabled? :P
EasyMOD Standards | MOD Template Actions | MODs in Development Rules
Useful information for MOD Authors | MOD Queue Stats | Search MODs
Write SQL/DDL portable to all SQL servers supported by phpBB!
Get EasyMOD 0.3.0! | Suport al phpBB en Català!
8)

firetwirlers
Registered User
Posts: 17
Joined: Fri Sep 30, 2005 9:12 pm

Post by firetwirlers » Sun Jul 02, 2006 7:03 pm

This is a great idea. I was wondering: Issnt it possible to just make a "normal" contact form, but instead of mailing the message it will get stored in the SQL database and retreaved by the "hidden" forum that only the mods can see?

hm2k
Registered User
Posts: 108
Joined: Mon Jun 09, 2003 2:04 pm
Location: UK
Contact:

Post by hm2k » Mon Jul 03, 2006 8:23 pm

firetwirlers wrote: This is a great idea. I was wondering: Issnt it possible to just make a "normal" contact form, but instead of mailing the message it will get stored in the SQL database and retreaved by the "hidden" forum that only the mods can see?


Or even better, the script adds itself a user, and when someone fills out the contact form it sends you a privmsg by using phpbb's internal messaging system. Notification by email can be turned off for this.

User avatar
Bilardinho
Registered User
Posts: 40
Joined: Mon Mar 20, 2006 11:37 am
Contact:

Post by Bilardinho » Tue Jul 04, 2006 10:12 am

Hi, can you public screenshot of this MOD. It can help me know about this MOD, because my english is poor. Thanks :wink:

User avatar
ewelin
Registered User
Posts: 262
Joined: Fri May 21, 2004 2:13 pm
Location: MA, USA
Contact:

Post by ewelin » Tue Jul 04, 2006 4:23 pm

markus_petrux wrote: Have you tried a forum with auto-prune enabled? :P
well the forum i had as a demo was a live site which does occasionally get a post from the contact form and the other mods complained about all of the other "test posts" being sent to us.... Hence the reason i disabled it... I've just purchased my own domain which I plan on using for releasing mods and such and having demos up... just have to find time to set the site up.

User avatar
ewelin
Registered User
Posts: 262
Joined: Fri May 21, 2004 2:13 pm
Location: MA, USA
Contact:

Post by ewelin » Tue Jul 04, 2006 4:26 pm

firetwirlers wrote: This is a great idea. I was wondering: Issnt it possible to just make a "normal" contact form, but instead of mailing the message it will get stored in the SQL database and retreaved by the "hidden" forum that only the mods can see?
that's exactly what this mod does... one sets up a forum as hidden to all but Mods/Admins and provide the contact us link as described in the install. When a user/guest clicks on that link he makes a post which also includes his email address so you have a way of getting back in touch with the poster. Then any of the admin/mods can see the post and they can even reply to it when they've contact the user/guest with a reply.

User avatar
ewelin
Registered User
Posts: 262
Joined: Fri May 21, 2004 2:13 pm
Location: MA, USA
Contact:

Post by ewelin » Tue Jul 04, 2006 4:29 pm

hm2k wrote: Or even better, the script adds itself a user, and when someone fills out the contact form it sends you a privmsg by using phpbb's internal messaging system. Notification by email can be turned off for this.
well I wanted it in the forum so multiple Admin/Mods could see the post and reply to it ASAP. That away if say the admin is a way the contact form post doesn't go unanswered as no one else has access to it. My thought would be to install the mod to subscribe to forum and that away you'll get an email notifcation on new posts to that forum.

User avatar
ewelin
Registered User
Posts: 262
Joined: Fri May 21, 2004 2:13 pm
Location: MA, USA
Contact:

Post by ewelin » Tue Jul 04, 2006 4:45 pm

Bilardinho wrote: Hi, can you public screenshot of this MOD. It can help me know about this MOD, because my english is poor. Thanks :wink:
adding some to the first post now....

RyGoTypE
Registered User
Posts: 21
Joined: Sun Dec 19, 2004 8:48 am

Post by RyGoTypE » Fri Jul 28, 2006 2:32 am

One of your steps is incorrect.

[quote=Contact_Us_Form-Forum_1.1.0.txt]
#
#-----[ BEFORE, ADD ]------------------------------------------
#

// Start Contact Form Mod
case 'contact':
$page_title = '$lang['Contact_form']';
$hidden_form_fields .= '<input type="hidden" name="' . POST_FORUM_URL . '" value="' . $forum_id . '" />';
break;
// End Contact Form Mod
[/quote]

Replace with this.

[quote=Contact_Us_Form-Forum_1.1.0.txt]
#
#-----[ BEFORE, ADD ]------------------------------------------
#

// Start Contact Form Mod
case 'contact':
$page_title = $lang['Contact_form'];
$hidden_form_fields .= '<input type="hidden" name="' . POST_FORUM_URL . '" value="' . $forum_id . '" />';
break;
// End Contact Form Mod
[/quote]

Post Reply

Return to “[2.0.x] MODs in Development”