|
View previous topic :: View next topic |
| Author |
Message |
mskphi Agent


Offline Joined: Jul 15, 2004 Posts: 99
|
Posted: 19.07.2004 00:27 Post subject: Guestbook4u nummerierung |
|
moin, bin fleissig am testen, hab bei mir (manchmal??) das problem, dass die einträge alle die gleiche nummer haben. hab das problem erst nach ein paar einträgen festgestellt. hat das noch jemand??
mskphi's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Apache1.3.33/PHP 4.4.7/MySQL 4.0.27/CPG 9.1.2.1
|
|
| Back to top |
|
 |
mskphi Agent


Offline Joined: Jul 15, 2004 Posts: 99
|
Posted: 19.07.2004 00:29 Post subject: Re: Guestbook4u nummerierung |
|
ups, sorry, falsches forum, oder??
mskphi's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Apache1.3.33/PHP 4.4.7/MySQL 4.0.27/CPG 9.1.2.1
|
|
| Back to top |
|
 |
Ertan Webmaster


Offline Joined: Mar 19, 2004 Posts: 1264 Location: Germany
|
Posted: 19.07.2004 12:18 Post subject: Re: Guestbook4u nummerierung |
|
benutzt du die aktuelle version ?
_________________ .: USE THE FORCE :.
Helft mit ! Keine Unbeantworteten Beiträge mehr
Ertan's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
mskphi Agent


Offline Joined: Jul 15, 2004 Posts: 99
|
Posted: 20.07.2004 19:36 Post subject: Re: Guestbook4u nummerierung |
|
ja, 8.2a
sollte ich mir die version irgendwie zerschossen haben? taucht der fehler sonst nicht auf?
mskphi's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Apache1.3.33/PHP 4.4.7/MySQL 4.0.27/CPG 9.1.2.1
|
|
| Back to top |
|
 |
Ertan Webmaster


Offline Joined: Mar 19, 2004 Posts: 1264 Location: Germany
|
Posted: 20.07.2004 22:50 Post subject: Re: Guestbook4u nummerierung |
|
und aktuelleste guestbook4u version auch ?
_________________ .: USE THE FORCE :.
Helft mit ! Keine Unbeantworteten Beiträge mehr
Ertan's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
mskphi Agent


Offline Joined: Jul 15, 2004 Posts: 99
|
Posted: 29.07.2004 00:06 Post subject: Re: Guestbook4u nummerierung |
|
inzwischen bin ich bei version 8.2b. das problem besteht weiterhin. allerdings kann ich nicht genau nachvollziehen woran es liegt. manchmal passt die darstellung, machmal nicht...
mskphi's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Apache1.3.33/PHP 4.4.7/MySQL 4.0.27/CPG 9.1.2.1
|
|
| Back to top |
|
 |
Ertan Webmaster


Offline Joined: Mar 19, 2004 Posts: 1264 Location: Germany
|
|
| Back to top |
|
 |
mskphi Agent


Offline Joined: Jul 15, 2004 Posts: 99
|
Posted: 16.09.2004 18:03 Post subject: Re: Guestbook4u nummerierung |
|
guestbook ist auf meiner hp. ausloeser
mskphi's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Apache1.3.33/PHP 4.4.7/MySQL 4.0.27/CPG 9.1.2.1
|
|
| Back to top |
|
 |
Ertan Webmaster


Offline Joined: Mar 19, 2004 Posts: 1264 Location: Germany
|
Posted: 24.09.2004 12:27 Post subject: Re: Guestbook4u nummerierung |
|
hi ,
teste mal folgendes :
modules/guestbook4u/index.php
$g_i => $gbook4u_i
und
$g_id => $gbook4u_id
ändern
_________________ .: USE THE FORCE :.
Helft mit ! Keine Unbeantworteten Beiträge mehr
Ertan's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
mskphi Agent


Offline Joined: Jul 15, 2004 Posts: 99
|
Posted: 26.09.2004 21:32 Post subject: Re: Guestbook4u nummerierung |
|
habs jetzt so gelöst:
Array:
$g_id = $total_entry-$entry;
$g_i=$g_id+1;
...
$g_i--;
scheint zu funktionieren und sieht toll aus!!
trotzdem danke für den hinweis auf die stelle, hat mir suchen erspart.
mskphi's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Apache1.3.33/PHP 4.4.7/MySQL 4.0.27/CPG 9.1.2.1
|
|
| Back to top |
|
 |
Aragon01 Guest

|
Posted: 21.10.2004 19:12 Post subject: Re: Guestbook4u nummerierung |
|
Habe das selbe Problem, nur das keine der Vorschläge mir weitergeholfen hat ( oder es liegt an mir *g*)
[quote]modules/guestbook4u/index.php
$g_i => $gbook4u_i
und
$g_id => $gbook4u_id
ändern[/quote]
muss ich doch dann alle Variablen dementsprechend ändern, oder?
Den nselbst wenn ich diese ersetze, tut sich an der Nummerirung nichts. Er scheint passend zu zählen, nimmt aber halt die Zahl der Einträge als Nummer für alle Einträge ;-/
|
|
| Back to top |
|
 |
Ertan Webmaster


