|
إنضمامك إلي منتديات استراحات زايد يحقق لك معرفة كل ماهو جديد في عالم الانترنت ...
انضم الينا
#1
| ||
| ||
We want [HoN]10956260[/HoN] to show the stats of a Heroes of Newearth replay in a table. It seemed to work fine: Attachment 44738 but as soon as one edits the post and saves it looks like this: Quote: Caldavar#HeldNameLevelXP/minH20[ZPR]ayoyoayoyo9255H110maxmax9247H16nishin011305H17TooF ood9209H8[ESP]ImBaScot10272L22magayumi11302L105testhon10260L94ha samasari11313L120Joestar13436L38GoZMan14415 Following changes were made to 'includes/class_bbcode.php': BB-Code Tag: Code: // [HON] $tag_list['no_option']['hon'] = array( 'callback' => 'handle_bbcode_hon', 'strip_empty' => true, 'strip_space_after' => 2 ); The callback-function: Code: function handle_bbcode_hon($id) { require_once("honparser.php"); return honparse($id)); } The funtion honparse($id) returns the HTML code of the table to be displayed: Code: function honparse($id){ $data = honreplay($id); $output = "". $data['map'] ."#HeldNameLevelXP/min"; $output = $output . "<img title=\"" . $data['map'] . "\" src=\"images/parser/maps/" . $data['map'] . ".jpg\" alt=\"" . $data['map'] . "\">"; foreach ($data['players'] as $player){ $output = $output . "" . $player['side'][0] . "" . $player['hero'] . "" . $player['name'] . "" . $player['level'] . "" . $player['xppmin'] . ""; } $output = $output . ""; return $output; } The question now is: How can we prevent that the table will be "destroyed" when editing? Or has anyone got another idea how to solve this? Attached Images
|
مواقع النشر (المفضلة) |
| |