Seite 1 von 1

ShoutBox MOD von Prezmo wird nicht in PortalMOD angezeigt

Verfasst: 23.11.2003 13:13
von flomei
Hallo!
Ich benutze die Portal MOD von AWSW. Dort wollte ich gerne die ShoutBox von Prezmo einbauen.
Funktioniert soweit auch ganz gut.
Über www.abi2006-forum.de.vu/shoutbox.php kann ich sie auch erreichen. Aber wenn ich versuche die Shoutbox an Stelle der ChatBox ins Portal einzubauen wird sie nicht angezeigt.
Das Einbauen wollte ich wie beschrieben mit

Code: Alles auswählen

{SHOUTBOX_BODY}
machen aber es wird halt nicht angezeigt. Weiss einer woran das liegen kann???

Danke im vorraus!

MFG Florian

Verfasst: 23.11.2003 14:18
von punker
Hi,

ich bekomme auf der index.php

einen Fehler:

Code: Alles auswählen

Parse error: parse error, unexpected ';', expecting ')' in /home/www/htdocs/windelbabys.net/testforum/index.php on line 444
Auszug aus der Index.php:

Code: Alles auswählen

	$template->set_filenames(array(
		'news' => 'index_news.tpl',
		'body' => $plus_config['index_layout'])
	);
	
	// 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(
Auszug aus der Anleitung:

Code: Alles auswählen

#
#-----[ OPEN ]------------------------------------------
#
index.php

#
#-----[ FIND ]------------------------------------------
#

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

#
#-----[ BEFORE, ADD ]------------------------------------------
#
	// 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);
	}
Hoffe mir kann einer helfen.

Danke

baba

Stefan

Edit : Fehler behoben.. hatte ne leerzeile irgendwo zuviel drin :)

Verfasst: 24.11.2003 16:07
von flomei
Tut mir leid, dass ich das Thema auf diese Weise wieder hochschieben muss aber ich habe leider immer noch keine Lösung für mein Problem gefunden. So schwer kann das ja gar nicht sein...

MfG Florian

P.S.: Alle die mir helfen kriegen :cookie: ;)

Verfasst: 24.11.2003 20:23
von punker
Also bei mir hat das ganze geklappt...
hab die Shoutbox im moment deaktiviert.


hmm wenn du die shoutbox auf portal einbauen willst...
musst wahrscheinlich die index.php Zeilen

aufs portal.php übertragen :roll:

Aber weiß auch nicht ganz genau probiers mal aus :wink:

Verfasst: 24.11.2003 22:00
von flomei
Hab mal im Portal folgendes probiert:

Code: Alles auswählen

<!-- ##### CHAT BOX START ##### -->
<!-- BEGIN switch_chatboxmod_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>Shoutbox</b> 
      </center>
      </span></td>
  </tr>
<?php
   // 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);
   }
?>
</table>
<!-- END switch_chatboxmod_active -->
<!-- ##### CHAT BOX START ##### -->
Nun steht da zwar Shoutbox aber sonst nichts!
Das ist das Problem! Woran kann das liegen???

MfG Florian

Verfasst: 30.11.2003 22:52
von flomei
Ich wollt das nochmal nach oben schieben weil es immer noch nicht funktioniert... Weiss denn keiner woran das liegen kann??? :(

MfG Florian

Verfasst: 01.12.2003 00:06
von punker
diesen teil

Code: Alles auswählen

<?php 
   // 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); 
   } 
?> 
solltest du schon in die portal.php kopieren

und in die portal_body.tpl

Code: Alles auswählen

{SHOUTBOX_BODY}
Sollte eigentllich funktionieren *gruebel*

:cookie:

Verfasst: 01.12.2003 00:30
von flomei
Guter Ansatz aber hat noch nicht funktioniert...
Vielleicht könnte AWSW auch mal was dazu sagen weil er ja schliesslich das Portal gecodet hat. Vielleicht liegt es ja am Portal...

Trotzdem Danke für deine Mühen!

MfG Florian