Gossamer Forum
Home : Products : Others : Gossamer Community :

Add a new page

Quote Reply
Add a new page
Hi:

I searched, did not see this discussed...

I want to add a new page in the user signup chain... just a basic "you are responsible to follow the rules of the forum" and a COPPA (Are you under or over 13?) page- just before a user gets to do=user_signup.

I created a template called user_age.html and put in private, and tried to call as do=user_age, and that did not work...

How does one call a "new" page like this in Comm??

TIA!
dave

Big Cartoon DataBase
Big Comic Book DataBase
Quote Reply
Re: [carfac] Add a new page In reply to
I got it, by editing Web:User, but that is probably not such a good way to do it.

So now I have my little COPPA step in there (Are you 13 or younger...)

If there is a better (already in COMM) way, I would love to know.

Note to GT:

You might want to incorporate the OPTION of a COPPA step in signing up. Does that effect you Canadians?
dave

Big Cartoon DataBase
Big Comic Book DataBase
Quote Reply
Re: [carfac] Add a new page In reply to
No need to hack.

From the comment hidden in Community/Web/User.pm
Quote:
# Users can go to a pre signup page (terms of service, coppa, etc) using
# do=user_signup;page=user_signup_terms.html
# link. The pagename must start with user_signup_.

So you can just create a custom template 'user_signup_coppa.html' and then link to

community.cgi?do=user_signup;page=user_signup_coppa.html

From that page, have a button bring your visitors to

community.cgi?do=user_signup;

That should do the trick.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Add a new page In reply to
Thanks! I hate hacking!
dave

Big Cartoon DataBase
Big Comic Book DataBase
Quote Reply
Re: [carfac] Add a new page In reply to
Hi Dave

Could you explain if there is any further I need to do to get this working.



From the comment hidden in Community/Web/User.pm
Quote
# Users can go to a pre signup page (terms of service, coppa, etc) using
# do=user_signup;page=user_signup_terms.html
# link. The pagename must start with user_signup_.



Here's what I did:
New template in the Community local directory name user_signup_inter.html
and called it via
/Community/community.cgi?do=user_signup;page=user_signup_inter.html

I just keep getting the original signup page.
Cleared browser cache, compiled etc.

Thanks.

Regards

minesite
Quote Reply
Re: [minesite] Add a new page In reply to
Minesite:

I am on the road right now- should be back Tuesday. Will reply with details on my return.

Dave
dave

Big Cartoon DataBase
Big Comic Book DataBase
Quote Reply
Re: [minesite] Add a new page In reply to
Yogi explained:
Quote:
From that page, have a button bring your visitors to

community.cgi?do=user_signup;

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Quote Reply
Re: [webmaster33] Add a new page In reply to
Thanks Dave.

Hi Webmaster


From that page, have a button bring your visitors to
community.cgi?do=user_signup;



The problem I have is getting to the coppa page before the user_signup.
Am I missing something.

Regards

minesite
Quote Reply
Re: [minesite] Add a new page In reply to
Well, yes? So?

It was quoted how you can do it:
Quote:
# Users can go to a pre signup page (terms of service, coppa, etc) using
# do=user_signup;page=user_signup_terms.html
# link. The pagename must start with user_signup_.

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Quote Reply
Re: [webmaster33] Add a new page In reply to
Hi webmaster

If you don't have anything constructive to say, don't say it.Mad

If you read the post I added, it states that I followed the instructions but still cannot call up the coppa page.

I'd welcome any "constructive" comments you may have.
"Well yes? so?" does not come into this category.

Regards

minesite
Quote Reply
Re: [minesite] Add a new page In reply to
In Reply To:
If you read the post I added, it states that I followed the instructions but still cannot call up the coppa page.

I'd welcome any "constructive" comments you may have.
"Well yes? so?" does not come into this category.

As well your post didn't contain any useful thought:
Quote:
The problem I have is getting to the coppa page before the user_signup.
Am I missing something.

