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,966
  • Latest: safir45
Stats
  • Total Posts: 195,993
  • Total Topics: 21,324
  • Online today: 247
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 245
  • Total: 245

invite friend

Started by falguni1, November 28, 2007, 07:54:39 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

wilsy

Make sure you switch the block off for guests or it will get bombed.

Regards,

Wilsy.

Hairy

Quote from: falguni1 on November 29, 2007, 05:52:47 AM
Hairy you are genius  :D

it works so good and looks so nice  :coolsmiley:

thankyou  :)

No problem :)

Quote from: wilsy on November 29, 2007, 09:02:02 AM
Make sure you switch the block off for guests or it will get bombed.

Regards,

Wilsy.

I agree with that, maybe adding CAPTCHA and/or flood control could be a good way in keeping it open for guests.

Cheers

chrishicks

being a newbie with these codes can anyone tell me why I get this when I submit:

Not Found
The requested URL /index.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I set up an article(article is #5) and I replaced the 6 in the code. is there something else I am supposed to do here that I am missing?

Hairy

I'm not sure, maybe if your forum is in a different folder eg "/smf" or "/forum" you might need to change some of the code  :-\

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

Replace the XXXXXXXX's with your forum folder:
header('Location: http://' . $_SERVER['HTTP_HOST'] .'/XXXXXXXX/index.php?page=' . $thank_you_article_id);

Hope that helps!

chrishicks

#14
Quote from: Hairy on December 09, 2007, 02:34:43 AM
I'm not sure, maybe if your forum is in a different folder eg "/smf" or "/forum" you might need to change some of the code  :-\

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

Replace the XXXXXXXX's with your forum folder:
header('Location: http://' . $_SERVER['HTTP_HOST'] .'/XXXXXXXX/index.php?page=' . $thank_you_article_id);

Hope that helps!

thank you. it did but now I have another problem(s). :(

I get these errors in my forum log:

8: Undefined variable: user_info
File: /home/rejectsr/public_html/forum/Themes/default/TPortal.template.php (main_above sub template - eval?)
Line: 67

8: Undefined variable: this_article_id
File: /home/rejectsr/public_html/forum/Themes/default/TPortal.template.php (main_above sub template - eval?)
Line: 55

8: Undefined index: fmail
File: /home/rejectsr/public_html/forum/Themes/default/TPortal.template.php (main_above sub template - eval?)
Line: 21

8: Undefined variable: this_article_id
File: /home/rejectsr/public_html/forum/Themes/default/TPortal.template.php (main_above sub template - eval?)
Line: 55

8: Undefined variable: user_info
File: /home/rejectsr/public_html/forum/Themes/default/TPortal.template.php (main_above sub template - eval?)
Line: 39

hopefully this will be an easy fix as my members have been asking for an invite system for months.

ps. I thought I should add that even though I get the errors the invite actually does work.

Dragooon

There are a few problems,
1. It doesn't do any security checks, means anyone can inject JS or SQL injections. In Short, hack your forum.
2. No Captcha.
Not bragging or complaining, just telling the people about this.

Hairy

#16
I just adjusted the join us snippet http://www.tinyportal.net/index.php?topic=9840.msg84957#msg84957 so does that snippet allow hacking? if so I am going to need another join us form  :buck2:

Ps. sorry I can't help with them errors  :(

Dragooon

Quote from: Hairy on December 09, 2007, 03:30:30 PM
I just adjusted the join us snippet http://www.tinyportal.net/index.php?topic=9840.msg84957#msg84957 so does that snippet allow hacking? if so I am going to need another join us form  :buck2:

Ps. sorry I can't help with them errors  :(
nope, Security can be easily compromised there.

IchBin

This isn't posting anything to the forum or saving anything to the database. What kind of hack are you thinking about Dragooon?

Dragooon

JavaScript injection....
I still am not 100% as I didn't had any time to see the code, just had a very very quick overview.

This website is proudly hosted on Crocweb Cloud Website Hosting.