Advertisement:

Author Topic: Age & Gender Board Filter Mod  (Read 66450 times)

bullbreedluverz

  • Guest
Re: Age & Gender Board Filter Mod
« Reply #40 on: July 13, 2008, 04:31:52 PM »
ok ill see if my limited knowledge can work it out  :D

Offline Lady Night Owl

  • Jr. Member
  • **
  • Posts: 133
  • Gender: Female
Re: Age & Gender Board Filter Mod
« Reply #41 on: July 13, 2008, 05:34:16 PM »
It installs fine for me, but instead of including fields for the birthdate/gender on the registration form, it takes the user to their profile.

There is a sort of note at the top-right of the page once they are in their profile that reminds the user to fill in their birthday/gender, but most people just aren't going to look there.
« Last Edit: July 13, 2008, 05:41:06 PM by ladynightowl »
Running SMF 2.0.1

Offline Eliana Tamerin

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,611
  • Gender: Female
Re: Age & Gender Board Filter Mod
« Reply #42 on: July 13, 2008, 05:41:43 PM »
Can you describe that a little more? I installed it on a test forum, and it seems to show up just fine on the registration page. I attached a screenshot below of what it looks like to me.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Offline Lady Night Owl

  • Jr. Member
  • **
  • Posts: 133
  • Gender: Female
Re: Age & Gender Board Filter Mod
« Reply #43 on: July 13, 2008, 06:07:35 PM »
I must have done something wrong somewhere...I simply don't have those fields for the birthdate/gender.

Please, see attached.

When I originally went to install it, I had to go back and remove the edits that I made to the register.php and register.template files (from when [SiNaN] helped me add the birthday field a few posts back).
« Last Edit: July 13, 2008, 06:11:25 PM by ladynightowl »
Running SMF 2.0.1

Offline Eliana Tamerin

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,611
  • Gender: Female
Re: Age & Gender Board Filter Mod
« Reply #44 on: July 13, 2008, 06:11:06 PM »
You still have SiNaN's trick on your Load.php and index.php files. Remove that, first of all.

As for the register page, it's possible it simply didn't get edited properly. Try using the parsed instructions to manually edit the file. If it indeed is edited already, let me know, because that would indicate a serious problem with the mod.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Offline Lady Night Owl

  • Jr. Member
  • **
  • Posts: 133
  • Gender: Female
Re: Age & Gender Board Filter Mod
« Reply #45 on: July 13, 2008, 06:16:18 PM »
OK, I'll try that, thanks. :)
Running SMF 2.0.1

Offline Eliana Tamerin

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,611
  • Gender: Female
Re: Age & Gender Board Filter Mod
« Reply #46 on: July 13, 2008, 06:18:47 PM »
Yeah, my upgrade script did not account for anything that SiNaN provided for codes. If you added his codes, you should remove them (especially on Reigster.template.php and Register.php), else you will get errors. Only clean installs of my mod is supported in the upgrade. Any tweaks should be reversed.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Offline Lady Night Owl

  • Jr. Member
  • **
  • Posts: 133
  • Gender: Female
Re: Age & Gender Board Filter Mod
« Reply #47 on: July 13, 2008, 07:05:30 PM »
Got it! The problem was entirely in my register.template file. Mind you, I don't know exactly what that problem was, but I know that I ended up butchering the file ::) so I took a clean copy from a 1.1.5 install package since no other mod has made changes to it, then I entered everything from the parser and it's all good. All the right fields in the right places.

:D
Running SMF 2.0.1

Offline Eliana Tamerin

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,611
  • Gender: Female
Re: Age & Gender Board Filter Mod
« Reply #48 on: July 13, 2008, 07:14:22 PM »
Glad you got it solved. Can't say what the issue was either, but since you got the issue resolved, I won't worry about it.

If anybody else has bugs to report, please let me know. Just remember that if you installed SiNaN's code, you'll need to reverse those changes before updating to 1.2.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Offline Lady Night Owl

  • Jr. Member
  • **
  • Posts: 133
  • Gender: Female