Saying "doesn't work" doesn't help anybody who would like to help you.
Saying "I did this and this, and the result was that" would be really helpful...

So you should not teach me about "constructivity" before you don't know what is it... Mad

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...

Last edited by:

webmaster33: Sep 12, 2004, 5:00 AM
Quote Reply
Re: [webmaster33] Add a new page In reply to
I couldn’t find "constructivity" in the dictionary but the following may be of use to you.

con-struc-tive
adj.
Serving to improve or advance; helpful: constructive criticism.

webmaster , Do you really think your comments below fall into this category ?
"Well yes? so?" - “Yogi explained:” - “It was quoted how you can do it:”


You wrote:
“As well your post didn't contain any useful thought: “

My original post:


Could you explain if there is any further I need to do to get this working.

Here's what I did:
New template in the Community local directory name user_signup_inter.html
and called it via
/Community/community.cgi?do=user_signup;page=user_signup_inter.html

I just keep getting the original signup page.
Cleared browser cache, compiled etc.




You wrote:

“Saying "doesn't work" doesn't help anybody who would like to help you”

My original post:


Could you explain if there is any further I need to do to get this working.

Here's what I did:
New template in the Community local directory name user_signup_inter.html
and called it via
/Community/community.cgi?do=user_signup;page=user_signup_inter.html

I just keep getting the original signup page.
Cleared browser cache, compiled etc.




You wrote:
“Saying "I did this and this, and the result was that" would be really helpful... “

My original post:


Could you explain if there is any further I need to do to get this working.

Here's what I did:
New template in the Community local directory name user_signup_inter.html
and called it via
/Community/community.cgi?do=user_signup;page=user_signup_inter.html

I just keep getting the original signup page.
Cleared browser cache, compiled etc.



If I can elaborate on what I’m doing I will do so, please advise what further information you require.

I look forward to your help in this matter.

Regards

minesite
Quote Reply
Re: [minesite] Add a new page In reply to
Thanks to your following sentence, I will help you:
Quote:
I look forward to your help in this matter.

I checked the code of GComm v1.0.2 and found that there is a bug in the code.
That's why you wasn't able to get the desired result.

Code:
my $page = $IN->param('page');
if ($page) {
if ($page =~ /^user_signup_\w+\.\w+$/) {
return ($page);
}
}

The + in red was missing.

Therefore in GComm v1.0.2 you should use a 1 char identifier in the filename like this:
/Community/community.cgi?do=user_signup;page=user_signup_0.html

You can also hack the core code as I showed above.
Hopefully this BUG will be fixed in next release...

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Quote Reply
Re: [webmaster33] Add a new page In reply to
Thanks , I'll give that a try and post the result.

Much appreciated.

Regards

minesite
Quote Reply
Re: [minesite] Add a new page In reply to
So did you try out? Did it work?

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Quote Reply
Re: [webmaster33] Add a new page In reply to
Yes I did try it, did the mod to user.pm adding the plus sign without success.

if ($page =~ /^user_signup_\w+\.\w+$/) {
return ($page);

It works fine with user_signup_A or user_signup_B but not with anything longer than the one digit, it just returns the original register screen.

This works for me fine as this is all I require and I can work with that.

Thanks for your help, its much appreciated.

Regards

minesite

Last edited by:

minesite: Sep 13, 2004, 4:56 AM
Quote Reply
Re: [minesite] Add a new page In reply to
Quote:
It works fine with user_signup_A or user_signup_B but not with anything longer than the one digit, it just returns the original register screen.
Well, if you added the fix, it should work. I tested it and works.

But if user_signup_A is enough for you, then use it that way.
Anyway, glad that helped.

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Quote Reply
Re: [webmaster33] Add a new page In reply to
It got to me so had to try again.

If anyone is running mod_perl, it needs a restart before the changes take affect.

Thanks again for your help.

Regards

minesite