Inbox Forwarding

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

28 replies · 2,513 views · started 19 years ago · 1 min read

TL;DR · summary of 28 replies
  • - The question asked for the codes of inbox forwarding from one user to another in Lavalair WML script.
  • - The code approach was suggested by providing a basic structure and steps, but not full ready-made codes due to complexity and personal learning preferences.
  • - It was concluded that none provided the exact readymade codes requested, as they focused on guiding how to implement it rather than giving complete scripts.

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

linkrx7 #21

i dont use inboxproc its all in inbox.php actions are in there and the modes are the bits that are usually in inboxproc didnt see need in making them seperate

Guest #22

add this into your inbox.php file you wanted the steps and here they are ..

CODE else if($action=="fwd") { addonline(getuid_sid($sid),"Forwarding PM",""); echo "<card id="main" title="Inbox">"; echo " ";

$whonick = getnick_uid($who); $pmid = $_GET['pmid']; $pmtxt = mysql_fetch_array(mysql_query("SELECT text FROM ibwf_private WHERE id='".$pmid."'")); $fwdmsg = $pmtxt[0];

echo "Send PM to:

"; echo "User: <input name="who" format="*x" maxlength="15"/> ";

if($fwdmsg !== ""){ $pmtext = parsepm($fwdmsg, $sid); $pmtext = str_replace("/faq","<a href="lists.php?action=faqs&sid=$sid">Users Questions</a>", $pmtext); $pmtext = str_replace("/help","<a href="help.php?sid=$sid">Our help menu</a>", $pmtext); $pmtext = str_replace("/reader",getnick_uid($pminfo[3]), $pmtext); echo $pmtext; }else{ echo "Text: <input name="pmtext" maxlength="500"/> "; }

echo "<anchor>SEND<go href="inbxproc.php?action=sendto&sid=$sid" method="post">"; echo "<postfield name="pmtext" value="$(pmtext)"/>"; echo "<postfield name="pmtou" value="$(who)"/>"; echo "</go></anchor>

";

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

echo "Home</a>"; echo " "; echo "</card>"; }

and add this link to your inbox.php?$action=="readpm"

  echo "<a href=\"inbxproc.php?action=fwd&sid=$sid&pmid=$pmid\">Forward PM</a>";

i can put it into the files for you, but remember that none of the code here has been tested and i wont be able to test the whole file for you etc ..

nice work i made it activated by some edition coz u told me to add this code under $readpm

echo "<a href=\"inbxproc.php?action=fwd&sid=$sid&pmid=$pmid\">Forward PM</a>";

on the other hand u told me to add ($action=="fwd") inbox.php +i needed to add amp; after &

Guest #23

add this into your inbox.php file you wanted the steps and here they are ..

CODE else if($action=="fwd") { addonline(getuid_sid($sid),"Forwarding PM",""); echo "<card id="main" title="Inbox">"; echo " ";

$whonick = getnick_uid($who); $pmid = $_GET['pmid']; $pmtxt = mysql_fetch_array(mysql_query("SELECT text FROM ibwf_private WHERE id='".$pmid."'")); $fwdmsg = $pmtxt[0];

echo "Send PM to:

"; echo "User: <input name="who" format="*x" maxlength="15"/> ";

if($fwdmsg !== ""){ $pmtext = parsepm($fwdmsg, $sid); $pmtext = str_replace("/faq","<a href="lists.php?action=faqs&sid=$sid">Users Questions</a>", $pmtext); $pmtext = str_replace("/help","<a href="help.php?sid=$sid">Our help menu</a>", $pmtext); $pmtext = str_replace("/reader",getnick_uid($pminfo[3]), $pmtext); echo $pmtext; }else{ echo "Text: <input name="pmtext" maxlength="500"/> "; }

echo "<anchor>SEND<go href="inbxproc.php?action=sendto&sid=$sid" method="post">"; echo "<postfield name="pmtext" value="$(pmtext)"/>"; echo "<postfield name="pmtou" value="$(who)"/>"; echo "</go></anchor>

";

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

echo "Home</a>"; echo " "; echo "</card>"; }

and add this link to your inbox.php?$action=="readpm"

  echo "<a href=\"inbxproc.php?action=fwd&sid=$sid&pmid=$pmid\">Forward PM</a>";

i can put it into the files for you, but remember that none of the code here has been tested and i wont be able to test the whole file for you etc ..

nice work i made it activated by some edition coz u told me to add this code under $readpm inbox.php

echo "<a href=\"inbxproc.php?action=fwd&sid=$sid&pmid=$pmid\">Forward PM</a>";

on the other hand u told me to add ($action=="fwd") inbox.php pmpl +i needed to add amp; after &

Guest #24

i dont use inboxproc its all in inbox.php actions are in there and the modes are the bits that are usually in inboxproc didnt see need in making them seperate

yeah, i think the idea is to keep filesizes down - i mean, inboxproc is a pretty large file on its own, without merging in extra features and inbox.php lol

nice work i made it activated by some edition coz u told me to add this code under $readpm

echo "<a href=\"inbxproc.php?action=fwd&sid=$sid&pmid=$pmid\">Forward PM</a>";

on the other hand u told me to add ($action=="fwd") inbox.php +i needed to add amp; after &

im glad you like it =] BUT its only very simple and there are problems with it like you pointed out with the & & thing (my bad) so please just use it as a starting point and dont rely on it permanently

have you managed to get it working yet?

Guest #25

yeah, i think the idea is to keep filesizes down - i mean, inboxproc is a pretty large file on its own, without merging in extra features and inbox.php lol im glad you like it =] BUT its only very simple and there are problems with it like you pointed out with the & & thing (my bad) so please just use it as a starting point and dont rely on it permanently

have you managed to get it working yet?

yeah i managed it,but there is little problem,like when the forwarded pm does nt show to the 1st pm sender name i mean i want it pm by $uid forwarded from $uid

plz fix it

Guest #27

yeah i managed it,but there is little problem,like when the forwarded pm does nt show to the 1st pm sender name i mean i want it pm by $uid forwarded from $uid

plz fix it

erm, maybe ill do it later but ive been really busy later .. how much sql do you know? because if you wanted to doit yourself, all you'd have to do is extract the original sender of the pmid (in the url) then add it into the file External image (may be gone)

i merged inbox and inboxproc into inbox.php and its only 35kb External image (may be gone))

lmaoo .. ONLY .. i like my files below 10kb lmao .. that way, its both easier to edit (as long as its all logically split), and safer because if one file leaks out or breaks, its only a small portion of the script External image (may be gone) ..

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