Lavalair Shop

Started on the old forum in May 2007 · view the original in the archive · old links redirect here

50 replies · 4,384 views · started 19 years ago · 1 min read

TL;DR · summary of 50 replies
  • - The configuration and shop script for the Lavalair Shop was not fully resolved as of the last reply.
  • - Alesh had trouble with the configuration file, leading to errors when trying to enter the inbox or shop.
  • - Phoenix90 offered a snippet of code that could limit users from entering the shop based on their credits, but it didn't work for them.
  • - Subzero was asked to help by checking and potentially fixing the script, as he had access to download files.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

8 participants
alesh Lead · 604 posts #41

thanx kwah

BUT im BACK!!!!!

sumthing is not right or in the code or in that for config file....

i did like u said but i get hmmmm screwd my site.... at main page i get NO GATEWAY REPLY when im trying to enter in inbox etc and when i enter at shop i get sum ERROR in line blah blah blah (dnt knw anymore where lol)

so pls take a look at ur code again.... u missed sumthng i think

CODE

$who=$_GET["whoid"]; $plusses = mysql_fetch_array(mysql_query("SELECT credits FROM ibwf_users WHERE id='".$who."'"));

if($plusses<$shop_plusses-limit){ <-------Whats this? It should b here? { addvisitor(); addonline(getuid_ses($ses),"Shop","");
echo webhead($uthm,$stitle); echo " ";

echo "You cannot enter the shop because you have less than $shop_plusses-limit plusses. Post in the forums to get more plusses."; echo " </card></wml>"; exit(); }

eeeeerrr....

phoenix90 Developer · 113 posts #42

thanx kwah BUT im BACK!!!!!

sumthing is not right or in the code or in that for config file....

i did like u said but i get hmmmm screwd my site.... at main page i get NO GATEWAY REPLY when im trying to enter in inbox etc and when i enter at shop i get sum ERROR in line blah blah blah (dnt knw anymore where lol) so pls take a look at ur code again.... u missed sumthng i think CODE

$who=$_GET["whoid"]; $plusses = mysql_fetch_array(mysql_query("SELECT credits FROM ibwf_users WHERE id='".$who."'"));

if($plusses<$shop_plusses-limit){ <-------Whats this? It should b here? { addvisitor(); addonline(getuid_ses($ses),"Shop","");
echo webhead($uthm,$stitle); echo " ";

echo "You cannot enter the shop because you have less than $shop_plusses-limit plusses. Post in the forums to get more plusses."; echo " </card></wml>"; exit(); }

I will check the file, edit it and repost it again so that it will work only if a user has that amount of credits, example- they can enter the shop, but can only buy stuff they have credits for..

HIve me max 2days, im still a newbie External image (may be gone)

subzero Super moderator Fellow · 3,954 posts #44

lol i can help just i need to download thou things

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

phoenix90 Developer · 113 posts #45

lol i can help just i need to download thou things

THANKS sub, if just tried it, but no luck, can make that piece of script work, if also noticed that the items on will substract from credits, but if i put something new in the shop, say like - A personal VIP status, it wont substract from the users credits, even though it says it does, I have tried everything, can you help me? Wat do u think is wrong??

CODE} else if($action=="peravat") { echo webhead($uthm,$stitle); echo " "; $ownid[0]=1; $who=$_GET["whoid"]; $whoid=$_GET["who"]; $plusses = mysql_fetch_array(mysql_query("SELECT credits, name FROM ibwf_users WHERE id='".$who."'")); $remainplus = $plusses[0] - 1000; $plussupdate = mysql_query("UPDATE ibwf_users SET credits='".$remainplus."' WHERE id='".$who."'"); $message = "A User Has visited The $asset Shop and Ordered a Personal Avatar, the user is ".$whoid." Please Action This request as soon as possible.[br/][small]p.s: this is an automated pm[/small]"; autopm($message, $ownid[0]); echo "Thank You For Choosing To Purchase Your Personal Avatar. Your $asset Have Been Debited and your request sent to the staff for processing. "; echo "We Expect your personal avatar to be ready in 48hours or less "; echo "You Now have $remainplus $asset Remaining

";

echo "

"; echo "<a href="index.php?action=main&ses=$ses"><img src="images/home.gif" alt="*"/>Home</a>"; echo " "; echo webfoot(); } else if($action=="persmile") { echo webhead($uthm,$stitle); echo " "; $ownid[0]=1; $who=$_GET["whoid"]; $whoid=$_GET["who"]; $plusses = mysql_fetch_array(mysql_query("SELECT credits, name FROM ibwf_users WHERE id='".$who."'")); $plussupdate = mysql_query("UPDATE ibwf_users SET credits='".$remainplus."' WHERE id='".$who."'"); $message = "A User Has visited The $asset Shop and Ordered a Personal Smilie, the user is ".$whoid." Please Action This request as soon as possible.[br/][small]p.s: this is an automated pm[/small]"; autopm($message, $ownid[0]); echo "Thank You For Choosing To Purchase Your Personal Smilie. Your $asset Have Been Debited and your request sent to the staff for processing. "; echo "We Expect your Personal Smilie to be ready in 48hours or less "; echo "You Now have $remainplus $asset Remaining

"; echo " "; echo "<a href="index.php?action=main&ses=$ses"><img src="images/home.gif" alt="*"/>Home</a>"; echo " "; echo webfoot(); } else if($action=="pubchat") { echo webhead($uthm,$stitle); echo " "; $ownid[0]=1; $who=$_GET["whoid"]; $whoid=$_GET["who"]; $plusses = mysql_fetch_array(mysql_query("SELECT credits, name FROM ibwf_users WHERE id='".$who."'")); $remainplus = $plusses[0] - 4000; $plussupdate = mysql_query("UPDATE ibwf_users SET credits='".$remainplus."' WHERE id='".$who."'"); $message = "A User Has visited The $asset Shop and Ordered a Public Chatroom, the user is ".$whoid." Please Action This request as soon as possible.[br/][small]p.s: this is an automated pm[/small]"; autopm($message, $ownid[0]); echo "Thank You For Choosing To Purchase Your Own Chatroom. Your $asset Have Been Debited and your request sent to the staff for processing. "; echo "We Expect your Room to be live within 48hours or less "; echo "You Now have $remainplus $asset Remaining

";

echo "

"; echo "<a href="index.php?action=main&ses=$ses"><img src="images/home.gif" alt="*"/>Home</a>"; echo " "; echo webfoot(); } else if($action=="pubforum") { echo webhead($uthm,$stitle); echo " "; $ownid[0]=1; $who=$_GET["whoid"]; $whoid=$_GET["who"]; $plusses = mysql_fetch_array(mysql_query("SELECT credits, name FROM ibwf_users WHERE id='".$who."'")); $remainplus = $plusses[0] - 5000; $plussupdate = mysql_query("UPDATE ibwf_users SET plusses='".$remainplus."' WHERE id='".$who."'"); $message = "A User Has visited The $asset Shop and Ordered a Public Forum, the user is ".$whoid." Please Action This request as soon as possible.[br/][small]p.s: this is an automated pm[/small]"; autopm($message, $ownid[0]); echo "Thank You For Choosing To Purchase a Public Forum. Your $asset Have Been Debited and your request sent to the staff for processing. "; echo "We Expect your forum will be live within 48hours or less "; echo "You Now have $remainplus $asset Remaining

";

echo "

"; echo "<a href="index.php?action=main&ses=$ses"><img src="images/home.gif" alt="*"/>Home</a>"; echo " ";

} else if($action=="perstaus") //// THIS ONE IS A NEW OE THAT WON'T SUBSTRACT { echo webhead($uthm,$stitle); echo " "; $ownid[0]=1; $who=$_GET["whoid"]; $whoid=$_GET["who"]; $plusses = mysql_fetch_array(mysql_query("SELECT credits, name FROM ibwf_users WHERE id='".$who."'")); $remainplus = $plusses[0] - 1000; $plussupdate = mysql_query("UPDATE ibwf_users SET plusses='".$remainplus."' WHERE id='".$who."'"); $message = "A User Has visited The $asset Shop and Ordered a Personal Status, the user is ".$whoid." Please Action This request as soon as possible.[br/][small]p.s: this is an automated pm[/small]"; autopm($message, $ownid[0]); echo "Thank You For Choosing To Purchase a Personal Status. Your $asset Have Been Debited and your request sent to the staff for processing. "; echo "We Expect your status will be live within 48hours or less "; echo "You Now have $remainplus $asset Remaining

";

echo "

"; echo "

<a href="index.php?action=main&ses=$ses"><img src="images/home.gif" alt="*"/>Home</a>"; echo " ";

} else if($action=="vipstaus") //// ALSO THIS ONE IS A NEW OE THAT WON'T SUBSTRACT { echo webhead($uthm,$stitle); echo " "; $ownid[0]=1; $who=$_GET["whoid"]; $whoid=$_GET["who"]; $plusses = mysql_fetch_array(mysql_query("SELECT credits, name FROM ibwf_users WHERE id='".$who."'")); $remainplus = $plusses[0] - 1900; $plussupdate = mysql_query("UPDATE ibwf_users SET plusses='".$remainplus."' WHERE id='".$who."'"); $permision = 847; $vip = mysql_query("UPDATE ibwf_users SET pstatus='".$permision."' WHERE id='".$who."'"); $message = "A User Has visited The $asset Shop and Ordered a VIP Status, the user is ".$whoid." Please Action This request as soon as possible.[br/][small]p.s: this is an automated pm[/small]"; autopm($message, $ownid[0]); echo "Thank You For Choosing To Purchase a V.I.P Status. Your $asset Have Been Debited and your request sent to the staff for processing. "; echo "Your status has now been updated. "; echo "$vip"; echo "You Now have $remainplus $asset Remaining

