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: 697
  • Total: 697

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

akulion

:2funny: the code being discussed, i dont know - just thought id drop a compliment :2funny:

HaxXxoR

Quote from: londonhogfan on November 03, 2006, 05:26:25 AM
http://www.tinyportal.net/smf/index.php?topic=4560.msg40861#msg40861

works pretty good on my site.
http://www.the-rota.com/index.php?page=24 (at the bottom)

How did you do that in an article and then have it added to a post in the forums? I would like to do something like that as well.

mebymyself

Quote from: HaxXxoR on November 03, 2006, 03:15:15 PMHow did you do that in an article and then have it added to a post in the forums? I would like to do something like that as well.

Here is how :)

Assistance

see what happens when its  younotbyyourself

great code, i will abuse it

mebymyself

Being lazy I wanted that it be NotMeAtAll :2funny:
So if  londonhogfan noticed this thread and posted his links earlier I wouldn't do anything at all  :)

Assistance

wooo whooo glad he is lazier then u :P

basically its the same code, just with 1 click instead of two

mebymyself

nope, My code sends email also.
And also it more extendable. For example I am changing it to also add a poll in the member only section of the forum

Assistance

#47
add a poll for members only?
does this code work for guest ( the one u posted already )

edit

i'm worse at php then you are

but your instructiions are not very clear.

where do i put the values for things...
like where it post the topic, isee potentially where, but its not "clear" that is where it goes.

$msgOptions = array(
      'id' =>  0 ,

or

   $topicOptions = array(
      'id' => 0 ,

also stuff like
// Redirect to thank you page
   header('Location: http://' . $_SERVER['HTTP_HOST'] .'/index.php?page=' . $thank_you_article_id);
   
$thank_you_article_id = replace with number?

mebymyself

i meant clan member as opposed to site registred users.

but yes the code allow to guest to submit the form
If you want to dissallow guest access put following cod at the beginning:


if ($context['user']['is_guest'])
{
   echo
   '<h5>Access Denied</h5>
   We are sorry. You must be registred on the site in order to apply for  Clan membership.';
} else  {



also add closing bracet at the very end of the code



}



Assistance

ok cause i am using this for guest :P

i have more question, but i need to edit the text first

I'll be back by nightfall (4pm now) :P  in no rush for a reply ty

EDIT*

how to hide MY email addy on the submit form

This website is proudly hosted on Crocweb Cloud Website Hosting.