PM Preview (for lava)

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

    PM Preview (for lava)

    I want to make a pm preview system for WML lava script. By using it users can see their pm's preview before sending. To make it I used WML switching system. I made another card after "readpm action" at inbox.php . I made it successfully but problem is that although I put the pmtext under parsepm() function but in the pm preview page smilies, bbcode n pmcard isn't working! It would be greateful if any coder can say on how to work smilies/bbcode/pmcard in the pm preview page. By hook or by crook I want to do this. So tell me any method. Thanks.
    The code that I have used is below:
    Code:
     
    else if($action=="readpm")
        {  
        echo "<card id=\"main\" title=\"Read PM\">";
       .............................................................
      ..............................................................
       ////switching CARD 2
        echo "<card id=\"c2\" title=\"Preview Message\">";
        echo "<p align=\"center\" mode=\"wrap\"><small>";
        echo "<b>Your PM Preview:</b><br/>";
        $mntxt = "$(pmtext)";
        echo parsepm($mntxt);
        echo "<br/><a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";
        echo "</small>";
        echo "</p>";
        echo "</card>";
        echo "</wml>";
        exit();
    }
    Last edited by anderson; 02.05.09, 02:59. Reason: CODE EDITION
    Wait...
    sigpic

    #2
    if ur register globals are on
    It wil be
    $mntext = $pmtext;

    else if they are off then use

    $pmtext = $_POST['pmtext'];
    $pmtext = parsepm($pmtext, $sid);


    try this
    Last edited by Anshul; 02.05.09, 07:34.

    Comment


      #3
      My register globals r off. I can see my pm preview but smilies r not working. This is the problem. I used that what u said but no result. Thanks. @ spook
      Wait...
      sigpic

      Comment


        #4
        Originally posted by anderson View Post
        My register globals r off. I can see my pm preview but smilies r not working. This is the problem. I used that what u said but no result. Thanks. @ spook
        try this
        Code:
        $pmtext = parsepm($pmtext, $sid);
        lava parsepm function have two arguments one is of text and another is of sid u only passing text that can be the reason .

        Comment


          #5
          Originally posted by Spook View Post
          try this
          Code:
          $pmtext = parsepm($pmtext, $sid);
          lava parsepm function have two arguments one is of text and another is of sid u only passing text that can be the reason .
          I tried with the function very well. but no result. I think smilies wont work before sending the data to database.
          Wait...
          sigpic

          Comment


            #6
            any idea

            so we haven`t got the complete code guys
            http://myfacepals.com
            MYFACEPALS SOCIAL NETWORKsigpic

            Comment


              #7
              Originally posted by Spook View Post
              try this
              Code:
              $pmtext = parsepm($pmtext, $sid);
              lava parsepm function have two arguments one is of text and another is of sid u only passing text that can be the reason .
              Hey, I am successful!! Actually I had a mistake in sending data to the 2nd card. It's now ok. Thanks. @ spook
              Wait...
              sigpic

              Comment

              Working...
              X