Advertisement:

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

Offline waremock

  • Jr. Member
  • **
  • Posts: 106
  • Gender: Male
    • Geeks for Christ
Re: Age & Gender Board Filter Mod
« Reply #60 on: July 16, 2008, 09:03:32 AM »
What are the plans for making this work on 2.0?

Offline ghostfreak

  • Jr. Member
  • **
  • Posts: 337
  • Gender: Male
    • ghostfreak
Re: Age & Gender Board Filter Mod
« Reply #61 on: July 16, 2008, 12:32:24 PM »
I have inserted the code into the Load.php but it still won't also.

For some reason I can't find a piece of code it is requesting in the ManageBaords.php file as well.

Any help is appreciated!

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

Offline ccbtimewiz

  • SMF Hero
  • ******
  • Posts: 5,300
  • Gender: Male
  • OXEN
Re: Age & Gender Board Filter Mod
« Reply #62 on: July 16, 2008, 12:53:00 PM »
Nice modification.

Great job, Eliana.

Offline Eliana Tamerin

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,611
  • Gender: Female
Re: Age & Gender Board Filter Mod
« Reply #63 on: July 16, 2008, 01:01:22 PM »
What are the plans for making this work on 2.0?

Please refer to the readme/first post of this topic for more information.

I have inserted the code into the Load.php but it still won't also.

For some reason I can't find a piece of code it is requesting in the ManageBaords.php file as well.

Any help is appreciated!

I downloaded both your Load.php and ManageBoards.php files. Load.php has everything edited properly, but I added in the edits for your ManageBoards.php. You must have a mod like the Redirect Boards mod there, which is why one of the code pieces isn't present. For your file, this is what you will be looking for (although future upgrades should work fine without any further manual edits, since it just looks for the mod code, not the normal code):

