News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Age & Gender Board Filter Mod

Started by Eliana Tamerin, June 20, 2008, 03:25:15 AM

Previous topic - Next topic

waremock

What are the plans for making this work on 2.0?

ghostfreak

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!

ccbtimewiz

Nice modification.

Great job, Eliana.

Eliana Tamerin

Quote from: waremock on July 16, 2008, 09:03:32 AM
What are the plans for making this work on 2.0?

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

Quote from: ghostfreak 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!

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):

$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.

Quote from: CTwiz on July 16, 2008, 12:53:00 PM
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!

ghostfreak

#64
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.

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

Eliana Tamerin

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!

ghostfreak

#66
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.

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

Eliana Tamerin

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!

ghostfreak

#68
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.

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

Eliana Tamerin

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!

MaXiForum.cz

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

ghostfreak

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!

Eliana Tamerin

Quote from: ghostfreak on July 20, 2008, 04:07:58 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.

Quote from: MaxiPes 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

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!

Lady Night Owl

Quote from: Eliana Tamerin on July 20, 2008, 05:33:36 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

Eliana Tamerin

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!

MaXiForum.cz

2 Eliana Tamerin I understand.
I don´t want to uninstall this mod but I need to disable it.
THX  ;)

Eliana Tamerin

#76
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?
Do NOT PM me for support.

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

MaXiForum.cz

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 ;)

[SiNaN]

#78
Eliana helped me so much when I was a newbie here.

Hope this helps you Eliana;

Instead of this code in Register.template.php

isEmptyText(document.forms.creator.gender)

use this

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:

!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.
Former SMF Core Developer | My Mods | SimplePortal

Eliana Tamerin

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!

Advertisement: