-
[RELEASE] Antrix web CMS by AXE
CMS 2.0 BETA available for DOWNLOAD Go here: http://www.webwow.totalh.com/viewtopic.php?pid=1599
DEMO:
http://www.webwow.totalh.com/viewtopic.php?id=9
Download version 1.4:
Link: http://rapidshare.com/files/13729072...1.4-1.rar.html
Alternate Link: http://filebeam.com/be21c3a4b3edc813df6549d5a24c57ea
DOWNLOAD UPDATES (1.4 to 1.91)
Images:
http://img167.imageshack.us/my.php?i...9717634pa3.jpg
http://img528.imageshack.us/my.php?i...1437473na9.jpg
http://img99.imageshack.us/my.php?image=97648799md6.jpg
http://img352.imageshack.us/my.php?i...7676944ia0.jpg
http://img352.imageshack.us/my.php?i...0324388sc8.jpg
http://img366.imageshack.us/my.php?i...8636353ki9.jpg
SQL structure fixed:
Code:
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for b_banemails
-- ----------------------------
DROP TABLE IF EXISTS `b_banemails`;
CREATE TABLE `b_banemails` (
`emailid` bigint(20) NOT NULL auto_increment,
`email` varchar(255) NOT NULL default '',
PRIMARY KEY (`emailid`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
-- ----------------------------
-- Table structure for b_banip
-- ----------------------------
DROP TABLE IF EXISTS `b_banip`;
CREATE TABLE `b_banip` (
`ipid` bigint(20) NOT NULL auto_increment,
`ip` varchar(255) NOT NULL default '',
PRIMARY KEY (`ipid`)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
-- ----------------------------
-- Table structure for b_categories
-- ----------------------------
DROP TABLE IF EXISTS `b_categories`;
CREATE TABLE `b_categories` (
`categoryid` bigint(20) NOT NULL auto_increment,
`categoryname` varchar(255) NOT NULL default '',
`catsort` bigint(20) NOT NULL default '0',
PRIMARY KEY (`categoryid`)
) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;
-- ----------------------------
-- Table structure for b_comments
-- ----------------------------
DROP TABLE IF EXISTS `b_comments`;
CREATE TABLE `b_comments` (
`id` bigint(20) NOT NULL auto_increment,
`poster` varchar(255) collate latin1_general_ci NOT NULL,
`content` text collate latin1_general_ci NOT NULL,
`newsid` int(11) NOT NULL,
`timepost` varchar(100) collate latin1_general_ci NOT NULL,
`datepost` varchar(100) collate latin1_general_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=35 DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-- ----------------------------
-- Table structure for b_forums
-- ----------------------------
DROP TABLE IF EXISTS `b_forums`;
CREATE TABLE `b_forums` (
`ID` bigint(20) NOT NULL auto_increment,
`parentID` bigint(20) NOT NULL default '0',
`name` varchar(255) NOT NULL default '',
`description` tinytext NOT NULL,
`numtopics` bigint(20) NOT NULL default '0',
`numposts` bigint(20) NOT NULL default '0',
`lastpost` varchar(255) NOT NULL default '',
`sort` bigint(20) NOT NULL default '0',
`ficon` bigint(20) NOT NULL default '0',
`lastpostuser` varchar(255) NOT NULL default '',
`permission_min` int(11) NOT NULL default '0',
`permission_post` int(11) NOT NULL default '0',
`permission_reply` int(11) NOT NULL default '0',
`lastposttime` bigint(20) NOT NULL default '0',
PRIMARY KEY (`ID`)
) ENGINE=MyISAM AUTO_INCREMENT=19 DEFAULT CHARSET=latin1;
-- ----------------------------
-- Table structure for b_friends
-- ----------------------------
DROP TABLE IF EXISTS `b_friends`;
CREATE TABLE `b_friends` (
`id` bigint(21) NOT NULL auto_increment,
`userid` bigint(21) NOT NULL,
`link1` tinytext collate latin1_general_ci NOT NULL,
`link2` tinytext collate latin1_general_ci NOT NULL,
`link3` tinytext collate latin1_general_ci NOT NULL,
`link4` tinytext collate latin1_general_ci NOT NULL,
`link5` tinytext collate latin1_general_ci NOT NULL,
`ip` tinytext collate latin1_general_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=77 DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-- ----------------------------
-- Table structure for b_games
-- ----------------------------
DROP TABLE IF EXISTS `b_games`;
CREATE TABLE `b_games` (
`id` int(22) NOT NULL auto_increment,
`username` varchar(44) collate latin1_general_ci NOT NULL default 'Guest',
`roulette1` int(12) NOT NULL default '0',
`roulette2` int(12) NOT NULL default '0',
`roulette3` int(12) NOT NULL default '0',
`roulette4` int(12) NOT NULL default '0',
`roulette5` int(12) NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=18 DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-- ----------------------------
-- Table structure for b_news
-- ----------------------------
DROP TABLE IF EXISTS `b_news`;
CREATE TABLE `b_news` (
`id` bigint(20) NOT NULL auto_increment,
`title` varchar(255) collate latin1_general_ci NOT NULL,
`content` longtext collate latin1_general_ci NOT NULL,
`iconid` int(11) NOT NULL,
`timepost` varchar(100) collate latin1_general_ci NOT NULL,
`datepost` varchar(100) collate latin1_general_ci NOT NULL,
`author` varchar(50) collate latin1_general_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=20 DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-- ----------------------------
-- Table structure for b_pms
-- ----------------------------
DROP TABLE IF EXISTS `b_pms`;
CREATE TABLE `b_pms` (
`pmID` bigint(20) NOT NULL auto_increment,
`sender` bigint(20) NOT NULL default '0',
`receiver` bigint(20) NOT NULL default '0',
`therealtime` bigint(20) NOT NULL default '0',
`subject` varchar(255) NOT NULL default '',
`message` mediumtext NOT NULL,
`hasread` int(11) NOT NULL default '0',
`vartime` varchar(255) NOT NULL default '',
PRIMARY KEY (`pmID`)
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;
-- ----------------------------
-- Table structure for b_posts
-- ----------------------------
DROP TABLE IF EXISTS `b_posts`;
CREATE TABLE `b_posts` (
`ID` bigint(21) NOT NULL auto_increment,
`title` varchar(60) NOT NULL default '',
`author` bigint(20) NOT NULL default '0',
`telapsed` bigint(21) NOT NULL default '0',
`timepost` varchar(100) NOT NULL default '',
`numreplies` int(10) NOT NULL default '0',
`post` longtext NOT NULL,
`threadparent` bigint(21) NOT NULL default '0',
`lastpost` varchar(255) NOT NULL default '',
`postforum` bigint(20) NOT NULL default '0',
`views` bigint(20) NOT NULL default '0',
`nosmilies` int(11) NOT NULL default '0',
`value` int(11) NOT NULL default '0',
`ipaddress` varchar(255) NOT NULL default '',
`locked` int(11) NOT NULL default '0',
PRIMARY KEY (`ID`)
) ENGINE=MyISAM AUTO_INCREMENT=65 DEFAULT CHARSET=latin1;
-- ----------------------------
-- Table structure for b_ranks
-- ----------------------------
DROP TABLE IF EXISTS `b_ranks`;
CREATE TABLE `b_ranks` (
`rankID` bigint(20) NOT NULL auto_increment,
`rankname` varchar(255) NOT NULL default '',
`postsneeded` bigint(20) NOT NULL default '0',
PRIMARY KEY (`rankID`)
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;
-- ----------------------------
-- Table structure for b_shop
-- ----------------------------
DROP TABLE IF EXISTS `b_shop`;
CREATE TABLE `b_shop` (
`id` int(11) NOT NULL auto_increment,
`sep` varchar(3) collate latin1_general_ci NOT NULL default '0',
`name` text collate latin1_general_ci NOT NULL,
`itemid` varchar(20) collate latin1_general_ci NOT NULL,
`color` tinytext collate latin1_general_ci NOT NULL,
`cat` varchar(20) collate latin1_general_ci NOT NULL default '0',
`sort` varchar(10) collate latin1_general_ci NOT NULL default '0',
`cost` varchar(11) collate latin1_general_ci NOT NULL default '0',
`charges` varchar(11) collate latin1_general_ci NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-- ----------------------------
-- Table structure for b_templates
-- ----------------------------
DROP TABLE IF EXISTS `b_templates`;
CREATE TABLE `b_templates` (
`templateid` bigint(20) NOT NULL auto_increment,
`templatepath` varchar(255) NOT NULL default '',
PRIMARY KEY (`templateid`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
-- ----------------------------
-- Table structure for b_users
-- ----------------------------
DROP TABLE IF EXISTS `b_users`;
CREATE TABLE `b_users` (
`userID` bigint(21) NOT NULL auto_increment,
`username` varchar(60) NOT NULL default '',
`password` varchar(255) NOT NULL default '',
`status` int(20) NOT NULL default '0',
`posts` bigint(20) NOT NULL default '0',
`email` varchar(255) NOT NULL default '',
`validated` int(11) NOT NULL default '0',
`keynode` bigint(21) NOT NULL default '0',
`sig` tinytext NOT NULL default '',
`banned` varchar(255) NOT NULL default 'No',
`rank` varchar(255) NOT NULL default '0',
`usepm` int(11) NOT NULL default '1',
`AIM` varchar(50) NOT NULL default '',
`ICQ` varchar(50) NOT NULL default '',
`location` varchar(255) NOT NULL default '',
`showprofile` smallint(6) NOT NULL default '1',
`lastposttime` bigint(20) NOT NULL default '0',
`tsgone` bigint(20) NOT NULL default '0',
`oldtime` bigint(20) NOT NULL default '0',
`avatar` varchar(255) NOT NULL default '',
`photo` varchar(255) NOT NULL default '',
`rating` bigint(255) NOT NULL default '0',
`totalvotes` bigint(20) NOT NULL default '0',
`votedfor` longtext NOT NULL default '',
`rps` int(11) NOT NULL default '1',
`friend` int(11) NOT NULL default '3',
`lasttime` bigint(20) NOT NULL default '0',
`templateclass` bigint(20) NOT NULL default '1',
`charid` bigint(20) NOT NULL default '0',
`honours` bigint(255) NOT NULL default '0',
`points` bigint(255) NOT NULL default '0',
`ranktitle` varchar(255) NOT NULL default 'No Rank',
`ranknum` int(11) NOT NULL default '0',
`buff` bigint(255) NOT NULL default '0',
`money` bigint(255) NOT NULL default '0',
`pprof1` varchar(100) NOT NULL default 'Verdana, Arial, Helvetica, sans-serif',
`pprof2` varchar(150) NOT NULL default '#cccccc',
PRIMARY KEY (`userID`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
-- ----------------------------
-- Table structure for b_vote
-- ----------------------------
DROP TABLE IF EXISTS `b_vote`;
CREATE TABLE `b_vote` (
`id` bigint(21) NOT NULL auto_increment,
`userid` bigint(21) NOT NULL,
`siteid` bigint(21) NOT NULL,
`timevoted` bigint(21) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-- ----------------------------
-- Table structure for guestsonline
-- ----------------------------
DROP TABLE IF EXISTS `guestsonline`;
CREATE TABLE `guestsonline` (
`guestid` bigint(20) NOT NULL auto_increment,
`guestip` varchar(255) NOT NULL default '',
`time` bigint(20) NOT NULL default '0',
PRIMARY KEY (`guestid`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
-- ----------------------------
-- Records
-- ----------------------------
INSERT INTO `b_banemails` VALUES ('3', 'bugmenot.com');
INSERT INTO `b_categories` VALUES ('6', 'General & Introductions', '2');
INSERT INTO `b_categories` VALUES ('5', 'Announcements', '1');
INSERT INTO `b_categories` VALUES ('7', 'Applications', '4');
INSERT INTO `b_categories` VALUES ('8', 'Realm Chat', '3');
INSERT INTO `b_forums` VALUES ('13', '6', 'General Chat', 'Anything related to World of Warcraft and our server.', '0', '0', '', '1', '5', '', '-1', '-1', '-1', '0');
INSERT INTO `b_forums` VALUES ('14', '6', 'Greetings & Goodbyes', 'If you are new, this is a great place to introduce yourself to the community! If you\'re leaving the community say goodbye to all your wowtastic friends!', '0', '0', '', '2', '45', '', '-1', '-1', '-1', '0');
INSERT INTO `b_forums` VALUES ('10', '5', 'Site Announcements', 'Check for major updates on our website/forums here.', '15', '21', 'Wed Aug 13, 2008 21:07:14', '1', '28', 'Axe', '-1', '1', '1', '1218658035');
INSERT INTO `b_forums` VALUES ('11', '5', 'Server Announcements', 'Check for major announcements for our servers here.', '0', '0', '', '2', '28', '', '-1', '1', '-1', '0');
INSERT INTO `b_forums` VALUES ('12', '5', 'Rules & Regulations', 'This is where you\'ll find the Rules / Regulations for both the forums and the server. Make sure you read this first!', '0', '0', '', '3', '20', '', '-1', '1', '-1', '0');
INSERT INTO `b_forums` VALUES ('15', '6', 'Suggestions & Comments', 'Give us your opinion or suggestion on how we can improve this WoW Server!', '0', '0', '', '3', '41', '', '-1', '-1', '-1', '0');
INSERT INTO `b_forums` VALUES ('16', '8', 'General Chat', 'Discuss about happenings inside WoW realm.', '0', '0', '', '4', '59', '', '-1', '-1', '-1', '0');
INSERT INTO `b_forums` VALUES ('17', '7', 'GM Applications', 'Do you have what it takes to be a GM? Apply here!', '0', '0', '', '1', '47', '', '-1', '-1', '-1', '0');
INSERT INTO `b_forums` VALUES ('18', '7', 'Community Helper Applications', 'If you have special skills or talents please apply here if you\'d like to help the this Community.', '0', '0', '', '2', '54', '', '-1', '-1', '-1', '0');
INSERT INTO `b_news` VALUES ('19', 'A New Server Opened', 'Success your new Web WoW CMS by AXE has been successfully installed. Congrats :-)\r\n\r\nBy default community board have some categories and forums already created, so it will be easier for new admins to create new server. Admin can modify/delete forums etc. thru Admin Panel.\r\n\r\nThis is first \"news\" so you will wish to delete it, you can do it by going to Admin Panel and then clicking on \"Edit News\" link on the left.\r\n\r\nThere is main multiple main page layouts available for example:\r\n<img src=\"documentation/layouts.gif\" />\r\n<a href=\'home2.php\'>Check second one here</a>\r\nYou can setup layout by renaming file from home2.php to home.php', '5', '2008813151929', 'Aug-13-2008', 'Axe (creator)');
INSERT INTO `b_shop` VALUES ('10', '0', 'Jump-a-tron 4000 Key', '27808', '2', '1', '1', '10', '0');
INSERT INTO `b_templates` VALUES ('1', 'default');
INSERT INTO `b_users` VALUES ('1', 'Guest', '', '0', '0', '', '0', '0', '', 'no', '0', '1', '', '', '', '1', '0', '0', '0', '', '', '0', '0', '', '1', '0', '0', '1', '0', '0', '0', 'No Rank', '0', '0', '0', 'Verdana, Arial, Helvetica, sans-serif', '#cccccc');
INSERT INTO `guestsonline` VALUES ('2', '127.0.0.1', '1218637186');
-
Re: [RELEASE] Antrix web CMS by AXE
wow! that's a really cool thing!
Thank you very much! It saved me a lot of work.
One question:
May I change the design of it a little bit ? (no Copyright deletion only the design :happy:)
-
Re: [RELEASE] Antrix web CMS by AXE
Quote:
Originally Posted by
Damolus
wow! that's a really cool thing!
Thank you very much! It saved me a lot of work.
One question:
May I change the design of it a little bit ? (no Copyright deletion)
yes ofc
-
Re: [RELEASE] Antrix web CMS by AXE
-
Re: [RELEASE] Antrix web CMS by AXE
Can you upload CMS to other site? Like rapidshare. Because when i've got 70% I got an error saying - The source could not be read.
Thanks.
-
Re: [RELEASE] Antrix web CMS by AXE
-
Re: [RELEASE] Antrix web CMS by AXE
Nice Work Dude..but i have a little probs with reg a head admin..i run forum/admin/register.php..But when that are done som i came to reguser.php and then says No database selected..i think register.php or reguser.php have wrong code or missing code..:S.:D
-
Re: [RELEASE] Antrix web CMS by AXE
Quote:
Originally Posted by
serial
Nice Work Dude..but i have a little probs with reg a head admin..i run forum/admin/register.php..But when that are done som i came to reguser.php and then says No database selected..i think register.php or reguser.php have wrong code or missing code..:S.:D
You can register normal acc and put (using ex sqljog) "status" to 4, in forum db," b_users" table, this will "promote" user to administrator :)
-
Re: [RELEASE] Antrix web CMS by AXE
Okey..thx it`s working..:D:D:D
-
Re: [RELEASE] Antrix web CMS by AXE
So any one of you guys can upload anywhere there website files?
-
Re: [RELEASE] Antrix web CMS by AXE
yes..i have already uploaded that to rapidshare and below here are the download link..
Antrix web CMS by AXE
anybody can put the download link to the first post if you will..:kisss:
-
Re: [RELEASE] Antrix web CMS by AXE
-
Re: [RELEASE] Antrix web CMS by AXE
hi.great web but my PvP panel doesnt show any top5 players:/ and where do i edit links and names HOME,FORUM,ONLINE STORE,SUPPORT-where do i change links which are in these dropdown menus ?
-
Re: [RELEASE] Antrix web CMS by AXE
Quote:
Originally Posted by
ismails
hi.great web but my PvP panel doesnt show any top5 players:/ and where do i edit links and names HOME,FORUM,ONLINE STORE,SUPPORT-where do i change links which are in these dropdown menus ?
to change dropdowns, you mast edit inc-footer.php
pvp panel might be wrong becouse 2.4 antrix db might be changed a bit, check hotdocs/top/topkill.php
for that
-
Re: [RELEASE] Antrix web CMS by AXE
hey how do i disable PvP and status panel at the main age...
PvP panel is out-of-date
Status panel which is under the PvP panel is alos not working
can you please tell me how to disable them or make them working?
-
Re: [RELEASE] Antrix web CMS by AXE
Quote:
Originally Posted by
ismails
hey how do i disable PvP and status panel at the main age...
PvP panel is out-of-date
Status panel which is under the PvP panel is alos not working
can you please tell me how to disable them or make them working?
edit home.php open with dreamweaver you can see there blocks as whole table, remove that and you will remove block
-
Re: [RELEASE] Antrix web CMS by AXE
Update to v1.1 released ( 2.4.x antrix db compatible )
Check first post for link.
-
Re: [RELEASE] Antrix web CMS by AXE
hy there , i don't know what did i do wrong but when i want to login into the admin panel it keeps saying me this : There were invalid characters in your name. Go back and try again.
and i made the account in sqlyog , and i put 4 at the status
could somebody help me please ?
thank you in advance!
-
Re: [RELEASE] Antrix web CMS by AXE
Quote:
Originally Posted by
buttler1992
hy there , i don't know what did i do wrong but when i want to login into the admin panel it keeps saying me this : There were invalid characters in your name. Go back and try again.
and i made the account in sqlyog , and i put 4 at the status
could somebody help me please ?
thank you in advance!
dont make acc in sqljog, go to register page and register ur self, then go to sqljog and edit that "status"
second, don't login in to admin panel, login normally to site thru main page (home.php) and then there will be link shown "Admin Panel" click that link and ur in.
Admin panel login form don't work btw, thats the problem that is bugging u so don't use it.
-
Re: [RELEASE] Antrix web CMS by AXE
ohh okay , thank you very much :D , uhm.. if i have problems , i'll post them , and btw ... the site is awesome !
ohh yes , it tells me this when i want to register : Could not grab bad emails
-
Re: [RELEASE] Antrix web CMS by AXE
Quote:
Originally Posted by
buttler1992
ohh okay , thank you very much :D , uhm.. if i have problems , i'll post them , and btw ... the site is awesome !
ohh yes , it tells me this when i want to register : Could not grab bad emails
hmm you can try adding 1 entry to sql
forum database
b_banemails table
add new row: emailid = 1; email=bugmenot.com
tell me if it work
edit: resolved, there is no script problem, just wrong configurated :)
-
Re: [RELEASE] Antrix web CMS by AXE
nice, keep up the good work :)
-
Re: [RELEASE] Antrix web CMS by AXE
Nice release, I really apresheate it, but.... There's aways a but lol My froums don't work...
Check it out
Mystika WoW - Terms of Service - Top WoW private server, Lag-Free, Great Up-Time, Friendly GMs, Less Bugs, Ascent Emulator
There's also an SQL error underneath it once you log in..... also the new version won't work on my site because it says my DB couldn't find social table...
Any help is appresheated.
-
Re: [RELEASE] Antrix web CMS by AXE
Quote:
Originally Posted by
panicacid
edit .htaccess file located in htdocs/
to:
php_value display_errors on
hopefully this will indentify problem
-
Re: [RELEASE] Antrix web CMS by AXE
Apparently the chat box isn't working because of:
Parse error: syntax error, unexpected '}' in C:\wamp\www\test\chat\index.php on line 187
And all I get at the bottom of the forums is...
Admin CP
$simple_search = array( '/\[b\](.*?)\[\/b\]/is', '/\[i\](.*?)\[\/i\]/is', '/\[s\](.*?)\[\/s\]/is', '/\[u\](.*?)\[\/u\]/is', '/\[url\=(.*?)\](.*?)\[\/url\]/is', '/\[url\](.*?)\[\/url\]/is', '/\[align\=(left|center|right)\](.*?)\[\/align\]/is', '/\[img\](.*?)\[\/img\]/is', '/\[mail\=(.*?)\](.*?)\[\/mail\]/is', '/\[mail\](.*?)\[\/mail\]/is', '/\[font\=(.*?)\](.*?)\[\/font\]/is', '/\[size\=(.*?)\](.*?)\[\/size\]/is', '/\[color\=(.*?)\](.*?)\[\/color\]/is', '/\[item\=(.*?)\,(.*?)\](.*?)\[\/item\]/is', ); $simple_replace = array( '$1', '$1', '$1', '$1', '$2', '$1', '
$2
', '', '$2', '$1', '$2', '$2', '$2', '$3', ); // Do simple BBCode's $str = preg_replace ($simple_search, $simple_replace, $str); $str = bbcode_quote ($str); $str = bbcode_code ($str); return $str; } function bbcode_quote ($str) { $open = '
Q u o t e:
'; $close = '
'; // How often is the open tag? preg_match_all ('/\[quote\]/i', $str, $matches); $opentags = count($matches['0']); // How often is the close tag? preg_match_all ('/\[\/quote\]/i', $str, $matches); $closetags = count($matches['0']); // Check how many tags have been unclosed // And add the unclosing tag at the end of the message $unclosed = $opentags - $closetags; for ($i = 0; $i < $unclosed; $i++) { $str .= ''; } // Do replacement $str = str_replace ('[' . 'quote]', $open, $str); $str = str_replace ('[/' . 'quote]', $close, $str); return $str; } function bbcode_code ($str) { $open = 'C o d e:
'; $close = '
'; // How often is the open tag? preg_match_all ('/\[code\]/i', $str, $matches); $opentags = count($matches['0']); // How often is the close tag? preg_match_all ('/\[\/code\]/i', $str, $matches); $closetags = count($matches['0']); // Check how many tags have been unclosed // And add the unclosing tag at the end of the message $unclosed = $opentags - $closetags; for ($i = 0; $i < $unclosed; $i++) { $str .= '
'; } // Do replacement $str = str_replace ('[' . 'code]', $open, $str); $str = str_replace ('[/' . 'code]', $close, $str); return $str; } ?>
I've posted a topic and they don't show either.. could the file permissions be wrong?