Skip to Content Skip to Menu

🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

Invite System

  • montana
  • montana
  • OFFLINE
  • Posts: 41
  • Thanks: 0
  • Karma: 1
17 years 11 months ago #27738 by montana
Replied by montana on topic Re:Invite System
I give you right.. the Ajax Invite Compenent is sure a good work but:
when we get offer such very complex and wonderful Open Source Systems like Joomla, CB ,Nants Gallery for free and have to pay for a (usable) Component 50 Bucks, it is same like you get a Car for free and you must buy a blink lamp for a lot of money.
I hope not every important developer think do this way.
bacause If i would install 20 Compenents to my site it would coast about1000$.
I do not say alls developer should set his products for free for example Flashchat coast only 5$ B)

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
17 years 11 months ago #27743 by nant
Replied by nant on topic Re:Invite System
montana wrote:

I give you right.. the Ajax Invite Compenent is sure a good work but:
when we get offer such very complex and wonderful Open Source Systems like Joomla, CB ,Nants Gallery for free and have to pay for a (usable) Component 50 Bucks, it is same like you get a Car for free and you must buy a blink lamp for a lot of money.
I hope not every important developer think do this way.
bacause If i would install 20 Compenents to my site it would coast about1000$.
I do not say alls developer should set his products for free for example Flashchat coast only 5$ B)


kinda makes you appreciate Joomla, CB etc...

There is nothing wrong with asking for money - sick people will not always be around to produce all these free things.
Donations are - to say the least - rare.

Please Log in or Create an account to join the conversation.

17 years 11 months ago #27753 by KurtSteiner
Replied by KurtSteiner on topic Re:Invite System
This could become like a discussion about religion;)

I like to use freeware but i also like the other kind.

For example, i use Windows, Word, Excel, Powerpoint and outlook because i like the usability.

And YES, i have paid for the licence.

The funny thing with being a human is "free will".

You have always a choice.

When i always take the free stuff for nothing than complain it is buggy or have ot all the features i like to have, than the developers will have no fun to give all the work and all the dispute with there woman (you do everything for everyone but nothing for me) further on for free.

So, i decided to pay sometimes for good stuff here and make a donation there - it is not important to give a lot but imporant to show your respect for a good work !!!

;)

sunny regards from Germany

BERND (Kurt Steiner)

Please Log in or Create an account to join the conversation.

17 years 11 months ago #27778 by vishalsood
Replied by vishalsood on topic Re:Invite System
I truly respect the developers work and I agree that he should charge for the work. The amount he charges is once again his will and from what I have heard the plug-in probably deserves it.

However, it is probably okay to continue to support a hack / fix given earlier so that users already using it are not left stranded :(. I guess its time for me to jump into php and try my luck :)

Anyways, as I said earlier I still respect the fact that each individual has his / her own choices.

Cheers
Vishal

Please Log in or Create an account to join the conversation.

17 years 11 months ago #28347 by vishalsood
Replied by vishalsood on topic Re:Invite System
I finally managed to fix the hack for CB 1.0.2. If you like it bump up my Karma :) ..

NOTE: Please backup the files before attempting the fix

TODO: Make this work only with valid invites. Let me know if anyone needs that.

<ul>
<li> Step 1: Make changes to com_invite link
File: components/com_invite/invite.php: Line 170
It currently looks like
[code:1]
$link = sefRelToAbs($mosConfig_live_site . '/index.php?option=com_invite&task=register&email='.$e_add.'&ref_str='.$ref_str);
[/code:1]

Change it to
[code:1]
$link = sefRelToAbs($mosConfig_live_site . '/index.php?option=com_comprofiler&task=registers&email='.$e_add.'&ref_str='.$ref_str);
[/code:1]
</li>

<li> Step 2: Set the email in the registration Form
File: components/com_comprofiler/comprofiler.html.php
After Line 1208
[code:1]
<?php
$showemail = "";
if ($option == "com_invite"«») $showemail = $_GET;
elseif ($option == "com_comprofiler"«») {
if (isset($_GET)) $showemail = $_GET;
else if (isset($row->email)) $showemail = $row->email;
}
?>
[/code:1]
</li>

<li> Step 3: Add hidden com_invite fields to registration form
File: components/com_comprofiler/comprofiler.html.php
After line 1275: (just after other hidden fields)
[code:1]
<?php
if ((isset($_GET)) && (isset($_GET))) {?>
<input type="hidden" name="ref_str" value="<?php echo $_GET; ?>" />
<input type="hidden" name="ref_email" value="<?php echo $_GET; ?>" />
<?php
}
?>
[/code:1]
</li>
<li> Step 4: Add invite tracking handling to saveRegistration method()
File: components/com_comprofiler/comprofiler.php
Above Line:1241 (saveRegistration) method
Change:
[code:1]
echo $messagesToUser;
[/code:1]

to:

[code:1]
if ((isset($_POST)) && (isset($_POST))) {
//confirm invite
$ref_str = $_POST;
$ref_email = $_POST;

$sql = "update `#__invite_sent` set `joined` = '1' where `email` = '$ref_email' and `ref_str` = '$ref_str'";
$database->setQuery($sql);
$database->query();

$sql = "insert into `#__invite_joined` values ('', '$row->id', '$ref_email', '$ref_str')";
$database->setQuery($sql);
$database->query();
}
echo $messagesToUser;
[/code:1]
</li>
</ul>

Post edited by: vishalsood, at: 2007/01/05 15:31

Post edited by: vishalsood, at: 2007/01/05 20:28

Please Log in or Create an account to join the conversation.

  • miro111
  • miro111
  • OFFLINE
  • Posts: 1
  • Thanks: 0
  • Karma: 0
17 years 11 months ago #28945 by miro111
Replied by miro111 on topic Re:Invite System
Works well!
Thank you man!!! Karma up :cheer:

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum