bbcodes help

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

1 reply · 518 views · started 17 years ago · 1 min read

2 participants
realcoder Junior · 17 posts #1

i would really like the codeing so bbcodes and smiles can be used in the shoutbox and annoncement on the main page thank you 🙂

brandon rules the codeing industry

Dj-marc Developer · 164 posts #2

use this for the shoutbox

search for this function in core.php

function getshoutbox($sid)
{
  $shbox = "";
  $shbox .= "<b><u>ShoutBox</u></b><br/>";
  $lshout = mysql_fetch_array(mysql_query("SELECT shout, shouter, id  FROM ibwf_shouts ORDER BY shtime DESC LIMIT 1"));
  $shnick = getnick_uid($lshout[1]);
  $shbox .= "<i><a href=\"index.php?action=viewuser&sid=$sid&who=$lshout[1]\">".$shnick."</a></i>: ";
  $shbox .= parsepm($lshout[0], $sid);
  $shbox .= "<br/>";
  $shbox .= "<a href=\"lists.php?action=shouts&sid=$sid\">history</a>, ";
  $shbox .= "<a href=\"index.php?action=shout&sid=$sid\">shout</a>";
  if (ismod(getuid_sid($sid)))
  {
    $shbox .= ", <a href=\"modproc.php?action=delsh&sid=$sid&shid=$lshout[2]\">delete</a>";
  }
  //$shbox .= "<br/>";
  $shbox .= "";
  return $shbox;
}

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