Gästebuch V 3.0

Riolino
Dann hätteste das Burning Book goes WBB nehmen müssen, da is das so
DJ-Paradise
Servus

Ich habe Das GB Laut anleitung installiert .. im ACP is alles ok nur wenn ich auf Gästebuch Klicke bekomm ich die meldung
Zitat:
template "gb_view" doesnt exist


Ich habe die Template Gecachet normal in ACP und per acp/acp_tpl.php


geht aber dennoch net... woran könnt das liegen?
Umbra
Moin smile

Entwerden hast die Templates nicht hochgeladen oder nicht importiert.
hardcore-punk
Zitat:
Original von DJ-Paradise
Ich habe die Template Gecachet normal in ACP und per acp/acp_tpl.php


brauchst du normalerweise nur bei ACP-Templates ausführen.
wie Umbra bereits sagte hast du vermutlich nicht im ACP die Templates importiert bzw. gecached.
DJ-Paradise
sind hochgeladen und importiert plus gecachet

funzt dennoch nicht
Master-X
Die Fehlermeldung besagt aber, dass das Template nicht vorhanden ist. Eventuell hast du sie in das falsche Templatepack geladen - schau mal, ob sie im Templatepack deines Layouts sind.
Masterpmc
THX super das GB funzt auch super nice nice weiter so
Imperator
Hallo.
Was müßte ich tun um das Gästebuch NUR den Mitgliedern zu Verfügung zu stellen? Gäste sollen NICHT eintragen können.
Umbra
Moin smile

@ Imperator:

öffne die gaestebuch.php

suche nach

code:
1:
$lang->load('POSTINGS,GAESTEBUCH');


und füge darunter

code:
1:
if($wbbuserdata['userid']==0) access_error();
ein
Cruiser
Hallo,

habe das Gästebuch eingebaut, funktioniert Super !

Danke an Umbra. smile


Mir sind jedoch 3 Rechtschreibfehler aufgefallen, die ich gerne beseitigen würde, als "Nicht-Programmierer" aber nicht weiß, wie ich da dran komme.

1. Möchte ich das Wort "eintragen" mit einem großen E am Anfang.
2. Beim erstellen steht u.a. "Deine Kommentar:" Richtig wäre: DEIN Kommentar.
3. In der Benachrichtigungsmail an Admin/Mod ist ein Fehler, weiß jetzt aber nicht mehr genau wo.

Wie kann ich das beheben? Besser: In welcher Datei ist das hinterlegt?

Danke.

Ralf
Umbra
Moin smile

Ups...kann ja mal vorkommen Augen rollen

Also die ersten beiden findest du unter:

Sprachpaket bearbeiten -> übersetzen -> gaestebuch

Den dritten findest du in der geastebuch.php ab Zeile 185.
Cruiser
Tach.

Hat alles bestens geklappt.

DANKE !!!!! smile

Prost
firecop
Wenn ich im Acp bin steht unten

//Gästebucheinträge und noch nicht freigeschaltete $result = $db->query_first("SELECT * FROM bb".$n."_gaestebuch_setting"); $onoff = $result['freischalt']; $freischalt = $db->query_first("SELECT COUNT(*) FROM bb".$n."_gaestebuch WHERE freischalt =1"); $freischalt = $freischalt[0]; $eintrag = $db->query_first("SELECT COUNT(*) FROM bb".$n."_gaestebuch WHERE freischalt =0"); $eintrag = $eintrag[0];

Stört zwar nicht wirklich, aber bekommt man das irgendwie weg?
Umbra
Moin smile

Der Teil kommt in die welcome.php nicht welcome.htm Augenzwinkern
firecop
Habe ich auch eigentlich nicht rein gemacht^^

So sieht die .htm Datei aus

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:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
<?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></title>
<meta http-equiv="Content-Type" content="text/html; charset={$lang->items['LANG_GLOBAL_ENCODING']}" />
<link rel="stylesheet" href="css/main.css" />
</head>

