Seite 1 von 2

Simple Sub Foren

Verfasst: 22.07.2006 09:32
von SoLo1905
Hallo, habe mir das Simple Sub Foren eingebaut und habe diesen feher in der Index.php

Code: Alles auswählen

Parse error: syntax error, unexpected T_IF in /usr/export/www/vhosts/funnetwork/hosting/sueleymanka/index.php on line 762
in Zeile 763 steht:

Code: Alles auswählen

							if( $forum_data[$j]['forum_parent'] )
die index.php in index.txt

ahja da stand in der install datei

Code: Alles auswählen

#-----[ FIND ]------------------------------------------
#
while( $category_rows[] = $db->sql_fetchrow($result) );
$db->sql_freeresult($result);


#
#-----[ AFTER, ADD ]------------------------------------------
#

// Begin Simple Subforums MOD
$subforums_list = array();
// End Simple Subforums MOD
und

Code: Alles auswählen

#-----[ OPEN ]------------------------------------------
#
templates/subSilver/overall_header.tpl


#
#-----[ FIND ]------------------------------------------
#
@import url("templates/subSilver/formIE.css"); 


#
#-----[ AFTER, ADD ]------------------------------------------
#

/* Begin Simple Subforums MOD */
a.topic-new, a.topic-new:visited { color: {T_BODY_HLINK}; }
a.topic-new:hover, a.topic-new:active { color: {T_BODY_LINK}; }
/* End Simple Subforums MOD */
hier auch die overall_header.tpl in overall_heder.txt

habe das nicht gefunden! wie soll ich das nun machen? könnt ihr eine stelle finden wo es reinpassen würde??

Danke im vorraus
mfg SüLeYmAn

Re: Simple Sub Foren

Verfasst: 22.07.2006 10:07
von Yoshi
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/overall_header.tpl


#
#-----[ FIND ]------------------------------------------
#
@import url("templates/subSilver/formIE.css");


#
#-----[ AFTER, ADD ]------------------------------------------
#

/* Begin Simple Subforums MOD */
a.topic-new, a.topic-new:visited { color: {T_BODY_HLINK}; }
a.topic-new:hover, a.topic-new:active { color: {T_BODY_LINK}; }
/* End Simple Subforums MOD */[/code]
hier auch die overall_header.tpl in overall_heder.txt

habe das nicht gefunden! wie soll ich das nun machen? könnt ihr eine stelle finden wo es reinpassen würde??
Du hast doch bestimmt früher auf CSS umgestellt oder? Und da musst du nun auch anstelle das in der overall_header zu machen, eben dort anpassen denke ich.

Verfasst: 22.07.2006 10:15
von SoLo1905
sry hab das nicht kapiert... das problem ist das, dass ich es nicht finde

ahja habe das Acid Style auch wenn ich die code (subsilver durch Acid) ersetze findet er es nicht!

Verfasst: 22.07.2006 12:19
von Gulaschk@none
SoLo1905 hat geschrieben:sry hab das nicht kapiert... das problem ist das, dass ich es nicht finde

ahja habe das Acid Style auch wenn ich die code (subsilver durch Acid) ersetze findet er es nicht!
naja und der acid style hat css aktiviert ,also mußt du dem zu folge diese änderung in der acid_css machen :wink:

Verfasst: 22.07.2006 18:31
von SoLo1905
???

welche code wie und wo einfügen? was muss ich nun bearbeiten??
wäre nett wenn ihr es so wie unten (demo) beschrieben würdet!

demo:
  • Öffne ___
  • Suche
    ___
  • ersetze mit
    ___

    ...
danke

Verfasst: 22.07.2006 18:40
von Tatanka
.. bei der Anzahl von Postings solltest Du den Hinweis auf die KB:modsfaq eigentlich schon kennen ...... :oops:

Verfasst: 22.07.2006 18:55
von SoLo1905
in der Acid.css die Änderung vornehmen anstadt Overall_header.tpl??

Re: Simple Sub Foren

Verfasst: 22.07.2006 20:08
von IPB_Flüchtling
SoLo1905 hat geschrieben:hier auch die overall_header.tpl in overall_heder.txt
Servus,

wenn Du eine Datei verlinkst, sollte es auch tatsächlich eine Textdatei sein... Das heißt, dass man den Quelltext sehen kann, wenn man mit der linken Maustaste daraufklickt.

LG, IPB_Flüchtling

Verfasst: 22.07.2006 20:18
von SoLo1905
ja ich weis bei den tpl dateien :P totztem hier mit 1 klick :P

Verfasst: 23.07.2006 08:52
von KingKoQ
FINDE

Code: Alles auswählen

$template->assign_block_vars('catrow.forumrow',	array(
								'ROW_COLOR' => '#' . $row_color,
								'ROW_CLASS' => $row_class,
								'FORUM_FOLDER_IMG' => ( $forum_data[$j]['title_is_link'] == 1 && $forum_data[$j]['forum_link_icon'] != '' ) ? $forum_data[$j]['forum_link_icon'] : $folder_image,
								'FORUM_LINK_COUNT' => ( $forum_data[$j]['title_is_link'] == 1 ) ? sprintf($lang['Forum_link_count'], $forum_data[$j]['forum_link_count']) : '',
								'FORUM_NAME' => $forum_data[$j]['forum_name'],
								'FORUM_DESC' => $forum_data[$j]['forum_desc'],
								'POSTS' => $forum_data[$j]['forum_posts'],
								'TOPICS' => $forum_data[$j]['forum_topics'],
								'LAST_POST' => $last_post,
								'MODERATORS' => $moderator_list,

								'L_MODERATOR' => $l_moderators, 
								'L_FORUM_FOLDER_ALT' => $folder_alt,
								// Begin Simple Subforums MOD
								'FORUM_FOLDERS' => serialize($folder_images),
								'HAS_SUBFORUMS' => 0,
								'PARENT' => $forum_data[$j]['forum_parent'],
								'ID' => $forum_data[$j]['forum_id'],
								'UNREAD' => intval($unread_topics),
								'TOTAL_UNREAD' => intval($unread_topics),
								'TOTAL_POSTS' => $forum_data[$j]['forum_posts'],
								'TOTAL_TOPICS' => $forum_data[$j]['forum_topics'],
								'LAST_POST_FORUM' => $last_post,
								'LAST_POST_TIME' => $last_post_time,
								'LAST_POST_TIME_FORUM' => $last_post_time,
								// End Simple Subforums MOD 

								'U_VIEWFORUM' => ( $forum_data[$j]['title_is_link'] == 1 ) ? append_sid("index.$phpEx?" . POST_FORUM_URL . "=$forum_id&forum_link=1") : append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"))

							// Begin Simple Subforums MOD
							if( $forum_data[$j]['forum_parent'] )
							{
								$subforums_list[] = array(
									'forum_data'	=> $forum_data[$j],
									'folder_image'	=> $folder_image,
									'last_post'		=> $last_post,
									'last_post_sub'	=> $last_post_sub,
									'moderator_list'	=> $moderator_list,
									'unread_topics'	=> $unread_topics,
									'l_moderators'	=> $l_moderators,
									'folder_alt'	=> $folder_alt,
									'last_post_time'	=> $last_post_time,
									'desc'			=> $forum_data[$j]['forum_desc'],
									);
							}
							// End Simple Subforums MOD

							);

							if ( $forum_data[$j]['title_is_link'] == 1 )
							{
								$template->assign_block_vars('catrow.forumrow.switch_forum_link_on', array());
							}
							else
ERSETZE MIT:

Code: Alles auswählen

$template->assign_block_vars('catrow.forumrow',	array(
								'ROW_COLOR' => '#' . $row_color,
								'ROW_CLASS' => $row_class,
								'FORUM_FOLDER_IMG' => ( $forum_data[$j]['title_is_link'] == 1 && $forum_data[$j]['forum_link_icon'] != '' ) ? $forum_data[$j]['forum_link_icon'] : $folder_image,
								'FORUM_LINK_COUNT' => ( $forum_data[$j]['title_is_link'] == 1 ) ? sprintf($lang['Forum_link_count'], $forum_data[$j]['forum_link_count']) : '',
								'FORUM_NAME' => $forum_data[$j]['forum_name'],
								'FORUM_DESC' => $forum_data[$j]['forum_desc'],
								'POSTS' => $forum_data[$j]['forum_posts'],
								'TOPICS' => $forum_data[$j]['forum_topics'],
								'LAST_POST' => $last_post,
								'MODERATORS' => $moderator_list,

								'L_MODERATOR' => $l_moderators, 
								'L_FORUM_FOLDER_ALT' => $folder_alt,
								// Begin Simple Subforums MOD
								'FORUM_FOLDERS' => serialize($folder_images),
								'HAS_SUBFORUMS' => 0,
								'PARENT' => $forum_data[$j]['forum_parent'],
								'ID' => $forum_data[$j]['forum_id'],
								'UNREAD' => intval($unread_topics),
								'TOTAL_UNREAD' => intval($unread_topics),
								'TOTAL_POSTS' => $forum_data[$j]['forum_posts'],
								'TOTAL_TOPICS' => $forum_data[$j]['forum_topics'],
								'LAST_POST_FORUM' => $last_post,
								'LAST_POST_TIME' => $last_post_time,
								'LAST_POST_TIME_FORUM' => $last_post_time,
								// End Simple Subforums MOD 

								'U_VIEWFORUM' => ( $forum_data[$j]['title_is_link'] == 1 ) ? append_sid("index.$phpEx?" . POST_FORUM_URL . "=$forum_id&forum_link=1") : append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"))

							

							);

// Begin Simple Subforums MOD
							if( $forum_data[$j]['forum_parent'] )
							{
								$subforums_list[] = array(
									'forum_data'	=> $forum_data[$j],
									'folder_image'	=> $folder_image,
									'last_post'		=> $last_post,
									'last_post_sub'	=> $last_post_sub,
									'moderator_list'	=> $moderator_list,
									'unread_topics'	=> $unread_topics,
									'l_moderators'	=> $l_moderators,
									'folder_alt'	=> $folder_alt,
									'last_post_time'	=> $last_post_time,
									'desc'			=> $forum_data[$j]['forum_desc'],
									);
							}
							// End Simple Subforums MOD

							if ( $forum_data[$j]['title_is_link'] == 1 )
							{
								$template->assign_block_vars('catrow.forumrow.switch_forum_link_on', array());
							}
							else
Du hast da nur etwas zu früh eingefügt bzw. eine klammer übersehen...