";

echo "

"; echo "

<a href="index.php?action=main&ses=$ses"><img src="images/home.gif" alt="*"/>Home</a>"; echo " "; }

phoenix90 Developer · 113 posts #46

lol i can help just i need to download thou things

THANKS sub, if just tried it, but no luck, can make that piece of script work, if also noticed that the items on will substract from credits, but if i put something new in the shop, say like - A personal VIP status, it wont substract from the users credits, even though it says it does, I have tried everything, can you help me? Wat do u think is wrong??

CODE} else if($action=="peravat") { echo webhead($uthm,$stitle); echo " "; $ownid[0]=1; $who=$_GET["whoid"]; $whoid=$_GET["who"]; $plusses = mysql_fetch_array(mysql_query("SELECT credits, name FROM ibwf_users WHERE id='".$who."'")); $remainplus = $plusses[0] - 1000; $plussupdate = mysql_query("UPDATE ibwf_users SET credits='".$remainplus."' WHERE id='".$who."'"); $message = "A User Has visited The $asset Shop and Ordered a Personal Avatar, the user is ".$whoid." Please Action This request as soon as possible.[br/][small]p.s: this is an automated pm[/small]"; autopm($message, $ownid[0]); echo "Thank You For Choosing To Purchase Your Personal Avatar. Your $asset Have Been Debited and your request sent to the staff for processing. "; echo "We Expect your personal avatar to be ready in 48hours or less "; echo "You Now have $remainplus $asset Remaining

";

echo "

"; echo "<a href="index.php?action=main&ses=$ses"><img src="images/home.gif" alt="*"/>Home</a>"; echo " "; echo webfoot(); } else if($action=="persmile") { echo webhead($uthm,$stitle); echo " "; $ownid[0]=1; $who=$_GET["whoid"]; $whoid=$_GET["who"]; $plusses = mysql_fetch_array(mysql_query("SELECT credits, name FROM ibwf_users WHERE id='".$who."'")); $plussupdate = mysql_query("UPDATE ibwf_users SET credits='".$remainplus."' WHERE id='".$who."'"); $message = "A User Has visited The $asset Shop and Ordered a Personal Smilie, the user is ".$whoid." Please Action This request as soon as possible.[br/][small]p.s: this is an automated pm[/small]"; autopm($message, $ownid[0]); echo "Thank You For Choosing To Purchase Your Personal Smilie. Your $asset Have Been Debited and your request sent to the staff for processing. "; echo "We Expect your Personal Smilie to be ready in 48hours or less "; echo "You Now have $remainplus $asset Remaining

"; echo " "; echo "<a href="index.php?action=main&ses=$ses"><img src="images/home.gif" alt="*"/>Home</a>"; echo " "; echo webfoot(); } else if($action=="pubchat") { echo webhead($uthm,$stitle); echo " "; $ownid[0]=1; $who=$_GET["whoid"]; $whoid=$_GET["who"]; $plusses = mysql_fetch_array(mysql_query("SELECT credits, name FROM ibwf_users WHERE id='".$who."'")); $remainplus = $plusses[0] - 4000; $plussupdate = mysql_query("UPDATE ibwf_users SET credits='".$remainplus."' WHERE id='".$who."'"); $message = "A User Has visited The $asset Shop and Ordered a Public Chatroom, the user is ".$whoid." Please Action This request as soon as possible.[br/][small]p.s: this is an automated pm[/small]"; autopm($message, $ownid[0]); echo "Thank You For Choosing To Purchase Your Own Chatroom. Your $asset Have Been Debited and your request sent to the staff for processing. "; echo "We Expect your Room to be live within 48hours or less "; echo "You Now have $remainplus $asset Remaining

";

echo "

"; echo "<a href="index.php?action=main&ses=$ses"><img src="images/home.gif" alt="*"/>Home</a>"; echo " "; echo webfoot(); } else if($action=="pubforum") { echo webhead($uthm,$stitle); echo " "; $ownid[0]=1; $who=$_GET["whoid"]; $whoid=$_GET["who"]; $plusses = mysql_fetch_array(mysql_query("SELECT credits, name FROM ibwf_users WHERE id='".$who."'")); $remainplus = $plusses[0] - 5000; $plussupdate = mysql_query("UPDATE ibwf_users SET plusses='".$remainplus."' WHERE id='".$who."'"); $message = "A User Has visited The $asset Shop and Ordered a Public Forum, the user is ".$whoid." Please Action This request as soon as possible.[br/][small]p.s: this is an automated pm[/small]"; autopm($message, $ownid[0]); echo "Thank You For Choosing To Purchase a Public Forum. Your $asset Have Been Debited and your request sent to the staff for processing. "; echo "We Expect your forum will be live within 48hours or less "; echo "You Now have $remainplus $asset Remaining

";

echo "

"; echo "<a href="index.php?action=main&ses=$ses"><img src="images/home.gif" alt="*"/>Home</a>"; echo " ";

} else if($action=="perstaus") //// THIS ONE IS A NEW OE THAT WON'T SUBSTRACT { echo webhead($uthm,$stitle); echo " "; $ownid[0]=1; $who=$_GET["whoid"]; $whoid=$_GET["who"]; $plusses = mysql_fetch_array(mysql_query("SELECT credits, name FROM ibwf_users WHERE id='".$who."'")); $remainplus = $plusses[0] - 1000; $plussupdate = mysql_query("UPDATE ibwf_users SET plusses='".$remainplus."' WHERE id='".$who."'"); $message = "A User Has visited The $asset Shop and Ordered a Personal Status, the user is ".$whoid." Please Action This request as soon as possible.[br/][small]p.s: this is an automated pm[/small]"; autopm($message, $ownid[0]); echo "Thank You For Choosing To Purchase a Personal Status. Your $asset Have Been Debited and your request sent to the staff for processing. "; echo "We Expect your status will be live within 48hours or less "; echo "You Now have $remainplus $asset Remaining

