Author |
Message |
shane42
Hangin' Around
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Jul 06, 2007
Posts: 25
|
Posted:
Mon Jul 09, 2007 1:12 am |
|
Hi, i spoke to my host and they offered some advice but i am not one of the people who understand how coding works so.. since they filter all emails sent from servers to ensure they are legit they have said that i would need to add this somewhere, but they cannot tell me where i should add it to make it work.
I don't know if this piece of code can be added somewhere to enable registration email to be sent, this is what they said:
Quote: | You can also use the PHP mail function and set the mail "from address" using the following line of code (replacing email@mydomain with the correct domain name).
ini_set("sendmail_from", " email@mydomain "); |
Anyone knows if this can be integrated somewhere?
By the way, it all worked fine at first but now the page just hangs waiting to load security code. I know i have all GD stuff and such as it worked before
anyone knows where i might have a problem with unsetting the session so it loads new code? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kguske
Site Admin
![](modules/Forums/images/avatars/41f0b40a419280935f3a0.gif)
Joined: Jun 04, 2004
Posts: 6437
|
Posted:
Mon Jul 09, 2007 4:53 am |
|
Is the email address on the Nuke preferences / settings on your domain?
Were any changes made to a script? Typically, when a page hangs, it's due to a parsing error. Check your site log for additional details. If no changes were made and the graphic isn't displaying, it may be a problem with the GD lib as you mention. Your host should be able to assist with that. |
_________________ I search, therefore I exist...
Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
shane42
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Jul 09, 2007 8:38 am |
|
yes, anywhere i was asked to put god email, i used the one from my host, just to make sure that it is everywhere in case i get the wrong one, that's why God user has that e-mail and my regular user has my regular email, although my regular user is also an administrator. would that be causing problems?
If it is parsing error, where would i most likely find the problem? Since it's hard to see what has changed last 24 hours as i was reinstalling everything due to a lot of little problems caused by corrupt file somewhere during first installation.
How do i switch off e-mail registrations? I don't particularly want to use hacks, and anyway i tried, autoActivation mod, but that brings up Access Denied page when you click on register or forgot password links. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
Site Admin
![](modules/Forums/images/avatars/0c0adf824792d6d341ef4.gif)
Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Mon Jul 09, 2007 7:16 pm |
|
Quote: |
yes, anywhere i was asked to put god email, i used the one from my host, just to make sure that it is everywhere in case i get the wrong one, that's why God user has that e-mail and my regular user has my regular email, although my regular user is also an administrator. would that be causing problems?
|
No, doubtful. Try adding that line of code that your host gave you within the config.php file (your RN root directory). I'd just add it right after the first line which has "<?php" in it.
Quote: |
If it is parsing error, where would i most likely find the problem? Since it's hard to see what has changed last 24 hours as i was reinstalling everything due to a lot of little problems caused by corrupt file somewhere during first installation.
|
I would re upload all the files in case you have introduced a parse error or other errors. I would use the original files provided for RavenNuke, get yourself back to functioning again, then add that one liner to the config.php as I mentioned above.
I would also get yourself FileZilla (free from sourceforge.net) and use it as your FTP client. I have NEVER once had it fail on me. Now, I guess it is possible that your host is "flaky" too. Don't know.
Quote: |
How do i switch off e-mail registrations? I don't particularly want to use hacks, and anyway i tried, autoActivation mod, but that brings up Access Denied page when you click on register or forgot password links.
|
Unfortunately, that does not exist in PHP-Nuke or RavenNuke at this time. The Auto Activation hack you mention is for a much older version. Someone needs to update that thing... just finding the time... ![Sad](modules/Forums/images/smiles/icon_sad.gif) |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
shane42
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Jul 10, 2007 12:06 am |
|
TY montego, I will try adding the mail function once everything else is running and try it that way. I have used CoffeeCup as my ftp, but i guess I can try FileZilla too.
By the way, I found the way to make the old autoActivate code work. Quite simple, insted of changing whole line of code as suggested per instructions I only added to my code the $autoActivate bits that show as additions to the old code.
Shold you wish I can update the actual mod and post it to you as it's short and simple enough for me to do.
OMG, I just added that >> ini_set("sendmail_from", " email@mydomain ");<< piece of code as you suggested and it works now! such an easy solution, ty! |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Jul 10, 2007 6:03 am |
|
Yeah, I have actually incorporated this hack now into RavenNuke 2.20.00 (upcoming release - TBD on release). Once it is quality tested, we'll get a standalone version out in the downloads. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|