errors in multiforums - NBS






 

 

errors in multiforums - NBS

View Full Version : errors in multiforums


jimhap
16-Feb-2007, 03:25 PM
I got some error in the script. The errors:

1. When registering, the PHP error shows:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/jimhap/public_html/phpbbhost/nbs/class_nbs.php on line 230


2. Hopefully you can fix this bug - in order to enable the forum activation(email) you have to check the box (in admin CP, settings) "Check Valid Email Address Domains". Only "Verify Email Addresses" should be checked for it to work.

3. To let you know: Although my file are CHMODed to the right permissions, the message in the admin CP(or in install) doesn't disappear.
4.
Question: Where do I upload skins and how can I install mods?

Thanks! :-)

NoM
16-Feb-2007, 10:46 PM
1. When registering, the PHP error shows:

PHP Code:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/jimhap/public_html/phpbbhost/nbs/class_nbs.php on line 230



Try re-uploading class_nbs.php, otherwise, I cannot help you.
2. Hopefully you can fix this bug - in order to enable the forum activation(email) you have to check the box (in admin CP, settings) "Check Valid Email Address Domains". Only "Verify Email Addresses" should be checked for it to work.
There's nothing wrong with them both, if the domain isn't even real then why bother sending an email to something fake?

3. To let you know: Although my file are CHMODed to the right permissions, the message in the admin CP(or in install) doesn't disappear.
Same here, don't worry.
4.
Question: Where do I upload skins and how can I install mods?
Skins will go in the regular templates folder, as usual if you've ever installed phpbb skins. They can be activated by users.
Intalling mods, make the adjustments and edit the new_forum.sql, I don't install mods so you will need assistance from an admin or someone else that knows what to edit in the new_forum.sql.

Derek
17-Feb-2007, 12:00 AM
For #1, just edit class_nbs.php and remove the following code:


$this->userinfo = array_merge($this->userinfo, array('ipaddress' => $_SERVER['REMOTE_ADDR']));

I have decided that it is not needed and have removed it in beta 8.

Derek

jimhap
17-Feb-2007, 11:59 PM
Hello,

Thanks to you both!:)

@Derek: In later releases, you should delete that checkbox-isn't "Verify Email Addresses" should be checked. The other one, "Check Valid Email Address Domains" sounds like if the PHP scripts attempts to acces the domain itself.

@NoM: Thanks! Yes, I do know how to install skins, as I have a phpBB forum myself. But sometimes get confused with the templates_c folder.:PP

Derek
18-Feb-2007, 05:39 PM
No, they will not be removed as they are 2 different settings...

Verify Email Addresses sends them a activation email.
Check Valid Email Address Domains checks to see if the domain the email address is on is valid and exists.

NoM
22-Feb-2007, 04:13 AM
Well, if "VERIFY" is checked, it should make sense to auto-check "CHECK VALID".

If someone doesn't want to make their members go through there email box for an activation link, they can just make sure the email address isn't fake in general. There's still some flaws with that concept, I could register the email hooglieansladk@nbsdesignz.com, which isn't real :P and it would allow the registration to be sucessful.

Derek
22-Feb-2007, 04:26 AM
Yes, but you still wouldn't be able to activate...

NoM
22-Feb-2007, 09:30 PM
If activation isn't checked and verify domain is, im referring to.