Haumis wbb hilfe (http://haumis-wbb-hilfe.de/wbb2/index.php)
- Veränderungen (http://haumis-wbb-hilfe.de/wbb2/board.php?boardid=15)
-- Codes PHP / html (http://haumis-wbb-hilfe.de/wbb2/board.php?boardid=49)
--- Die Shoutbox von einem Board in einer HP einbinden (http://haumis-wbb-hilfe.de/wbb2/thread.php?threadid=710)
Geschrieben von wir.2 am 25.05.2010 um 20:15:
Die Shoutbox von einem Board in einer HP einbinden
Hallo,
ich habe mal versucht die Shoutbox auf einer Homepage einzubinden.
Jedoch ist mir das nicht ganz gelungen >>>
http://www.bierclub-krugau.de/test.htm
es sollte nur die Shoutbox sein.
<?php ################################################################# # ************************************************************* # # * Shoutbox (c) by Devil (
www.devils-lair.de) * # # * Version wBB 2.3 (c) by alfie * # # * Support unter:
www.gt-corner.de * # # ************************************************************* # ################################################################# $filename = "shoutbox_page.php"; require('global.php'); require_once('shoutbox_include_index.php'); require_once('./acp/lib/xfunctions.php'); $checker = checkcpr("sbx"); $config_row = $db->query_first("SELECT * FROM bb".$n."_shoutbox_config"); $config_row = stripslashes_array($config_row); if(access_allowed($config_row['grsehen']) && $bancheck == "") { eval("\$tpl->output(\"".$tpl->get("shoutbox_page")."\");"); } else access_error(); ?>
code: |
1:
|
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>test</title> <style> <!-- .smallfont { font-size: 13px; font-family: Comic Sans MS; color: #A15721; } --> </style> <!--mstheme--><link rel="stylesheet" type="text/css" href="_themes/bierclub-2/bier1011.css"><meta name="Microsoft Theme" content="bierclub-2 1011, default"> </head> <body> <script type="text/javascript"> // Dynamic Iframe loader function loadIframe(theURL) { document.getElementById("shoot").src=theURL; } // resizes Iframe according to content function resizeMe(obj){ docHeight = shoot.document.height || shoot.document.body.scrollHeight obj.style.height = docHeight + 'px' } </script> <iframe id="shoot" name="shoot" onload="resizeMe(this)" allowtransparency="true" src="http://bierclub-krugau.bplaced.net/Board/shoutbox_hp_page.php" width="100%" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" height="1200"></iframe> <br/> <span class="smallfont"><br /> </span> </body> </html> |
|
was müste ich da in der global_hp.php ändern ?
ober gibt es eine andere Möglichkeit ?
Geschrieben von haumi am 25.05.2010 um 21:11:
Ich kenne leider das Problem Homepage nicht.
Die Shoutbox wird durch das bzw. die Templates dargestellt.
Die Einträge werden von den entsprechenden php-Dateien ausgewertet, aufbereitet und an die Templates weiter gegeben.
Die templates werden in der php-Datei durch den eval-Befehl aufgerufen.
Wenn NUR die Shoutbox eingebaut werden soll dann würde ich die xy-Box nehmen und auch da müsste ich mir die HP bzw deren Aufbau ansehen um eine Einbindung zu machen..
LG
haumi
Geschrieben von nobody am 25.05.2010 um 21:28:
Frage:
Ist das jetzt die richtige Seite wo die Laberbox eingebaut ist?
Ist es richtig das es ein "Teil" WBB2.3.x ist?
nobody
Geschrieben von wir.2 am 25.05.2010 um 21:37:
Zitat: |
Original von nobody
Frage:
Ist das jetzt die richtige Seite wo die Laberbox eingebaut ist?
Ist es richtig das es ein "Teil" WBB2.3.x ist?
nobody |
|
das ist ersteinmal eine Testseite geschrieben in html auf dem Server wo auch die HP ist
und es ist ein "Teil" WBB2.3.x doch leider zu viel...... es sollte ja nur die Shoutbox zu sehen sein..
aber vielleicht ist das ja gar nicht die richtige php datei (shoutbox_page.php) die ich hier aufrufe? >>>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>test</title>
<style>
<!--
.smallfont {
font-size: 13px;
font-family: Comic Sans MS;
color: #A15721;
}
-->
</style>
<meta name="Microsoft Theme" content="bierclub-2 1011, default">
</head>
<body>
<script type="text/javascript">
// Dynamic Iframe loader
function loadIframe(theURL) {
document.getElementById("shoot").src=theURL;
}
// resizes Iframe according to content
function resizeMe(obj){
docHeight = shoot.document.height || shoot.document.body.scrollHeight
obj.style.height = docHeight + 'px'
}
</script>
<iframe id="shoot" name="shoot" onload="resizeMe(this)" allowtransparency="true" src="http://bierclub-krugau.bplaced.net/Board/shoutbox_page.php" width="100%" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" height="1200"></iframe>
<br/>
<span class="smallfont"><br /> </span>
</body>
</html>
ich habe da noch eine "shoutbox_include_portal.php" die ich nicht nutze, doch da bekomme ich eine Fehlermeldung >>>
http://bierclub-krugau.bplaced.net/Board/shoutbox_include_portal.php
vielleicht kann man diese datei für mein vorhaben umschreiben?
Geschrieben von nobody am 25.05.2010 um 23:16:
Es ist einfacher lösbar:
Erstelle ein templates mit Namen:
index_shortbox.tpl
code: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
|
<?xml version="1.0" encoding="{$lang->items['LANG_GLOBAL_ENCODING']}"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{$lang->items['LANG_GLOBAL_DIRECTION']}" lang="{$lang->items['LANG_GLOBAL_LANGCODE']}" xml:lang="{$lang->items['LANG_GLOBAL_LANGCODE']}">
<head>
<title>$master_board_name | {$lang->items['LANG_START_TITLE']}</title>
$headinclude
</head>
<body>
$header
$shoutbox
$footer
</body>
</html> |
|
wobei wenn nicht gewünscht:
kann der Teil entfernt werden.
Dann noch eine PHP Datei erstellen mit Namen
index_shortbox.php
code: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
|
<?php
// ************************************************************************************//
// * WoltLab Burning Board 2
// ************************************************************************************//
// * Copyright (c) 2001-2004 WoltLab GmbH
// * Web http://www.woltlab.de/
// * License http://www.woltlab.de/products/burning_board/license_en.php
// * http://www.woltlab.de/products/burning_board/license.php
// ************************************************************************************//
// * WoltLab Burning Board 2 is NOT free software.
// * You may not redistribute this package or any of it's files.
// ************************************************************************************//
// * $Date: 2005-06-16 14:28:46 +0200 (Thu, 16 Jun 2005) $
// * $Author: Burntime $
// * $Rev: 1618 $
// ************************************************************************************//
$filename = 'index_shortbox.php';
require('./global.php');
$lang->load('START');
############## Devils Shoutbox ##############
$shoutbox = "";
require('./shoutbox_include_index.php');
############## Shoutbox Ende ################
eval("\$tpl->output("".$tpl->get("index_shortbox")."");");
?> |
|
Speichern.
Dann noch ein Button erstellen im headertemplates der die shortbox aufrufen lässt.
code: |
1:
|
<a href="index_shortbox.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_sb.gif" border="0" alt="{$lang->items['LANG_GLOBAL_SB']}" title="{$lang->items['LANG_GLOBAL_SB']}" /></a> |
|
Sprachvariable erstellen:
in
GOLBAL
Sprachvariable:
LANG_GLOBAL_SB
Textinhalt:
Shortbox-Seite
In die global.php einfügen:
Suche :
code: |
1:
|
eval("\$footer = "".$tpl->get("footer")."";"); |
|
Füge darunter ein:
code: |
1:
|
eval("\$index_shortbox = "".$tpl->get("index_shortbox ")."";"); |
|
Damit sollte es klappen
nobody
Geschrieben von wir.2 am 26.05.2010 um 01:04:
Zitat: |
Original von nobody
Damit sollte es klappen
nobody |
|
einfach SUPER
genau so hatte ich mir das vorgestellt
hier nun das Ergebnis >>>>>
www.bierclub-krugau.de
(erst mal unten zu sehen)
geht der Hintergrund auch noch wech...
(muß aber nicht unbedigt sein)
Geschrieben von nobody am 26.05.2010 um 10:53:
Zitat: |
Original von wir.2
......
geht der Hintergrund auch noch wech...
(muß aber nicht unbedigt sein) |
|
Da würde ich die Größe der Shortbox ändern.
Dann sollte der Hintergrund überdeckt sein.
Forensoftware: Burning Board 2.3.6, entwickelt von WoltLab GmbH