Plugin Release New page: MyBB Contact Form with reCAPTCHA
Author Message Action
Andrew F.

Administrator
Posts: 221

Haha, glad you got it working.

1. The messages are sent to the admin email address, which is easily set in ACP > Configuration > Settings > General Configuration. You can also change it directly in the page, if you replace
$mybb->settings['adminemail']
with
'email@address.com'

2. I am no expert on mod_rewrite but there is a force redirect flag, R=301, which I think you need to use. Otherwise just always use the rewritten url when you need to link to it.
Post: #11
14-06-2012, 02:30 PM
RoryT

Junior Member
Posts: 3

Ah great, yeah I've been trying to use that R=301 directive, but it keeps redirecting to the old domain rather than the rewritten one. I'll figure it out eventually!

Also, thanks for clearing up the email configuration. I just wanted to check as I had changed the default email for the forum. But I entered the one I'm using in the ACP settings, so that should all be good to go.

Thanks a bunch for your help, it's really decent of you to help and not get frustrated by fools like me asking daft questions! You're the man! Biggrin
Post: #12
15-06-2012, 10:58 AM
Andrew F.

Administrator
Posts: 221

No worries RoryT Biggrin

---

Here is some code to automatically get the IP address and browser information from the user and add it to the bottom of the email.

Find the lines:
	if(count($errors) == 0)
	{

Add this directly after:
		$message .= "\n\n";
		$message .= 'Sent from (IP address): ' . get_ip() . "\n";
		$message .= 'Using (user agent): ' . $_SERVER['HTTP_USER_AGENT'] . "\n";
Post: #13
24-06-2012, 02:25 AM
nuller

Junior Member
Posts: 1

unable to download it
Post: #14
20-08-2012, 11:32 AM
Andrew F.

Administrator
Posts: 221

(20-08-2012, 11:32 AM)nuller Wrote: unable to download it

Thanks for reporting, the current download system is being fixed.

Edit: There is now a message with the download link once you have access to the download, right click and save target/linked file as..
Post: #15
20-08-2012, 11:42 AM
curly4

Junior Member
Posts: 1

Hi,

Could you tell me how you got your contact page url to be like https://www.mybbstyles.com/page-contact instead of that long url misc.php?page=contact ?
Post: #16
23-12-2012, 01:35 PM
(This post was last modified: 23-12-2012, 03:11 PM by curly4.)
Andrew F.

Administrator
Posts: 221

Hi curly4, use mod_rewrite.

Copy and paste the following rule to your .htaccess file towards the bottom where the other RewriteRules are.

	RewriteRule ^page-([^./]+)$ misc.php?page=$1 [L,QSA,NC]
Post: #17
24-12-2012, 03:20 AM
Kevinex

Junior Member
Posts: 2

Hi! I made the change:
https://www.mybbstyles.com/thread-plugin...58#pid1558

But the panel administraciónen Page Manager I get this error that I leave in the attachment.


Attached Files Image(s)
   
Post: #18
02-04-2013, 09:33 PM
csetube

Junior Member
Posts: 1

I get 404 error in my site www.5starnotes.com
Post: #19
20-05-2013, 04:25 AM
cooler

Junior Member
Posts: 1

Hi Andrew, Thank you so much for this. How do you make so that "e-mail sent blabla" is shown apove contact us form. because now it auto forwards to the front page. Thanks

PS: ignore the e-mail sent to you, i was in hurry mode, sorry about that.
Post: #20
02-10-2013, 08:17 PM
(This post was last modified: 02-10-2013, 08:40 PM by cooler.)


Possibly Related Threads...
Thread Author Replies Views Last Post
  [Release]  New page: MyBB Rules Page Andrew F. 1 23,110 06-01-2015, 07:02 PM
Last Post: 123
  [Release]  New page: MyBB Google maps v3 Andrew F. 37 61,373 13-04-2014, 08:45 AM
Last Post: MidhunVarghese



Users browsing this thread: 1 Guest(s)