Offline Joined: Mar 19, 2004 Posts: 1264 Location: Germany
|
|
| Back to top |
|
 |
Aragon Investigator


Offline Joined: Oct 20, 2004 Posts: 6
|
Posted: 23.10.2004 03:51 Post subject: Re: Guestbook4u nummerierung |
|
Stimmt, wär nicht uninteressant *g*
macht-doof.de/cpgnuke/...uestbook4U
Aragon please enter your server specs in your user profile!
|
|
| Back to top |
|
 |
Aragon Investigator


Offline Joined: Oct 20, 2004 Posts: 6
|
Posted: 25.10.2004 10:11 Post subject: Re: Guestbook4u nummerierung |
|
Hm.. gibts hier kein Edit oder so?
Also, habe eben was witziges festgestellt.. Bin ich als Admin eingeloggt, zählt das Gästebuch korrekt, logge ich mich als normaler User / als Gast ein, bekommt jedes GB Post als Ziffer die der Gesamtzahl an Posts... Vllt grenzt das ja mein Problem ein...
Aragon please enter your server specs in your user profile!
|
|
| Back to top |
|
 |
Ertan Webmaster


Offline Joined: Mar 19, 2004 Posts: 1264 Location: Germany
|
Posted: 25.10.2004 13:43 Post subject: Re: Guestbook4u nummerierung |
|
in modules/guestbook4u/index.php
function ShowGuestbook4U($module_name,$entry)
{
require_once("header.php");
global $db, $prefix, $admin, $module_name, $entry, $total_entry;
global $bgcolor1, $bgcolor2, $AllowableHTML;
global $gbook4uinfo, $navigation;
OpenTable();
echo "[ <a href=\"".getlink("Guestbook4U&amp;op=AddEntry")."\">". _SIGNGUESTBOOK."</a></b> ]";
CloseTable();
Overall_Header();
echo "<br />";
$sql = "select * from ".$prefix."_guestbook4u order by id desc limit $entry, ".$gbook4uinfo['entries_per_page']."";
$result = $db->sql_query($sql); $gbook4u_id = $total_entry-$entry;while ($row = $db->sql_fetchrow($result))
{
OpenTable();
// $date = $row['date'];
$date=date("d.m.Y",$row['date']);
$comment = $row['comment'];
$comment = check_words($comment);
if ($gbook4uinfo['allow_html'] == 0) { $comment = htmlspecialchars($comment); }
// if ($gbook4uinfo['allow_nbbcode'] == 1){ $comment = decode_bbcode($comment); }
// if ($gbook4uinfo['allow_smilies'] == 1){ $comment = set_smilies($comment); }
if ($gbook4uinfo['allow_nbbcode'] == 1){ $comment = decode_bbcode(set_smilies(encode_bbcode($comment)),1); }
if (($gbook4uinfo['show_userinfo'] == 1) and ($row['user'] == '1')){
echo "<b>$gbook4u_id.<a href=\"".getlink("Your_Account&op=userinfo&username=".$row['name']."")."\">".$row['name']."</b></a>\n";
}else{
echo "<b>$gbook4u_id.".$row['name']."</b>\n";
}
if ($row['email']) {
echo " <a href=\"mailto:".$row['email']."\"><img border=\"0\" alt=\"Email\" align=\"middle\" src=\"modules/".$module_name."/images/mail.gif\" width=\"20\" height=\"17\"></a>\n";
}
if ($row['url']) {
echo " <a href=\"".$row['url']."\" target=\"_blank\"><img border=\"0\" alt=\"Homepage\" src=\"modules/".$module_name."/images/url.gif\" align=\"middle\" width=\"20\" height=\"20\"></a>\n";
}
// $gbook4u_i--;
echo "<b><img alt=\"$module_name\" src=\"modules/".$module_name."/images/post.gif\" width=\"9\" height=\"9\">$date</b>";
CloseTable();
OpenTable();
echo "<br />";
$comment = substr($comment, 0, $gbook4uinfo['max_wordlength']);
echo $comment;
echo "<br />";
CloseTable();
if (is_admin($admin)){
OpenTable();
if ($gbook4uinfo['show_id'] == 1){
echo "&nbsp;<img alt=\"ID\" src=\"modules/$module_name/images/lock.gif\">&nbsp;&nbsp;ID:".$row['id']."";
}
if ($gbook4uinfo['show_ip'] == 1){
$hostname = ( eregi("^[-a-z_]+", $row['host']) ) ? "Host" : "IP";
echo "&nbsp;&nbsp;<img alt=\"IP \" src=\"modules/$module_name/images/ip.gif\">&nbsp;&nbsp;$hostname: ".$row['host']." - ";
}
echo "[&nbsp;<a href=\"".adminlink("Guestbook4UEditEntry&amp;id=$row[id]")."\">"._EDITENTRY."</a>";
echo "&nbsp;|&nbsp;<a href=\"".adminlink("Guestbook4UDeleteEntry&amp;id=$row[id]")."\">"._DELETEPOST."</a>&nbsp;]";
CloseTable();
} $gbook4u_id--;echo "<br />";
}habe downloads aktualliesiert
einfach index.php überschreiben
Ertan's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
|
|