<body>

<p align="center"><if($wbbuserdata['a_acp_or_mcp']==1)><then>{$lang->items['LANG_ACP_WELCOME_TITLE_ACP']}</then><else>{$lang->items['LANG_ACP_WELCOME_TITLE_MODCP']}</else></if></p>
<table cellpadding="4" cellspacing="1" border="0" class="tblborder" width="100%" align="center">
 <tr class="tblhead">
  <td colspan="2">{$lang->items['LANG_ACP_WELCOME_INFORMATION']}</td>
 </tr>
 <tr class="firstrow">
  <td><b>{$lang->items['LANG_ACP_WELCOME_BOARDVERSION']}</b></td>
  <td>$boardversion</td>
 </tr>
 <tr class="secondrow">
  <td><b>{$lang->items['LANG_ACP_WELCOME_INSTALLDATE']}</b></td>
  <td>$install_date</td>
 </tr>
 <tr class="firstrow">
  <td><b>{$lang->items['LANG_ACP_WELCOME_MEMBERS']}</b></td>
  <td>$stats[usercount]</td>
 </tr>
 <tr class="secondrow">
  <td><b>{$lang->items['LANG_ACP_WELCOME_USERONLINE']}</b></td>
  <td>$useronlinecount</td>
 </tr>
 <tr class="firstrow">
  <td><b>{$lang->items['LANG_ACP_WELCOME_POSTS']}</b></td>
  <td>$stats[postcount] $postsperday</td>
 </tr>
 <tr class="secondrow">
  <td><b>{$lang->items['LANG_ACP_WELCOME_THREADS']}</b></td>
  <td>$stats[threadcount] $threadsperday</td>
 </tr>
 <tr class="firstrow">
  <td><b>{$lang->items['LANG_ACP_WELCOME_PMSGS']}</b></td>
  <td>$pncount</td>
 </tr>
 <tr class="secondrow">
  <td><b>{$lang->items['LANG_ACP_WELCOME_ATTACHMENTS']}</b></td>
  <td>$attachmentcount ($attachmentsize)</td>
 </tr>
<tr class="firstrow">
  <td><b>Anzahl Gästebucheinträge</b></td><td>$eintrag</td>
 </tr>
 <if(checkAdminPermissions("a_can_users_activation"))>
 <then>
 <tr class="firstrow">
  <td colspan="2"><a href="users.php?action=show&amp;activation=-1&amp;sid=$session[hash]&amp;sortby=regdate&amp;sortorder=DESC">{$lang->items['LANG_ACP_WELCOME_W4ACTIVATION']}</a></td>
 </tr>
 </then>
 </if>
 <if(checkAdminPermissions("can_set_gb_eintrag") && $onoff == 1)>
 <then>
 <tr class="firstrow">
  <td colspan="2"><a href="gaestebuch.php?action=freischalten&sid=$session[hash]">$freischalt  Gästebucheinträgewarten auf die Freischaltung</a></td>
 </tr>
 </then>
 </if>
</table><br />

<if(checkAdminPermissions("a_can_template_search") || checkAdminPermissions("a_can_languagepack_search") || checkAdminPermissions("a_can_users_edit") || checkAdminPermissions("a_can_users_delete") || checkAdminPermissions("a_can_users_email") || checkAdminPermissions("a_can_users_merge") || checkAdminPermissions("a_can_users_other"))>
<then>
 
