4images Forum & Community
4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: b.o.fan on August 14, 2006, 07:28:46 PM
-
Hello @ all!
NEW VERSION 1.0.2 ;) with templates... and for the Gender - MOD [here] (http://www.4homepages.de/forum/index.php?topic=6000.0) and Member - Photo from V@no [here] (http://www.4homepages.de/forum/index.php?topic=6797.0) and with BB-CODE (like details.php ;) )
Look @ this Request! http://www.4homepages.de/forum/index.php?topic=11679.45 !
i made i little php. its only a betha. i test it ONLY 1.72 and 1.73 WITHOUT ANY MOD'S!
i think with the help in this great forum we can instert the bbcode-function, the badword-function, and the smiles-function, chypta-function, and so on ;) ;) and make the code smaller and faster^^
PLEASE NOTE I'M A PHP BEGINNER....
So i beginn ;)
SAVE YOUR FILES, AND MAKE A BACKUP!
new files:
/gb.php
/template/<your_template>/user_gb.html
/template/<your_template>/user_gb_bit.html
/template/<your_template>/user_gb_delete.html
/template/<your_template>/user_gb_new.html
/template/<your_template>/user_gb_showgb.html
/template/<your_template>/images/gb_english.gif (if you have an other language rename your button to gb_[language_dir].gif)
/template/<your_template>/images/gb_deutsch.gif
/template/<your_template>/images/entry_new_english.gif (if you have an other language rename your button to entry_new_[language_dir].gif)
/template/<your_template>/images/entry_new_deutsch.gif
changed files
/includes/constants.php
/includes/page_header.php
/member.php
/lang/<your_language>/main.php
/template/default/user_logininfo.html
/template/default/member_profil.html
create a new database field with
1.
CREATE TABLE `4images_users_gb` (
`users_gb_id` smallint(5) NOT NULL auto_increment,
`user_id_gb` smallint(5) NOT NULL default '0',
`user_id_ein` smallint(5) NOT NULL default '0',
`user_name_gb` varchar(50) NOT NULL default '',
`user_gb_text` text NOT NULL,
`user_gb_date` timestamp NOT NULL default '0000-00-00 00:00:00',
`user_gb_read` timestamp NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (`users_gb_id`)
) TYPE=MyISAM;
2. UPDATEED 08-18-2006
create a new file called: gb.php
with this code
<?php
/**************************************************************************
* *
* 4images - A Web Based Image Gallery Management System *
* ---------------------------------------------------------------- *
* *
* File: gb.php *
* Copyright: (C) 2002 Jan Sorgalla *
* Email: jan@4homepages.de *
* Web: http://www.4homepages.de *
* Scriptversion: 1.7.3 *
* *
* Never released without support from: Nicky (http://www.nicky.net) *
* *
**************************************************************************
* *
* Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz- *
* bedingungen (Lizenz.txt) für weitere Informationen. *
* --------------------------------------------------------------- *
* This script is NOT freeware! Please read the Copyright Notice *
* (Licence.txt) for further information. *
* *
**************************************************************************
* *
* User-Guestbook Version 1.0 betha for 4images *
* *
* Tested on 1.72 and 1.73 *
* *
* (C) 2006 by bofan *
* *
*************************************************************************/
$main_template = "user_gb";
define('GET_CACHES', 1);
define('ROOT_PATH', './');
include(ROOT_PATH.'global.php');
require(ROOT_PATH.'includes/sessions.php');
$user_access = get_permission();
include(ROOT_PATH.'includes/page_header.php');
if ($action == "")
{
$action = "showgb";
}
if ($action == "showgb_new")
{
$update_query = "UPDATE ".USERS_GB_TABLE." SET user_gb_read = NOW() WHERE user_id_gb =".$user_info['user_id']." AND user_gb_read = 0";
$sql = mysql_query($update_query);
$action = "showgb";
}
$msg_del = $_GET['msg_del'];
if($msg_del == "yes") $msg = $lang['user_gb_delete_ok'];
elseif($msg_del == "no") $msg = $lang['user_gb_delete_not'];
elseif($msg_del == "") $msg = "";
if ($action == "showgb") {
if ($user_info['user_level'] == GUEST) {
show_error_page($lang['no_permission']);
exit;
}
if($_GET['id'] == "") $id = $user_info[user_id]; else $id = $_GET['id'];
if(isset($id))
{
$query = "SELECT user_id, user_name FROM ".USERS_TABLE." WHERE user_id = ".$id."";
$sql = mysql_query($query);
$ds = mysql_fetch_object($sql);
$user_name = "<a href='member.php?action=showprofile&user_id=".$ds->user_id."' target=_self>".$ds->user_name."</a>";
$user_name2 = $ds->user_name;
} else {
$user_name = $user_info['user_name'];
$user_name2 = $user_info['user_name'];
}
if(isset($id)) {$abf_id = $id;} else {$abf_id = $user_info['user_id'];}
$user_gb_own = $lang['user_gb'].$user_name2."";
$button_in = "<a href='gb.php?action=new&id=".$abf_id."'><img border = 0 src = '".ROOT_PATH.TEMPLATE_PATH."/images/entry_new_".$config['language_dir'].".gif'></a>";
$query2 = "SELECT COUNT(*) FROM ".USERS_GB_TABLE." WHERE user_id_gb = ".$abf_id."";
$sql2 = mysql_query($query2);
$erg = mysql_result($sql2,0);
if($erg == "0"){$user_gb_entry = $erg.$lang['user_gb_entry'];}
elseif($erg == "1"){$user_gb_entry = $erg.$lang['user_gb_entrys'];}
elseif($erg > "1"){$user_gb_entry = $erg.$lang['user_gb_entrys'];}
$offset = @$_GET['off'];
if(isset($offset)) {$offset = $_GET['off'];} else {$offset = "0";}
// Without V@no's Member photo MOD and the GenderMod
//$gb_query = "SELECT users_gb_id,user_id_gb,user_id_ein,user_name_gb,user_gb_text,user_gb_date,DATE_FORMAT(user_gb_date,'%e.%c.%Y') AS user_gb_datum,DATE_FORMAT(user_gb_date,'%H:%i:%s') AS user_gb_uhr, user_id, user_name, user_level
// FROM (".USERS_GB_TABLE." i)
// LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id_ein)
// WHERE user_id_gb = ".$abf_id."
// ORDER BY user_gb_date DESC
// LIMIT $offset, 10";
//Only the Gender - MOD
//$gb_query = "SELECT users_gb_id,user_id_gb,user_id_ein,user_name_gb,user_gb_text,user_gb_date,DATE_FORMAT(user_gb_date,'%e.%c.%Y') AS user_gb_datum,DATE_FORMAT(user_gb_date,'%H:%i:%s') AS user_gb_uhr, user_id, user_name, user_level,user_sex
// FROM (".USERS_GB_TABLE." i)
// LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id_ein)
// WHERE user_id_gb = ".$abf_id."
// ORDER BY user_gb_date DESC
// LIMIT $offset, 10";
//Only the MemberPhoto MOD
//$gb_query = "SELECT users_gb_id,user_id_gb,user_id_ein,user_name_gb,user_gb_text,user_gb_date,DATE_FORMAT(user_gb_date,'%e.%c.%Y') AS user_gb_datum,DATE_FORMAT(user_gb_date,'%H:%i:%s') AS user_gb_uhr, user_id, user_name, user_level,user_sex,userpic
// FROM (".USERS_GB_TABLE." i)
// LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id_ein)
// WHERE user_id_gb = ".$abf_id."
// ORDER BY user_gb_date DESC
// LIMIT $offset, 10";
//With both MOD's
$gb_query = "SELECT users_gb_id,user_id_gb,user_id_ein,user_name_gb,user_gb_text,user_gb_date,DATE_FORMAT(user_gb_date,'%e.%c.%Y') AS user_gb_datum,DATE_FORMAT(user_gb_date,'%H:%i:%s') AS user_gb_uhr, user_id, user_name, user_level,user_sex,userpic
FROM (".USERS_GB_TABLE." i)
LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id_ein)
WHERE user_id_gb = ".$abf_id."
ORDER BY user_gb_date DESC
LIMIT $offset, 10";
$gb_sql = mysql_query($gb_query);
while($ds = mysql_fetch_object($gb_sql))
{
if($ds->user_id_ein == $user_info[user_id] AND $ds->user_id != $ds->user_id_gb)
{
$user_link_del = "<a href='gb.php?action=delete_entry&entry=".$ds->users_gb_id."&id=".$ds->user_id_gb."'>".$lang['delete']."</a>";} else {$user_link_del ="";
}
if($abf_id == $user_info[user_id])
{
$user_gb_delete = "<a href='gb.php?action=delete_entry&entry=".$ds->users_gb_id."&user=".$ds->user_id_gb."'>".$lang[delete]."</a> ".$user_link_del;
}
else {$user_gb_delete = $user_link_del;}
//For the Gender-MOD ;)
if ($ds->user_sex = "m") $gender = "<img border = 0 src = '".ROOT_PATH.TEMPLATE_PATH."/images/m.gif'>";
elseif ($ds->user_sex = "w") $gender = "<img border = 0 src = '".ROOT_PATH.TEMPLATE_PATH."/images/w.gif'>";
elseif ($ds->user_sex = "b") $gender = "<img border = 0 src = '".ROOT_PATH.TEMPLATE_PATH."/images/b.gif'>";
if ($ds->user_id == "")
{
$user = $ds->user_name_gb;
$gb_link = "";
$gender = "";
}
else
{
$user = "<b><a href='member.php?action=showprofile&user_id=".$ds->user_id_ein."'>".$ds->user_name_gb."</a></b>";
$gb_link = "<a href='gb.php?action=showgb&id=".$ds->user_id."'\n target=_self><img src='".ROOT_PATH.TEMPLATE_PATH."/images/gb_".$config['language_dir'].".gif' border=0></a>";
}
//if installed PERSONAL_PHOTO FROM V@noyou can uncomment
$userpic = $ds->userpic;
if ($userpic == "") $user_pic = "<img src='".ROOT_PATH."data/userpic/default.jpg' width=90px>";
else $user_pic = "<img src='".ROOT_PATH."data/userpic/".$userpic."'width=90px>";
$text = $ds->user_gb_text;
$gb_time = $ds->user_gb_datum.$lang['user_gb_at'].$ds->user_gb_uhr;
$level = $ds->user_level;
if($level == "9") {$level = $lang['level_admin'];}
elseif($level == "2") {$level = $lang['level_user'];}
else {$level = "";}
$site_template->register_vars(array(
"user" => $user,
"gb_time" => $gb_time,
"admin_link" => $user_gb_delete,
"userpic" => $user_pic,
"gender" => $gender,
"gb_link" => $gb_link,
"level" => $level,
"text" => format_text($text, $config['html_comments'], $config['wordwrap_comments'], $config['bb_comments'], $config['bb_img_comments'])
));
$gb_entrys .= $site_template->parse_template("user_gb_bit");
}
//Pageing
if($offset == 0) {$vor = $lang['user_gb_prev'];}
else
{
$offset2 = $offset - 10;
$vor = "<a href='gb.php?action=showgb&id=".$abf_id."&off=".$offset2."'>".$lang['user_gb_prev']."</a>";
}
$offset3 = $offset + 10;
if($offset3 >= $erg ) { $weiter = $lang['user_gb_next'];}
else {$weiter = "<a href='gb.php?action=showgb&id=".$abf_id."&off=".$offset3."'>".$lang['user_gb_next']."</a>";}
$gb_pageing = $vor." ".$weiter;
$site_template->register_vars(array(
"gb_entrys" => $gb_entrys,
"user_gb_own" => $user_gb_own,
"gb_pageing" => $gb_pageing,
"button_in" => $button_in,
"user_gb_entry" => $user_gb_entry,
"user_gb_entry_text" => $user_gb_entry_text
));
$txt_clickstream = $lang['user_gb'].$user_name;
$content = $site_template->parse_template("user_gb_showgb");
}
if ($action == "delete_entry")
{
if(isset($_GET['aktion']))
{
if($_GET['aktion'] == $lang['user_gb_delete_yes'])
{
$query = "DELETE FROM ".USERS_GB_TABLE." WHERE users_gb_id = ".@$_GET['entry']."";
$sql = $site_db->query($query);
$user_gb .= "<meta http-equiv=refresh content=\"0; URL=gb.php?action=showgb&id=".$_GET['id']."&msg_del=yes\">";
$txt_clickstream = $lang['user_gb_delete_ok'];
}
if($_GET['aktion'] == $lang['user_gb_delete_no'])
{
$user_gb .= "<meta http-equiv=refresh content=\"0; URL=gb.php?action=showgb&id=".$_GET['id']."&msg_del=no\">";
}
}
else
{
$txt_clickstream = $lang['user_gb_delete_click'];
}
if ($user_info['user_level'] == GUEST)
{
show_error_page($lang['no_permission']);
exit;
}
$site_template->register_vars(array(
"user_gb" => $user_gb,
"entry" => $_GET['entry'],
"id" => $_GET['id'],
"delete_entry" => $lang['user_gb_delete_quest'],
"delete_entry_yes" => $lang['user_gb_delete_yes'],
"delete_entry_no" => $lang['user_gb_delete_no']
));
$content = $site_template->parse_template("user_gb_delete");
}
if ($action == "new")
{
if($_GET['ent'] == "") $afg = "false"; else $afg = $_GET['ent'];
if ($_POST['comment_text'] == "" & $_GET['ent'] == "true")
{
$msg = $lang['error_no_text'];
$afg = "false";
}
if($afg == "true")
{
$text = $_POST['comment_text'];
if($_POST['id'] == $user_info[user_id]) { $a = "NOW()";}
else {$a = "'0'";}
$query = "INSERT INTO ".USERS_GB_TABLE."
(user_id_gb, user_id_ein, user_name_gb, user_gb_text, user_gb_date, user_gb_read)
VALUES
('".$_POST['id']."', '".$user_info[user_id]."', '".$user_info[user_name]."','".$text."', NOW(), ".$a.")";
$sql = mysql_query($query);
$msg .= "<meta http-equiv=refresh content=\"5; URL=gb.php?action=showgb&ent=true&id=".$_POST['id']."\">\n
<fieldset style=border : 1px solid blue><legend style=color: black;><b>".$lang['user_gb_new_ok']."</b>\n
</legend>\n<table border=0 cellspacing=0 cellpadding=8><tr><td><img src='".TEMPLATE_PATH."/images/danger.gif' /></td>\n
<td><p> ".$lang['user_gb_new_wait']."
<a href=gb.php?action=showgb&id=".$_POST['id'].">".$lang['user_gb_new_to']."</a><br></p></td></tr></table></fieldset>";
}
elseif ($afg == "false")
{
$id = $_GET['id'];
}
if ($user_info['user_level'] == GUEST)
{
show_error_page($lang['no_permission']);
exit;
}
if ($config['bb_comments'] == 1) {
$site_template->register_vars(array(
"lang_bbcode" => $lang['bbcode'],
"lang_tag_prompt" => $lang['tag_prompt'],
"lang_link_text_prompt" => $lang['link_text_prompt'],
"lang_link_url_prompt" => $lang['link_url_prompt'],
"lang_link_email_prompt" => $lang['link_email_prompt'],
"lang_list_type_prompt" => $lang['list_type_prompt'],
"lang_list_item_prompt" => $lang['list_item_prompt']
));
$bbcode = $site_template->parse_template("bbcode"); }
$site_template->register_vars(array(
"user_gb" => $user_gb,
"bbcode" => $bbcode,
"head_gb" => $lang['user_gb_new'],
"button_send" => $lang['submit'],
"button_reset" => $lang['reset'],
"gb_id" => $id
));
$txt_clickstream = $lang['user_gb_new'];
$content = $site_template->parse_template("user_gb_new");
}
//-----------------------------------------------------
//--- Clickstream -------------------------------------
//-----------------------------------------------------
if($txt_clickstream == ""){
$txt_clickstream = $lang['bug'];
}
$clickstream = "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'].$txt_clickstream."</span>";
//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
$site_template->register_vars(array(
"content" => $content,
"msg" => $msg,
"clickstream" => $clickstream,
"lang_control_panel" => $lang['control_panel']
));
$site_template->print_template($site_template->parse_template($main_template));
include(ROOT_PATH.'includes/page_footer.php');
?>
3.
then open includes/constants.php
and find
define('USERS_TABLE', $table_prefix.'users');
add after:
define('USERS_GB_TABLE', $table_prefix.'users_gb');
4.1
open includes/page_header.php
find there
"url_lightbox" => $site_sess->url(ROOT_PATH."lightbox.php"),
add after
"url_own_gb" => (!empty($url_own_gb)) ? $site_sess->url($url_own_gb) : $site_sess->url(ROOT_PATH."gb.php?action=showgb_new"),
4.2. changed
find
Copyright © 2002-'.date('Y').' <a href="http://www.4homepages.de" target="_blank">4homepages.de</a>
</p>
',
));
if (!empty($additional_urls)) {
$register_array = array();
foreach ($additional_urls as $key => $val) {
$register_array[$key] = $site_sess->url($val);
}
$site_template->register_vars($register_array);
}
add after
//-----------------------------------------
//---[MOD] User_Guestbook V.1.0.2 betha -----
//----2006 by bofan for 4images gallery ---
//-----------------------------------------
$query = "SELECT COUNT(*) FROM ".USERS_GB_TABLE."
WHERE user_id_gb = ".$user_info['user_id']."
AND user_gb_read = '0'";
$sql = mysql_query($query);
$erg = mysql_result($sql,0);
if($erg == "0"){$user_gb_neu = $erg." ".$lang['lang_gb_new'].$lang['user_gb_entrys'];}
elseif($erg == "1"){$user_gb_neu = "<b>".$erg." ".$lang['lang_gb_new'].$lang['user_gb_entrys']."</b>";}
elseif($erg > "1"){$user_gb_neu = "<b>".$erg." ".$lang['lang_gb_new'].$lang['user_gb_entrys']."</b>";}
//--END USER-Guestbook MOD---
4.3.
"lang_lightbox" => $lang['lightbox'],
add after
"lang_own_gb" => $user_gb_neu,
5.
open member.php
find there:
else {
$user_icq_button = REPLACE_EMPTY;
}
add after
//-----------------------------------------
//---[MOD] User_Guestbook V.1.0.2 betha -----
//----2006 by bofan for 4images gallery ---
//-----------------------------------------
$query = "SELECT COUNT(*) FROM ".USERS_GB_TABLE." WHERE user_id_gb = ".$user_row['user_id']."";
$sql = mysql_query($query);
$erg = mysql_result($sql,0);
$user_gb_ein = $erg;
$query = "SELECT COUNT(*) FROM ".USERS_GB_TABLE." WHERE user_id_ein = ".$user_row['user_id']."";
$sql = mysql_query($query);
$erg = mysql_result($sql,0);
$user_gb_ge = $erg;
$user_gb_link = "<a href='gb.php?action=showgb&id=".$user_row['user_id']."'>".$lang['user_gb_too_gb'].$user_row['user_name']." (".$user_gb_ein.")</a>";
$site_template->register_vars(array(
"user_gb_ein" => $user_gb_ein,
"user_gb_ge" => $user_gb_ge,
"lang_gb_ein" => $lang['user_gb_ein'],
"lang_user_gb_er" => $lang['user_gb_er'],
"lang_user_gb_ge" => $lang['user_gb_ge'],
"user_gb_link" => $user_gb_link
));
//--END USER-Guestbook MOD---
6. changed
open your lang/<your_language>/main.php
for GERMAN this
//---[MOD] User_Guestbook V.1.0.2 betha -----
//----2006 by bofan for 4images gallery ---
//-----------------------------------------
$lang['user_gb'] = "Gästebuch von ";
$lang['user_gb_entry'] = " Eintrag";
$lang['user_gb_entrys'] = " Einträge";
$lang['lang_gb_new'] = "neue(r)";
$lang['user_gb_back'] = "Zur Übersicht";
$lang['user_gb_delete'] = "Der Eintrag wurde gelöscht";
$lang['user_gb_delete_quest'] = "Wollen Sie den Gästebucheintrag löschen?";
$lang['user_gb_delete_yes'] = "Ja";
$lang['user_gb_delete_no'] = "Nein";
$lang['user_gb_delete_click'] = "Eintrag löschen?";
$lang['user_gb_delete_ok'] = "Eintrag gelöscht!";
$lang['user_gb_delete_not'] = "Eintrag nicht gelöscht!";
$lang['user_gb_new'] = "Neuer Gästebucheintrag";
$lang['user_gb_new_ok'] = "Eintrag war erfolgreich!";
$lang['user_gb_new_to'] = "Zum Eintrag";
$lang['user_gb_new_wait'] ="Bitte warten Sie 5 Sekunden bis zur automatischen Weiterleitung!<br> Oder Klicken Sie\n";
$lang['user_gb_too_gb'] = "Zum Gästebuch von ";
$lang['user_gb_at'] = " um ";
$lang['error_no_text'] = "Eintrag fehlt!";
$lang['bug'] = "Fehler";
$lang['user_gb_er'] = "erhaltene GB - Einträge:";
$lang['user_gb_ge'] = "geschriebene GB - Einträge:";
$lang['user_gb_next'] = "weiter";
$lang['user_gb_prev'] = "vor";
$lang['level_user'] = "Member";
$lang['level_admin'] = "Administrator";
or ENGLISH
//---[MOD] User_Guestbook V.1.0.2 betha -----
//----2006 by bofan for 4images gallery ---
//-----------------------------------------
$lang['user_gb'] = "Guestbook from ";
$lang['user_gb_entry'] = " Entry";
$lang['user_gb_entrys'] = " Entrys";
$lang['lang_gb_new'] = "new";
$lang['user_gb_back'] = "To the Overview";
$lang['user_gb_delete'] = "The entry was deleted";
$lang['user_gb_delete_quest'] = "Do you want to delete this Guestbook-Entry? ";
$lang['user_gb_delete_yes'] = "Yes";
$lang['user_gb_delete_no'] = "No";
$lang['user_gb_delete_click'] = "Delete Entry?";
$lang['user_gb_delete_ok'] = "Entry deleted!";
$lang['user_gb_delete_not'] = "Entry not deleted";
$lang['user_gb_new'] = "New Guestbook-Entry";
$lang['user_gb_new_ok'] = "The entry was successful";
$lang['user_gb_new_to'] = "To the new entry";
$lang['user_gb_new_wait'] ="Please you wait 5 seconds up to the automatic forwarding! <br> Or you klick\n";
$lang['user_gb_too_gb'] = "Too the Guestbook from ";
$lang['user_gb_at'] = " at ";
$lang['error_no_text'] = "Entry is missing!";
$lang['bug'] = "Error";
$lang['user_gb_er'] = "received Entrys:";
$lang['user_gb_ge'] = "written Entrys:";
$lang['user_gb_next'] = "next";
$lang['user_gb_prev'] = "prev";
$lang['level_user'] = "Member";
$lang['level_admin'] = "Administrator";
add before
?>
7.
open template/default/user_logininfo.html
find there
» <a href="{url_lightbox}">{lang_lightbox}</a> <br />
add after
» <a href="{url_own_gb}">{lang_own_gb}</a><br />
8.
open template/default/member_profil.html
find there
<tr>
<td class="row1"><b>{lang_comments}</b></td>
<td class="row1">{user_comments}</td>
</tr>
add after
<tr>
<td class="row2"><b>{lang_user_gb_er}</b></td>
<td class="row2">{user_gb_ein}</td>
</tr>
<tr>
<td class="row1"><b>{lang_user_gb_ge}</b></td>
<td class="row1">{user_gb_ge}</td>
</tr>
and at the End of the file, you make this
<b>{user_gb_link}</b>
9.
make 3 new templates. save this in your template-file.
9.1.
call the first user_gb.html
like this
{header}
<table width="640" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<table width="640" border="0" cellspacing="0" cellpadding="0" class="tablehead">
<tr>
<td colspan="4"><img src="{template_url}/images/header_top.gif" width="640" height="6" alt="" /></td>
</tr>
<tr>
<td width="6"><img src="{template_url}/images/header_left.gif" width="6" height="60" alt="" /></td>
<td width="405"><img src="{template_url}/images/header_logo.gif" width="405" height="60" alt="" /></td>
<td width="225" align="right">
<form method="post" action="{url_search}">
<table border="0" cellspacing="0" cellpadding="1">
<tr>
<td>
<input type="text" name="search_keywords" size="15" class="searchinput" />
</td>
<td>
<input type="submit" value="{lang_search}" class="button" name="submit" />
</td>
</tr>
<tr valign="top">
<td colspan="2"><a href="{url_search}" class="smalltext">{lang_advanced_search}</a></td>
</tr>
</table>
</form>
</td>
<td align="right" width="6"><img src="{template_url}/images/header_right.gif" width="6" height="60" alt="" /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="bordercolor">
<table width="640" border="0" cellspacing="1" cellpadding="0">
<tr>
<td class="tablebgcolor">
<table width="638" border="0" cellspacing="1" cellpadding="0">
<tr>
<td class="navbar" height="23">
<table width="636" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="{template_url}/images/spacer.gif" width="4" height="4" alt="" />{clickstream}</td>
<td align="right">
<a href="{url_top_images}"><b>{lang_top_images}</b></a>
<a href="{url_new_images}"><b>{lang_new_images}</b></a>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="638" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="150" class="row2" valign="top">
<table width="150" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="head2" height="20"><img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" />{lang_registered_user}</td>
</tr>
<tr>
<td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
</tr>
<tr>
<td align="center" class="row1">{user_box}</td>
</tr>
<tr>
<td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
</tr>
</table>
{if random_image}
<table width="150" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="head2" height="20"> <img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" />{lang_random_image}</td>
</tr>
<tr>
<td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
</tr>
<tr>
<td align="center" class="row1">
<br />
{random_image}
<br />
<br />
</td>
</tr>
<tr>
<td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
</tr>
</table>
{endif random_image}
</td>
<td width="1" class="bordercolor" valign="top"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
<td width="18" valign="top"><img src="{template_url}/images/spacer.gif" alt="" width="18" height="18" /></td>
<td width="450" valign="top">
<br />
<table width="100%">
<tr>
<td><span class="title">{user_gb_own}</span></td>
<td align="right">{button_ein}</td>
</tr>
</table>
{if msg}<b>{msg}</b><br />
<br />
{endif msg}
{content}
<p> </p>
</td>
<td width="19" valign="top"><img src="{template_url}/images/spacer.gif" alt="" width="19" height="19" /></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="640" border="0" cellspacing="0" cellpadding="0" class="tablebottom">
<tr>
<td width="6"><img src="{template_url}/images/footer_left.gif" width="6" height="19" alt="" /></td>
<td width="405"> </td>
<td width="225"> </td>
<td width="6"><img src="{template_url}/images/footer_right.gif" width="6" height="19" alt="" /></td>
</tr>
</table>
</td>
</tr>
</table>
{footer}
9.2.
an file user_gb_bit.html
like this:
<table width="100%" class=head1 cellpadding="1" cellspacing="0">
<tr>
<td><table class=row2 cellpadding="3" cellspacing="0" width=100%><tr>
<td width="100px" rowspan="2" align="left" valign="top"><b>{user}</b> {gender}<br>
{level}<br> {userpic}<br>
{gb_link}</td>
<td align="left" valign="top">{text} </td>
</tr>
<tr>
<td valign="bottom" height="1"><hr size="1">
<table cellpadding="0" cellspacing="0" width="100%"><tr>
<td align="left"><small>{gb_time}</small></td>
<td align="right"><small>{admin_link}</small></td></tr></table></td>
</tr>
</table></td></tr><tr><td class="row1"></td></tr></table>
9.3.
an file user_gb_delete.html
like this:
{user_gb}
<table cellpadding="1" cellspacing="0" width=100% class=head2><tr><td><form action='?action=delete_entry' method=get>
<table cellpadding="3" cellspacing="0">
<tr>
<td colspan=2 width=600px align="center" class="head1">{delete_entry}
</td></tr>
<tr>
<td class="row2" align="center">
<input type=hidden name=action value=delete_entry>
<input type=hidden name=entry value="{entry}">
<input type=hidden name=id value="{id}">
<input type=submit name=aktion value='{delete_entry_yes}' class=button>
<input type=submit name=aktion value='{delete_entry_no}' class=button>
</td>
</tr>
</table></form></td></tr></table>
9.4. V.1.0.2
file user_gb_new.html
like this:
<table width=450px cellpadding="1" cellspacing="0" align="center">
<tr>
<td>
<table align="center" width="100%" border="0" cellpadding="3" cellspacing="0"><form name=commentform action='?action=new&ent=true&id={gb_id}' method=post>
<tr><td class=head1 colspan=11>{head_gb}</td></tr>
<tr><td class=row1 align="center"><textarea class=input name=comment_text rows=6 cols=120></textarea>
<br>
{bbcode}<br>
<input type=hidden name=id value={gb_id}></td></tr>
<tr><td class=row1 align="center"><input type=submit class=button value={button_send}><input type=reset class=button value={button_reset}></td></tr>
</form>
</table>
</td>
</tr>
</table>
9.5.
and a file user_gb_showgb.html
like this:
<table width="100%" class=head1 cellpadding="1" cellspacing="0">
<tr>
<td><table class=row2 cellpadding="3" cellspacing="0" width=100%><tr><td align="left" width=22%>{user_gb_entry}</td><td align="center">{gb_pageing}<td align="right" width=22%>{button_in}</td></tr>
<tr>
<td colspan="3" align=center>{gb_entrys} </td>
</tr>
<tr>
<td align="left"> </td>
<td align="center">{gb_pageing}
<td align="right"> </td>
</tr>
</table>
</td>
</tr>
</table>
so the attatched file load into your template/<your_template>/images/!
i hope this [MOD] can help somebody :)
Demo? not yet ;)
-
AWESOME !!!!!!!!!!!!!!!!!!!!!!
Great work !!!!! :mrgreen:
-
AWESOME !!!!!!!!!!!!!!!!!!!!!!
Great work !!!!! :mrgreen:
dit it work??
-
Well seems yes :)
when i get it done , i ill give you my site link (pm) for you see by yourself :)
-
ok. send it me ;)
i wait only for a feedback from V@no or Jan, or mawenzi ;)
-
well this work great :D
now ill be nice make userpic show there :)
[solved] .... :lol:
-
Just one little suggestion.
I didn't looked at the code in detail,
but wouldn't it be better to split html and php code to templates,
so layout changes could be done more easily?
-
well this work great :D
now ill be nice make userpic show there :)
only uncomment the this
//if installed PERSONAL_PHOTO FROM V@noyou can uncomment
//if(file_exists(ROOT_PATH."data/userpic/".$ds->user_id_ein.".gif")) {$user_gb_entry_text .= "<br><a href='gb.php?action=showgb&id=".$ds->user_id."'\n target=_self><img src='".ROOT_PATH."/data/userpic/".$ds->user_id_ein.".gif' width=90px></a><br>";}
//if(file_exists(ROOT_PATH."data/userpic/".$ds->user_id_ein.".jpg")) {$user_gb_entry_text .= "<br><a href='gb.php?action=showgb&id=".$ds->user_id."'\n target=_self><img src='".ROOT_PATH."/data/userpic/".$ds->user_id_ein.".jpg' width=90px></a><br>";}
//else $user_gb_entry_text .= "<br>";
it is not THE best solution...but it works ;)
-
Just one little suggestion.
I didn't looked at the code in detail,
but wouldn't it be better to split html and php code to templates,
so layout changes could be done more easily?
it's my first MOD...
i hope somebody help me to make it fine :)
-
Just one little suggestion.
I didn't looked at the code in detail,
but wouldn't it be better to split html and php code to templates,
so layout changes could be done more easily?
yea would be more easy to edit :)
script works fine, its more about "layout" :)
-
can i see yours??
:lol: :lol:
-
I think i need help about make it look like my layout ...
comments rows (commentrow$row_bg_counter) like in details... :roll:
-
I think i need help about make it look like my layout ...
comments rows (commentrow$row_bg_counter) like in details... :roll:
i dont understand...
-
I think i need help about make it look like my layout ...
comments rows (commentrow$row_bg_counter) like in details... :roll:
i dont understand...
alternate comments row / background colors :) like in details :)
-
I think i need help about make it look like my layout ...
comments rows (commentrow$row_bg_counter) like in details... :roll:
i dont understand...
alternate comments row / background colors :) like in details :)
yeah and that is the problem, i have it not make it with templates... :(
sorry. when somebody with enough knowledge to help me, to make a better version ;)
PS: great site ;)
-
I think i need help about make it look like my layout ...
comments rows (commentrow$row_bg_counter) like in details... :roll:
i dont understand...
alternate comments row / background colors :) like in details :)
yeah and that is the problem, i have it not make it with templates... :(
sorry. when somebody with enough knowledge to help me, to make a better version ;)
PS: great site ;)
well for now maybe one lil thing would help , its about make borders around comments :) would help to understand users , and make less confused !!
how can i do it ?
-
do you mean this?
-
yes :D
as u've said , with bbcode ill be perfect :) but for now its good enough 8)
-
hi! i have installed your mod. it´s great but i can´t view my messages... where can i see the received messages? i have wrote with my account (admin) a new entry but i don´t know how to read it. I can see in my profile that i have a new entry with a number (but in the userinfo box i see 0 new messages...) but where can i go to read it? and... the users can´t read my guesstbook?
the demo : www.myart.es
user: test
pass: test
my profile is: http://www.paxykochan.net/myart/member.php?action=showprofile&user_id=2
another question: where i write the message is too big how can i change the size?
..and i think this mod need anti-spam, rigth?
-
yes :D
as u've said , with bbcode ill be perfect :) but for now its good enough 8)
when you will make it..
get this gb.php
<?php
/**************************************************************************
* *
* 4images - A Web Based Image Gallery Management System *
* ---------------------------------------------------------------- *
* *
* File: member.php *
* Copyright: (C) 2002 Jan Sorgalla *
* Email: jan@4homepages.de *
* Web: http://www.4homepages.de *
* Scriptversion: 1.7.3 *
* *
* Never released without support from: Nicky (http://www.nicky.net) *
* *
**************************************************************************
* *
* Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz- *
* bedingungen (Lizenz.txt) für weitere Informationen. *
* --------------------------------------------------------------- *
* This script is NOT freeware! Please read the Copyright Notice *
* (Licence.txt) for further information. *
* *
**************************************************************************
* *
* User-Guestbook Version 1.0 betha for 4images *
* *
* Tested on 1.72 and 1.73 *
* *
* (C) 2006 by bofan *
* *
*************************************************************************/
$main_template = "user_gb";
define('GET_CACHES', 1);
define('ROOT_PATH', './');
include(ROOT_PATH.'global.php');
require(ROOT_PATH.'includes/sessions.php');
$user_access = get_permission();
include(ROOT_PATH.'includes/page_header.php');
if ($action == "")
{
$action = "showgb";
}
if ($action == "showgb_new")
{
$update_query = "UPDATE ".USERS_GB_TABLE." SET user_gb_read = NOW() WHERE user_id_gb =".$user_info['user_id']." AND user_gb_read = 0";
$sql = mysql_query($update_query);
$action = "showgb";
}
if ($action == "showgb") {
if ($user_info['user_level'] == GUEST) {
show_error_page($lang['no_permission']);
exit;
}
if($_GET['id'] == "") $id = $user_info[user_id]; else $id = $_GET['id'];
if(isset($id))
{
$query = "SELECT user_id, user_name FROM ".USERS_TABLE." WHERE user_id = ".$id."";
$sql = mysql_query($query);
$ds = mysql_fetch_object($sql);
$user_name = "<a href='member.php?action=showprofile&user_id=".$ds->user_id."' target=_self>".$ds->user_name."</a>";
$user_name2 = $ds->user_name;
} else {
$user_name = $user_info['user_name'];
$user_name2 = $user_info['user_name'];
}
if(isset($id)) {$abf_id = $id;} else {$abf_id = $user_info['user_id'];}
$user_gb_own = $lang['user_gb'].$user_name2."";
$button_ein = "<a href='gb.php?action=new&id=".$abf_id."'><img border = 0 src = '".ROOT_PATH.TEMPLATE_PATH."/images/entry_new_".$config['language_dir'].".gif'></a>";
$query2 = "SELECT COUNT(*) FROM ".USERS_GB_TABLE." WHERE user_id_gb = ".$abf_id."";
$sql2 = mysql_query($query2);
$erg = mysql_result($sql2,0);
if($erg == "0"){$user_gb_entry = $erg.$lang['user_gb_entry'];}
elseif($erg == "1"){$user_gb_entry = $erg.$lang['user_gb_entrys'];}
elseif($erg > "1"){$user_gb_entry = $erg.$lang['user_gb_entrys'];}
$offset = @$_GET['off'];
if(isset($offset)) {$offset = $_GET['off'];} else {$offset = "0";}
$gb_query = "SELECT users_gb_id,user_id_gb,user_id_ein,user_name_gb,user_gb_text,user_gb_date,DATE_FORMAT(user_gb_date,'%e.%c.%Y') AS user_gb_datum,DATE_FORMAT(user_gb_date,'%H:%i:%s') AS user_gb_uhr,user_id,user_name,user_level
FROM (".USERS_GB_TABLE." i)
LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id_ein)
WHERE user_id_gb = ".$abf_id."
ORDER BY user_gb_date DESC
LIMIT $offset, 10";
$gb_sql = mysql_query($gb_query);
$user_gb_entry_text .= "<table width=100% cellpadding=1 cellspacing=0>";
while($ds = mysql_fetch_object($gb_sql))
{
$user_gb_entry_text .= "<table width=100% cellpadding=2 cellspacing=1>\n<tr width=100%><td valign=top width=150px class=row1><b>";
if($ds->user_level == "2") {$ds->user_level = $lang['userlevel_user'];}
if($ds->user_level == "9") {$ds->user_level = $lang['userlevel_admin'];}
if($ds->user_id_ein == $user_info[user_id] AND $ds->user_id != $ds->user_id_gb) {$user_link_del = "<a href='gb.php?action=delete_entry&entry=".$ds->users_gb_id."&id=".$ds->user_id_gb."'>".$lang['delete']."</a>";} else {$user_link_del ="";}
if ($ds->user_id == "")
{
$user_gb_entry_text .= $ds->user_name_gb."</b><br>".$ds->user_level."<br>";
}
else $user_gb_entry_text .= "<b><a href='member.php?action=showprofile&user_id=".$ds->user_id_ein."'>".$ds->user_name_gb."</a></b><br><a href='gb.php?action=showgb&id=".$ds->user_id."'\n target=_self><img src='".ROOT_PATH.TEMPLATE_PATH."/images/gb_".$config['language_dir'].".gif' border=0></a></b><br>".$ds->user_level."<br>";
//if installed PERSONAL_PHOTO FROM V@noyou can uncomment
//if(file_exists(ROOT_PATH."data/userpic/".$ds->user_id_ein.".gif")) {$user_gb_entry_text .= "<br><a href='gb.php?action=showgb&id=".$ds->user_id."'\n target=_self><img src='".ROOT_PATH."/data/userpic/".$ds->user_id_ein.".gif' width=90px></a><br>";}
//if(file_exists(ROOT_PATH."data/userpic/".$ds->user_id_ein.".jpg")) {$user_gb_entry_text .= "<br><a href='gb.php?action=showgb&id=".$ds->user_id."'\n target=_self><img src='".ROOT_PATH."/data/userpic/".$ds->user_id_ein.".jpg' width=90px></a><br>";}
//else $user_gb_entry_text .= "<br>";
$text = $ds->user_gb_text;
$pattern = '#(^|[^\"=]{1})(http://|ftp://|mailto:|news:)([^\s<>]+)([\s\n<>]|$)#sm';
$text = preg_replace($pattern,"\\1<a href=\"\\2\\3\"><u>\\2\\3</u></a>\\4",$text);
$user_gb_entry_text .= "<br>\n";
$user_gb_entry_text .= $ds->user_gb_datum.$lang['user_gb_at'].$ds->user_gb_uhr." </td><td class=row2 valign=top>".nl2br($text)."</td>";
if($abf_id == $user_info[user_id])
{$user_gb_entry_text .= "<td class=row1 width=80px><center><a href='gb.php?action=delete_entry&entry=".$ds->users_gb_id."&user=".$ds->user_id_gb."'>".$lang[delete]."</a> ".$user_link_del."</center></td></tr>";}
else {$user_gb_entry_text .= "<td class=row1 width=80px><center>".$user_link_del."</center></td></tr>";}
$user_gb_entry_text .= "</table>\n";
}
$user_gb_entry_text .= "<tr><td>";
if($offset == 0) {$vor = "";}
else
{
$offset2 = $offset - 10;
$vor = "<a href='gb.php?action=showgb&id=".$abf_id."&off=".$offset2."'>".$lang['user_gb_prev']."</a>";
}
$offset3 = $offset + 10;
if($offset3 >= $erg ) { $weiter = "";}
else {$weiter = "<a href='gb.php?action=showgb&id=".$abf_id."&off=".$offset3."'>".$lang['user_gb_next']."</a>";}
$user_gb_entry_text .= "<center>".$vor." ".$weiter."</center></td></tr>";
$site_template->register_vars(array(
"user_gb_own" => $user_gb_own,
"button_ein" => $button_ein,
"user_gb_entry" => $user_gb_entry,
"user_gb_entry_text" => $user_gb_entry_text
));
$txt_clickstream = $lang['user_gb'].$user_name;
$content = $site_template->parse_template("user_gb_showgb");
}
if ($action == "delete_entry")
{
if(isset($_GET['aktion']))
{
if($_GET['aktion'] == $lang['user_gb_delete_yes'])
{
$query = "DELETE FROM ".USERS_GB_TABLE." WHERE users_gb_id = ".@$_GET['entry']."";
$sql = $site_db->query($query);
$user_gb .= $lang['user_gb_delete']."<br><br><a href='gb.php?action=showgb&id=".$_GET['id']."'>".$lang['user_gb_back']."</a>";
$txt_clickstream = $lang['user_gb_delete_ok'];
}
if($_GET['aktion'] == $lang['user_gb_delete_no'])
{
$user_gb .= "<meta http-equiv=refresh content=\"0; URL=gb.php?action=showgb&id=".$_GET['id']."\">";
}
}
else
{
$user_gb .= "<form action='?action=delete_entry' method=get>\n";
$user_gb .= "<table>\n
<tr class=tableheader>
<td colspan=2 width=600px>\n
<span class=tableheader><center>\n
".$lang['user_gb_delete_quest']."</span>
</center></td></tr>\n
<tr>
<td><center>
<input type=hidden name=action value=delete_entry>\n
<input type=hidden name=entry value=".$_GET['entry'].">\n
<input type=hidden name=id value=".$_GET['id'].">\n
<input type=submit name=aktion value='".$lang['user_gb_delete_yes']."' class=button> \n
<input type=submit name=aktion value='".$lang['user_gb_delete_no']."' class=button>\n
</center>
</td>
</tr>
</table></form>";
$txt_clickstream = $lang['user_gb_delete_click'];
}
if ($user_info['user_level'] == GUEST)
{
show_error_page($lang['no_permission']);
exit;
}
$site_template->register_vars(array(
"user_gb" => $user_gb
));
$content = $site_template->parse_template("user_gb_delete");
}
if ($action == "new")
{
if($_GET['ent'] == "") $afg = "false"; else $afg = $_GET['ent'];
if ($_POST['text'] == "" & $_GET['ent'] == "true")
{
$msg = $lang['error_no_text'];
$afg = "false";
}
if($afg == "true")
{
$text = $_POST['text'];
if($_POST['id'] == $user_info[user_id]) { $a = "NOW()";}
else {$a = "'0'";}
$query = "INSERT INTO ".USERS_GB_TABLE."
(user_id_gb, user_id_ein, user_name_gb, user_gb_text, user_gb_date, user_gb_read)
VALUES
('".$_POST['id']."', '".$user_info[user_id]."', '".$user_info[user_name]."','".$text."', NOW(), ".$a.")";
$sql = mysql_query($query);
$user_gb .= "<meta http-equiv=refresh content=\"5; URL=gb.php?action=showgb&ent=true&id=".$_POST['id']."\">\n
<fieldset style=border : 1px solid blue><legend style=color: black;><b>".$lang['user_gb_new_ok']."</b>\n
</legend>\n<table border=0 cellspacing=0 cellpadding=8><tr><td><img src='".TEMPLATE_PATH."/images/danger.gif' /></td>\n
<td><p> ".$lang['user_gb_new_wait']."
<a href=gb.php?action=showgb&id=".$_POST['id'].">".$lang['user_gb_new_to']."</a><br></p></td></tr></table></fieldset>";
}
elseif ($afg == "false")
{
$user_gb .= "<center>
<form name=gb action='?action=new&ent=true&id=".$_GET['id']."' method=post>
<table width=450px><tr><td class=head1 colspan=11>".$lang['user_gb_new']."</td></tr>\n
<tr><td colspan=11><center><textarea class=input name=text rows=6 cols=90></textarea></center></td></tr>\n
<tr>
<tr><td colspan=2> </td><td colspan=7><center><input type=submit class=button value=Absenden> \n
<input type=reset class=button value=Zurücksetzen>
<input type=hidden name=id value=".$_GET['id'].">\n
</center></td><td clospan=2> </td></tr>\n
</table>
</form></center>";
}
if ($user_info['user_level'] == GUEST)
{
show_error_page($lang['no_permission']);
exit;
}
$site_template->register_vars(array(
"user_gb" => $user_gb
));
$txt_clickstream = $lang['user_gb_new'];
$content = $site_template->parse_template("user_gb_delete");
}
//-----------------------------------------------------
//--- Clickstream -------------------------------------
//-----------------------------------------------------
if($txt_clickstream == ""){
$txt_clickstream = $lang['bug'];
}
$clickstream = "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'].$txt_clickstream."</span>";
//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
$site_template->register_vars(array(
"content" => $content,
"msg" => $msg,
"clickstream" => $clickstream,
"lang_control_panel" => $lang['control_panel']
));
$site_template->print_template($site_template->parse_template($main_template));
include(ROOT_PATH.'includes/page_footer.php');
?>
and this user_gb_showgb.html
<table border="0" cellpadding="0" cellspacing="0"><tr><tr><td>{user_gb_entry}</td></tr><td bgcolor="#000000" cellpadding="0" cellspacing="0">
{user_gb_entry_text}</td></tr></table>
;)
<td bgcolor="#000000" <--- define the color ;)
-
hi! i have installed your mod. it´s great but i can´t view my messages... where can i see the received messages? i have wrote with my account (admin) a new entry but i don´t know how to read it. I can see in my profile that i have a new entry with a number (but in the userinfo box i see 0 new messages...) but where can i go to read it? and... the users can´t read my guesstbook?
the demo : www.myart.es
user: test
pass: test
my profile is: http://www.paxykochan.net/myart/member.php?action=showprofile&user_id=2
another question: where i write the message is too big how can i change the size?
..and i think this mod need anti-spam, rigth?
have you a user_gb_showgb.html?
anti-spam? jeah i think so, but only member can post ;)
-
you forgot to say that we have to translate "neue Gästebucheinträge" from includes/page_header in:
"//-----------------------------------------
//---[MOD] User_Guestbook V.1.0 betha -----
//----2006 by bofan for 4images gallery ---
//-----------------------------------------
$query = "SELECT COUNT(*) FROM ".USERS_GB_TABLE."
WHERE user_id_gb = ".$user_info['user_id']."
AND user_gb_read = '0'";
$sql = mysql_query($query);
$erg = mysql_result($sql,0);
if($erg == "0"){$user_gb_neu = $erg." neue Gästebucheinträge";}
elseif($erg == "1"){$user_gb_neu = "<b>".$erg." neuer Gästebucheintrag</b>";}
elseif($erg > "1"){$user_gb_neu = "<b>".$erg." neue Gästebucheinträge</b>";}
//--END USER-Guestbook MOD---
and this other code from gb.php
<tr><td colspan=2> </td><td colspan=7><center><input type=submit class=button value=Absenden> \n
<input type=reset class=button value=Zurücksetzen>
Absenden and Zurücksetzen :) isn´t it?
-
anti-spam? jeah i think so, but only member can post ;)
your rigth 8O
great work!!
-
have you a user_gb_showgb.html?
yes... but i don´t know why it doesn´t show the messages.... maybe i forgot anything about {user_gb_entry_text}
-
you forgot to say that we have to translate "neue Gästebucheinträge" from includes/page_header in:
"//-----------------------------------------
//---[MOD] User_Guestbook V.1.0 betha -----
//----2006 by bofan for 4images gallery ---
//-----------------------------------------
$query = "SELECT COUNT(*) FROM ".USERS_GB_TABLE."
WHERE user_id_gb = ".$user_info['user_id']."
AND user_gb_read = '0'";
$sql = mysql_query($query);
$erg = mysql_result($sql,0);
if($erg == "0"){$user_gb_neu = $erg." neue Gästebucheinträge";}
elseif($erg == "1"){$user_gb_neu = "<b>".$erg." neuer Gästebucheintrag</b>";}
elseif($erg > "1"){$user_gb_neu = "<b>".$erg." neue Gästebucheinträge</b>";}
//--END USER-Guestbook MOD---
and this other code from gb.php
<tr><td colspan=2> </td><td colspan=7><center><input type=submit class=button value=Absenden> \n
<input type=reset class=button value=Zurücksetzen>
Absenden and Zurücksetzen :) isn´t it?
part I is solved^^ it's with main.php and $lang['...'] , or not?
change <td colspan=7><center><input type=submit class=button value=Absenden> \n
<input type=reset class=button value=Zurücksetzen>
to
<td colspan=7><center><input type=submit class=button value='".$lang['submit']."'> \n
<input type=reset class=button value='".$lang['reset']."'>
-
ok ^^ thanks
but... My guesstbook doesn´t show the messages... :cry:
-
when i send a entry on the left from "Please you wait 5 seconds up to the automatic forwarding! <br> Or you klick" it shown a image danger.gif is it normaly???
and the number from logininfo isn´t right about new entrys (but profile is right)
-
now to be perfect its bbcode(smiles) work :D there
-
how can i added a extra-field at gb.php?
user_css !? from USERS_TABLES , and put at user_gb.html as {user_css} ??????
-
i have installed again and it´s the same.. no messages in the guessbook ..
please.. could you help me? :cry:
in page_header.php you have a syntax error:
if($erg == "0"){$user_gb_neu = $erg.$lang['user_gb_new'].$lang['user_gb_entry'].";}
delete " in the end of the line..
please.. help me with the messages.. -.-
-
i installed it but i get this error
Parse error: syntax error, unexpected T_LNUMBER in /usr/home/slipxnot/www/boom/includes/page_header.php on line 292
in this line:
elseif($erg == "1"){$user_gb_neu = "<b>".$erg." neuer G?stebucheintrag</b>";}
-
@b.o.fan
How:
1) make show the users using the default userpic "noimage.png" ?
2) how insert fields from USER_TABLES (i.e: user_gender) ?
3) BBCODE (+Smiles)?
How can i remove the last table and move Prev/Next to ontop (below post new..) only the links !?
Screenshot below : <= SOLVED !! :mrgreen:
-
i installed it but i get this error
Parse error: syntax error, unexpected T_LNUMBER in /usr/home/slipxnot/www/boom/includes/page_header.php on line 292
in this line:
elseif($erg == "1"){$user_gb_neu = "<b>".$erg." neuer G?stebucheintrag</b>";}
change if($erg == "0"){$user_gb_neu = $erg.$lang['user_gb_new'].$lang['user_gb_entry'].";}
to if($erg == "0"){$user_gb_neu = $erg.$lang['user_gb_new'].$lang['user_gb_entry'];}
thats all ;)
-
i installed it but i get this error
Parse error: syntax error, unexpected T_LNUMBER in /usr/home/slipxnot/www/boom/includes/page_header.php on line 292
in this line:
elseif($erg == "1"){$user_gb_neu = "<b>".$erg." neuer G?stebucheintrag</b>";}
change if($erg == "0"){$user_gb_neu = $erg.$lang['user_gb_new'].$lang['user_gb_entry'].";}
to if($erg == "0"){$user_gb_neu = $erg.$lang['user_gb_new'].$lang['user_gb_entry'];}
thats all ;)
thanks bro worked gr8 :D
-
Any progress about BBcode / BBcode Smileys work on it ???
8O
-
how insert fields from USER_TABLES (i.e: user_gender) ? and insert at template {user_gender} ??
-
how insert fields from USER_TABLES (i.e: user_gender) ? and insert at template {user_gender} ??
@ afternoon i will post a solution ;)
bbcode... nothing :(
-
hello, i have update the codes.
now it's version 1.0.1 ;)
with better templates... and gender/ member photo ;)
-
i'm using first version :oops: , coz i've made it work fine (at my layout) and the only thing i want its insert a new "user_css" at my page... this from USERS_TABLE
here my page :
<?php
/**************************************************************************
* *
* 4images - A Web Based Image Gallery Management System *
* ---------------------------------------------------------------- *
* *
* File: member.php *
* Copyright: (C) 2002 Jan Sorgalla *
* Email: jan@4homepages.de *
* Web: http://www.4homepages.de *
* Scriptversion: 1.7.3 *
* *
* Never released without support from: Nicky (http://www.nicky.net) *
* *
**************************************************************************
* *
* Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz- *
* bedingungen (Lizenz.txt) für weitere Informationen. *
* --------------------------------------------------------------- *
* This script is NOT freeware! Please read the Copyright Notice *
* (Licence.txt) for further information. *
* *
**************************************************************************
* *
* User-Guestbook Version 1.0 betha for 4images *
* *
* Tested on 1.72 and 1.73 *
* *
* (C) 2006 by bofan *
* *
*************************************************************************/
$main_template = "user_gb";
define('GET_CACHES', 1);
define('ROOT_PATH', './');
define('GET_USER_ONLINE', 1);
include(ROOT_PATH.'global.php');
require(ROOT_PATH.'includes/sessions.php');
include(ROOT_PATH.'includes/stats.php');
$user_access = get_permission();
include(ROOT_PATH.'includes/page_header.php');
if ($action == "")
{
$action = "showgb";
}
if ($action == "showgb_new")
{
$update_query = "UPDATE ".USERS_GB_TABLE." SET user_gb_read = NOW() WHERE user_id_gb =".$user_info['user_id']." AND user_gb_read = 0";
$sql = mysql_query($update_query);
$action = "showgb";
}
if ($action == "showgb") {
if ($user_info['user_level'] == GUEST) {
show_error_page($lang['no_permission']);
exit;
}
if($_GET['id'] == "") $id = $user_info[user_id]; else $id = $_GET['id'];
if(isset($id))
{
$query = "SELECT user_id, user_name, user_css FROM ".USERS_TABLE." WHERE user_id = ".$id."";
$sql = mysql_query($query);
$ds = mysql_fetch_object($sql);
$user_name = "<a href='member.php?action=showprofile&user_id=".$ds->user_id."' target=_self>".$ds->user_name."</a>";
$user_name2 = $ds->user_name;
} else {
$user_name = $user_info['user_name'];
$user_name2 = $user_info['user_name'];
}
if(isset($id)) {$abf_id = $id;} else {$abf_id = $user_info['user_id'];}
$user_gb_own = $lang['user_gb'].$user_name2."";
$button_ein = "<a href='gb.php?action=new&id=".$abf_id."'><img border = 0 src = '".ROOT_PATH.TEMPLATE_PATH."/images/entry_new_".$config['language_dir'].".gif'></a>";
$query2 = "SELECT COUNT(*) FROM ".USERS_GB_TABLE." WHERE user_id_gb = ".$abf_id."";
$sql2 = mysql_query($query2);
$erg = mysql_result($sql2,0);
if($erg == "0"){$user_gb_entry = $erg.$lang['user_gb_entry'];}
elseif($erg == "1"){$user_gb_entry = $erg.$lang['user_gb_entrys'];}
elseif($erg > "1"){$user_gb_entry = $erg.$lang['user_gb_entrys'];}
$offset = @$_GET['off'];
if(isset($offset)) {$offset = $_GET['off'];} else {$offset = "0";}
$gb_query = "SELECT users_gb_id,user_id_gb,user_id_ein,user_name_gb,user_gb_text,user_gb_date,DATE_FORMAT(user_gb_date,'%e.%c') AS user_gb_datum,DATE_FORMAT(user_gb_date,'%H:%i') AS user_gb_uhr,user_id,user_name,user_level
FROM (".USERS_GB_TABLE." i)
LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id_ein)
WHERE user_id_gb = ".$abf_id."
ORDER BY user_gb_date DESC
LIMIT $offset, 10";
$gb_sql = mysql_query($gb_query);
$user_gb_entry_text .= "<table width=100%>";
while($ds = mysql_fetch_object($gb_sql))
{
if($ds->user_level == "2") {$ds->user_level = $lang['userlevel_user'];}
if($ds->user_level == "9") {$ds->user_level = $lang['userlevel_admin'];}
if($ds->user_id_ein == $user_info[user_id] AND $ds->user_id != $ds->user_id_gb) {$user_link_del = "<a href='gb.php?action=delete_entry&entry=".$ds->users_gb_id."&id=".$ds->user_id_gb."'>".$lang['delete']."</a>";} else {$user_link_del ="";}
$user_gb_entry_text .= "<tr width=100%><td valign=top width=110px class=row1 cellpanding=0><b>";
if ($ds->user_id == "")
{
$user_gb_entry_text .= $ds->user_name_gb."</b><br>".$ds->user_level."<br>";
}
else $user_gb_entry_text .= "<b><a href='member.php?action=showprofile&user_id=".$ds->user_id_ein."'>".$ds->user_name_gb."</a></b><br><a href='gb.php?action=new&id=".$ds->user_id."'\n target=_self><img src='".ROOT_PATH.TEMPLATE_PATH."/images/gb_".$config['language_dir'].".gif' border=0></a></b><br>";
//if installed PERSONAL_PHOTO FROM V@noyou can uncomment
if(file_exists(ROOT_PATH."data/userpic/".$ds->user_id_ein.".gif")) {$user_gb_entry_text .= "<br><a href='gb.php?action=showgb&id=".$ds->user_id."'\n target=_self><center><img src='".ROOT_PATH."/data/userpic/".$ds->user_id_ein.".gif' width=100px height=100 border=0></center></a>";}
if(file_exists(ROOT_PATH."data/userpic/".$ds->user_id_ein.".jpg")) {$user_gb_entry_text .= "<br><a href='gb.php?action=showgb&id=".$ds->user_id."'\n target=_self><center><img src='".ROOT_PATH."/data/userpic/".$ds->user_id_ein.".jpg' width=100px height=100 border=0></center></a>";}
if(file_exists(ROOT_PATH."data/userpic/".$ds->user_id_ein.".png")) {$user_gb_entry_text .= "<br><a href='gb.php?action=showgb&id=".$ds->user_id."'\n target=_self><center><img src='".ROOT_PATH."/data/userpic/".$ds->user_id_ein.".png' width=100px height=100 border=0></center></a>";}
else $user_gb_entry_text .= " ";
$text = $ds->user_gb_text;
$pattern = '#(^|[^\"=]{1})(http://|ftp://|mailto:|news:)([^\s<>]+)([\s\n<>]|$)#sm';
$text = preg_replace($pattern,"\\1<a href=\"\\2\\3\"><u>\\2\\3</u></a>\\4",$text);
$user_gb_entry_text .= "<br>\n";
$user_gb_entry_text .= $ds->user_gb_datum.$lang['user_gb_at'].$ds->user_gb_uhr." </td><td class=imagerow2 valign=middle>".nl2br($text)."</td>";
if($abf_id == $user_info[user_id])
{$user_gb_entry_text .= "<td class=imagerow1 width=80px><center><a href='gb.php?action=delete_entry&entry=".$ds->users_gb_id."&user=".$ds->user_id_gb."'>".$lang[delete]."</a> ".$user_link_del." ".$user_css."</center></td></tr>";}
else {$user_gb_entry_text .= "<td class=imagerow1 width=80px><center>".$user_link_del."</center></td></tr>";}
}
if($offset == 0) {$vor = "";}
else
{
$offset2 = $offset - 10;
$vor = "<a href='gb.php?action=showgb&id=".$abf_id."&off=".$offset2."'>".$lang['user_gb_prev']."</a>";
}
$offset3 = $offset + 10;
if($offset3 >= $erg ) { $weiter = "";}
else {$weiter = "<a href='gb.php?action=showgb&id=".$abf_id."&off=".$offset3."'>".$lang['user_gb_next']."</a>";}
$user_gb_entry .= "".$vor." ".$weiter." ";
$user_gb_entry_text .= " ";
$user_gb_entry_text .= "</table>";
$site_template->register_vars(array(
"user_gb_own" => $user_gb_own,
"button_ein" => $button_ein,
"user_gb_entry" => $user_gb_entry,
"user_gb_entry_text" => $user_gb_entry_text
));
$txt_clickstream = $lang['user_gb'].$user_name;
$content = $site_template->parse_template("user_gb_showgb");
}
if ($action == "delete_entry")
{
if(isset($_GET['aktion']))
{
if($_GET['aktion'] == $lang['user_gb_delete_yes'])
{
$query = "DELETE FROM ".USERS_GB_TABLE." WHERE users_gb_id = ".@$_GET['entry']."";
$sql = $site_db->query($query);
$user_gb .= $lang['user_gb_delete']."<br><br><a href='gb.php?action=showgb&id=".$_GET['id']."'>".$lang['user_gb_back']."</a>";
$txt_clickstream = $lang['user_gb_delete_ok'];
}
if($_GET['aktion'] == $lang['user_gb_delete_no'])
{
$user_gb .= "<meta http-equiv=refresh content=\"0; URL=gb.php?action=showgb&id=".$_GET['id']."\">";
}
}
else
{
$user_gb .= "<form action='?action=delete_entry' method=get>\n";
$user_gb .= "<table>\n
<tr class=tableheader>
<td colspan=0 width=600px>\n
<span class=tableheader><center>\n
".$lang['user_gb_delete_quest']."</span>
</center></td></tr>\n
<tr>
<td><center>
<input type=hidden name=action value=delete_entry>\n
<input type=hidden name=entry value=".$_GET['entry'].">\n
<input type=hidden name=id value=".$_GET['id'].">\n
<input type=submit name=aktion value='".$lang['user_gb_delete_yes']."' class=button> \n
<input type=submit name=aktion value='".$lang['user_gb_delete_no']."' class=button>\n
</center>
</td>
</tr>
</table></form>";
$txt_clickstream = $lang['user_gb_delete_click'];
}
if ($user_info['user_level'] == GUEST)
{
show_error_page($lang['no_permission']);
exit;
}
$site_template->register_vars(array(
"user_gb" => $user_gb
));
$content = $site_template->parse_template("user_gb_delete");
}
if ($action == "new")
{
if($_GET['ent'] == "") $afg = "false"; else $afg = $_GET['ent'];
if ($_POST['text'] == "" & $_GET['ent'] == "true")
{
$msg = $lang['error_no_text'];
$afg = "false";
}
if($afg == "true")
{
$text = $_POST['text'];
if($_POST['id'] == $user_info[user_id]) { $a = "NOW()";}
else {$a = "'0'";}
$query = "INSERT INTO ".USERS_GB_TABLE."
(user_id_gb, user_id_ein, user_name_gb, user_gb_text, user_gb_date, user_gb_read)
VALUES
('".$_POST['id']."', '".$user_info[user_id]."', '".$user_info[user_name]."','".$text."', NOW(), ".$a.")";
$sql = mysql_query($query);
$user_gb .= "<meta http-equiv=refresh content=\"1; URL=gb.php?action=showgb&ent=true&id=".$_POST['id']."\">\n
<fieldset style=border: 1px solid #303030;><legend style=color:808000;><b>".$lang['user_gb_new_ok']."</b>\n
</legend>\n<table border=0 cellspacing=0 cellpadding=8><tr><td><img src='".TEMPLATE_PATH."/images/danger.gif' /></td>\n
<td><p> ".$lang['user_gb_new_wait']."
<a href=gb.php?action=showgb&id=".$_POST['id'].">".$lang['user_gb_new_to']."</a><br></p></td></tr></table></fieldset>";
}
elseif ($afg == "false")
{
$user_gb .= "<center>
<form name=gb action='?action=new&ent=true&id=".$_GET['id']."' method=post>
<table width=450px><tr><td colspan=11>".$lang['user_gb_new']."</td></tr>\n
<tr><td colspan=11><center><textarea class=gb name=text rows=6 cols=90 border-color=303030></textarea></center></td></tr>\n
<tr>
<tr><td colspan=2> </td><td colspan=7><center><input type=submit class=button value=Post> \n
<input type=reset class=button value=Reset>
<input type=hidden name=id value=".$_GET['id'].">\n
</center></td><td clospan=2> </td></tr>\n
</table>
</form></center>";
}
if ($user_info['user_level'] == GUEST)
{
show_error_page($lang['no_permission']);
exit;
}
$site_template->register_vars(array(
"user_gb" => $user_gb
));
$txt_clickstream = $lang['user_gb_new'];
$content = $site_template->parse_template("user_gb_delete");
}
//-----------------------------------------------------
//--- Clickstream -------------------------------------
//-----------------------------------------------------
if($txt_clickstream == ""){
$txt_clickstream = $lang['bug'];
}
$clickstream = "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'].$txt_clickstream."</span>";
//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
$site_template->register_vars(array(
"content" => $content,
"msg" => $msg,
"clickstream" => $clickstream,
"lang_control_panel" => $lang['control_panel']
));
$site_template->print_template($site_template->parse_template($main_template));
include(ROOT_PATH.'includes/page_footer.php');
?>
Its just added user_css at it !! from users_tables , that all i need !!
-
pls look [HERE] (http://www.4homepages.de/forum/index.php?action=dlattach;topic=14127.0;id=895)
-
pls look [HERE] (http://www.4homepages.de/forum/index.php?action=dlattach;topic=14127.0;id=895)
this didn't help ... about how added a new field from USERS_TABLE , :| and i'm using the another gender mod , gender + country !!!
-
pls look [HERE] (http://www.4homepages.de/forum/index.php?action=dlattach;topic=14127.0;id=895)
this didn't help ... about how added a new field from USERS_TABLE , :| and i'm using the another gender mod , gender + country !!!
this???? (http://www.4homepages.de/forum/index.php?topic=7385.0)
that is the same. i could gone ;)
what you make with about how added a new field from USERS_TABLE , :|?? i dont understand
-
pls look [HERE] (http://www.4homepages.de/forum/index.php?action=dlattach;topic=14127.0;id=895)
this didn't help ... about how added a new field from USERS_TABLE , :| and i'm using the another gender mod , gender + country !!!
this???? (http://www.4homepages.de/forum/index.php?topic=7385.0)
that is the same. i could gone ;)
what you make with about how added a new field from USERS_TABLE , :|?? i dont understand
Yes i'm using that mod :)
I mean i've created a additional user field at my USERS_TABLE " user_css and i wanna use it at my gb.php :) , this use from users_table (user_id,user_name..) and i wanna added another one :)
-
thats no problem...
search the query... and then look were user_id is.... @ the and the add your table name...
you can use it with... $ds->YOUR_TABLE_NAME ;)
that?
ps: in the new version it's better with templates ;)
-
thats no problem...
search the query... and then look were user_id is.... @ the and the add your table name...
you can use it with... $ds->YOUR_TABLE_NAME ;)
that?
ps: in the new version it's better with templates ;)
well let me try then :)
-
an exampel...
when you have user_city in the USERS_TABLE
you can add on the end of the query ", user_city".
in the php for example...
$user_citx = "<b>".$ds->user_city."</b>";
;);)
-
well this work and not work :)
when i insert user_css , i want this get data only from that user id :S
showgb&id=1 => take user_css date from user 1
showgb&id=2 => take user_css date from user 2
from db :) , i make it for layouts :) as u can see at profiles there :) ,1,2,3 ... this ill use data from each user :)
-
ohh jeah i understood. but... you must insert it above of the html file ;) because it's a css file... ;)
-
let me explain :)
this is a field USER_TABLES => user_css , users have it to added css codes , and this modify the layout (html) file :) ill send u a links at pm for u see what i'm talking about !!
-
let me explain :)
this is a field USER_TABLES => user_css , users have it to added css codes , and this modify the layout (html) file :) ill send u a links at pm for u see what i'm talking about !!
oky.... when you make echo $ds->user_css;
it shows the Csscode?
PS: i added BBCODES ;)
-
let me explain :)
this is a field USER_TABLES => user_css , users have it to added css codes , and this modify the layout (html) file :) ill send u a links at pm for u see what i'm talking about !!
oky.... when you make echo $ds->user_css;
it shows the Csscode?
PS: i added BBCODES ;)
Awesome, this is working !!!!!!!!!!!!!!!! :D
Where i must added this on code : echo $ds->user_css; ?
I must remenber theres a lil detail at member personal photo, its the fact of this not show who don't have avatar and its using default pic (noimage.png) this isn't showing the default pic :(
-
add it after:
$gb_sql = mysql_query($gb_query);
and then say me what you see ;)
-
This works :D
-
But maybe still having few problems... but this is just to test it :), the most important its already done :mrgreen:
-
i'm using first version , and i only need at moment is the "comment form" template out of php :) thats all i need to complete it :)
ill attach my full gb.php for u take a look :)
[solved] :)
-
hi!! i installed the last version from this mod in a new gallery 1.7.3 but when i write a message and click "Send" the next page is the same (the form to write the message is empty again) and the message isn´t send to user guestbook.
please.. i need help :cry:
-
hi!! i installed the last version from this mod in a new gallery 1.7.3 but when i write a message and click "Send" the next page is the same (the form to write the message is empty again) and the message isn´t send to user guestbook.
please.. i need help :cry:
Hhmmm... dit you all what i write?
-
Yes I did... I don´t know what i did but anything in user_gb_new was wrong... :roll: I modified the file and it works correctly. But now I did all, sure.. but the guestbook doesn´t show the message.
This is that I see in my guestbook, I have 3 new entrys but I don´t see the messages.. :cry:
(http://www.paxykochan.net/myart/templates/web.JPG)
-
i'm at few community websites using guestbooks (like it) and they've some stuff like:
=> Make Private (make visible only for post owner and the receiver) as option
=> Make rating bar together with comment :mrgreen:
Just ideia :)
-
I need help to added , a comment headline !? :(
my php page attached
-
i'm at few community websites using guestbooks (like it) and they've some stuff like:
=> Make Private (make visible only for post owner and the receiver) as option
=> Make rating bar together with comment :mrgreen:
Just ideia :)
No. 1 i dont understand!
No. 2 it's a good idea!
A comment Headline? I will add this... next time. one week... or shorter... :)
-
please... could you help me??? i did all steps 2 times.. and i don´t see the guestbook i don´t understand why but here you have my code attached
-
i'm at few community websites using guestbooks (like it) and they've some stuff like:
=> Make Private (make visible only for post owner and the receiver) as option
=> Make rating bar together with comment :mrgreen:
Just ideia :)
No. 1 i dont understand!
No. 2 it's a good idea!
A comment Headline? I will add this... next time. one week... or shorter... :)
Thanks :)
Make private option its usually used at sites or maybe people who dont like the pms ("system") and prefer only use the guestbooks making public or private :)
But just a ideia, i also agree the rating bar its a better ideia for it :mrgreen:
-
How make show in User Box a link like
www.site.com/gb.php?action=new&id=1 , 2,3,4...
:oops:
-
i know where is the problem.. in my constants.php or settings.. i´m not sure.. it is because phpbb integration
maybe here? in constant.php
Ändere/Change:
define('GUEST', -1);
define('USER_AWAITING', 1);
define('USER', 2);
define('ADMIN', 9);
zu/to:
define('GUEST', -1);
define('USER_AWAITING', -1);
define('USER', 0);
define('ADMIN', 1);
---------
Ändere/Change:
define('ADMIN_SAFE_LOGIN', 1);
zu/to:
define('ADMIN_SAFE_LOGIN', 0);
please.. Is there any solution to work my gallery with the two mods?? your mod and phpbb integration??? if i delete phpbb it won´t solve users and coments from my gallery.. :cry:
-
Honestly the phpbb integration, must be the most huge issue at 4images !! :|
But i dont think the problem is the phpbb integration, because i've test without that and this do the same, so i've opted by use the first version :) , its wroking better :mrgreen:, just require a lil more of php knowledge ...
-
Honestly the phpbb integration, must be the most huge issue at 4images !! :|
But i dont think the problem is the phpbb integration, because i've test without that and this do the same, so i've opted by use the first version :) , its wroking better :mrgreen:, just require a lil more of php knowledge ...
i ve test it on 1.73! THAT WORKS! but i will look, what i can say false
-
Honestly the phpbb integration, must be the most huge issue at 4images !! :|
But i dont think the problem is the phpbb integration, because i've test without that and this do the same, so i've opted by use the first version :) , its wroking better :mrgreen:, just require a lil more of php knowledge ...
i ve test it on 1.73! THAT WORKS! but i will look, what i can say false
Actually i'm using at 1.7.1 and Guestbook version1.0.0 :)
-
Honestly the phpbb integration, must be the most huge issue at 4images !! :|
But i dont think the problem is the phpbb integration, because i've test without that and this do the same, so i've opted by use the first version :) , its wroking better :mrgreen:, just require a lil more of php knowledge ...
i ve test it on 1.73! THAT WORKS! but i will look, what i can say false
Actually i'm using at 1.7.1 and Guestbook version1.0.0 :)
ok that could be... but why version 1.0.0 and not 1.0.2? curious :lol:
-
I'm sure that is because phpbb integration because after install last user mod it didn't work . Then I uninstalled phpbb mod and last user works to 1.7.3 version!! Please.. b.o.f.a.n , is there any solution for my problem??? I don´t want to delete my users and comments... -.- There is a lot of mods than i can´t use with phpbb integration : avatars, userpic... :evil: i want to uninstall phpbb integration and forget all the problems! :cry:
-
Honestly the phpbb integration, must be the most huge issue at 4images !! :|
But i dont think the problem is the phpbb integration, because i've test without that and this do the same, so i've opted by use the first version :) , its wroking better :mrgreen:, just require a lil more of php knowledge ...
i ve test it on 1.73! THAT WORKS! but i will look, what i can say false
Actually i'm using at 1.7.1 and Guestbook version1.0.0 :)
ok that could be... but why version 1.0.0 and not 1.0.2? curious :lol:
For a few reasons !!!
the first one is i've made added few stuff at code (additional fields and bbcode) and its working fine :) , the second one the last version didn't show the comments (same problem of ccsakuweb , i guess) !!! :)
thats why i still with first one, and updating manually :)
-
I'm sure that is because phpbb integration because after install last user mod it didn't work . Then I uninstalled phpbb mod and last user works to 1.7.3 version!! Please.. b.o.f.a.n , is there any solution for my problem??? I don´t want to delete my users and comments... -.- There is a lot of mods than i can´t use with phpbb integration : avatars, userpic... :evil: i want to uninstall phpbb integration and forget all the problems! :cry:
and when you only use the 4images 1.73?
-
Honestly the phpbb integration, must be the most huge issue at 4images !! :|
But i dont think the problem is the phpbb integration, because i've test without that and this do the same, so i've opted by use the first version :) , its wroking better :mrgreen:, just require a lil more of php knowledge ...
i ve test it on 1.73! THAT WORKS! but i will look, what i can say false
Actually i'm using at 1.7.1 and Guestbook version1.0.0 :)
ok that could be... but why version 1.0.0 and not 1.0.2? curious :lol:
For a few reasons !!!
the first one is i've made added few stuff at code (additional fields and bbcode) and its working fine :) , the second one the last version didn't show the comments (same problem of ccsakuweb , i guess) !!! :)
thats why i still with first one, and updating manually :)
ok thats right!
but my version is for 1.72. and 1.73 i think :p
-
I'm sure that is because phpbb integration because after install last user mod it didn't work . Then I uninstalled phpbb mod and last user works to 1.7.3 version!! Please.. b.o.f.a.n , is there any solution for my problem??? I don´t want to delete my users and comments... -.- There is a lot of mods than i can´t use with phpbb integration : avatars, userpic... :evil: i want to uninstall phpbb integration and forget all the problems! :cry:
and when you only use the 4images 1.73?
I installed another gallery with only 4images 1.7.3 and last users works fine.. then i know that my problem is because phpbb integration.. the problem with last user mod was the same that userguestbook ; I don´t see the comments or users of your two mods.. i haven´t installed this mod in my new gallery that it is for testing. but i think that it is because phpbb integration.. my problem is in settings.php or constants.php than i attached here yesterday.
has stoleti test the new version in his gallery?? I had this problem with the last version too.. so i think that it´s because phpbb integration...
PD: Anyone knows how to save my users from phpbb to 4images gallery after uninstalled phpbb integration??
-
I'm sure that is because phpbb integration because after install last user mod it didn't work . Then I uninstalled phpbb mod and last user works to 1.7.3 version!! Please.. b.o.f.a.n , is there any solution for my problem??? I don´t want to delete my users and comments... -.- There is a lot of mods than i can´t use with phpbb integration : avatars, userpic... :evil: i want to uninstall phpbb integration and forget all the problems! :cry:
and when you only use the 4images 1.73?
I installed another gallery with only 4images 1.7.3 and last users works fine.. then i know that my problem is because phpbb integration.. the problem with last user mod was the same that userguestbook ; I don´t see the comments or users of your two mods.. i haven´t installed this mod in my new gallery that it is for testing. but i think that it is because phpbb integration.. my problem is in settings.php or constants.php than i attached here yesterday.
has stoleti test the new version in his gallery?? I had this problem with the last version too.. so i think that it´s because phpbb integration...
PD: Anyone knows how to save my users from phpbb to 4images gallery after uninstalled phpbb integration??
Actually i still with 1.7.1 (more bug fixes) :) , and both mods works fine , less the v.1.0.2 of guestbook (thats why i still using the first version) !!
-
and do you have installed phpbb integration mod??
-
i've installed and unistalled !! Since i've change to dreamboard (and added few stuff) :mrgreen:
-
How show last 10 comments at profile ???Would be great make it there :mrgreen:
-
yeah ^^ i think it too
-
hi!!! I try to install this mod v.1.0.2 without phpbb integration but it doesn´t work. The entry don´t show in showgb.. i thought that it was because phpbb integration (because now it works last user mod and before it has the same problem that guestbook..) but it isn't.. so there is any error in the mod... sure it is small... but.. :cry:
my gallery version is 1.7.3 .. Stoleti.. please.. do you have the last version?? I want this mod.. -.- i uninstalled phpbb mod integration because this mod.. please..
-
ich hab mich genau an die anleitung gehalten und bekomme folgenden fehlerhinweis:
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /usr/export/www/vhosts/funnetwork/hosting/fryz/4images/gb.php on line 119
-
Hi!! Your mod works correctly and the last version! thanks, it is a great mod!!!! but i had to install user pic and gender mods. Sorry.. -.- I though that it was because the version from the gallery
I have a question.. If i install avatar mod i will see it in the guestbook?
-
hi!!! I try to install this mod v.1.0.2 without phpbb integration but it doesn´t work. The entry don´t show in showgb.. i thought that it was because phpbb integration (because now it works last user mod and before it has the same problem that guestbook..) but it isn't.. so there is any error in the mod... sure it is small... but.. :cry:
my gallery version is 1.7.3 .. Stoleti.. please.. do you have the last version?? I want this mod.. -.- i uninstalled phpbb mod integration because this mod.. please..
I'm using 1.7.1 more bug fixes :)
Using 1.0.0 (add manually the addons ...) like layout,additional fields, bbcode...etc :)
-
I don't need it now because this version runs correctly.. but if you have installed userpic and gender mod ^^
I have other problem. The gender mod doesn't run, allways it show male and i female and in the other side it show correctly, but in guestbook it doesn't work rigth
another problem is that the new entries don't show in user_info.html allways 0 entry.. so it is wrong. How can i delete this number? I don't want that the user think that they dont have messages
-
ich hab mich genau an die anleitung gehalten und bekomme folgenden fehlerhinweis:
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /usr/export/www/vhosts/funnetwork/hosting/fryz/4images/gb.php on line 119
I have the same Problem :(
I installed 1.02 and have exactly the same problem like ccsakuweb so what do i have to change to get 1.0.0 ?
-
I don't need it now because this version runs correctly.. but if you have installed userpic and gender mod ^^
I have other problem. The gender mod doesn't run, allways it show male and i female and in the other side it show correctly, but in guestbook it doesn't work rigth
another problem is that the new entries don't show in user_info.html allways 0 entry.. so it is wrong. How can i delete this number? I don't want that the user think that they dont have messages
do you've insert the code at your page_header.php ?
steps 4.1 and 4.2
:wink:
-
hehejo es liegt an den Mods :D Die müssen installed sein dann löst sich der shit von selber !
Thx trotzdem geh jetzt erstmal eine rauchen !
-
Moin Moin!
Ich hab nen kleines aber feines Prob mit dem GB!
Und zwar dieses hier:
(http://www.paidbeule.de/keineintrag.jpg)
Ich habe einen Eintrag gemacht "Bla Bla" aber man sieht ihn nicht. Ich habe auch am HTML-Code von ../tempaltes/default/user_gb.html herumgespielt, das es zu meinem design passt, ich glaube es liegt daran...!!! Aber ich finde den fehler nicht!
Hier nochmal der user_gb.html-Code
{header}
{clickstream}</td>
<td width="200" align="right"><table border="0" width="200" cellspacing="0"
cellpadding="0">
<tr>
<td width="100%"><b><a href="{url_new_images}">{lang_new_images}</b></a> <b><a href="{url_top_images}">{lang_top_images}</a></b></td>
</tr>
</table>
</td>
</tr>
</table>
</center></div><div align="center"><center><table border="0" width="100%" cellspacing="0"
cellpadding="4">
<tr>
<td width="100%" valign="top" align="left">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="160" valign="top" align="left">
<table border="0" width="160" cellspacing="0" cellpadding="4">
<tr>
<td width="160" height="13" background="{template_url}/images/menue_top.gif"></td>
</tr>
<tr>
<td width="130" valign="top" align="center" background="{template_url}/images/menue_middle.gif"><align="center">{user_box}<br>{cp_link}<br>
<?php
include('menue.php');
?>
{if random_image}
<table width="150" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="head2" height="20"> <img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" />{lang_random_image}</td>
</tr>
<tr>
<td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
</tr>
<tr>
<td align="center" class="row1">
<br />
{random_image}
<br />
<br />
</td>
</tr>
<tr>
<td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
</tr>
</table>
{endif random_image}
<form method="post" action="{url_search}"><input type="text" name="search_keywords" class="searchinput">
<br><input type="submit" value="{lang_search}" class="searchinput_button" name="submit"/><br><a href="{url_search}" class="smalltext">{lang_advanced_search}</a></form></td>
</tr>
<tr>
<td width="160" height="25" background="{template_url}/images/menue_bottom.gif"></td>
</tr></table></center></div>
</td>
<td>
<table width="100%">
<tr>
<td><span class="title">{user_gb_own}</span></td>
<td align="right">{button_ein}</td>
</tr>
</table>
{if msg}<b>{msg}</b><br />
<br />
{endif msg}
{content}
<center>{whos_online}
<!-- ############################################### Content END ############################################ -->
</td>
</tr>
</table></center></table>
{footer}
Ich hoffe mir kann jemand helfen...
-
hallo!
probiere mal dieses in der gb.php einzusetzen:
$gb_query = "SELECT users_gb_id,user_id_gb,user_id_ein,user_name_gb,user_gb_text,user_gb_date,DATE_FORMAT(user_gb_date,'%e.%c.%Y') AS user_gb_datum,DATE_FORMAT(user_gb_date,'%H:%i:%s') AS user_gb_uhr, user_id, user_name, user_level, userpic
FROM (".USERS_GB_TABLE." i)
LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id_ein)
WHERE user_id_gb = ".$abf_id."
ORDER BY user_gb_date DESC
LIMIT $offset, 10";
die anderen $gb_query kommentiere bitte aus.
vielleicht hilft das weiter.
-
i had the same error. It was because i didn't have installed the userpic and GIS mod.
good luck!
I have an error now.. All my users in the guestbook are male, and I'm a woman lol . In my profile it is correct but guestbook doesn't it
-
hallo!
probiere mal dieses in der gb.php einzusetzen:
$gb_query = "SELECT users_gb_id,user_id_gb,user_id_ein,user_name_gb,user_gb_text,user_gb_date,DATE_FORMAT(user_gb_date,'%e.%c.%Y') AS user_gb_datum,DATE_FORMAT(user_gb_date,'%H:%i:%s') AS user_gb_uhr, user_id, user_name, user_level, userpic
FROM (".USERS_GB_TABLE." i)
LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id_ein)
WHERE user_id_gb = ".$abf_id."
ORDER BY user_gb_date DESC
LIMIT $offset, 10";
die anderen $gb_query kommentiere bitte aus.
vielleicht hilft das weiter.
Haut leider nicht hin, genau das gleiche Bild! Aber danke!
-
How make it show the comments at member_profile ?
Like first 10 (first page) at member_profile and the another comments shows at gb.php ???
any ideia ? :?:
-
How make it show the comments at member_profile ?
Like first 10 (first page) at member_profile and the another comments shows at gb.php ???
any ideia ? :?:
hmmm.... i don't unterstand...
-
Very simple.
Show the last 10 comments at user profile, or make guestbook work at profile :) all in 1 page :)
-
Very simple.
Show the last 10 comments at user profile, or make guestbook work at profile :) all in 1 page :)
sry. i can't help...
-
ohh.. it would be great.. :cry: althouth the mod is really great now
and what about smiles??
-
I've added a user_gb_title ( its the same of headlines at images ) , so i would know how show the last one at user profile , example:
user XXX have posted a comment with headline " hi" at user ... , so i pretend show at user XXX profile , Last Comment: {headline_title}
:| i need help !!
-
Great Mod.
I want to integrate this mod with "Small Credit System Mod":
http://www.4homepages.de/forum/index.php?topic=9811.0
I mind, when user1 make an entry in another users guestbook, user1 obtain xx points.
Wath is the correct sql query for credists.php
I try with
$sql8 = "SELECT COUNT(user_id_ein) AS firmas
FROM ".USERS_GB_TABLE."
WHERE ".get_user_table_field("", "user_id_ein")." = $user_id";
$row8 = $site_db->query_firstrow($sql8);
$firmas = (isset($row8['firmas'])) ? $row8['firmas'] : 0;
$user_firmas = "<B> ".$row8['firmas']."</B>\n";
$site_template->register_vars("user_firmas", $user_firmas);
but do not work.
Thanks.
-
how to add the guestbook link/logo at details? (by picture vote-member coments with profile/email/pm-link)
-
I am sorry i may sound dumb but how do i create a new database field ?
-
I am sorry i may sound dumb but how do i create a new database field ?
with phpMYAdmin. or something like this.
there you insert in a SQL field: CREATE TABLE `4images_users_gb` (
`users_gb_id` smallint(5) NOT NULL auto_increment,
`user_id_gb` smallint(5) NOT NULL default '0',
`user_id_ein` smallint(5) NOT NULL default '0',
`user_name_gb` varchar(50) NOT NULL default '',
`user_gb_text` text NOT NULL,
`user_gb_date` timestamp NOT NULL default '0000-00-00 00:00:00',
`user_gb_read` timestamp NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (`users_gb_id`)
) TYPE=MyISAM;
-
Hi!
Vielen Dank für dieses wunderbare super script das ich mir schon solange gewünscht hatte!! Vielen Dank!
Nach der Anleitung auf der ersten Seite hatte es zwar nicht auf anhieb geklappt aber ich glaub auf seite 3 oder so, hatte Loda einen Tipp gegeben und damit funktionierte es.
Nun 2 kleine Fragen bzw. Fehlerchen:
- bei meinem Template user_gb_new für einen neuen Eintrag werden die Variablen {user_gb_own} und {user_gb_own} nicht erkannt bzw. angezeigt..wie kann ich dieses problem beheben?
- wie kann ich es ermöglichen dass der user eine Emailbenachrichtung bekommt sobald ein neuer eintrag bei ihm gemacht wird?
and now in my bad english ;-)
First, thanks for the very nice script, it works great!
I have one question and one mistake:
- in my template user_gb_new it doesent shows the variables {user_gb_own} and {user_gb_own}. What is the problem?
- it is possible that the user get an email when somebody write an entry on his guestbook?
Vielen Dank für eure Hilfe & Liebe Grüße / thanks and greets
glitzer
-
One more question..
How can i use the Avatar Script for the guestbook entries? I don´t like use the Userpix mod.
thanks a lot
-
Just one little suggestion.
I didn't looked at the code in detail,
but wouldn't it be better to split html and php code to templates,
so layout changes could be done more easily?
yea would be more easy to edit :)
script works fine, its more about "layout" :)
-
Hiya, I'm getting this error:
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/gaspe/public_html/new/gb.php on line 119
Which is caused by this:
while($ds = mysql_fetch_object($gb_sql))
{
if($ds->user_id_ein == $user_info[user_id] AND $ds->user_id != $ds->user_id_gb)
{
$user_link_del = "<a href='gb.php?action=delete_entry&entry=".$ds->users_gb_id."&id=".$ds->user_id_gb."'>".$lang['delete']."</a>";} else {$user_link_del ="";
}
if($abf_id == $user_info[user_id])
{
$user_gb_delete = "<a href='gb.php?action=delete_entry&entry=".$ds->users_gb_id."&user=".$ds->user_id_gb."'>".$lang[delete]."</a> ".$user_link_del;
}
else {$user_gb_delete = $user_link_del;}
Any idea how I can fix it?
-
hab den gleichen Fehler
Harald
-
i would like to show the guestbook to all people (unregistered too) but only registered user can sign it is possible? please could you helpme??
thank you ^^
-
is this going to work for 4images 1.7.4 ?
because i got an error
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/ecazy/public_html/aaa/gb.php on line 119
-
How make it show the comments at member_profile ?
Like first 10 (first page) at member_profile and the another comments shows at gb.php ???
any ideia ? :?:
Hi I did it to my gallery and i added a quick reply in guestbook ^^ demo: http://www.myart.es/member.php?user_id=2&action=showprofile&l=spanish
Search in member.php
$site_template->register_vars(array(
"user_gb_ein" => $user_gb_ein,
"user_gb_ge" => $user_gb_ge,
"lang_gb_ein" => $lang['user_gb_ein'],
"lang_user_gb_er" => $lang['user_gb_er'],
"lang_user_gb_ge" => $lang['user_gb_ge'],
"user_gb_link" => $user_gb_link
));
Add After:
///////// Show user guestbook in profile by patri www.myart.es
$gb_query = "SELECT users_gb_id,user_id_gb,user_id_ein,user_name_gb,user_gb_text,user_gb_date,DATE_FORMAT(user_gb_date,'%e.%c.%Y') AS user_gb_datum,DATE_FORMAT(user_gb_date,'%H:%i:%s') AS user_gb_uhr, user_id, user_name, user_level,user_gender,userpic,user_signature
FROM (".USERS_GB_TABLE." i), (".USERS_TABLE." u)
WHERE user_id_gb = ".$user_row['user_id']." AND u.user_id = i.user_id_ein
ORDER BY user_gb_date DESC
LIMIT 5"; //Last comments
$gb_sql = mysql_query($gb_query);
$num_rows2 =$user_gb_ein;
if (!$num_rows2) {
$user_libro = "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\"><tr class=\"imagerow1\"><td>";
$user_libro .= $lang['no_new_images'];
$user_libro .= "</td></tr></table>";
}
else {
while($ds = mysql_fetch_object($gb_sql))
{
$user_libro .= "<table width=\"100%\" class=\"head1\" cellpadding=\"1\" cellspacing=\"0\">";
$user_libro .= "<tr><td><table class=\"row2\" cellpadding=\"3\" cellspacing=\"0\" width=\"100%\"><tr>";
$user_libro .= "<td width=\"100px\" rowspan=\"2\" align=\"left\" valign=\"top\"><b>";
//For the Gender-MOD ;)
if ($ds->user_gender == "m") $gender = "<img border = 0 src = '".ROOT_PATH.TEMPLATE_PATH."/images/m.gif'>";
elseif ($ds->user_gender == "w") $gender = "<img border = 0 src = '".ROOT_PATH.TEMPLATE_PATH."/images/w.gif'>";
elseif ($ds->user_gender == "b") $gender = "<img border = 0 src = '".ROOT_PATH.TEMPLATE_PATH."/images/b.gif'>";
if ($ds->user_id == "")
{
$user = $ds->user_name_gb;
$gb_link = "";
$gender = "";
}
else
{
$user = "<b><a href='member.php?action=showprofile&user_id=".$ds->user_id_ein."'>".$ds->user_name_gb."</a></b>";
$gb_link = "<a href='gb.php?action=showgb&id=".$ds->user_id."'\n target=_self><img src='".ROOT_PATH.TEMPLATE_PATH."/images/gb_".$config['language_dir'].".gif' border=0></a>";
}
//if installed PERSONAL_PHOTO FROM V@noyou can uncomment
$userpic = $ds->userpic;
if ($userpic == "") $user_pic = "<img src='".ROOT_PATH."data/userpic/default.jpg'>";
else $user_pic = "<img src='".ROOT_PATH."data/userpic/".$userpic."'>";
$gb_time = $ds->user_gb_datum.$lang['user_gb_at'].$ds->user_gb_uhr;
$level = $ds->user_level;
if($level == "9") {$level = $lang['level_admin'];}
elseif($level == "5") {$level = $lang['userlevel_moderador'];}
elseif($level == "2") {$level = $lang['level_user'];}
else {$level = "";}
$text = $ds->user_gb_text;
$sig = $ds->user_signature;
$user_libro .= $user."</b> ".$gender."<br>".$level."<br>".$user_pic."<br>".$gb_link;
$user_libro .= "</td> <td align=\"left\" valign=\"top\">".format_text($text, $config['html_comments'], $config['wordwrap_comments'], $config['bb_comments'], $config['bb_img_comments'])."<hr size=\"1\">".format_text($sig, $config['html_comments'], $config['wordwrap_comments'], $config['bb_comments'], $config['bb_img_comments'])." </td></tr>";
$user_libro .= "<tr> <td valign=\"bottom\" height=\"1\"><hr size=\"1\">";
$user_libro .= "<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td align=\"left\"><small>";
$user_libro .= $gb_time."</small></td><td align=\"right\"></td></tr></table></td></tr></table></td></tr><tr><td class=\"row1\"></td></tr></table><br>";
}
}
if ($user_info['user_level'] != GUEST){
$user_firma .= "<b>Firma Rapida</b>";
$user_firma .= "<table align=\"center\" width=\"100%\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\"><form name=\"commentform\" action='http://www.myart.es/gb.php?action=new&ent=true&id=".$user_row['user_id']."' method=\"post\">";
$user_firma .= "<tr><td class=head1 colspan=11>".$lang['user_gb_new']."</td></tr>";
$user_firma .= "<tr><td class=row1 align=\"center\"><textarea class=\"input\" name=\"comment_text\" id=\"comment_text\" rows=4 cols=60></textarea>";
$user_firma .= " <input type=\"hidden\" name=\"id\" value=".$user_row['user_id']."></td></tr>";
$user_firma .= "<tr><td class=\"row1\" align=\"center\"><input type=\"submit\" class=\"button\" value=".$lang['submit'].">";
$user_firma .= "<input type=\"reset\" class=\"button\" value=".$lang['reset']."></td></tr>";
$user_firma .= "</form></table>";
}
$site_template->register_vars(array("user_libro" => $user_libro, "user_firma" => $user_firma));
///////// End show user guestbook ////////////////
Open member_profile.html
now you can add where you want tags {user_libro} (the last 5 comments, if you want another number change it in LIMIT of member.php) and {user_firma} (the quick reply form)
:lol: good luck
-
Great Mod... it worked after i installed the Gender Mod...
but when i post a Guestbook entry, there is that 5 seconds waiting...
with no picture...
the name of the picture is danger.gif...
can anybody post it??
danger.gif 24x24
-
ok got it...
-
Another Question... how could i post any member a welcome message in the private guestbook
any idea... maybe sql statement??
-
ok hab jetzt tabelle gefunden in die das ganze rein soll
4images_users_gb
da sind aber drei felder drin die ich net ganz checke... bzw zwei davon
users_gb_id ?? da steht autoincrement...
user_id_gb ist das die ID vom Gästebuch des Users in dem es auftauchen soll
user_id_ein die eigene ID .. dessen der den GB Eintrag gepostet hat.
hat jemand von euch ein kleines SQL Statement, mit dem ich allen Usern einen GB eintrag reinschreiben kann??
-
Looks nice, I've no personal need for it as of yet but layout and whatnot looks good.
-
Ich habe leider keine Lösung für folgende Fehlermeldung bei der Version 1.74 gefunden:
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /xxx/4images/gb.php on line 119
Wer kann mir helfen?
Danke im Voraus
Suricata
-
Hallo,
ist diese MOD überhaupt für 1.7.4 geeignet?
Viele Grüße
Suricata
-
Keine 4images Code (oder Kleiner). einige bugs ...
-
Tja, es scheint so, als müsste ich diese MOD deinstallieren. Weder hier im Forum noch der Autor persönlich scheint weiter helfen zu können oder zu wollen. :( :|
Vielleicht ist das MOD auch etwas oversized. Ich bin der einzige der Bilder uploaded, und ich wollte den besuchern/Gäste nur eine Möglichkeit geben, mir Nachrichten im Gästebuch zu hinterlassen.
Werde dies wohl anders lösen müssen. Gute Ideen willkommen. :D
-
lang Zeit nein Sehen Sie Autor ...
-
Hatt jemand schon eine Lösung für den Fehler
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /xxx/4images/gb.php on line 119
gefunden? Währe ärgerlich wenn der MOD für die 1.7.4 Ver. nicht gehen sollte!
-
@Tino23:
When this error show ?
-
Die Fehlermeldung kommt gleich nach dem ich auf den Link neue Einträge geklickt habe.
-
Mag sein I Code new bald. ;)
-
OK, dann warte ich mal ab. Danke erst mal!
-
Pfosten in Antrag fÜr zahlend wenn wünschen Sie es. ;)
-
Hallo Tino,
nein, mir hat auch niemand helfen können. Ich habe diesen MOD wieder deinstalliert.
cu
Hatt jemand schon eine Lösung für den Fehler
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /xxx/4images/gb.php on line 119
gefunden? Währe ärgerlich wenn der MOD für die 1.7.4 Ver. nicht gehen sollte!
-
Selben ?
-
Hm schade eigentlich, da kann man wenn ja nur auf die 1.7.3 Ver. zurück greifen oder es dann leider lassen. Gibts noch eine ander Möglichkeit ein GB zu Integrieren?
-
Wenn Pfosten innen Antrag für zahlendes, Ich kann kodieren. ;)
-
Was soll es denn Kosten? :flag-de:
-
Wenn Pfosten innen Antrag für zahlendes, Ich erwähne Preis. ;)
-
Bei einigen Usern läuft ein GB bei der Ver. 1.7.4 kann mir da mal jemand Helfen auch eines zum Laufen zu bekommen? Die zwei Lösungen die es hier gibt sind einfach bei der Ver. 1.7.4 nicht zum laufen zu bekommen bzw. hab ich dann doch nicht so viel Ahnung und bei der oben besagten Fehlermeldung kann es doch eigentlich nur eine kleine Sache sein, die angepasst werden müsste. Währe mal schön, wenn jemand ein neues Sauberes Posting machen würde für ein GB für die Ver. 1.7.4 bei der man sich nicht durch 15 Seiten durch div. BugFixes lesen muß in schlechtem Deutsch oder Englisch. Würde einigen Usern hier sehr helfen!
Danke schon mal :thumbup:
-
Hi
my user Guestbook works great with my version 1.7.1 but i have one wish.
it is possible to make a email notification after a post in a member guestbook to the member?
best regards,
glitzer
-
it is possible to make a email notification after a post in a member guestbook to the member?
Yes, is possible.
-
Is it possible to add "edit entry" beside the delete option?
-
@Phisker,
das blöde Gequatsche von dir geht mir schön langsam auch auf die Nerven
Die ist ein kostenloser Mod von b.o.fan
Das hat mit 4images selbst nichts zu tun, und wenn du auch eine License gekaut hast,
warte gefälligst zumindest einen Tag auf Antwort, und lässt hier nicht blöde Sprüche ab.
Bei Problemen am 4images Standart Script kannste berechtigt bei den Machern nach Support anfragen,
bei kostenlosen Mods von "Nicht 4images" Usern kannste bei Problemen um Hilfe bitten, nicht mehr und nicht weniger!
Fertig!
KurtW
-
Müsst ihr euch mit abfinden, dass ist meine Meinung und ich denke das ich diese hier vertreten darf!
Sicher kannst du deine Meinung hier vertreten, das habe ich ja auch gemacht.
Bei so einem schlechten Support, bzw keinem Support gibt es normalerweise für dich keine andere Möglichkeit,
als den kostenlosen Mod von b.o.fan, der sicherlich Stunden zur Erstellung gekostet hat, zu löschen und einen Eigenen zu schreiben.
=> Natürlich wieder nur meine Meinung
Kurt
-
Es läuft problemlos unter 1.7.6; man sollte nur in der sql abfrage Zeile 110 die Dinge herausnehmen die man selbst in seinem System nicht installiert hat, zb. user_pic etc...
-
Knnats das genau erklären? Also ich habe nur ein Problem und das wäre, wenn ich auf Absenden klicke, zeitg er mir erstens keine Bestätigung an und zweitens, findet kein Eintrag statt!
-
Fehlermeldung? Link zum Fehler?
-
Es gibt keine Fehlermeldung.
Die Mod läuft soweit, allerdings wenn ich auf Abschicken klicke, lädt er die Seite neu und es findet aber kein Eintrag statt!
-
Es wird nichts in die Datenbank geschrieben und es gibt keinen Error?
Link ist nötig ohnre gehts nicht.
-
ich habs wieder ausgenaut, mal schauen. Ich werde es morgen oderso noch einmal versuchen und ggf. ein Link posten!
-
Wenn man viele Mods einbaut empfielt sich immer ein Parallelsystem, zu testen.
Ich macht das nur so. Bei geschätzen 25 Mods die bei mir alle zusammen laufen müssen kann man / sollte man nicht gleich alles live machen...
Das Gästebuch läuft bei mit mit AvatarMOD und SmilieMod innerhalb/direkt unter dem Memberprofil...sieht WELTKLASSE aus, fast wie bei StudiVZ und mit slideLayer zum schreiben :D :roll:
-
Zeig ma :D
-
Hallo,
meine Seite ist nur zugänglich für registrierte User.
Aber ich möchte, dass jeder das Gästebuch einsehen kann, also auch Gäste.
Ist das möglich?
Grüße!
-
Thx for this mod, but I guess there are a few thinks to add.
- How to include the CAPTCHA?
No probs in the templates, but how to include it in the gb.php and member.php? - How to inform the user about new entries?
Maybe in the home (like in the Birthday-Mod) or in the loginfo, e.g. My Guestbook (1) - How about an e-mail notification if somebody has posted on your guestbook?
-
I would like to ask has already managed to solve this problem:
Thank you in advance for your help.
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/nyomtatv/public_html/gb.php on line 119
119. line:
while($ds = mysql_fetch_object($gb_sql))
-
tolle Sache,
leider habe ich bei Eintrag folgende Fehlermeldung
CSRF check failed.
was kann das sein?
-
@juewei
... das Gästebuch ist noch nicht für die Version 1.7.9 angepasst ...
... neue Security-Funktion : http://www.4homepages.de/forum/index.php?topic=28168.0 ...
-
....
leider habe ich bei Eintrag folgende Fehlermeldung
CSRF check failed....
versuche einmal in den code das zu ändern:
step 9.1:
suche:
method="post"
ersetze:
method="get"
step 9.4)
suche:
method=post
ersetze:
method=get
mfg Andi
-
Hi Andi,
danke!
Habe ich gemacht... kommt auch keine Fehlermeldung mehr.
Nur die Einträge werden irgendwie nicht gespeichert. Wenn mal bei mir was sofort laufen würde, würde ich mich freuen
-
.
Nur die Einträge werden irgendwie nicht gespeichert. Wenn mal bei mir was sofort laufen würde, würde ich mich freuen
woran das jezt liegt kann ich dir leider nicht sagen, schau mal in die DB ob die einträge dort überhaupt gespeichert werden,
wenn nicht versuche mal die beiden änderungen einzeln rückgängig zu machen( post <> get) ob es dann dem liegt.
die beiden änderungen von mir waren nur ein schuss ins blaue.
wenn die einträge in der DB gespeichert werden dann liegt es an dir den fehler in der ausgabe zu suchen.
b.z.w um den fehler einzugrenzen kannst du vorerst einmal in der global.php den wert "1" bei "$csrf_protection_enable = 1;" auf "0" setzen, ob dann der mod überhaupt
funktioniert.
mfg Andi
-
Hallo Andi,
jetzt bitte nicht lachen! :oops:
kann es vielleicht auch sein, dass ich die Datenbank falsch angelegt habe? Habe davon null Ahnung und habe einfach untenstehenden Code per phpmyadmin (oder wie das ding noch heißt) angelegt. Vielleicht war das auch falsch?
diesen Code hier, so wie er hier steht.
CREATE TABLE `4images_users_gb` (
`users_gb_id` smallint(5) NOT NULL auto_increment,
`user_id_gb` smallint(5) NOT NULL default '0',
`user_id_ein` smallint(5) NOT NULL default '0',
`user_name_gb` varchar(50) NOT NULL default '',
`user_gb_text` text NOT NULL,
`user_gb_date` timestamp NOT NULL default '0000-00-00 00:00:00',
`user_gb_read` timestamp NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (`users_gb_id`)
) TYPE=MyISAM;
Juewei
-
denke mal das es so funktioniert, du brauchst du nur schaun ob die felder auch angelegt worden sind, b.z.w. ob beim anlegen eine fehlermeldung gekommen ist.
-
habe es versucht erneut anzulegen, dann kommt die Meldung das es bereits vorhanden ist...
ich gebe mich geschlagen...! Bin ich zu alt für. :(
Hast du schon was mit dem erweiterten Menü erreicht?
-
habe es versucht erneut anzulegen, dann kommt die Meldung das es bereits vorhanden ist...
....
ja und, schau doch endlich einmal in diese neu angelegten felder, ob ein gästebuch eintrag vorhanden ist.
das du zu alt bist glaube ich nicht, was soll ich dann sagen :mrgreen:
-
ich weiß aber nich wie ich das sehen kann, ich trau mich ja überhaupt nicht das zu schreiben...
!
-
hallo!
ich habe versucht diesen mod einzubauen und bekomme folgende fehlermeldung:
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/www/xxxxxxxx/web/includes/page_header.php on line 218
die zeile in page_header:
$erg = mysql_result($sql,0);
die anzahl der gästebucheinträge werden auf der user_login seite nicht angezeigt.
woran könnte es liegen?
-
tolle Sache,
leider habe ich bei Eintrag folgende Fehlermeldung
CSRF check failed.
was kann das sein?
Das habe ich auch.
versuche einmal in den code das zu ändern:
step 9.1:
suche:
method="post"
ersetze:
method="get"
step 9.4)
suche:
method=post
ersetze:
method=get
mfg Andi
Hab ich auch gemacht. Danach passiert das
Hi Andi,
danke!
Habe ich gemacht... kommt auch keine Fehlermeldung mehr.
Nur die Einträge werden irgendwie nicht gespeichert. Wenn mal bei mir was sofort laufen würde, würde ich mich freuen
So dann hab ich in der Datenbank nachgeschaut und stelle fest es werden keine Daten gespeichert.
Meine Frage an juewei läuft es mittlerweile bei dir oder hast du aufgegeben?
Frag an alle anderen. Hat wer noch eine Idee woran es liegen könnte?
Edit: hab noch ne Fehlermeldung: Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/bistlie/public_html/gb.php on line 119
Mit freundlichen Gruß
Bistlie
-
bis auf weiteres aufgegeben, keine ahnung was ich noch machen soll
-
Hallo juewei,
das war ja mal eine sehr schnelle Antwort.
Hast du auch noch die Felermeldung wie bei mir?
Gruß Bistlie
-
ja hatte ich!
Aber ich habe es vorerst wieder entfernt und wollte mal abwarten, was hier noch so passiert.
Dann starte ich einen neuen Versuch
-
Mhh ok dann werd ich heut mal noch bissl testen vll findet sich ein weg.
Edit: Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/bistlie/public_html/gb.php on line 119 der Fehler kommt weil der Gender - MOD nicht installiert ist.
Dann installier ich jetzt mal den Gender Mod mal schauen was dann pasiert :D
Edit2: Hab nun alles MOD's installiert und nicht einer Funktioniert ^^ weder M oder W noch Userpic noch GB schade.
-
I have this mod installed for a long time now and it works fine but the users avatar doesn't display the proper avatar. It shows your avatar in-place of their avatar. Anyone know how I can fix this. Need to make it show the user who posted the message.
-
habe alles noch einmal gemacht und es werden einfach die Einträge nicht gespeichert, so ein misst probiere jetzt schon geschlagene 5 Stunden