Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.219
Nickname:

Password:

Security Code
Security Code
Type Security Code


PND Downloads Feed

Phpnuke Downloads
How to Delete or Reset yo...
How to Delete or Reset your PHPNuke Admin Account
Lost your admin password ?  Cant login to your admin account ? This s...
Back Online & Stuff
Back Online & Stuff
Look at us with our nifty website back up and running… Seriously...
How to edit the admins in...
How to edit the admins in the forums
Here is a way to make someone admin in your forums on your Evo site. I...
Demo Splash Screen
Demo Splash Screen
Ped @ Clan Themes has released a simple splash screen entrance hack. ...
Free Phpnuke Business The...
Free Phpnuke Business Theme 6
This is the 6th Business theme for Phpnuke that Clan Themes has releas...
Tricked Out Slider
Tricked Out Slider
We have seen some great new things come out of Tricked Out News and th...

Custom Work

PHP Nuke Custom Work

www.clanthemes.com :: View topic - Lottery module
Lottery module

11 Replies / 2496 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » Modules

View previous topic :: View next topic


Untergang
Reputation: 642.5 Add RepSubtract Rep
votes: 6
Local time: 9:20 PM
Location: Lommel
belgium.gif

Stand-by Stand-by
Stand-by Stand-by

0.19 posts per day
Medals: 0

Joined: May 08, 2007
Last Visit: 31 Oct 2011
Posts: 346
Points: 22131 

Post Lottery module Posted: Fri Nov 16, 2007 7:07 am

Hi,

I'm looking for a good lottery module.
But I can't find a god one anywhere.
So I would like to know which one you use on CT.

Greets
 

UDesigns.be  
View user's profileSend private messageSend e-mailVisit poster's website Reply with quote

Ped
Reputation: 93.3 Add RepSubtract Rep
votes: 37
Local time: 9:20 PM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