";

echo "

"; echo "

<a href="index.php?action=main&ses=$ses"><img src="images/home.gif" alt="*"/>Home</a>"; echo " ";

} else if($action=="vipstaus") //// ALSO THIS ONE IS A NEW OE THAT WON'T SUBSTRACT { echo webhead($uthm,$stitle); echo " "; $ownid[0]=1; $who=$_GET["whoid"]; $whoid=$_GET["who"]; $plusses = mysql_fetch_array(mysql_query("SELECT credits, name FROM ibwf_users WHERE id='".$who."'")); $remainplus = $plusses[0] - 1900; $plussupdate = mysql_query("UPDATE ibwf_users SET plusses='".$remainplus."' WHERE id='".$who."'"); $permision = 847; $vip = mysql_query("UPDATE ibwf_users SET pstatus='".$permision."' WHERE id='".$who."'"); $message = "A User Has visited The $asset Shop and Ordered a VIP Status, the user is ".$whoid." Please Action This request as soon as possible.[br/][small]p.s: this is an automated pm[/small]"; autopm($message, $ownid[0]); echo "Thank You For Choosing To Purchase a V.I.P Status. Your $asset Have Been Debited and your request sent to the staff for processing. "; echo "Your status has now been updated. "; echo "$vip"; echo "You Now have $remainplus $asset Remaining

