GM Koks
Advanced User
- Joined
- Apr 19, 2009
- Messages
- 294
- Reaction score
- 14
Witam Mam Dla was ?atwy skrypt ale jest super
Przyk?ad :
Skrypt Dowloand + Images :
Do bazy danych dodaj
i jeszcze
w forum.php mozna edytowac od jakego lvl mozna pisac na forum itd
Przyk?ad :
Skrypt Dowloand + Images :
Do bazy danych dodaj
CREATE TABLE `z_forum` (
`id` int(11) NOT NULL auto_increment,
`first_post` int(11) NOT NULL default '0',
`last_post` int(11) NOT NULL default '0',
`section` int(3) NOT NULL default '0',
`replies` int(20) NOT NULL default '0',
`views` int(20) NOT NULL default '0',
`author_aid` int(20) NOT NULL default '0',
`author_guid` int(20) NOT NULL default '0',
`post_text` text NOT NULL,
`post_topic` varchar(255) NOT NULL,
`post_smile` tinyint(1) NOT NULL default '0',
`post_date` int(20) NOT NULL default '0',
`last_edit_aid` int(20) NOT NULL default '0',
`edit_date` int(20) NOT NULL default '0',
`post_ip` varchar(32) NOT NULL default '0.0.0.0',
PRIMARY KEY (`id`),
KEY `section` (`section`)
) ENGINE=MyISAM AUTO_INCREMENT=1 ;
i jeszcze
ALTER TABLE `accounts` ADD `last_post` INT( 11 ) NOT NULL DEFAULT '0';
w forum.php mozna edytowac od jakego lvl mozna pisac na forum itd
$level_limit = 10; // minimum 1 character with 50 lvl on account to post
$post_interval = 30; // 30 seconds between posts
$group_not_blocked = 1; // page access of player that can always post, remove post, remove threads, edit other players posts
$posts_per_page = 20;
$threads_per_page = 20;
$sections = array(1 => 'News', 2 => 'Trade', 3 => 'Quests', 4 => 'Pictures', 5 => 'Bug Report');
$sections_desc = array(1 => 'Tutaj mozna komentowac newsy.', 2 => 'Oferty sprzedam/kupie', 3 => 'Informacje o questach', 4 => 'Tematy z zdjeciami z gry', 5 => 'Raporty bledow w grze/na stronie');