vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Forum Invitation Form (https://vborg.vbsupport.ru/showthread.php?t=46263)

KingsGambit 11-30-2002 10:00 PM

Forum Invitation Form
 
All information is in attached text file. This hack creates a page for users to enter a friend's Email address and an optional message. Their friend will then receive an EMail inviting them to join the board. :) Feel free to edit to suit your forums to your hearts content. :)
Involves creating and uploading 1 new PHP file to forum rootdir, and 5 new templates.
Any questions, I cannot guarantee prompt response but I don't mind an Email with any questions, or just post in here.

John 12-01-2002 01:34 PM

Good idea

Dean C 12-01-2002 01:40 PM

Such hacks have already been released but thanks for sharing it with us anyway :D

Regards

- miSt

N9ne 12-01-2002 02:33 PM

Question: Would it be possible, say if the friend signs up with the same email that the msg was sent to, the person who sent it gets a referral for it?

KingsGambit 12-01-2002 03:27 PM

I don't see why not N9ne, quite a good idea, but this doesn't involve any tables to memorise such things. The link they receive to the registration page contains &referrerid=$bbuserinfo[userid] in it, so referring member gets credit. :)
Next step for this might be to register user as well, and send them a username and random password in the Email perhaps?

Unknown553 12-01-2002 04:26 PM

<a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=40355" target="_blank">https://vborg.vbsupport.ru/showt...threadid=40355</a>

N9ne 12-01-2002 07:15 PM

Quote:

Originally posted by KingsGambit
I don't see why not N9ne, quite a good idea, but this doesn't involve any tables to memorise such things. The link they receive to the registration page contains &referrerid=$bbuserinfo[userid] in it, so referring member gets credit. :)
Next step for this might be to register user as well, and send them a username and random password in the Email perhaps?

I don't think registering the user and sending username and password is such a good idea...

So the url sent contains the referrerid link? If so, that's fine :D

Erwin 12-01-2002 09:06 PM

Mmm... this is similar to Unknown's Refer Friends hack...

flup 12-11-2002 03:00 PM

Cool. i'm going to try this @ my forum

flup 12-11-2002 03:02 PM

One single question.
Are 2.2.8 (and earlier version) hacks working correctly on 2.2.9?

KingsGambit 12-11-2002 10:55 PM

AFAIK they should do, and this one is really straightforward but quite effective, and I don't think 2.2.9 has made that much changes. I have it but am afraid to upgrade with all the hacks I've played with. :)

Molok 12-14-2002 10:33 PM

i installed the hack and it works very good.

I want set a Link to the Invitation Form in the User CP under New Private Messages and before Subscribed Forums.

Title of the Link
Invite a Friend
Here you can invite your friendy they are not registred.

My programming nowledge is very :( so i have no idea how i can do

KingsGambit 12-14-2002 10:51 PM

Molok, if you mean where I think you mean, you could try putting this bit of code in the usercp template. Admin CP => Templates => Modify => User Control Panel Templates [Expand] => usercp. Find:

$privatemessages

Below that put the following code (before $forumlist):

PHP Code:

<table cellpadding="0" width="100%" bgcolor="#0A293E" cellspacing="0" border="0" align="center"><tr><td>
<
table cellspacing="1" cellpadding="4" border="0" width="100%">
<
tr id="cat">
    <
td bgcolor="#336D95" background="https://vborg.vbsupport.ru/images/catagory_backing.gif" background="https://vborg.vbsupport.ru/images/catimage.gif" colspan="5">
    <
table cellpadding="0" cellspacing="0" border="0" width="100%">
    <
tr id="cat">
        <
td><a href="invite.php?s=$session[sessionhash]"><normalfont color="#000000"><b>Invite a Friend</b></normalfont></a></td>
    </
tr>
    </
table>
    </
td>
</
tr>
<
tr>
    <
td bgcolor="#13486D"><normalfont>Here you can invite your friends if they are not registred</normalfont></td>
</
tr>
</
table>
</
td></tr></table>
<
br

:)

Molok 12-14-2002 10:56 PM

yes you mean the right was i mean. with my very bad english its not easy to write here the right.

its work an I kiss you feets :-)

KingsGambit 12-14-2002 11:02 PM

LOL, it was a pleasure mate, and your english is fine. I understood it fine and I *only* speak bad english. :D

Molok 12-14-2002 11:17 PM

really good news :-)

I have here a little Upgrade of your Code.
So the Tables takes automatically the colors wheres setting as standard in the style

<table cellpadding="{tableouterborderwidth}" width="100%" bgcolor="{tablebordercolor}" cellspacing="0" border="0" align="center"><tr><td>
<table cellspacing="1" cellpadding="4" border="0" width="100%">
<tr id="cat">
<td bgcolor="{categorybackcolor}" colspan="5">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr id="cat">
<td><a href="invite.php?s=$session[sessionhash]"><normalfont color="{categoryfontcolor}"><b>Lade einen Freund/Freundin ein.</b></normalfont></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="{secondaltcolor}"><normalfont>Hier kannst du jemandem, der noch nicht im Forum registriert ist, eine Einladung senden.</normalfont></td>
</tr>
</table>
</td></tr></table>
<br>

XrayHead 12-18-2002 09:04 PM

Installed mate..... Thank you :-)


All times are GMT. The time now is 04:44 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01178 seconds
  • Memory Usage 1,763KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete