PM Preview (for lava)

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

6 replies · 731 views · started 17 years ago · 1 min read

3 participants
anderson Developer · 146 posts #1

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:

 
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&sid=$sid\">Home</a>";
    echo "</small>";
    echo "</p>";
    echo "</card>";
    echo "</wml>";
    exit();
}

Wait...

Anshul Senior · 296 posts #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

anderson Developer · 146 posts #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...

Anshul Senior · 296 posts #4

anderson wrote: 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

$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 .

anderson Developer · 146 posts #5

Spook wrote: try this

$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...

anderson Developer · 146 posts #7

Spook wrote: try this

$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...

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