Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) Contact Page V0.2 for YaBB 2.4 (Read 4997 times)
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Contact Page V0.2 for YaBB 2.4
Jan 16th, 2010 at 7:04pm
Print Post  
Contact Page V0.2

Description:
----------------
This Mod will add a contact page to your forum. It works the same way as sending a topic, emailing members etc. do, so if you don't have any problems sending out email from your forum, then you shouldn't have any problems with this.

Features:
-----------
o Enable for Guests and Members or Members only.
o Set predefined subjects.
o Subject prefixes.
o Spell checking.
o Validation code.
o Javascript alerts for required fields.
o Self copy.
o Auto-responder.

Notes:
--------
- As with any contact form, if you allow guest access it could leave your inbox open to spam.
- My button and icon aren't all that great, if anyone could make better ones it would be very much appreciated.
- Hopefully in the future I'll make it so that you can set different email addresses for each predefined subject.

Credits:
----------
Thanks to Mick (www.info4alien.de) for the German and German_Du Language translations.

Screenshots:
-----------------
Contact Page:


Message sent:


Admin Center - BoardMod Mods - Contact Page Settings:




Installation:
----------------
1) Modify YaBB files using BoardMod or manually.
2) Upload modified files to your server in ASCII mode.
3) Upload ContactPageSettings.pl, ContactPage.lng and ContactPage.pl to their relevant directories in ASCII mode.
4) Upload contact.png and contact.gif to their relevant directories in binary mode.

Files to edit:
----------------
AdminIndex.pl
Admin/AdminSublist.pl
Admin/ModList.pl
Languages/English/Admin.lng
Languages/English/Email.lng
Languages/English/Menu.lng
Sources/AdvancedTabs.pl
Sources/SubList.pl
Sources/Subs.pl
Sources/TabMenu.pl
Variables/Menu0.def
Variables/Menu1.def
Variables/Menu2.def
Variables/Settings.pl

Zip package:
-----------------
Contact_Page_V0_2.mod
Contact_Page_V0_2_German.mod
Contact_Page_V0_2_German_Du.mod
cgi-bin/yabb2/Admin/ContactPageSettings.pl
cgi-bin/yabb2/Languages/English/ContactPage.lng
cgi-bin/yabb2/Languages/German/ContactPage.lng
cgi-bin/yabb2/Languages/German_Du/ContactPage.lng
cgi-bin/yabb2/Sources/ContactPage.pl
html_root/yabbiles/Buttons/English/contact.png
html_root/yabbiles/Buttons/German/contact.png
html_root/yabbiles/Buttons/German_Du/contact.png
html_root/yabbfiles/Templates/Forum/default/contact.gif

History:
---------
V0.1 - First release - 16th January 2010
V0.2 - Added Spam Detection - 20th January 2010
« Last Edit: Jan 20th, 2010 at 9:58pm by Derek Barnstorm »  

Contact_Page_V0_2.zip ( 30 KB | Downloads )
Back to top
 
IP Logged
 
mick
Senior Member
****
Offline


I love YaBB

Posts: 345
Location: Dorsten
Joined: Nov 29th, 2005
Gender: Male
Re: Contact Page V0.1 for YaBB 2.4
Reply #1 - Jan 18th, 2010 at 10:55pm
Print Post  
Hi,

I installed it without Problems. Seems to run very well!

German-Files attached, you can put them to the Package
in 1st Post, Derek. Only one thing missing:

http://www.boardmod.org/yabb2/YaBB.pl?num=1263855162/0#0


Edited:
Attached Files deleted. They are now in the Zip-Package in 1st Post.
« Last Edit: Jan 19th, 2010 at 6:20pm by mick »  
Back to top
WWW  
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Contact Page V0.1 for YaBB 2.4
Reply #2 - Jan 18th, 2010 at 11:18pm
Print Post  
That's great Mick. Thanks very much!

I've attached a button if you need it for now - I'll add everything to the package tomorrow (early morning, bed time in a minute)...

Thanks again!

Edited:
Attached button deleted- it's now in the package attached to the first post.
« Last Edit: Jan 19th, 2010 at 4:10pm by Derek Barnstorm »  
Back to top
 
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Contact Page V0.1 for YaBB 2.4
Reply #3 - Jan 19th, 2010 at 4:13pm
Print Post  
Okay, I've added the language files and the button to the package in the first post now. I've also made the textarea a bit bigger for the auto-respond message in the Contact Page Settings in Admin Center. I haven't changed the version number because it's only a very minor change (the only change is in Admin/ContactPageSettings.pl).
  
Back to top
 
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Contact Page V0.2 for YaBB 2.4
Reply #4 - Jan 20th, 2010 at 10:00pm
Print Post  
I've added the relevant code to this so that it will pick up your Antispam Settings.

V0.2 attached to the first post - the only changes are in Sources/ContactPage.pl.
  
Back to top
 
IP Logged
 
pyragony
Junior Member
**
Offline


abgeschlafft und ausgebufft

Posts: 85
Location: Eichenau
Joined: Apr 26th, 2008
Gender: Male
Re: Contact Page V0.2 for YaBB 2.4
Reply #5 - Jan 23rd, 2010 at 6:48am
Print Post  
Hi Derek,

a really good and useful mod
Hopefully he will be continuously adjusted for the following versions.
  

Back to top
WWW  
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Contact Page V0.2 for YaBB 2.4
Reply #6 - Jan 24th, 2010 at 2:59am
Print Post  
Thanks pyragony!

Yep, hopefully it will continue and improve. Smiley
  
Back to top
 
IP Logged
 
mick
Senior Member
****
Offline


I love YaBB

Posts: 345
Location: Dorsten
Joined: Nov 29th, 2005
Gender: Male
Re: Contact Page V0.2 for YaBB 2.4
Reply #7 - Jan 29th, 2010 at 10:48am
Print Post  
Hi,

when I want to display a Text of the contactpage.lng in a different
color, what code I need for this?

For example, to display "indicates requiered field" in red:

Code
Select All
'02' => 'An <b>*</b> indicates required field.', 

  
Back to top
WWW  
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: Contact Page V0.2 for YaBB 2.4
Reply #8 - Jan 29th, 2010 at 11:13am
Print Post  
Hi

Code
Select All
'02' => 'An <b>*</b><font color="red"> indicates required field.</font>',  

  

greetings
Jeff
Back to top
WWW  
IP Logged
 
mick
Senior Member
****
Offline


I love YaBB

Posts: 345
Location: Dorsten
Joined: Nov 29th, 2005
Gender: Male
Re: Contact Page V0.2 for YaBB 2.4
Reply #9 - Jan 29th, 2010 at 11:28am
Print Post  
Thanks! I forgot the "font"  Embarrassed
  
Back to top
WWW  
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Contact Page V0.2 for YaBB 2.4
Reply #10 - Jan 29th, 2010 at 5:40pm
Print Post  
You could also use inline CSS like this:

Code
Select All
<span style="color: #ff0000;">Your Red Text</span> 


Both ways are valid, but CSS is generally preferred these days - Just thought I'd mention it for reference.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint