What's new

Forum Na Stronie

Status
Not open for further replies.

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

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');
 

Dragonas

Advanced User
Joined
Jul 11, 2009
Messages
321
Reaction score
18
Age
31
Odp: Forum Na Stronie

Takie co? ju? jest na acc makerze by gesior ... Chyba, ?e si? myl?
 

Micki

Advanced User
Joined
May 2, 2009
Messages
373
Reaction score
23
Odp: Forum Na Stronie

Autora mo?e by? poda??]
Autorem skryptu jest G?sior.
Nikomu nie polecam tego skryptu, czemu?
Masa bug?w, kiepsko zabezpieczony.
Ale jednak brawa dla g?siora za napisanie tego skryptu :)



Pozdrawiam,
Micki!
 

karollo217

Active User
Joined
Aug 20, 2009
Messages
78
Reaction score
1
Odp: Forum Na Stronie

Siwietne moze to byc potrzebuje takie cos tylko bedzie klopot z konfiguracjom bo zbytnio nie potrafie konfigurowac:(
 
Joined
Apr 22, 2008
Messages
43
Reaction score
3
Odp: Forum Na Stronie

SIemka u mnie wszystko ok ale jak napisze posta i go zatwierdze wyskakuje mi takie cos:
Fatal error: Call to a member function fetchAll() on a non-object in C:\xampp\htdocs\forum.php on line 202
prosze pomozcie
 

Sk1ba

Active User
Joined
Jun 28, 2009
Messages
51
Reaction score
1
Odp: Forum Na Stronie

Dziwne ale mo?e by? :thx:
 

De Javu

Advanced User
Joined
Apr 4, 2008
Messages
150
Reaction score
20
Odp: Forum Na Stronie

Micki co masz na my?li m?wi?c kiepsko zabezpieczony i masa bug?w ?? Je?li mo?esz wymie? nam kilka ;)

Co do skryptu to nawet przyjemny i por?czny ;)
Tylko nie do ko?ca opisany a mianowicie chodzi moderator?w jest wog?le mo?liwo?? nadania takiego stanowiska ??

Pozdrawiam.
 

Micki

Advanced User
Joined
May 2, 2009
Messages
373
Reaction score
23
Odp: Forum Na Stronie

Zabezpieczenia nie s? dobre i? patrz?c w kod zauwa?y?em ?e nie ka?de zapytanie do mysql'a jest filtrowane.
 

De Javu

Advanced User
Joined
Apr 4, 2008
Messages
150
Reaction score
20
Odp: Forum Na Stronie

Mhm wi?c mo?e umiesz to poprawi? ?? W ten spos?b pom?g?by? niekt?rym ludzi? ;)
 
Status
Not open for further replies.
Top