WINDOWS TEAM XTREME


 
Home­Portal­Calendar­Gallery­FAQ­Search­Register­Memberlist­Usergroups­Log in
Share | 
 

 The RW/Lavalair Coding & Snippets (php)

View previous topic View next topic Go down 
AuthorMessage
Raptotech
Admin
Admin


Number of posts: 94
Location: At This Web SIte
Occupation: Student, Web Designer
House: ALL OF THEM !!!
Registration date: 2007-06-11

PostSubject: The RW/Lavalair Coding & Snippets (php)   Mon Jun 11, 2007 12:29 pm

Post all snippets and coding regarding this scripts.


Last edited by on Mon Jun 18, 2007 7:42 am; edited 1 time in total
Back to top Go down
View user profile http://raptotech.progoo.us
Raptotech
Admin
Admin


Number of posts: 94
Location: At This Web SIte
Occupation: Student, Web Designer
House: ALL OF THEM !!!
Registration date: 2007-06-11

PostSubject: Re: The RW/Lavalair Coding & Snippets (php)   Tue Jun 12, 2007 7:03 pm

Enable smilies in the shoutbox


--------------------------------------------------------------------

ADD THIS CODE IN CORE.PHP OF THE RW/LAVALAIR SCRIPT (XHTML) & (WML)
--------------------------------------------------------------------


////////////////////////Function shoutbox

REMOVE THIS CODE:

Code:
$shbox .= htmlspecialchars($lshout[0]);


ADD THIS CODE:

Code:
$shbox .= parsepm($lshout[0],$sid);


Thats It
Back to top Go down
View user profile http://raptotech.progoo.us
Raptotech
Admin
Admin


Number of posts: 94
Location: At This Web SIte
Occupation: Student, Web Designer
House: ALL OF THEM !!!
Registration date: 2007-06-11

PostSubject: Re: The RW/Lavalair Coding & Snippets (php)   Tue Jun 12, 2007 7:05 pm

logout script


--------------------------------------------------------------------

ADD THIS CODE IN INDEX.PHP OF THE RW/LAVALAIR SCRIPT (XHTML)
--------------------------------------------------------------------
Code:
}

else if($action=="logout")
{
  $uid =getuid_sid($sid);
  $whonick = getnick_uid($uid);
  addonline(getuid_sid($sid),"Wants to Log Out","");
  echo "<p>";
  echo "<b>$whonick</b> are you sure you want to log out?<br><br>";
  echo "<a href="index.php?action=main&amp;sid=$sid\"><img src="images/notok.gif\" alt="No\">";
  echo "No</a><br>";
  echo "<a href="index.php?action=logoutyes&amp;sid=$sid\"><img src="images/ok.gif\" alt="Yes\">";
  echo "Yes</a>";
  echo "</p>";
}
else if($action=="logoutyes")
{
  $uid =getuid_sid($sid);
  $whonick = getnick_uid($uid);
  addonline(getuid_sid($sid),"Wants to Log Out","");
  echo "<p>";
  echo "Good bye <b>$whonick</b><br><br>";
  echo "<small>Whe hope you had a great time here, and hope to see you soon</small>";
  $logoutses = mysql_query("DELETE FROM ibwf_ses WHERE uid='".$uid."'");
  $logoutonline = mysql_query("DELETE FROM ibwf_online WHERE userid='".$uid."'"); 
  echo "<br><br><a href="ADD LINK HERE\"><img src="images/ok.gif\" alt="OK\">";
  echo "Click Here To Continue</a>";
  echo "</p>";
}
else{
Back to top Go down
View user profile http://raptotech.progoo.us
 

The RW/Lavalair Coding & Snippets (php)

View previous topic View next topic Back to top 
Page 1 of 1

Permissions of this forum:You cannot reply to topics in this forum
WINDOWS TEAM XTREME :: Computers & Hardware :: Coding, Web & Graphic Design :: Programming-