View Single Post
  #2  
Old 21st July 2009, 18:05
Ashur's Avatar
Ashur Ashur is offline
Senior Member
 
Join Date: Jun 2008
Posts: 523
Default
when you made the code what's the error are you getting back?
dead site or no effect?

thats ts_custom_bbcode
looked at it and not sure how to use to either but something to do with $text as variable if you try to use, see what hapenns

also it looks like you need to define a function e.g.
Code:
 function code_tag ($code)
  {
    $code = str_replace (array ('<br>', '<br />', '\\"'), array ('', '', '"'), $code);
    $code = strip_front_back_whitespace ($code, 1);
    $blockheight = fetch_block_height ($code);
    return '' . '<div style="margin:20px; margin-top:5px"><div class="codetop">CODE:</div><pre class="codemain" dir="ltr" style="margin: 0px;padding: 6px;border: 1px inset;width: 650px;height: ' . $blockheight . 'px;text-align: left;overflow: auto">' . $code . '</pre></div>';
  }
but then how to relate to that function elsewhere I'm not sure
__________________
Say NO to private tracking
Running TorrentHoster 2.5 on IraqiGate.org
Reply With Quote