<table cellpadding="4" cellspacing="1" border="0" class="tblborder" width="100%" align="center">
 <tr class="tblhead">
  <td colspan="2">{$lang->items['LANG_ACP_WELCOME_QUICKSEARCH']}</td>
 </tr>
 
 <if(checkAdminPermissions("a_can_users_edit") || checkAdminPermissions("a_can_users_delete") || checkAdminPermissions("a_can_users_email") || checkAdminPermissions("a_can_users_merge") || checkAdminPermissions("a_can_users_other"))>
 <then>
 
 <tr class="firstrow">
  <td><b>{$lang->items['LANG_ACP_WELCOME_QUICKSEARCH_USERNAME']}</b></td>
  <td>
   <form method="post" action="users.php">
    <input type="hidden" name="send" value="send" />
    <input type="hidden" name="action" value="show" />
    <input type="hidden" name="sid" value="$session[hash]" />
    <input type="text" name="username" value="" size="40" maxlength="255" />
    <input type="submit" value="{$lang->items['LANG_ACP_GLOBAL_SEARCHFORM']}" />
   </form>  
  </td>
 </tr>
 
 </then>
 </if>
 
 <if(checkAdminPermissions("a_can_template_search"))>
 <then>
 
 <tr class="secondrow">
  <td><b>{$lang->items['LANG_ACP_WELCOME_QUICKSEARCH_TEMPLATE']}</b></td>
  <td>
   <form method="post" action="template.php">
    <input type="hidden" name="send" value="send" />
    <input type="hidden" name="action" value="search" />
    <input type="hidden" name="sid" value="$session[hash]" />
    <input type="hidden" name="templatepackid" value="*" />
    <input type="hidden" name="dosearch" value="1" />
    <input type="text" name="search" value="" size="40" maxlength="255" />
    <input type="submit" value="{$lang->items['LANG_ACP_GLOBAL_SEARCHFORM']}" />
   </form>  
  </td>
 </tr>
 
 </then>
 </if>
 
 <if(checkAdminPermissions("a_can_languagepack_search"))>
 <then>
 
 <tr class="firstrow">
  <td><b>{$lang->items['LANG_ACP_WELCOME_QUICKSEARCH_LANGITEM']}</b></td>
  <td>
   <form method="post" action="languagepack.php">
    <input type="hidden" name="send" value="send" />
    <input type="hidden" name="action" value="search" />
    <input type="hidden" name="sid" value="$session[hash]" />
    <input type="hidden" name="languagepackid" value="0" />
    <input type="hidden" name="dosearch" value="1" />
    <input type="text" name="search" value="" size="40" maxlength="255" />
    <input type="submit" value="{$lang->items['LANG_ACP_GLOBAL_SEARCHFORM']}" />
   </form>  
  </td>
 </tr>
 
 </then>
 </if>
 
</table>
<br />
</then>
</if>

<if($serverinfo==1)>
<then>
<table cellpadding="4" cellspacing="1" border="0" class="tblborder" width="100%" align="center">
 <tr class="tblhead">
  <td colspan="2">{$lang->items['LANG_ACP_WELCOME_SERVERLOAD']}</td>
 </tr>
 <tr class="firstrow">
  <td><b>{$lang->items['LANG_ACP_WELCOME_SERVERLOAD_1']}</b></td>
  <td<if($match[1]>100)><then> style="color: red; font-weight: bold;"</then></if>>$match[1]%</td>
 </tr>
 <tr class="secondrow">
  <td><b>{$lang->items['LANG_ACP_WELCOME_SERVERLOAD_5']}</b></td>
  <td<if($match[2]>100)><then> style="color: red; font-weight: bold;"</then></if>>$match[2]%</td>
 </tr>
 <tr class="firstrow">
  <td><b>{$lang->items['LANG_ACP_WELCOME_SERVERLOAD_15']}</b></td>
  <td<if($match[3]>100)><then> style="color: red; font-weight: bold;"</then></if>>$match[3]%</td>
 </tr>
</table><br />
</then>
</if>

