shop error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    shop error

    hi every as no one has helped me to sort a shop out i am recoding one to fit my site i have got this error


    Code:
     $ownid[0]=1;
         $who=$_GET["uid"];
        $uid=$_GET[".getuid_sid($sid)."];
        $gps = mysql_fetch_array(mysql_query("SELECT points FROM profiles WHERE uid='".getuid_sid($sid)."'"));
    	;
    	$inbox = "A User Has visited The Plusses Shop and Ordered a Personal Avatar, the user is ".$whoid." Please Action This request as soon as possible.[br/][small][i]p.s: this is an automated pm[/i][/small]\n";
    	autopm($inbox, $ownid[0]);
    this will not send a inbox to the owner or any thing i think its to do with this as well

    Code:
    $ownid[0]=1;
         $who=$_GET["uid"];
        $uid=$_GET[".getuid_sid($sid)."];
        $gps = mysql_fetch_array(mysql_query("SELECT points FROM profiles WHERE uid='".getuid_sid($sid)."'"));
    i am using a wapdesire v_2 script

    thanks to any one that can help me
    HELP THEM WHO HELPS YOU



    i only work on wapdesire v_2 coding only

    #2
    autopm($inbox, $ownid[0]); <---
    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...
    _______
    Info & Tips
    php.net
    w3schools.com

    Comment


      #3
      Originally posted by subzero View Post
      autopm($inbox, $ownid[0]); <---
      here are all the pages i am having problems with the auto message to the owner please can some one help me sort it so it sends the pm to the main owner which is id 1
      Attached Files
      HELP THEM WHO HELPS YOU



      i only work on wapdesire v_2 coding only

      Comment


        #4
        Code:
        $msg = "A User Has visited The Plusses Shop and Ordered a Personal Avatar, the user is ".$whoid." Please Action This request as soon as possible.[br/][small][I]p.s: this is an automated pm[/I][/small]\n";
        Put that in your functions
        Code:
        function shoppm($msg){
        mysql_query("INSERT INTO inbox SET text='".$msg."', byid=2, toid=2, unread='1', timesent='".time()."'");
        }
        then put

        Code:
        shoppm($msg);
        Last edited by crazybrumi; 04.12.09, 19:01.
        Want something coded email me at sales@webnwaphost.com for a prices.




        Comment


          #5
          Originally posted by NickGriffin View Post
          Code:
          $msg = "A User Has visited The Plusses Shop and Ordered a Personal Avatar, the user is ".$whoid." Please Action This request as soon as possible.[br/][small][I]p.s: this is an automated pm[/I][/small]\n";
          Put that in your functions
          Code:
          function shoppm($msg){
          mysql_query("INSERT INTO inbox SET text='".$msg."', byid=2, toid=2, unread='1', timesent='".time()."'");
          }
          then put

          Code:
          shoppm($msg);
          thanks mate that works its just the bit where it says
          Code:
          the user is ".$whoid." Please Action This request as soon as possible
          it does not show who has requested the item
          HELP THEM WHO HELPS YOU



          i only work on wapdesire v_2 coding only

          Comment


            #6
            Originally posted by brand View Post
            thanks mate that works its just the bit where it says
            Code:
            the user is ".$whoid." Please Action This request as soon as possible
            it does not show who has requested the item

            right ppl with help from brumi i have got this far with the shop but got one thing thats not working when a request has been sent it dont show who its off

            Code:
            <?php
            define('WCS',true);
            include('./core/main.inc');
            header_type();
            cleardata();
            if(ipbanned(ip(),browser())){
            if(!shield(getuid_sid($sid))){
            echo head_tag("Ip Blocked!!!",0,0);
            echo ipbanned_msg();
            echo foot_tag();
            exit();
            }
            }
            if(!islogged($sid)){
            echo head_tag("Error!!!",0,0);
            echo session_expired();
            echo foot_tag();
            exit();
            }
            if(banned(getuid_sid($sid))){
            echo head_tag("Error!!!",1,getnick_sid($sid));
            echo banned_msg($sid);
            echo foot_tag();
            exit();
            }
            mysql_query("UPDATE users SET browser='".browser()."', ipaddress='".ip()."', host='".subno()."' WHERE 
            
            id='".getuid_sid($sid)."'");
            
            /////////////////////////Extraz/////////////////////////
            
            addonline(getuid_sid($sid),"shop","");
            echo head_tag(getnick_sid($sid)."@shop",1,getnick_sid($sid));
              $main.="<p align=\"center\">\n";
                $ownid[0]=2;
                 $who=$_GET["whoid"];
                $whoid=$_GET["who"];
            $who = getnick_uid($who);
                $points = mysql_fetch_array(mysql_query("SELECT points FROM profiles WHERE uid='".getnick_sid($sid)."'"));
            	;
            	$msg = "[COLOR="Red"]A User Has visited The Plusses Shop and Ordered a Personal Avatar, the user is $nick Please Action This request as soon as possible.[br/][small][i]p.s: this is an automated pm[/i][/small]\n";[/COLOR]
            	shoppm($msg);
            	
            	$main.="Thank You For Choosing To Purchase Your Personal Avatar. Your request sent to the staff for processing.<br/>\n";
                $main.="We Expect your personal avatar to be ready in 48hours or less<br/></p>\n";   
                $main.="<p align=\"center\">\n";
              $L1="$sixkey<a $key6 href=\"./inbox/inbox.php?sid=$sid\">Inbox</a>";
            $L2="$sevenkey<a $key7 href=\"./buds/buds.php?sid=$sid\">BuddyList</a>";
            $L3="$eightkey<a $key8 href=\"./chat/public.php?sid=$sid\">Chat</a>";
            $L4="$ninekey<a $key9 href=\"./forums/forums.php?sid=$sid\">Forums</a>";
            $L5="$zerokey<a $key0 href=\"./main.php?sid=$sid\"><img src=\"./images/home.gif\" alt=\"\"/>Main Menu</a>";
            echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);
            echo foot_tag();
            ?>

            thanks to any one that can help fix this
            HELP THEM WHO HELPS YOU



            i only work on wapdesire v_2 coding only

            Comment

            Working...
            X