Page 1 of 12

Ajax-Shoutbox von Paul einbauen....

Posted: 6. August 2008 13:13
by Konfusius
Hallo ihrs

Ich habe erfolgreich euer Portal eingebaut auf meinem board und wollt mich für die klasse anleitung bedanken.

Nun hab ich aber ein anderes problem ich hab die ajax shoutbox in mein forum eingebaut udn würde gern diesen chat auch auf eurem portal anzeigen lassen und nicht in nem extrafenster
wär klasse wenn ihr mir helfen könntet

greets Konfusius

Re: Shoutbox einbauen....

Posted: 6. August 2008 16:29
by thomas.d
Hi Konfusius,

um welche Shoutbox geht es denn?

Vorweg: Ich habe auf einem phpBB 3.02 / Board3 Portal 1.0.0RC1 die Ajax-Shoutbox 1.2 RC1 von Paul (phpbb.com) am laufen, falls sich deine Frage darauf bezieht, sollten wir das hinkriegen ...

Re: Shoutbox einbauen....

Posted: 6. August 2008 16:32
by Konfusius
forensoftware ist die selbe wie deine aber die shoutbox ist die ajax_chat_2.0.0B8 die is leider ohne bb code und smileys ist deine mit bbcode und smileys?

Re: Shoutbox einbauen....

Posted: 6. August 2008 16:34
by thomas.d
Konfusius wrote:... ist deine mit bbcode und smileys?
Ja, beides.

Re: Shoutbox einbauen....

Posted: 6. August 2008 16:47
by Konfusius
hmm.... wenn ich die schritte bis auf die install rückgängig mach also die files löschen die dateien zurück schreiben dann müss ich doch die sb die du benutzt auch installieren können oder?
ich schreib dir per pn ma meine icq geht glaub ich fixer

Re: Shoutbox einbauen....

Posted: 7. August 2008 14:23
by Konfusius
So die shoutbox läuft und funktioniert nu muss ich irgendwie nen neuen block ins portal bekommen :D

Re: Shoutbox einbauen....

Posted: 8. August 2008 23:42
by thomas.d
Aaaalso ....

(diese Anleitung bezieht sich auf die Ajax-Shoutbox (s.o.)!!)

Öffne \root\portal.php

Finde

Code: Select all

// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('mods/lang_portal');
Danach einfügen

Code: Select all

//shoutbox
if (!function_exists('as_display'))
{
   include($phpbb_root_path . 'includes/functions_shoutbox.' . $phpEx);
}
as_display();
//ende shoutbox
Öffne root\styles\prosilver\template\portal\portal_body.html

Finde

Code: Select all

<!-- IF S_DISPLAY_NEWS -->
<!-- IF S_NEWS_COMPACT -->
Füge davor ein

Code: Select all

<!-- IF not S_IS_BOT and S_USER_LOGGED_IN  -->
<!-- INCLUDE shout_body.html -->
<!-- ENDIF -->
Erstelle shout_body.html und speichere sie in \styles\*dein_style*\template:

Code: Select all

<!-- IF S_CAN_VIEW_AS -->
	<div class="forabg">
		<div class="inner">
			<span class="corners-top"><span></span></span>
			<ul class="topiclist">
				<li class="header">
					<dl>
						<dt>{L_SHOUTBOX}</dt>
					</dl>
				</li>
			</ul>
			<span id="shoutbox"></span>
			<span class="corners-bottom"><span></span></span>
		</div>
	</div>
	<script type="text/javascript">
	//<![CDATA[
	display_shoutbox = true;
	load_shout();
	//]]>
	</script>
<!-- ENDIF -->
So (oder so ähnlich) sollte es funktionieren ...

Viel Erfolg!

Re: Shoutbox einbauen....

Posted: 9. August 2008 04:58
by Konfusius
Tausend dank thomas

hat wunderbar funktioniert und sieht klasse aus wenn die site steht link ich sie dir hier

Re: Shoutbox einbauen....

Posted: 12. August 2008 18:14
by absolute_beginner
thomas.d wrote: So (oder so ähnlich) sollte es funktionieren ...
Möchte mich auch bedanken! Funzt einwandfrei!! 8-)

Greetz,
Beginner

Re: Shoutbox einbauen....

Posted: 12. August 2008 22:14
by thomas.d
Fein! :D

