Forum plaatjes [ opgelost ]
					Forumregels
			
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief. 
		
		
	Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.

Forum plaatjes [ opgelost ]
Hoi,
Ik zoek een mod die net zoals in phpbb3 een plaatje kan toevoegen aan de forum naam.
Ik weet dat dit kan met Category Hierarchy ofzoiets maar ik zoek iets kleiners.
Daan
edit: Opgelost tags geplaatst
			
			
													Ik zoek een mod die net zoals in phpbb3 een plaatje kan toevoegen aan de forum naam.
Ik weet dat dit kan met Category Hierarchy ofzoiets maar ik zoek iets kleiners.
Daan
edit: Opgelost tags geplaatst
					Laatst gewijzigd door Daan op 18 mar 2007, 18:54, 3 keer totaal gewijzigd.
									
			
									
						Deze mss ? http://phpbbhacks.com/download/565
			
			
									
									
						Werkt deze mod met phpbb2.0.22? en volgens Salomon is deze mod 100% niet goedgekeurd door phpbb klopt dat?
			
			
									
									
						Code: Selecteer alles
# 
#-----[ ACTION: EXECUTE]----------------------------------- 
# 
# 
SQL QUERY: 
ALTER TABLE prefix_forums ADD forum_icon VARCHAR(100); 
ALTER TABLE prefix_categories ADD cat_icon VARCHAR(100);
# 
#-----[ ACTION: ]------------------------------------------ 
# OPEN: language/lang_xxx/lang_main.php 
[FIND]: 
// 
// That's all Folks! 
[ADD AFTER]: 
// Categories & Forum icon MOD
$lang['Icon'] = "Icon"; 
####### SAVE & CLOSE: language/lang_xxx/lang_main.php ####### 
#############################################################Toch niet... Ik probeer een categorie toe te voegen:
En dat is het stukje code
			
			
									
									
						Couldn't insert row in categories table
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 2
INSERT INTO phpbb_categories (cat_title, cat_order, cat_icon) VALUES ('test', 20, )
Line : 511
File : admin_forums.php
Code: Selecteer alles
//
			// There is no problem having duplicate forum names so we won't check for it.
			//
			$sql = "INSERT INTO " . CATEGORIES_TABLE . " (cat_title, cat_order, cat_icon) 
				VALUES ('" . $HTTP_POST_VARS['categoryname'] . "', $next_order, $caticon)";
			if( !$result = $db->sql_query($sql) )
			{
				message_die(GENERAL_ERROR, "Couldn't insert row in categories table", "", __LINE__, __FILE__, $sql);
			}zoek :
vervang door :
			
			
									
									
						Code: Selecteer alles
			$sql = "INSERT INTO " . CATEGORIES_TABLE . " (cat_title, cat_order, cat_icon) 
				VALUES ('" . $HTTP_POST_VARS['categoryname'] . "', $next_order, $caticon)";
Code: Selecteer alles
			$sql = "INSERT INTO " . CATEGORIES_TABLE . " (cat_title, cat_order, cat_icon) 
				VALUES ('" . $HTTP_POST_VARS['categoryname'] . "', $next_order, '" . $HTTP_POST_VARS['caticon'] . "')";