Re: Age & Gender Board Filter Mod
« Reply #49 on: July 13, 2008, 07:52:38 PM »
Good grief. :( Now I can't click on 'register'. All the fields are there - no error messages in the log, I just can't click on the register button when I test it. I've got all the boxes checked and fields filled in.

Edit: This is also on a test forum with no other mods installed.
« Last Edit: July 13, 2008, 07:58:49 PM by ladynightowl »
Running SMF 2.0.1

Offline Eliana Tamerin

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,611
  • Gender: Female
Re: Age & Gender Board Filter Mod
« Reply #50 on: July 13, 2008, 09:16:16 PM »
Confirmed bug, thanks ladynightowl. I had hoped this was only on my forum.

It has to do this line in Register.template.php
Code: [Select]
|| isEmptyText(document.forms.creator.gender)
As for now, I will advise everybody to go to Admin CP > Registration > Settings and disable the option of "Require Gender on Registration?" That will allow registrations to continue until I find a solution to this bug.

EDIT: I used the wrong check statement. Let me go find the right one to use, then I'll zip up 1.2.1 with the fix.
« Last Edit: July 13, 2008, 09:28:17 PM by Eliana Tamerin »
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Offline Lady Night Owl

  • Jr. Member
  • **
  • Posts: 133
  • Gender: Female
Re: Age & Gender Board Filter Mod
« Reply #51 on: July 13, 2008, 09:35:05 PM »
You're welcome.

You might also be aware that this bug doesn't let the user change their own gender (whether the option to require them to enter it on registration is enabled or not). They are automatically 'female' - strange thing is that it shows in the forum profile info, but not the profile summary.

I guess I'll leave a note for any potential male members for now and tell them that this is not my idea of a joke. O:)

Admins can change it - I just checked - but that could get rather tedious on a busy forum.
Running SMF 2.0.1

Offline Eliana Tamerin

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,611
  • Gender: Female
Re: Age & Gender Board Filter Mod
« Reply #52 on: July 13, 2008, 09:39:38 PM »
Thanks Lady Night Owl, I'll check that out. That's two bugs now.

Is this just for new registrants? Or does it happen when people who haven't yet set their gender set it (already registered)?
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Offline Lady Night Owl

  • Jr. Member
  • **
  • Posts: 133
  • Gender: Female
Re: Age & Gender Board Filter Mod
« Reply #53 on: July 13, 2008, 09:46:00 PM »
No problem. Good question :\ I'll try to test and let you know.

Edit: It seems to be just new accounts.
« Last Edit: July 13, 2008, 09:49:03 PM by Lady Night Owl »
Running SMF 2.0.1

Offline Eliana Tamerin

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,611
  • Gender: Female
Re: Age & Gender Board Filter Mod
« Reply #54 on: July 13, 2008, 09:57:18 PM »
Thanks Lady Night Owl. I will work on solving these issues. Let me know if you find any more.

To everyone else, I apologize deeply for these bugs, and I hope that they will not prevent you from using the AGBF mod in the future. Please stay with me and I'll get them fixed ASAP!
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

bullbreedluverz

  • Guest
Re: Age & Gender Board Filter Mod
« Reply #55 on: July 15, 2008, 10:07:41 AM »
Itried installing the mod today and didnt get any error notification on the install and got the succesful install message but it installed a block of text above the banner on my site

// Start Age and Gender Filter Mod $txt['min_age_title'] = 'Minimum Age to View Board:'; $txt['min_age_desc'] = 'What is the minimum age for viewing access for this board?'; $txt['min_age_zero'] = '(0 to disable)'; $txt['max_age_title'] = 'Maximum Age to View Board:'; $txt['max_age_desc'] = 'What is the maximum age for viewing access for this board?'; $txt['max_age_eighty'] = '(80 to disable)'; $txt['gender_title'] = 'Gender Restricted (only):'; $txt['gender_desc'] = 'Which gender is this board restricted to view / post?'; $txt['gender_block_disabled'] = 'Unrestricted'; $txt['gender_block_gender_set'] = 'Unknown Genders Only'; $txt['gender_block_girls'] = 'Male Only'; $txt['gender_block_boys'] = 'Female Only'; $txt['gender_block_gender_unset'] = 'Male and Female Only'; $txt['gender_register_req'] = 'Require Gender on Registration?'; $txt['birthdate_register_req'] = 'Require Birthdate on Registration?'; // End Age and Gender Filter Mod



any ideas how to rectify this (note i ent the smartest of guys when it comes to coding so idiot proof answers would be much appreciated thanx)

Offline Eliana Tamerin

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,611
  • Gender: Female
Re: Age & Gender Board Filter Mod
« Reply #56 on: July 15, 2008, 12:36:43 PM »
Your language file didn't edit properly. Open your /Themes/default/languages/modifications.english(whatever else it is, might be utf8 or british, etc).php and move the ?> to the bottom of the file. Save and reupload.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

bullbreedluverz

  • Guest
Re: Age & Gender Board Filter Mod
« Reply #57 on: July 15, 2008, 01:09:12 PM »
thank you Eliana thats sorted it

Offline ghostfreak

  • Jr. Member
  • **
  • Posts: 337
  • Gender: Male
    • ghostfreak
Re: Age & Gender Board Filter Mod
« Reply #58 on: July 15, 2008, 04:37:33 PM »
I install this mod on my Ideal forum and I received these messages:

2.   Execute Modification   ./Sources/Load.php   Test failed
3.   Execute Modification   ./Sources/ManageBoards.php   Test failed

Any ideas?

**Attached my Load and ManageBoards php files**
« Last Edit: July 15, 2008, 05:02:50 PM by ghostfreak »

http://www.xfilesforum.net - Dare To Believe?
http://www.idealforum.co.uk - The Green Blitz!

Offline NEMINI

  • SMF Hero
  • ******
  • Posts: 1,570
  • Gender: Male
Re: Age & Gender Board Filter Mod
« Reply #59 on: July 16, 2008, 02:44:53 AM »
it means you must have other mods installed and that you'll need to install it manually.
signatures are boring.