Re: Shoutbox einbauen....

Posted: 27. August 2008 13:27
by Pete
thomas.d wrote:Aaaalso ....

(diese Anleitung bezieht sich auf die Ajax-Shoutbox (s.o.)!!)

Öffne \root\portal.php

Finde

Code: Select all

// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('mods/lang_portal');
Danach einfügen

Code: Select all

//shoutbox
if (!function_exists('as_display'))
{
   include($phpbb_root_path . 'includes/functions_shoutbox.' . $phpEx);
}
as_display();
//ende shoutbox
Öffne root\styles\prosilver\template\portal\portal_body.html

Finde

Code: Select all

<!-- IF S_DISPLAY_NEWS -->
<!-- IF S_NEWS_COMPACT -->
Füge davor ein

Code: Select all

<!-- IF not S_IS_BOT and S_USER_LOGGED_IN  -->
<!-- INCLUDE shout_body.html -->
<!-- ENDIF -->
Erstelle shout_body.html und speichere sie in \styles\*dein_style*\template:

Code: Select all

<!-- IF S_CAN_VIEW_AS -->
	<div class="forabg">
		<div class="inner">
			<span class="corners-top"><span></span></span>
			<ul class="topiclist">
				<li class="header">
					<dl>
						<dt>{L_SHOUTBOX}</dt>
					</dl>
				</li>
			</ul>
			<span id="shoutbox"></span>
			<span class="corners-bottom"><span></span></span>
		</div>
	</div>
	<script type="text/javascript">
	//<![CDATA[
	display_shoutbox = true;
	load_shout();
	//]]>
	</script>
<!-- ENDIF -->
So (oder so ähnlich) sollte es funktionieren ...

Viel Erfolg!

Can someone translate for me please?

Re: Shoutbox einbauen....

Posted: 27. August 2008 23:04
by absolute_beginner
Pete wrote:Can someone translate for me please?
...das trau' ich mir gerade noch zu :D

the instructions are for Pauls shoutbox 1.2.RC1

Öffne = OPEN
Finde = FIND
-
Danach einfügen = ADD AFTER
Füge davor ein = INSERT BEFORE
-
Erstelle einen... = make a file called(named) shout_body.html
and put the following stuff in:

Code: Select all

<!-- IF S_CAN_VIEW_AS -->
   <div class="forabg">
      <div class="inner">
         <span class="corners-top"><span></span></span>
         <ul class="topiclist">
            <li class="header">
               <dl>
                  <dt>{L_SHOUTBOX}</dt>
               </dl>
            </li>
         </ul>
         <span id="shoutbox"></span>
         <span class="corners-bottom"><span></span></span>
      </div>
   </div>
   <script type="text/javascript">
   //<![CDATA[
   display_shoutbox = true;
   load_shout();
   //]]>
   </script>
<!-- ENDIF -->
save this file in that directory: \styles\*your_style*\template\shout_body.html

Good luck - have fun - it works!

Greetz,
Beginner

Re: Shoutbox einbauen....

Posted: 29. August 2008 00:36
by thomas.d
Pete wrote:... Can someone translate for me please?
Hi Pete,

the question was about how to integrate an ajax shotbox to the portal. Another user asked the same in the english support section here and I answered with viewtopic.php?f=10&t=883#p6065 ...

Re: Shoutbox einbauen....

Posted: 10. September 2008 11:14
by dunzi
Hallo
habe auch phpBB 3.02 / Board3 Portal 1.0.0RC3 die Ajax-Shoutbox 1.2 RC1 von Paul (phpbb.com) eingebaut und auch
nach der Anleitung in diesem Thread diese zum Portal hinzugefügt.

Im Administrationsbereich wird mir auch unter mods die aufgelistet, jedoch nicht im "normalen" Bereich.
Auch nach leeren des Caches ist nichts von der Shoutbox zu sehen. Wenn ich in shout_body.html
ausserhalb von
<!-- IF S_CAN_VIEW_AS -->
<div class="forabg">

zum Beispiel TEST TEST eingebe erscheint dies auch.
Hab ich noch irgendwelche Einstellungen übersehen ??
Gruß
Dunzi

Re: Shoutbox einbauen....

Posted: 10. September 2008 12:26
by thomas.d
Hast du deinen Benutzergruppen die entsprechenden Rechte gegeben?