Code: [Select]
$context['board'] = array(
'is_new' => true,
'id' => 0,
'name' => $txt['mboards_new_board_name'],
'description' => '',
'count_posts' => 1,
'theme' => 0,
'override_theme' => 0,
'category' => (int) $_REQUEST['cat'],
'no_children' => true,
'is_redirect' => 0,
'count_clicks' => 0,
'target' => '',
'url' => '',

Anyway, ManageBoards.php is attached with changes. Let me know if it still doesn't work.

Nice modification.

Great job, Eliana.

Thanks, ccbtimewiz, it's nice to hear it is appreciated. :D
Do NOT PM me for support.

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

Offline ghostfreak

  • Jr. Member
  • **
  • Posts: 337
  • Gender: Male
    • ghostfreak
Re: Age & Gender Board Filter Mod
« Reply #64 on: July 17, 2008, 09:47:30 AM »
Still not working...now I receive the following message when clicking on the 'Boards' link within the Admin area:

Parse error: syntax error, unexpected T_IF in /home/ghost/public_html/Sources/ManageBoards.php on line 1

Oh and I do have a board redirection mod installed.
« Last Edit: July 17, 2008, 09:49:40 AM by ghostfreak »

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

Offline Eliana Tamerin

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,611
  • Gender: Female
Re: Age & Gender Board Filter Mod
« Reply #65 on: July 17, 2008, 10:25:21 AM »
Is that the only mod you have installed?
Do NOT PM me for support.

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

Offline ghostfreak

  • Jr. Member
  • **
  • Posts: 337
  • Gender: Male
    • ghostfreak
Re: Age & Gender Board Filter Mod
« Reply #66 on: July 18, 2008, 01:25:25 PM »
I have a few of them Eliana...but now I can't access my Board area within the Admin Panel.

Would you be able to take out those edits and upload the file again? Just want to check if the Board link works again.
« Last Edit: July 18, 2008, 01:32:20 PM by ghostfreak »

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

Offline Eliana Tamerin

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,611
  • Gender: Female
Re: Age & Gender Board Filter Mod
« Reply #67 on: July 18, 2008, 01:34:35 PM »
Just use the file you uploaded to me, should still be in your post.

Can you list all the mods you use? I want to see if any other mod conflicts with it.
Do NOT PM me for support.

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

Offline ghostfreak

  • Jr. Member
  • **
  • Posts: 337
  • Gender: Male
    • ghostfreak
Re: Age & Gender Board Filter Mod
« Reply #68 on: July 18, 2008, 02:55:56 PM »
The mods I have installed are:

1.   Signature Area BBCode Buttons    1.5
2.   Redirection Boards    2.01
3.   Wikipedia BBCode    1.3
4.   AJAX Instant Quick Reply    1.0.1
5.   Auto Embed Video Clips    2.2
6.   Mood Stars    2.0 

I'm getting that Database Error message again, it was working fine there then down again for everyone.
« Last Edit: July 18, 2008, 02:59:39 PM by ghostfreak »

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

Offline Eliana Tamerin

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,611
  • Gender: Female
Re: Age & Gender Board Filter Mod
« Reply #69 on: July 18, 2008, 03:58:20 PM »
It's probably an issue with the Redirection boards. I'll check it out.

What database error are you getting?
Do NOT PM me for support.

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

Offline MaXiForum.cz

  • Senior Translator
  • Full Member
  • *
  • Posts: 690
  • Gender: Male
  • Czech SMF support
    • MaxiFórum
Re: Age & Gender Board Filter Mod
« Reply #70 on: July 20, 2008, 12:19:17 PM »
Hi,
This mod is super and i don´t want to uninstall it.
What should I modify to enable the users to change Gender and Age?
THX a lot.
MaxiPes

Offline ghostfreak

  • Jr. Member
  • **
  • Posts: 337
  • Gender: Male
    • ghostfreak
Re: Age & Gender Board Filter Mod
« Reply #71 on: July 20, 2008, 04:07:58 PM »
I removed the code from the Load.php file and the database error disappeared...strange.

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

Offline Eliana Tamerin

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,611
  • Gender: Female
Re: Age & Gender Board Filter Mod
« Reply #72 on: July 20, 2008, 05:33:36 PM »
I removed the code from the Load.php file and the database error disappeared...strange.

What database errors? I need to know what they are so that I can help you.

Hi,
This mod is super and i don´t want to uninstall it.
What should I modify to enable the users to change Gender and Age?
THX a lot.
MaxiPes

If you allow members to change their gender and age, doesn't that defeat the point of the restrictions? That's like asking a child how old he is, to which he responds, "Seven." If you then tell him, "Oh, well, if you were eight, you could have a piece of candy," are you going to believe him when he tells you he's eight now?

And I'm sorry for taking so long in fixing the bugs. Lady Night Owl, I'm unable to replicate the gender always being female bug you reported, can you show me which site you're using this on so I can test it myself? Have you tried it on a separate test site and found the same bug? And what browsers are your members using when they report this bug?
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 #73 on: July 20, 2008, 07:20:01 PM »
And I'm sorry for taking so long in fixing the bugs. Lady Night Owl, I'm unable to replicate the gender always being female bug you reported, can you show me which site you're using this on so I can test it myself? Have you tried it on a separate test site and found the same bug? And what browsers are your members using when they report this bug?

A link to the site is in my signature if it would help to test it that way. IIRC, this did the same thing on a test forum of mine. Only one member reported having a problem and I believe he was using IE or Firefox (can't say for certain).

From what I can see, the error only occurs only when I force new registrants to select their gender. Otherwise, there is no problem. I just did a test account now and chose male, which worked fine. I do not have the force gender on registration enabled right now since you advised us not to until this was fixed.
Running SMF 2.0.1

Offline Eliana Tamerin

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,611
  • Gender: Female
Re: Age & Gender Board Filter Mod
« Reply #74 on: July 20, 2008, 07:57:57 PM »
Ok, well, if I find the correct JS command to check the field, this bug shouldn't occur. Thanks for explaining the circumstances a bit more, and I don't think it's a problem. I'll try to release a fix for the bug with having gender required not allowing registration.
Do NOT PM me for support.

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

Offline MaXiForum.cz

  • Senior Translator
  • Full Member
  • *
  • Posts: 690
  • Gender: Male
  • Czech SMF support
    • MaxiFórum
Re: Age & Gender Board Filter Mod
« Reply #75 on: July 21, 2008, 11:13:30 AM »
2 Eliana Tamerin I understand.
I don´t want to uninstall this mod but I need to disable it.
THX  ;)

Offline Eliana Tamerin

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,611
  • Gender: Female
Re: Age & Gender Board Filter Mod
« Reply #76 on: July 21, 2008, 11:23:34 AM »
To enable users to change their gender and birthdate again, simply remove all edits from Profile.template.php.

Note: I do not recommend this, as this is creating a loophole in the functionality of the mod.

BTW, MaxiPes, what do you need it for, I'm curious?
« Last Edit: July 21, 2008, 11:37:20 AM 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 MaXiForum.cz

  • Senior Translator
  • Full Member
  • *
  • Posts: 690
  • Gender: Male
  • Czech SMF support
    • MaxiFórum
Re: Age & Gender Board Filter Mod
« Reply #77 on: July 21, 2008, 01:08:51 PM »
I don´t want to use it yet, but this is a very nice mod and I don´t want to lose it.
THX Eliana Tamerin ;)

Offline [SiNaN]

  • SMF Super Hero
  • *******
  • Posts: 11,526
  • Young and Foolish
    • SimplePortal
Re: Age & Gender Board Filter Mod
« Reply #78 on: July 23, 2008, 02:19:45 PM »
Eliana helped me so much when I was a newbie here.

Hope this helps you Eliana;

Instead of this code in Register.template.php

Code: [Select]
isEmptyText(document.forms.creator.gender)
use this

Code: [Select]
document.forms.creator.gender[0].checked
The button will only be clickable when the first radio choice is not selected.

Or you can try this:

Code: [Select]
!document.forms.creator.gender[1].checked ||  !document.forms.creator.gender[2].checked
If the second or third radio button is not selected, the button will not be active.
« Last Edit: July 23, 2008, 02:25:55 PM by [SiNaN] »
Former SMF Core Developer | My Mods | SimplePortal

Offline Eliana Tamerin

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,611
  • Gender: Female
Re: Age & Gender Board Filter Mod
« Reply #79 on: July 23, 2008, 04:49:05 PM »
Thank you so much, SiNaN.

I released AGBF 1.2.1. You can upgrade from 1.2.0 in addition to the previous two versions because this is a bug fix.
Do NOT PM me for support.

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