To jest tylko wersja do druku, aby zobaczyć pełną wersję tematu, kliknij TUTAJ
phpBB2 by Przemo
Support forów phpBB2 modified by Przemo

1.12.7 i starsze - Minimalna ilo?? postów aby za?o?y? Nowy temat

xlesiu - 20-07-2009, 22:49
Temat postu: Minimalna ilość postów aby założyć Nowy temat
Cytat:
##############################################################
## MOD Title: Minimalna ilość postów aby założyć Nowy temat
## MOD Author: kkroo < princeomz2004@gmail.com > (Omar Ramadan) http://phpbb-login.strangled.net
## MOD Description: Add a new restriction to your forums, minimum posts to start a new topic. If the users post count is below the restriction, they are not allowed to start a new topic. This number can be changed in the admin panel for every indivisual forum.
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: 2 minutes
## Files To Edit: posting.php
## admin/admin_forums.php
## language/lang_polish/lang_admin.php
## language/lang_polish/lang_main.php
## templates/Nazwastylu/admin/forum_edit_body.tpl
## Included Files:
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
## Generator: MOD Studio [ ModTemplateTools 1.0.2108.38030 ]
##############################################################

SpiJay - 09-10-2009, 10:21

swietne ;)
bardzo łatwa instalacja.

PS. należy uruchomić to notatnikiem bo mi odtwarzało poprzez Winamp'a :D

[ Dodano: 09-10-2009, 10:53 ]
mam jednak maly problem,
po wlaczeniu tej opcji w PA (od 20 postow), wsykakuje mi DEBUG :/
Kod:
DEBUG MODE

SQL Error : 1064 Something is wrong in your syntax obok '20, 1, forum_sort = 'SORT_FPDATE', password = '', forum_color =' w linii 2

UPDATE spijay_forums SET forum_name = 'Spijay''s zone', cat_id = 1, forum_desc = 'Tutaj pytaj, zgłaszaj, oskarżaj, informuj Głównego Administratora Forum.
Wymagane 20 postów', forum_status = 0, minimum_posts = '20', minimum_posts_enabled = '1',20, 1, forum_sort = 'SORT_FPDATE', password = '', forum_color = '009900', forum_moderate = 1, locked_bottom = 0, no_count = 0, forum_trash = 0, forum_separate = 2, forum_show_ga = 1, forum_tree_req = 0, forum_tree_grade = 3, forum_no_helped = 0, forum_no_split = 0, topic_tags = '', prune_enable = 0, forum_link='', forum_link_internal=0, forum_link_hit_count=0, main_type = 'c' WHERE forum_id = 2

Line : 1001
File : admin_forums.php


co zrobilem zle ? :/

joli - 09-10-2009, 11:06

Po
Kod:
minimum_posts_enabled = '',
brakuje spacji w pliku admin_forums.php

daj ten plik w załacznik

SpiJay - 09-10-2009, 12:44

prosze ;)
joli - 09-10-2009, 13:34

sprobuj, niezle namotales
SpiJay - 09-10-2009, 14:21

joli napisał/a:
niezle namotales

:) wiem :D

dziekuje slicznie ;* pomoglo
moj blad :)

[ Dodano: 09-10-2009, 15:27 ]
PS. Lecz teraz mam problem przy zakladaniu nowego Forum...

Kod:
DEBUG MODE

SQL Error : 1064 Something is wrong in your syntax obok ' auth_view, auth_read, auth_post, auth_reply, auth_edit, auth_de' w linii 1

INSERT INTO spijay_forums (forum_id, forum_name, cat_id, forum_desc, forum_order, forum_status, minimum_posts, minimum_posts_enabled, forum_sort, password, forum_color, forum_moderate, no_count, forum_trash, forum_separate, forum_show_ga, prune_enable, forum_link, forum_link_internal, forum_link_hit_count, forum_tree_req, forum_tree_grade, forum_no_helped, forum_no_split, topic_tags, locked_bottom, , auth_view, auth_read, auth_post, auth_reply, auth_edit, auth_delete, auth_sticky, auth_announce, auth_globalannounce, auth_vote, auth_pollcreate, auth_attachments, auth_download, main_type) VALUES ('30', 'asdas', 9, '', 260, 0, 0, 0, 'SORT_FPDATE', '', '', 0, 0, 0, 2, 1, 0, '', 0, 0, 0, 3, 0, 0, '', 0, 0, 0, 1, 0, 1, 1, 3, 3, 5, 1, 1, 1, 0, 'c')

