1
j0sh78
module or block to invite users
  • 2005/4/11 21:46

  • j0sh78

  • Friend of XOOPS

  • Posts: 53

  • Since: 2004/10/21


is there a block or module to invite a user on the site?

2
ackbarr
Re: module or block to invite users

If you are talking about referrals, the "Site Info" block in the System module has a link to "Recommend Us". The WF-Channel module has a Refer-A-Friend feature.

3
jdseymour
Re: module or block to invite users

I use a custom block to remind anonymous users to register to get full benefit of my site. I show the block on every page for anonymous.

I also have a welcome message in a custom block with my site information, site policies, and again a chance to register. This block also is shown to anonymous users only.

For registered users, I have another custom block titled welcome back. I use this block to relay current site happenings, updates, special news, or problems that the users should know about. Just because my site is theirs just as much as it is mine.

But for ease of use, the custom block is the way to go here I think. Maybe someone else has a better idea.

HTH.

4
j0sh78
Re: module or block to invite users
  • 2005/4/12 0:07

  • j0sh78

  • Friend of XOOPS

  • Posts: 53

  • Since: 2004/10/21


Quote:

ackbarr wrote:
If you are talking about referrals, the "Site Info" block in the System module has a link to "Recommend Us". The WF-Channel module has a Refer-A-Friend feature.

very good i didn't see that... tnx!

5
j0sh78
Re: module or block to invite users
  • 2005/4/13 8:47

  • j0sh78

  • Friend of XOOPS

  • Posts: 53

  • Since: 2004/10/21


i added an hack to this block to show a list of users that invited a friend
i simply modify misc.php in this way:

row 190
echo "

"._MSC_REFERENCESENT."

";
$sql = sprintf("UPDATE %s SET invite = '%s' WHERE uid = %u", $xoopsDB->prefix('users'), $xoopsUser->getVar('invite')+1, $xoopsUser->getVar('uid'));
$xoopsDB->query($sql);

you have to add "invite" to members table

to show the list i add a case to switch in misc.php

case "invited":
echo '







';
if ($getinvited = $xoopsDB->query("SELECT uname,invited FROM ".$xoopsDB->prefix("users")." where invited!=0 order by invited desc")) {
$rcolor = 'even';
while ( $row = $xoopsDB->fetchArray($getinvited) ) {
echo "";
$rcolor = ($rcolor == 'even') ? 'odd' : 'even';
}
} else {
echo "Nessun abitante ha invitato amici in Pixaelcity";
}
echo '
Ecco chi ci sostiene
NickAmici invitati
".$row['uname']."".$row['invited']."
';
break;

sorry for code's formatting

Login

Who's Online

324 user(s) are online (268 user(s) are browsing Support Forums)


Members: 0


Guests: 324


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits