Seite 1 von 2

Intraportal + ShoutBox

Verfasst: 17.03.2005 22:54
von tattergreis
Hi allerseits!

Ich hab mir den Intro&Portal MOD und die ShoutBox von Przemo (http://www.phpbbhacks.com/download/1595) installiert.

Nun aber zwei Fragen:
1. In der mittleren Spalte wird die Login-Box nicht angezeigt. Im ACP ist sie jedoch aktiviert und in der portal_body.tpl ist sie meiner Meinung nach vollständig.

Code: Alles auswählen

<!-- ##### LOGIN START ##### -->
<!-- BEGIN switch_loginform_active -->
<table width="100%" border="0" cellpadding="1" cellspacing="1" style="border-collapse: collapse" class="forumline">
<tr>
<td class="catHead" colspan="2" height="25"><span class="cattitle"><center><b>{IntroPortaltext19}:</b></center></span></td>
</tr>
<tr>
<td colspan="2" height="1" class="row3"><img src="images/spacer.gif" width="1" height="1" alt="."></td>
</tr>
<tr>
<td align="left" class="row1"><span class="genmed">
<br>{IntroPortaltext7}<center><br>
<form method="post" action="{S_LOGIN_ACTION}">
<table width="90%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="catHead" height="28" align="center" valign="middle"><a name="login"></a><span class="cattitle">{L_LOGIN_LOGOUT}:</span></td>
</tr>
<tr>
<td class="row1" align="center" valign="middle" height="28"><span class="gensmall">{L_USERNAME}:
<input class="post" type="text" name="username" size="10" />
&nbsp;&nbsp;&nbsp;{L_PASSWORD}:
<input class="post" type="password" name="password" size="10" />
<br>{L_AUTO_LOGIN}
<input class="text" type="checkbox" checked name="autologin" />
<input type="submit" class="mainoption" name="login" value="{L_LOGIN}" />
</span>
</td>
</tr>
<tr align="center">
<td class="row1" colspan="2"><span class="gensmall"><a href="{U_SEND_PASSWORD}" class="gensmall">{L_SEND_PASSWORD}</a></span></td>
</tr>
</table>
</form>
</center>
</span></td>
</tr>
</table><br>
<!-- END switch_loginform_active -->
<!-- ##### LOGIN END ##### -->
2. Wie kann ich die ShoutBox (die momentan im "index" installiert ist) in der mittleren Spalte des Portals integrieren? Im ACP muss ich es nicht unbedingt aktivieren oder deaktivieren können... aber wär natürlich auch cool.

greetz
tatter

Verfasst: 18.03.2005 09:24
von tattergreis
Ok... also ich hab probiert und probiert... irgendwo ist der Fehler, aber ich finde ihn nicht.

Die Shoutbox ist ja momentan im index integriert. Dazu ist der Code im index.php folgendermassen...
$shoutbox_config['banned_user_id_view'] = $GLOBALS['shoutbox_config']['banned_user_id_view'];
if( strstr($shoutbox_config['banned_user_id_view'], ',') )
{
$fids = explode(',', $shoutbox_config['banned_user_id_view']);
while( list($foo, $id) = each($fids) )
{
$fid[] = intval( trim($id) );
}
}
else
{
$fid[] = intval( trim($shoutbox_config['banned_user_id_view']) );
}
reset($fid);

if ( $shoutbox_config['shoutbox_on'] && in_array($userdata['user_id'], $fid) == false )
{
include($phpbb_root_path . 'shoutbox_body.'.$phpEx);
}
und im index_body.tpl brauchte ich bloss
{SHOUTBOX_BODY}
einzutragen.

Theoretisch müsste das doch jetzt funktionieren, wenn ich den ersten Code an der richtigen Stelle im portal.php eingeb und den {SHOUTBOX_BODY} im portal_body.tpl, oder sehe ich da was falsch????

Die Loginbox funzt nu. (muss ich allerdings noch umgestalten....die issja voll hässlich :lol: )

greetz
der verzweifelte tatter

Verfasst: 18.03.2005 10:24
von pillhuhn
hast du den code in der portal.php :

Code: Alles auswählen

// Shoutbox mod
	$shoutbox_config['banned_user_id_view'] = $GLOBALS['shoutbox_config']['banned_user_id_view'];
	if( strstr($shoutbox_config['banned_user_id_view'], ',') )
	{
		$fids = explode(',', $shoutbox_config['banned_user_id_view']);
	while( list($foo, $id) = each($fids) )
		{
			$fid[] = intval( trim($id) );
		}
	}
	else
	{
		$fid[] = intval( trim($shoutbox_config['banned_user_id_view']) );
	}
	reset($fid);

	if ( $shoutbox_config['shoutbox_on'] && in_array($userdata['user_id'], $fid) == false )
	{
		include($phpbb_root_path . 'shoutbox_body.'.$phpEx);
	}
vor den code gesetzt? :

Code: Alles auswählen

$template->assign_vars(array(
		'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts),

Verfasst: 19.03.2005 13:24
von tattergreis
Hi!

Danke für die Antwort.

Ja genau so. Geht aber nicht. Vielleicht muss ich es doch in der portal_body.tpl irgendwie anders einfügen... aber wie? Muss ich vielleicht doch im ACP ne funktion machen, dass ich die shoutbox für das portal aktivieren oder deaktivieren kann?... schlimm... seh den fehler echt nich...

:(
tattergreis

Verfasst: 21.03.2005 10:05
von tattergreis
blubb! Hilfe!!!

Gibts denn niemand der auch das Introportal mit der ShoutBox von Przemo? Kann ja wohl nich sein :(... muss doch gehn... *heul*

Wär froh wenn mir jemand helfen könnte... wenn ihr mehr infos braucht, fragt einfach.

greetz
tattergreis

Verfasst: 21.03.2005 13:10
von pillhuhn
Also du must die shoutbox im ACP defenitiv nicht aktivieren.... muste ich auch net und ich habe die gleiche shoutbox auch im Portal...

Ich habe einfach das was man mit der index.php machen mußte auch mit der portal.php gemacht und was man mit der index_body.tpl gemacht wurde auch mit der Portal_body.tpl... ;)

Verfasst: 21.03.2005 14:08
von tattergreis
Hi!

Wo genau hast du im portal_body.tpl den Code eingefügt? Und was genau hast Du da eingefügt?

Wirklich nur das hier:

Code: Alles auswählen

{SHOUTBOX_BODY}
?

greetz
tatter

Verfasst: 21.03.2005 20:20
von pillhuhn
das setzt du dahin wo du es haben willst.... hast du den die Portal.php editiert???

Verfasst: 22.03.2005 09:04
von tattergreis
Jau... hab ich....(habsch doch gesagt) :(

Ich verstehs nicht... portal.php und portal_body.php sind beide so editiert wie Du es oben geschrieben hast (schon von anfang an)... aber funzen tuts nicht.

Und nu?

:cry:

Such den Fehler - Spiel

Verfasst: 22.03.2005 09:25
von tattergreis
Hi... also hier mal der Auszug aus meiner portal.php. Wenn irgendjemand den (oder die) Fehler findet und mir mitteilt, hat derjenige nen neuen Fan ;)

Code: Alles auswählen

	//
	// Start output of page
	//
	//define('SHOW_ONLINE', true);
	//$page_title = $lang['Index'];
	

	// Shoutbox mod 
	$shoutbox_config['banned_user_id_view'] = $GLOBALS['shoutbox_config']['banned_user_id_view']; 
	if( strstr($shoutbox_config['banned_user_id_view'], ',') ) 
	{ 
	$fids = explode(',', $shoutbox_config['banned_user_id_view']); 
	while( list($foo, $id) = each($fids) ) 
	{ 
	$fid[] = intval( trim($id) ); 
	} 
	} 
	else 
	{ 
	$fid[] = intval( trim($shoutbox_config['banned_user_id_view']) ); 
	} 
	reset($fid); 
	
	if ( $shoutbox_config['shoutbox_on'] && in_array($userdata['user_id'], $fid) == false ) 
	{ 
	include($phpbb_root_path . 'shoutbox_body.'.$phpEx); 
	}

	$template->assign_vars(array(
		'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts),
		'TOTAL_USERS' => sprintf($l_total_user_s, $total_users),
ich find nix...
greetz
tatter