Line : 823
File : admin_forums.php

joli - 09-10-2009, 18:59

łap
SpiJay - 09-10-2009, 20:22

niestety dalej mam.. ;/

Kod:
Couldn't insert row in forums table

DEBUG MODE

SQL Error : 1064 Something is wrong in your syntax obok ' auth_view, auth_read, auth_post, auth_reply, auth_edit, auth_de' w linii 1

INSERT INTO spijay_forums (forum_id, forum_name, cat_id, forum_desc, forum_order, forum_status, minimum_posts, minimum_posts_enabled, forum_sort, password, forum_color, forum_moderate, no_count, forum_trash, forum_separate, forum_show_ga, prune_enable, forum_link, forum_link_internal, forum_link_hit_count, forum_tree_req, forum_tree_grade, forum_no_helped, forum_no_split, topic_tags, locked_bottom, , auth_view, auth_read, auth_post, auth_reply, auth_edit, auth_delete, auth_sticky, auth_announce, auth_globalannounce, auth_vote, auth_pollcreate, auth_attachments, auth_download, main_type) VALUES ('30', 'Off Topic', 8, '', 260, 0, 0, 0, 'SORT_FPDATE', '', '', 0, 0, 0, 2, 1, 0, '', 0, 0, 0, 3, 0, 0, '', 0, 0, 0, 1, 0, 1, 1, 3, 3, 5, 1, 1, 1, 0, 'c')

Line : 823
File : admin_forums.php

lui754 - 09-10-2009, 20:25

Kod:
locked_bottom, , auth_view


tu masz o jeden przecinek za dużo ;]

joli - 09-10-2009, 20:40

przeciez go usunelam
SpiJay - 09-10-2009, 22:29

dziala ;)
dzieki wam ;)

SlaVe - 22-10-2009, 22:11

a ja mam taki błąd próbowałem tego admin_forums.php tego z załączników wyżej żadne nie działa

[ Dodano: 22-10-2009, 22:13 ]
Przepraszm za kolejny posta ale nie wkleiłem jaki mam błąd sory
to ten błą
Couldn't update forum information

DEBUG MODE

SQL Error : 1054 Unknown column 'minimum_posts' in 'field list'

UPDATE phpbb_forums SET forum_name = 'Podanie o Admina', cat_id = 8, forum_desc = 'Aby napisać podanie trzeba mieć minimum 60 Postów !', forum_status = 0, minimum_posts = '5', minimum_posts_enabled = '1', forum_sort = 'SORT_FPDATE', password = '', forum_color = '', forum_moderate = 0, locked_bottom = 0, no_count = 0, forum_trash = 0, forum_separate = 2, forum_show_ga = 1, forum_tree_req = 0, forum_tree_grade = 3, forum_no_helped = 0, forum_no_split = 0, topic_tags = '', prune_enable = 0, forum_link='', forum_link_internal=0, forum_link_hit_count=0, main_type = 'f' WHERE forum_id = 12

Line : 1001
File : admin_forums.php

xlesiu - 22-10-2009, 22:14

SlaVe, wykonałeś zapytanie?
SlaVe - 22-10-2009, 22:17

gdzie i jakie ?
xlesiu - 22-10-2009, 22:19

Kod:
ALTER TABLE `phpbb_forums` ADD `minimum_posts` MEDIUMINT(8) NOT NULL ;
ALTER TABLE `phpbb_forums` ADD `minimum_posts_enabled` TINYINT NOT NULL ;
UPDATE `phpbb_forums` SET `minimum_posts` = '5';
UPDATE `phpbb_forums` SET `minimum_posts_enabled` = '0';

PA - SQL - MySQL



Powered by phpBB modified by Przemo © 2003 phpBB Group