";

echo "

"; echo "

<a href="index.php?action=main&ses=$ses"><img src="images/home.gif" alt="*"/>Home</a>"; echo " "; }

alesh Lead · 604 posts #47

CODE

$who=$_GET["whoid"]; $plusses = mysql_fetch_array(mysql_query("SELECT credits FROM ibwf_users WHERE id='".$who."'"));

if($plusses<$shop_plusses-limit){ { addvisitor(); addonline(getuid_ses($ses),"Shop",""); echo webhead($uthm,$stitle); echo " ";

echo "You cannot enter the shop because you have less than $shop_plusses-limit plusses. Post in the forums to get more plusses."; echo " </card></wml>"; exit(); }

so any1 knows whats wrong here???

or theres sumthing wrong with this $shop_plusses-limit = "500"; i put it in config file but i got an errors on main page then

eeeeerrr....

phoenix90 Developer · 113 posts #48

CODE

$who=$_GET["whoid"]; $plusses = mysql_fetch_array(mysql_query("SELECT credits FROM ibwf_users WHERE id='".$who."'"));

if($plusses<$shop_plusses-limit){ <<---- BIG PROBLEM - the "{" shouldn't be there { addvisitor(); addonline(getuid_ses($ses),"Shop",""); echo webhead($uthm,$stitle); echo " ";

echo "You cannot enter the shop because you have less than $shop_plusses-limit plusses. Post in the forums to get more plusses."; echo " </card></wml>"; <<---- BIG PROBLEM - The script isn't wml coded, but it has to end in webfoot() or Wapfoot() depending in wich coding it is.. exit(); } so any1 knows whats wrong here???

or theres sumthing wrong with this $shop_plusses-limit = "500"; i put it in config file but i got an errors on main page then

Problems are listed above, i already tried it but doesn't work, sub will help is just be patient External image (may be gone)

alesh Lead · 604 posts #49

Problems are listed above, i already tried it but doesn't work, sub will help is just be patient External image (may be gone)

hmmmm my script is just in wml code..... i think i got no problem with

echo " </card></wml>"; <<---- BIG PROBLEM - The script isn't wml coded, but it has to end in webfoot() or Wapfoot() depending in wich coding it is..

eeeeerrr....

phoenix90 Developer · 113 posts #50

hmmmm my script is just in wml code..... i think i got no problem with

echo " </card></wml>"; <<---- BIG PROBLEM - The script isn't wml coded, but it has to end in webfoot() or Wapfoot() depending in wich coding it is..

Give me your site's url then i'll tell you the problem.. And give a solution.

alesh Lead · 604 posts #51

Give me your site's url then i'll tell you the problem.. And give a solution.

no way hose lol im nt giving my site address here lmao.. its no use 4 u cuz its on my language...

anyway my shop script works, i just wanna close it 4 new users or those who got no 1000 plusses....

eeeeerrr....

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close