<table cellpadding="4" cellspacing="1" border="0" class="tblborder" width="100%" align="center">
 <tr class="tblhead">
  <td colspan="2">{$lang->items['LANG_ACP_WELCOME_SUPPORT']}</td>
 </tr>
 <tr class="firstrow">
  <td><b>{$lang->items['LANG_ACP_WELCOME_DOCUMENTATION']}</b></td>
  <td>{$lang->items['LANG_ACP_WELCOME_DOCUMENTATION_URL']}</td>
 </tr>
 <tr class="secondrow">
  <td><b>{$lang->items['LANG_ACP_WELCOME_SUPPORTBOARD']}</b></td>
  <td>{$lang->items['LANG_ACP_WELCOME_SUPPORTBOARD_URL']}</td>
 </tr>
 <tr class="firstrow">
  <td><b>{$lang->items['LANG_ACP_WELCOME_MEMBERSAREA']}</b></td>
  <td>{$lang->items['LANG_ACP_WELCOME_MEMBERSAREA_URL']}</td>
 </tr>
</table>
</body>
</html>

Umbra
Hi smile

Dann schau dir bitte nochmal den einbau in der welcome.php an.
firecop
Da gibt es ja nur eine Sache.

Sollte richtig sein, die Datei sieht jetzt so aus.

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:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
<?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: 2004-10-20 20:57:36 +0200 (Wed, 20 Oct 2004) $
// * $Author: Burntime $
// * $Rev: 1455 $
// ************************************************************************************//


require('./global.php');
$lang->load('ACP_WELCOME');

// delete old sessions and searchrequests
$db->unbuffered_query("DELETE FROM bb".$n."_sessions WHERE lastactivity<".(time() - $sessiontimeout), 1);
$db->unbuffered_query("DELETE FROM bb".$n."_searchs WHERE searchtime<".(time() - 86400 * 7), 1);
$db->unbuffered_query("DELETE FROM bb".$n."_register_keys WHERE key_date<".(time() - 86400), 1);

// delete attachments without relation
$result = $db->query("SELECT attachmentid, attachmentextension, thumbnailextension FROM bb".$n."_attachments WHERE postid=0 AND privatemessageid=0 AND uploadtime>0 AND uploadtime<".(time() - 86400));
while ($row = $db->fetch_array($result)) {
	@unlink('./../attachments/attachment-'.$row['attachmentid'].'.'.$row['attachmentextension']);
	@unlink('./../attachments/thumbnail-'.$row['attachmentid'].'.'.$row['thumbnailextension']);
}
$db->unbuffered_query("DELETE FROM bb".$n."_attachments WHERE postid=0 AND privatemessageid=0 AND uploadtime>0 AND uploadtime<".(time() - 86400), 1);



/** prepare stats **/
$install_date = formatdate($wbbuserdata['dateformat']." ".$wbbuserdata['timeformat'], $installdate);

$stats = $db->query_first("SELECT * FROM bb".$n."_stats");
list($useronlinecount) = $db->query_first("SELECT COUNT(*) FROM bb".$n."_sessions WHERE lastactivity >= '".(time() - 60 * $useronlinetimeout)."'");
list($pncount) = $db->query_first("SELECT COUNT(*) FROM bb".$n."_privatemessage");

$attachmentinfo = $db->query_first("SELECT COUNT(*) AS attachmentcount, (SUM(attachmentsize) + SUM(thumbnailsize)) AS attachmentsize FROM bb".$n."_attachments");
$attachmentcount = $attachmentinfo['attachmentcount'];
$attachmentsize = formatFilesize($attachmentinfo['attachmentsize']);

$installdays = (time() - $installdate) / 86400;
if ($installdays < 1) {
	$perday = number_format($stats['postcount'], 2, $lang->get("LANG_GLOBAL_DEC_POINT"), $lang->get("LANG_GLOBAL_THOUSANDS_SEP"));
	$postsperday = $lang->get("LANG_ACP_WELCOME_PERDAY", array('$perday' => $perday));
	
	$perday = number_format($stats['threadcount'], 2, $lang->get("LANG_GLOBAL_DEC_POINT"), $lang->get("LANG_GLOBAL_THOUSANDS_SEP"));
	$threadsperday = $lang->get("LANG_ACP_WELCOME_PERDAY", array('$perday' => $perday));
}
else {
	$perday = number_format($stats['postcount'] / $installdays, 2, $lang->get("LANG_GLOBAL_DEC_POINT"), $lang->get("LANG_GLOBAL_THOUSANDS_SEP"));
	$postsperday = $lang->get("LANG_ACP_WELCOME_PERDAY", array('$perday' => $perday));
	
	$perday = number_format($stats['threadcount'] / $installdays, 2, $lang->get("LANG_GLOBAL_DEC_POINT"), $lang->get("LANG_GLOBAL_THOUSANDS_SEP"));
	$threadsperday = $lang->get("LANG_ACP_WELCOME_PERDAY", array('$perday' => $perday));
}

list($waiting4Activation) = $db->query_first("SELECT COUNT(*) FROM bb".$n."_users WHERE activation<>1");
$lang->items['LANG_ACP_WELCOME_W4ACTIVATION'] = $lang->get("LANG_ACP_WELCOME_W4ACTIVATION", array('$waiting4Activation' => $waiting4Activation));

$serverinfo = 0;
if ($uptime = @exec("uptime")) {
	if (preg_match("/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/", $uptime, $match)) {
		
		$match[1] *= 100;
		$match[2] *= 100;
		$match[3] *= 100;
		
		$serverinfo = 1;
	}
}

if ($stats['usercount'] >= 1000) $stats['usercount'] = number_format($stats['usercount'], 0, "", $lang->get("LANG_GLOBAL_THOUSANDS_SEP"));
if ($stats['threadcount'] >= 1000) $stats['threadcount'] = number_format($stats['threadcount'], 0, "", $lang->get("LANG_GLOBAL_THOUSANDS_SEP"));
if ($stats['postcount'] >= 1000) $stats['postcount'] = number_format($stats['postcount'], 0, "", $lang->get("LANG_GLOBAL_THOUSANDS_SEP"));
if ($pncount >= 1000) $pncount = number_format($pncount, 0, "", $lang->get("LANG_GLOBAL_THOUSANDS_SEP"));
if ($attachmentcount >= 1000) $attachmentcount = number_format($attachmentcount, 0, "", $lang->get("LANG_GLOBAL_THOUSANDS_SEP"));

eval("\$tpl->output(\"".$tpl->get("welcome", 1)."\",1);");
?>

//Gästebucheinträge und noch nicht freigeschaltete
$result = $db->query_first("SELECT * FROM bb".$n."_gaestebuch_setting");
$onoff = $result['freischalt'];

$freischalt = $db->query_first("SELECT COUNT(*) FROM bb".$n."_gaestebuch WHERE freischalt =1");
$freischalt = $freischalt[0];

$eintrag = $db->query_first("SELECT COUNT(*) FROM bb".$n."_gaestebuch WHERE freischalt =0");
$eintrag = $eintrag[0];

Umbra
Leider ist es so nicht ganz richtig...


code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
//Gästebucheinträge und noch nicht freigeschaltete
$result = $db->query_first("SELECT * FROM bb".$n."_gaestebuch_setting");
$onoff = $result['freischalt'];

$freischalt = $db->query_first("SELECT COUNT(*) FROM bb".$n."_gaestebuch WHERE freischalt =1");
$freischalt = $freischalt[0];

$eintrag = $db->query_first("SELECT COUNT(*) FROM bb".$n."_gaestebuch WHERE freischalt =0");
$eintrag = $eintrag[0];

muß über

code:
1:
2:
eval("\$tpl->output(\"".$tpl->get("welcome", 1)."\",1);");
?>

und nicht darunter Freude
firecop
oh^^

Danke
I¢è Brèàkèr
hi! Finde im ACP keine bedienung fürs gästebuch


bitt eum hilfe danke smile


sonst funzt alles supi!