TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,911
  • Total Topics: 21,307
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 698
  • Total: 698

[Done!] Join Us! form

Started by mebymyself, October 19, 2006, 08:10:13 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

mebymyself

Quote
ok cause i am using this for guest
I am not sure that guest posting will work -I didn't test it through

Quote
how to hide MY email addy on the submit form


Its not YOUR email but the person who logged in and filling the form.
If you are allow to guest to submit - it should be empty
But again - I am not sure about guests

Assistance

lol bummer that was my next question :P

maybe i could use the password protected board mod, and allow guest to post in it

mebymyself


Assistance

#53
I am not sure that guest posting will work -I didn't test it through

^^ that one u answered


Edit*
guest can post in a non guest forum  :2funny:

Assistance

//article to be redirected when form is submitted
$thank_you_article_id = '41';

doesnt seem to work, it drops the smf directory from the URL

mebymyself

#55
hmm...

I have my forum installed in the root ...
I will try to find out how to correct it

*** Edit ***

As fast and dirty solution
change this:


header('Location: http://' . $_SERVER['HTTP_HOST'] .'/index.php?page=' . $thank_you_article_id);



To this:


header('Location: http://' . $_SERVER['HTTP_HOST'] .'/<forum_dir>/index.php?page=' . $thank_you_article_id);



Assuming that "<forum_dir>" is the directory for SMF


*****  Another edit ****

Or to this:


header('Location: http://' . $_SERVER['HTTP_HOST'] . $boarddir . '/index.php?page=' . $thank_you_article_id);



I haven't test it becaius as i said i have my forum installed in the root but it should work

Assistance


mebymyself

did you tried to hardcode it? Like this:

headr('Location: http://yourdomain.com/forum/index.php?page=xx' );

Assistance

header works, but not headr ;)

but yes hard coding works

ty

OzButcher

This is really cool!!! It works great thanks!  :up:

One question... I would like to put some text at the start of the application form... with rules etc. How can I insert text into the PHP Article without bringing up a error? I've tried:

<P> text blah blah </P>

and even

{echo <P> text blah blah </P> }


This website is proudly hosted on Crocweb Cloud Website Hosting.