1.82 posts per day
Medals: 2 (View more...)
Forums MoD (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 24 May 2012
Posts: 3669
Points: 191761 

Post Re: Lottery module Posted: Fri Nov 16, 2007 7:44 am

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

http://www.codezwiz.com/shop-item-p_id-45.html

Ours as always has been heavily modified though.
 

 
View user's profileSend private messageSend e-mail Reply with quote

Untergang
Reputation: 642.5 Add RepSubtract Rep
votes: 6
Local time: 9:20 PM
Location: Lommel
belgium.gif

Stand-by Stand-by
Stand-by Stand-by

0.19 posts per day
Medals: 0

Joined: May 08, 2007
Last Visit: 31 Oct 2011
Posts: 346
Points: 22131 

Post Re: Lottery module Posted: Fri Nov 16, 2007 9:10 am

Ah, ok, thanks, but 40$ is a little to much for what I actually need.
It's just to give away some wars modules and some site points.
 

 
View user's profileSend private messageSend e-mailVisit poster's website Reply with quote


Ped
Reputation: 93.3 Add RepSubtract Rep
votes: 37
Local time: 9:20 PM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

1.82 posts per day
Medals: 2 (View more...)
Forums MoD (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 24 May 2012
Posts: 3669
Points: 191761 

Post Re: Lottery module Posted: Fri Nov 16, 2007 9:47 am

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

you could try
http://sweetphp.com/nuke/modules.php?name=Script_Preview&script=26&PHPSESSID=6ba54ed2a819eaea3243c205b62381ae

ive never tried it, but its a free one
 

 
View user's profileSend private messageSend e-mail Reply with quote

Untergang
Reputation: 642.5 Add RepSubtract Rep
votes: 6
Local time: 9:20 PM
Location: Lommel
belgium.gif

Stand-by Stand-by
Stand-by Stand-by

0.19 posts per day
Medals: 0

Joined: May 08, 2007
Last Visit: 31 Oct 2011
Posts: 346
Points: 22131 

Post Re: Lottery module Posted: Fri Nov 16, 2007 10:01 am

Thanks just found that one too :D
I've added it to my site and it work,
some numbers aren't correct like days left.
It should be like 30 but it says 608.
But that doenst really matter.
Users can now signup and might win a wars module :D

Greets
 

 
View user's profileSend private messageSend e-mailVisit poster's website Reply with quote

Ped
Reputation: 93.3 Add RepSubtract Rep
votes: 37
Local time: 9:20 PM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

1.82 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 24 May 2012
Posts: 3669
Points: 191761 

Post Re: Lottery module Posted: Fri Nov 16, 2007 10:05 am

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

Link ?
 

 
View user's profileSend private messageSend e-mail Reply with quote


Untergang
Reputation: 642.5 Add RepSubtract Rep
votes: 6
Local time: 9:20 PM
Location: Lommel
belgium.gif

Stand-by Stand-by
Stand-by Stand-by

0.19 posts per day
Medals: 0

Joined: May 08, 2007
Last Visit: 31 Oct 2011
Posts: 346
Points: 22131 

Post Re: Lottery module Posted: Fri Nov 16, 2007 10:07 am

http://www.udesigns.be/modules.php?name=TotalLottery
 

 
View user's profileSend private messageSend e-mailVisit poster's website Reply with quote

Ped
Reputation: 93.3 Add RepSubtract Rep
votes: 37
Local time: 9:20 PM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

1.82 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 24 May 2012
Posts: 3669
Points: 191761 

Post Re: Lottery module Posted: Fri Nov 16, 2007 10:08 am

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

Just for your info i signed up and got the error

ERROR: You must login before you can sign up for the lottery...

when i refreshed it had added me, so i suppose thats another error

you can delete me if you like...
 

 
View user's profileSend private messageSend e-mail Reply with quote

Untergang
Reputation: 642.5 Add RepSubtract Rep
votes: 6
Local time: 9:20 PM
Location: Lommel
belgium.gif

Stand-by Stand-by
Stand-by Stand-by

0.19 posts per day
Medals: 0

Joined: May 08, 2007
Last Visit: 31 Oct 2011
Posts: 346
Points: 22131 

Post Re: Lottery module Posted: Fri Nov 16, 2007 10:21 am

I fixed the numbers.

But I don't see why you get that error.
I tried with firefox now and I get that error too.
But it did add me.
 

 
View user's profileSend private messageSend e-mailVisit poster's website Reply with quote


Untergang
Reputation: 642.5 Add RepSubtract Rep
votes: 6
Local time: 9:20 PM
Location: Lommel
belgium.gif

Stand-by Stand-by
Stand-by Stand-by

0.19 posts per day
Medals: 0

Joined: May 08, 2007
Last Visit: 31 Oct 2011
Posts: 346
Points: 22131 

Post Lottery module Posted: Fri Nov 16, 2007 10:29 am

I think I found the bug

Code:
if($action == "signup" && memberCanSignup($id))
{
   $msg = "You have been added to the lottery.  Check back often to view your winning status.";
}
if($action == "signup")
{
   $msg = "ERROR: You must login before you can sign up for the lottery...";
}


There some more in between but this shows you what is wrong
 

 
View user's profileSend private messageSend e-mailVisit poster's website Reply with quote

kardson
Reputation: 0.8 Add RepSubtract Rep
Local time: 3:20 PM
Location: Michigan
usa.gif

Noob
Noob

0.00 posts per day
Medals: 0

Joined: Apr 28, 2008
Last Visit: 07 May 2008
Posts: 7
Points: 100 

Post Lottery module Posted: Wed Apr 30, 2008 12:21 am

For the your not logged in error

in the index.php file within the modules/TotalLottery/ folder

CHANGE if($action == "signup" && memberCanSignup($id))
TO if(($action == "signup") && (memberCanSignup($id) == "true"))

a little farther down
CHANGE if($action == "signup")
TO if(($action == "signup") && (memberCanSignup($id) == "false"))


The whole section should look like this

Code:
if(($action == "signup") && (memberCanSignup($id) == "true"))
{
   $userInfo =& $CMS->getCurrentUserInfo();   
   // Sign member up for lotto
   $q = mysql_query("SELECT remaining_members FROM totallottery_contests WHERE id = '".$id."'");
   list($remPlayers) = mysql_fetch_row($q);
   $membersLeft = unserialize($remPlayers);
   if(!is_array($membersLeft)) $membersLeft = array();
   $membersLeft[] = $userInfo['uid'];
   $serializedPlayers = serialize($membersLeft);
   $u = mysql_query("UPDATE totallottery_contests SET num_starting_members = num_starting_members + 1, remaining_members = '".$serializedPlayers."' WHERE id = '".$id."'") or die("ERROR: ".mysql_error());
   $msg = "You have been added to the lottery.  Check back often to view your winning status.";
}
if(($action == "signup") && (memberCanSignup($id) == "false"))
{
   $msg = "ERROR: You must login before you can sign up for the lottery...";
}



By the way, how did you fix the numbers?
 

 
View user's profileSend private messageVisit poster's websiteAIM AddressYahoo Messenger Reply with quote

Untergang
Reputation: 642.5 Add RepSubtract Rep
votes: 6
Local time: 9:20 PM
Location: Lommel
belgium.gif

Stand-by Stand-by
Stand-by Stand-by

0.19 posts per day
Medals: 0

Joined: May 08, 2007
Last Visit: 31 Oct 2011
Posts: 346
Points: 22131 

Post Re: Lottery module Posted: Wed Apr 30, 2008 3:26 pm

Lottery module Posted: 2007-11-16, 11:29:00

It has been a long while, I fixed that bug too.
But I don't know what the problem was with the numbers.
Or how I fixed it.

Greets
 

 
View user's profileSend private messageSend e-mailVisit poster's website Reply with quote

Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » Modules


 
11 Replies / 2496 Views
Page 1 of 1
All times are GMT
Display posts from previous:   
 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum