4images Forum & Community
4images Modifications / Modifikationen => Mods & Plugins (Releases & Support) => Topic started by: f1do on November 23, 2005, 04:38:08 PM
-
Shoutbox v1.1
Version history:
#V1.1
-Various security fixes (Special thanks to TheOracle)
-New editor engine
---------------------------------------------------------------------------------------------------------
Features:
-Automated installation
-Admin Panel
-Activate/Desactivate shutbox
-Optional allow guests to shout
-Optional BBcode
-Optional HTML
-Totaly editable template
-Users can edit their shouts
-Users can delete their shouts
-Language support:
-English
-Spanish
-German(by mawenzi (http://www.4homepages.de/forum/index.php?action=profile;u=10670))
-Note, if anybody translate it to another language, PM me and I´ll post it here and credit you of ourse.
Download: http://www.f1do.york-networks.com/gallery/shoutboxmod/
Sample site: http://www.f1do.york-networks.com/gallery/
Admin user:-username: test
-password: test
---------------------------------------------------------------------------------------------------------
New files to upload:
/shout_editor.php
/includes/shout.php
/admin/plugins/shoutbox_admin.php
/templates/your_template/shout_bit.html
/templates/your_template/shout_form.html
/templates/your_template/shout_editor.html
-------------------------------------------------------------------------------------------------------
Files to edit:
/includes/constants.php
/includes/page_header.php
/lang/your_language/main.php
/lang/your_language/admin.php
/templates/your_template/style.css
/templates/your_template/header.html
(optional)/templates/your_template/home.html
(optional)/templates/your_template/categories.html
(optional)/templates/your_template/details.html
(optional)/templates/your_template/lightbox.html
(optional)/templates/your_template/member.html
------------------------------------------------------------------------------------------------------
Instalation:
1 Edit files
1.1 Open /includes/page_header.php
Find:
//-----------------------------------------------------
//--- User Box ----------------------------------------
//-----------------------------------------------------
Before Add:
//-----------------------------------------------------
//--- Shoutbox ----------------------------------------
//-----------------------------------------------------
include (ROOT_PATH.'includes/shout.php');
1.2 Open /templates/your_template/style.css
Find:
/*--Categories------------------------------------------------*/
Before add:
/*--Shoutbox--------------------------------------------------*/
.shouts {
border: 1px;
border-style:solid;
border-color: #004C75;
height: 120px;
width: 148px;
padding: 0px;
overflow: auto;
}
.shoutinput {
background-color: #FFFFFF;
font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif;
color: #0f5475;
font-size: 11px;
WIDTH: 130px;
}
.shouttextarea {
font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif;
color: #0f5475;
font-size: 11px;
}
1.3 Open /templates/your_template/header.html
Find:
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
After add:
function popup(mylink, windowname) {
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href, windowname, 'width=170,height=240,scrollbars=no');
return false;
}
Open /includes/constants.php
Find:define('WORDMATCH_TABLE', $table_prefix.'wordmatch');
Add after:define('SHOUTBOX_TABLE', $table_prefix.'shoutbox');
2 Languge configuration
2.1 Open /lang/your_language/main.php
Find:
?>
Before add(ONLY YOUR LANGUAGE):
[ENGLISH]
//-----------------------------------------------------
//--- Shoutbox ----------------------------------------
//-----------------------------------------------------
$lang['shoutbox'] = "Shoutbox";
$lang['sh_e_nouser'] = "Please insert a name.";
$lang['sh_e_nomessage'] = "Please insert a message.";
$lang['sh_e_usrlgth'] = "The name should be shorter than ".$config['sh_usr_lgth']." characters.";
$lang['sh_e_msglgth'] = "The message should be shorter than ".$config['sh_msg_lgth']." words.";
$lang['sh_e_inactive'] = "Sorry, the shoutbox is disabled for the timebeing.";
$lang['sh_e_register'] = "Please register to use the shoutbox";
$lang['sh_name'] = "Name:";
$lang['sh_message'] = "Message:";
$lang['sh_edit'] = "Edit";
$lang['sh_edited'] = "Shout Edited";
$lang['sh_delete'] = "Delete";
$lang['sh_ask_delete'] = "Delete Shout?";
$lang['sh_deleted'] = "The shout was deleted";
$lang['sh_close'] = "[Close Window]";
[SPANISH]
//-----------------------------------------------------
//--- Shoutbox ----------------------------------------
//-----------------------------------------------------
$lang['shoutbox'] = "Shoutbox";
$lang['sh_e_nouser'] = "Escribe un nombre por favor.";
$lang['sh_e_nomessage'] = "Escribe un mensaje por favor.";
$lang['sh_e_usrlgth'] = "El nombre debe ser de menos de ".$config['sh_usr_lgth']." caracteres.";
$lang['sh_e_msglgth'] = "El mensaje debe ser de menos de ".$config['sh_msg_lgth']." palabras.";
$lang['sh_e_inactive'] = "Lo siento, pero el Shoutbox esta desabilitado en este momento.";
$lang['sh_e_register'] = "Por favor, registrese para usar la shoutbox";
$lang['sh_name'] = "Nombre:";
$lang['sh_message'] = "Mensaje:";
$lang['sh_edit'] = "Editar";
$lang['sh_edited'] = "Shout Editado";
$lang['sh_delete'] = "Borrar";
$lang['sh_ask_delete'] = "Borrar mensaje?";
$lang['sh_deleted'] = "El mensaje fue borrado";
$lang['sh_close'] = "[Cerrar Ventana]";
[GERMAN](by mawenzi (http://www.4homepages.de/forum/index.php?action=profile;u=10670))
//-----------------------------------------------------
//--- Shoutbox ----------------------------------------
//-----------------------------------------------------
$lang['shoutbox'] = "Shoutbox";
$lang['sh_e_nouser'] = "Bitte trage deinen Namen ein.";
$lang['sh_e_nomessage'] = "Bitte trage eine Nachricht ein.";
$lang['sh_e_usrlgth'] = "Der Name sollte kürzer sein als ".$config['sh_usr_lgth']." Buchstaben.";
$lang['sh_e_msglgth'] = "Die Nachricht sollte kürzer sein als ".$config['sh_msg_lgth']." Wörter.";
$lang['sh_e_inactive'] = "Sorry, die Shoutbox ist vorläufig gesperrt.";
$lang['sh_e_register'] = "Bitte registriere dich, um die Shoutbox zu nutzen.";
$lang['sh_name'] = "Name:";
$lang['sh_message'] = "Nachricht:";
$lang['sh_edit'] = "Edit";
$lang['sh_edited'] = "Nachricht bearbeiten?";
$lang['sh_delete'] = "Delete";
$lang['sh_ask_delete'] = "Nachricht löschen?";
$lang['sh_deleted'] = "Die Nachricht wurde gelöscht";
$lang['sh_close'] = "[schließen]";
2.2 Open: /lang/your_language/admin.php
Find:
?>
Add before(ONLY YOUR LANGUAGE):
[ENGLISH]
//-----------------------------------------------------
//--- Shoutbox ----------------------------------------
//-----------------------------------------------------
$lang['sh_not_updated'] = "Settings couldn't be updated";
$lang['sh_not_installed'] = "Installation couldn't be completed";
$lang['sh_cfg'] = "Shoutbox Configuration";
$lang['sh_activate'] = "Activate Shoutbox";
$lang['sh_allow_guests'] = "Allow guests to post";
$lang['sh_usr_lgth'] = "Username Length(less than 50 characters)";
$lang['sh_msg_lgth'] = "Message Length(in words)";
$lang['sh_wordwrap'] = "wordwrap";
$lang['sh_bbcode'] = "Allow BBcode";
$lang['sh_bbimg'] = "Allow BBcode images";
$lang['sh_html'] = "Allow HTML";
$lang['sh_msg_display'] = "Cuantity of shouts to display on the template";
$lang['sh_install'] = "Install Shoutbox";
$lang['sh_installed'] = "The shoutbox is installed and configured";
$lang['sh_back'] = "Back to Shoutbox Admin";
$lang['sh_currnt'] = "<h1>Current Shouts</h1>\n";
$lang['sh_deletes'] = "Delete";
$lang['sh_number'] = "Shout Number";
$lang['sh_name'] = "Name";
$lang['sh_message'] = "Message";
$lang['sh_date'] = "date";
$lang['sh_options'] = "Options";
$lang['sh_delete'] = "Delete Shouts";
$lang['sh_deleted'] = "The Shouts where deleted \n";
$lang['sh_update'] = "Update Settings";
$lang['sh_updated'] = "Settings Updated \n";
[SPANISH]
//-----------------------------------------------------
//--- Shoutbox ----------------------------------------
//-----------------------------------------------------
$lang['sh_not_updated'] = "La configuracion no pudo ser guardada";
$lang['sh_not_installed'] = "No se pudo completar la instalación";
$lang['sh_cfg'] = "Configuración de la Shoutbox";
$lang['sh_activate'] = "Activar la Shoutbox";
$lang['sh_allow_guests'] = "Permitir que visiantes manden mensajes";
$lang['sh_usr_lgth'] = "Longitud Del Nombre(menor que 50 caracteres)";
$lang['sh_msg_lgth'] = "Longitud Del Mensaje(en palabras)";
$lang['sh_wordwrap'] = "wordwrap";
$lang['sh_bbcode'] = "Permitir BBcode";
$lang['sh_bbimg'] = "permitir imagenes BBcode";
$lang['sh_html'] = "Permitir HTML";
$lang['sh_msg_display'] = "Cantidad de mensajes para mostrar";
$lang['sh_install'] = "Instalar la Shoutbox";
$lang['sh_installed'] = "La Shoutbox está instalada y configurada";
$lang['sh_back'] = "Volver al administrador de la shoutbox";
$lang['sh_currnt'] = "<h1>Mensajes</h1>\n";
$lang['sh_deletes'] = "Borrar";
$lang['sh_number'] = "Numero de mensaje";
$lang['sh_name'] = "Nombre";
$lang['sh_message'] = "Mensaje";
$lang['sh_date'] = "Fecha";
$lang['sh_options'] = "Opciones";
$lang['sh_delete'] = "Borrar Mensajes";
$lang['sh_deleted'] = "Los Mensajes Fueron Borrados \n";
$lang['sh_update'] = "Guardar Configuración";
$lang['sh_updated'] = "Configuración guardada \n";
[GERMAN](by mawenzi (http://www.4homepages.de/forum/index.php?action=profile;u=10670))
//-----------------------------------------------------
//--- Shoutbox ----------------------------------------
//-----------------------------------------------------
$lang['sh_not_updated'] = "Die Einstellungen konnten nicht aktualisiert werden.";
$lang['sh_not_installed'] = "Die Installation konnte nicht durchgeführt werden.";
$lang['sh_cfg'] = "Shoutbox Einstellungen";
$lang['sh_activate'] = "Shoutbox aktivieren";
$lang['sh_allow_guests'] = "Gäste dürfen posten";
$lang['sh_usr_lgth'] = "Username Länge(weniger als 50 Buchstaben)";
$lang['sh_msg_lgth'] = "Nachricht Länge(in Wörtern)";
$lang['sh_wordwrap'] = "Zeilenumbruch";
$lang['sh_bbcode'] = "BBCode erlauben";
$lang['sh_bbimg'] = "BBCode Bilder erlauben";
$lang['sh_html'] = "HTML erlauben";
$lang['sh_msg_display'] = "Anzahl der Nachrichten, die im Template angezeigt werden sollen.";
$lang['sh_install'] = "Shoutbox installieren";
$lang['sh_installed'] = "Die shoutbox ist installiert und konfiguriert.";
$lang['sh_back'] = "Zurück zur Shoutbox Administration";
$lang['sh_currnt'] = "<h1>Aktuelle Shouts</h1>\n";
$lang['sh_deletes'] = "Löschen";
$lang['sh_number'] = "Shout Nummer";
$lang['sh_name'] = "Name";
$lang['sh_message'] = "Nachricht";
$lang['sh_date'] = "Datum";
$lang['sh_options'] = "Optionen";
$lang['sh_delete'] = "Nachrichten löschen";
$lang['sh_deleted'] = "Die Nachrichten wurden gelöscht \n";
$lang['sh_update'] = "Aktualisiere Einstellungen";
$lang['sh_updated'] = "Einstellungen wurden aktualisiert \n";
3 Template configuration
To show The shoutbox all you have to do is insert the code where you want the shoutbox to be. If you put it right after "{endif random_image}" it will look like the sample site. You may edit this code to suit your needs, you can also edit the shout_bit.html and shout_form.html.
I have tried it in home.html, categories.html, details.html, lightbox.html and member.html. I also tried it in the header.html.
One tip: remember to make the width of the table inside the <div> smaller than the width of the <div>(editable in style.css), so that the bottom scrolling bar doesnt appear.
<!-- Shoutbox Begin -->
<table width="148" 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_shoutbox}</td>
</tr>
<tr>
<td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
</tr>
<tr>
<td>
<div class="shouts">
<table cellpadding="0" cellspacing="0" width="130">
{shoutings}
</table>
</div>
</td>
</tr>
<tr>
<td align="center" class="row1">
{shout_form}
</td>
</tr>
<tr>
<td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
</tr>
</table>
<!-- Shoutbox End -->
4 Finishing up
Save and upload all files to their corresponding folder.Now login and go to the Control Panel. In the left, under PlugIns, there should be a link: "Shoutbox Admin". There, you have the configuration options, edit them to your needs and click in "Install Shoutbox". Now the settings have been saved, and the shoutbox table has been created.
-
wooooow awesome !!! :mrgreen:
-
one problem .... you've forgot the DB Table .... (4images_shoutbox.....) .... :?:
-
one problem .... you've forgot the DB Table .... (4images_shoutbox.....) .... :?:
... There, you have the configuration options, edit them to your needs and click in "Install Shoutbox". Now the settings have been saved, and the shoutbox table has been created.
PS. very nice feature ... thanks for that ... :wink:
-
ops...sorry......i've forgot check that ........ 8O
-
a lil problem ... i've install and this work fine but a lil problem ...
i've wrote some to test it and this work (i.e : test ) , but this text appear in my private messages when i'm reply to someone .... how fix it ? :?:
-
Security Fix(read http://www.4homepages.de/forum/index.php?topic=10545.msg52698#msg52698)
Open /includes/shout.php
Find:
if ($user_info['user_id'] == $shouts[$i]['usrid'] || $user_info['user_level'] == ADMIN){
Replace for:
if (($user_info['user_id'] == $shouts[$i]['usrid']) || ($user_info['user_level'] == ADMIN)){
Or you can also download the files again.
Thanks to TheOracle for reporting this bug, where logged off users could delete other logged off user's posts.
a lil problem ... i've install and this work fine but a lil problem ...
i've wrote some to test it and this work (i.e : test ) , but this text appear in my private messages when i'm reply to someone .... how fix it ? :?:
What private messages? please tell me more about your problem.
-
i'm using PMS , so i've test it , writing "test" on shoutbox , but when someone send a PM and when i ill reply to the same PM , the message i've before post on shoutbox , show me in my reply form (PMS) .
:?:
-
Ok, i think this should fix that:
Open /includes/shout.php
Find:
$shoutings .= $site_template->parse_template("shout_bit");
Add Before:
$message = "";
-
thanks :) it's working !! :mrgreen:
-
one simple question...how can i make it work in all pages (memberlist,pms,escuestas,potm,register...etc ) ???
-
The template files i mentioned before are the ones i tryed, as it is included in page_header.php it should work on any page that includes the header.
New Fix
Replace /shout_editor.php , /includes/shout.php and /admin/plugins/shoutbox_admin.php with the ones here (http://www.f1do.york-networks.com/gallery/shoutboxmod/Shoutbox_v1.0(full).rar).
Big thanks to TheOracle for guiding me in the 4Images code.
-
i've one problem about style ...so this show a huge space without nothing.... and how make it show without scroll bar ??
-
hallo,
when i click on the "shout it" button, i get a blank page..
my page functions again, if I call it again, but no entry in shoutbox is indicated.
-
Parse error: parse error, unexpected $ in /home/thaitami/public_html/gallery/admin/plugins/shoutbox_admin.php on line 234 i am getting this error while trying to run the file from admincp. but i didn't modify it at all.
-
New version V1.1
updating from 1.0 to 1.1
Open /includes/constants.php
Find:define('WORDMATCH_TABLE', $table_prefix.'wordmatch');
Add after:define('SHOUTBOX_TABLE', $table_prefix.'shoutbox');
Open /templates/your_template/header.html
find: window.open(href, windowname, 'width=150,height=170,scrollbars=no');
Replace for window.open(href, windowname, 'width=170,height=240,scrollbars=no');
Open /lang/your_language/admin.php
Find://-----------------------------------------------------
//--- Shoutbox ----------------------------------------
//-----------------------------------------------------
Add after(IN YOUR LANGUAGE):
[ENGLiSH]$lang['sh_not_updated'] = "Settings couldn't be updated";
$lang['sh_not_installed'] = "Installation couldn't be completed";
[SPANISH]$lang['sh_not_updated'] = "La configuracion no pudo ser guardada";
$lang['sh_not_installed'] = "No se pudo completar la instalación";
[GERMAN]$lang['sh_not_updated'] = "Die Einstellungen konnten nicht aktualisiert werden.";
$lang['sh_not_installed'] = "Die Installation konnte nicht durchgeführt werden.";
Now save the files and upload them. Also upload:
/shout_editor.php
/includes/shout.php
/templates/your_template/shout_editor.html
from the new file to download (http://www.f1do.york-networks.com/gallery/shoutboxmod).
i've one problem about style ...so this show a huge space without nothing.... and how make it show with scroll bar ??
Check if it isnt a problem in the template. If not, tell me if u have made any changes to the files. About the scroll bar, i can see it there.
hallo,
when i click on the "shout it" button, i get a blank page..
my page functions again, if I call it again, but no entry in shoutbox is indicated.
open the templates where you put the shoutbox and find:<form method="post">
replace with<form method="post" action="{self}">
Parse error: parse error, unexpected $ in /home/thaitami/public_html/gallery/admin/plugins/shoutbox_admin.php on line 234 i am getting this error while trying to run the file from admincp. but i didn't modify it at all.
Download the file again and upload it.
-
i've tried in different templates, and this do the same a huge blank space on top before comments , like in the image i've posted before 8O
-
can you show me an html output, or give me the address of your web.
-
this is the code where i've insert the html code (for where we want show shoutbox in template)
<td> <!-- Shoutbox Begin -->
<table width="148" 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_shoutbox}</td>
</tr>
<tr>
<td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
</tr>
<tr>
<td>
<div class="shouts">
<table cellpadding="0" cellspacing="0" width="130">
{shoutings}
</table>
</div>
</td>
</tr>
<tr>
<td align="center" class="row1">
{shout_form}
</td>
</tr>
<tr>
<td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
</tr>
</table>
<!-- Shoutbox End --></td>
-
everything went ok and works a treat thank you :)
just cannot get the edit and delite option to work, instead of editing or deleting the message, it reposts it again.
any ideas whats causing this ???
thank you
-
find
echo $lang['sh_not_updated'];
show_text_link($lang['sh_back'], "shoutbox_admin.php?action=main");
add after }
-
prosume you mean in shoutbox_admin.php
this is that part of code
if ($result) {
echo $lang['sh_updated'];
show_text_link($lang['sh_back'], "shoutbox_admin.php?action=main");
} else {
echo $lang['sh_not_updated'];
show_text_link($lang['sh_back'], "shoutbox_admin.php?action=main");
}
}
unset ($active);
added } made no difference would not work.
Any one else got this problem as i cannot edit or delete shouts, all it does is repost them :?
Tried from both admin panel and from home page where i have the shoutbox still no joy.
Thanks again
-
here is working code:
<?php // PLUGIN_TITLE: Shoutbox Admin
/*************************************\
** **
** Shoutbox Mod for 4images **
** Version: v1.0(Beta) **
** By: f1do **
** Email: f1do.987@gmail.com **
** Web: http://f1do.uni.cc **
** **
\*************************************/
$nozip = 1;
define('IN_CP', 1);
$root_path = (!eregi("\/plugins\/", $HTTP_SERVER_VARS['PHP_SELF'])) ? "./../" : "./../../";
define('ROOT_PATH', $root_path);
require(ROOT_PATH.'admin/admin_global.php');
define('SHOUTBOX_TABLE', $table_prefix.'shoutbox');
function get_num_words ($text) {
$text_words = explode (" ", $text);
$text_words = sizeof ($text_words);
return $text_words;
}
show_admin_header();
if ($action == "") {
$action = "main";
}
//---------------------------------------------------
//--- Instalation -----------------------------------
//---------------------------------------------------
if ($action == "installshoutbox") {
$active = un_htmlspecialchars(trim($HTTP_POST_VARS['active']));
$allowguests = un_htmlspecialchars(trim($HTTP_POST_VARS['allowguests']));
$usr_lgth = un_htmlspecialchars($HTTP_POST_VARS['usr_lgth']);
$msg_lgth = un_htmlspecialchars($HTTP_POST_VARS['msg_lgth']);
$sh_wordwrap = un_htmlspecialchars(trim($HTTP_POST_VARS['sh_wordwrap']));
$bbcode = trim($HTTP_POST_VARS['bbcode']);
$bbimg = trim($HTTP_POST_VARS['bbimg']);
$html = htmlspecialchars(trim($HTTP_POST_VARS['html']));
$shouts = un_htmlspecialchars(trim($HTTP_POST_VARS['shouts']));
$sql = "INSERT INTO ".SETTINGS_TABLE."(setting_value,setting_name) VALUES(".$active.",'sh_active')";
$result = $site_db->query($sql);
$sql = "INSERT INTO ".SETTINGS_TABLE."(setting_value,setting_name) VALUES(".$allowguests.",'sh_allow_guests')";
$result = $site_db->query($sql);
$sql = "INSERT INTO ".SETTINGS_TABLE."(setting_value,setting_name) VALUES(".$usr_lgth.",'sh_usr_lgth')";
$result = $site_db->query($sql);
$sql = "INSERT INTO ".SETTINGS_TABLE."(setting_value,setting_name) VALUES(".$msg_lgth.",'sh_msg_lgth')";
$result = $site_db->query($sql);
$sql = "INSERT INTO ".SETTINGS_TABLE."(setting_value,setting_name) VALUES(".$sh_wordwrap.",'sh_wordwrap')";
$result = $site_db->query($sql);
$sql = "INSERT INTO ".SETTINGS_TABLE."(setting_value,setting_name) VALUES(".$bbcode.",'sh_bbcode')";
$result = $site_db->query($sql);
$sql = "INSERT INTO ".SETTINGS_TABLE."(setting_value,setting_name) VALUES(".$bbimg.",'sh_bbimg')";
$result = $site_db->query($sql);
$sql = "INSERT INTO ".SETTINGS_TABLE."(setting_value,setting_name) VALUES(".$html.",'sh_html')";
$result = $site_db->query($sql);
$sql = "INSERT INTO ".SETTINGS_TABLE."(setting_value,setting_name) VALUES(".$shouts.",'sh_msg_display')";
$result = $site_db->query($sql);
$sql = 'CREATE TABLE `4images_shoutbox` ('
. ' `id` INT NOT NULL AUTO_INCREMENT, '
. ' `name` VARCHAR(50) NOT NULL, '
. ' `message` TEXT NOT NULL, '
. ' `date` VARCHAR(15) NOT NULL,'
. ' `ip` VARCHAR(15) NOT NULL,'
. ' `usrid` INT(11) NOT NULL,'
. ' PRIMARY KEY (`id`)'
. ' )'
. ' TYPE = myisam';
$result = $site_db->query($sql);
if ($result) {
echo $lang['sh_installed'];
show_text_link($lang['sh_back'], "shoutbox_admin.php?action=main");
}
else {
echo $lang['sh_not_installed'];
show_text_link($lang['sh_back'], "shoutbox_admin.php?action=main");
}
}
unset ($active);
unset ($allowguests);
unset ($usr_lgth);
unset ($msg_lgth);
unset ($sh_wordwrap);
unset ($bbcode);
unset ($bbimg);
unset ($html);
unset ($shouts);
if (!isset($config['sh_active']) && $action != "installshoutbox") {
$action = "cfginstallshoutbox";
}
if ($action == "cfginstallshoutbox") {
show_form_header('shoutbox_admin.php','installshoutbox');
show_table_header($lang['sh_cfg']);
show_radio_row($lang['sh_activate'], "active");
show_radio_row($lang['sh_allow_guests'], "allowguests");
show_input_row($lang['sh_usr_lgth'],"usr_lgth","15");
show_input_row($lang['sh_msg_lgth'],"msg_lgth","50");
show_input_row($lang['sh_wordwrap'],"sh_wordwrap","30");
show_radio_row($lang['sh_bbcode'], "bbcode");
show_radio_row($lang['sh_bbimg'], "bbimg", 0);
show_radio_row($lang['sh_html'], "html");
show_input_row($lang['sh_msg_display'],"shouts","20");
show_table_footer();
show_form_footer($lang['sh_install'], "", 2);
}
//---------------------------------------------
//-------- Admin ------------------------------
//---------------------------------------------
if ($action == "main") {
$sql = "SELECT * FROM ".SHOUTBOX_TABLE." ORDER BY id DESC";
$result = $site_db->query($sql);
while ($row = $site_db->fetch_array($result)) {
$shouts[] = $row;
}
$num_shouts = sizeof ($shouts);
if ($num_shouts > 20) {
$num_shouts = 20;
}
if ($num_shouts > 0) {
show_form_header('shoutbox_admin.php','deleteshout');
echo "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\">\n<tr>\n<td class=\"tableborder\">\n<table cellpadding=\"3\" cellspacing=\"1\" border=\"0\" width=\"100%\">\n";
echo "<tr class=\"tableseparator\">\n<td class=\"tableseparator\" width=\"40\"><input name=\"allbox\" type=\"checkbox\" onClick=\"CheckAll()\" /></td>\n";
echo "<td class=\"tableseparator\" width=\"40\">".$lang['sh_number']."</td>\n";
echo "<td class=\"tableseparator\" width=\"70\">".$lang['sh_name']."</td>\n";
echo "<td class=\"tableseparator\">".$lang['sh_message']."</td>\n";
echo "<td class=\"tableseparator\" width=\"100\">".$lang['sh_date']."</td>\n";
echo "<td class=\"tableseparator\" width=\"80\">".$lang['sh_options']."</td></tr>\n";
for ($i = 0; $i < $num_shouts; $i++) {
echo "<tr class=\"".get_row_bg()."\">\n";
echo "<td><input type=\"checkbox\" name=\"shout_delete[]\" value=\"".$shouts[$i]['id']."\"></td>\n";
echo "<td>".$shouts[$i]['id']."</td>\n";
echo "<td>".$shouts[$i]['name']."</td>\n";
echo "<td>".$shouts[$i]['message']."</td>\n";
echo "<td>".date('d.m.Y H:i:s', $shouts[$i]['date'])."</td>\n";
echo "<td><a href=\"".ROOT_PATH."shout_editor.php?action=edit&shout_id=".$shouts[$i]['id']."\" target=\"_blank\" onClick=\"return popup(this,'edit_shout')\">".$lang['edit']."</a> <a href=\"".ROOT_PATH."shout_editor.php?action=delete&shout_id=".$shouts[$i]['id']."\" target=\"_blank\" onClick=\"return popup(this,'delete_shout')\">".$lang['delete']."</a></td>\n";
}
show_form_footer($lang['sh_delete'], "", 6);
}
show_form_header('shoutbox_admin.php','editconfig');
show_table_header($lang['sh_cfg']);
show_radio_row($lang['sh_activate'], "active",$config['sh_active']);
show_radio_row($lang['sh_allow_guests'], "allowguests",$config['sh_allow_guests']);
show_input_row($lang['sh_usr_lgth'],"usr_lgth",$config['sh_usr_lgth']);
show_input_row($lang['sh_msg_lgth'],"msg_lgth",$config['sh_msg_lgth']);
show_input_row($lang['sh_wordwrap'],"sh_wordwrap",$config['sh_wordwrap']);
show_radio_row($lang['sh_bbcode'], "bbcode",$config['sh_bbcode']);
show_radio_row($lang['sh_bbimg'], "bbimg",$config['sh_bbimg']);
show_radio_row($lang['sh_html'], "html",$config['sh_html']);
show_input_row($lang['sh_msg_display'],"shouts",$config['sh_msg_display']);
show_table_footer();
show_form_footer($lang['sh_update'], "", 2);
}
if ($action == "deleteshout") {
if (isset($HTTP_POST_VARS['shout_delete'])){
$shout_delete = $HTTP_POST_VARS['shout_delete'];
$num_shout_delete = sizeof ($shout_delete);
for ($i = 0; $i <= $num_shout_delete; $i++) {
$sql = "DELETE FROM ".SHOUTBOX_TABLE." WHERE id='".$shout_delete[$i]."'";
$result = $site_db->query($sql);
}
echo $lang['sh_deleted'];
}
show_text_link($lang['sh_back'], "shoutbox_admin.php?action=main");
}
if ($action == "editconfig") {
$active = un_htmlspecialchars(trim($HTTP_POST_VARS['active']));
$allowguests = un_htmlspecialchars(trim($HTTP_POST_VARS['allowguests']));
$usr_lgth = un_htmlspecialchars($HTTP_POST_VARS['usr_lgth']);
$msg_lgth = un_htmlspecialchars($HTTP_POST_VARS['msg_lgth']);
$sh_wordwrap = un_htmlspecialchars(trim($HTTP_POST_VARS['sh_wordwrap']));
$bbcode = trim($HTTP_POST_VARS['bbcode']);
$bbimg = trim($HTTP_POST_VARS['bbimg']);
$html = trim($HTTP_POST_VARS['html']);
$shouts = un_htmlspecialchars(trim($HTTP_POST_VARS['shouts']));
$sql = "UPDATE ".SETTINGS_TABLE." SET setting_value = ".$active." WHERE setting_name = 'sh_active'";
$result = $site_db->query($sql);
$sql = "UPDATE ".SETTINGS_TABLE." SET setting_value = ".$allowguests." WHERE setting_name = 'sh_allow_guests'";
$result = $site_db->query($sql);
$sql = "UPDATE ".SETTINGS_TABLE." SET setting_value = ".$usr_lgth." WHERE setting_name = 'sh_usr_lgth'";
$result = $site_db->query($sql);
$sql = "UPDATE ".SETTINGS_TABLE." SET setting_value = ".$msg_lgth." WHERE setting_name = 'sh_msg_lgth'";
$result = $site_db->query($sql);
$sql = "UPDATE ".SETTINGS_TABLE." SET setting_value = ".$sh_wordwrap." WHERE setting_name = 'sh_wordwrap'";
$result = $site_db->query($sql);
$sql = "UPDATE ".SETTINGS_TABLE." SET setting_value = ".$bbcode." WHERE setting_name = 'sh_bbcode'";
$result = $site_db->query($sql);
$sql = "UPDATE ".SETTINGS_TABLE." SET setting_value = ".$bbimg." WHERE setting_name = 'sh_bbimg'";
$result = $site_db->query($sql);
$sql = "UPDATE ".SETTINGS_TABLE." SET setting_value = ".$html." WHERE setting_name = 'sh_html'";
$result = $site_db->query($sql);
$sql = "UPDATE ".SETTINGS_TABLE." SET setting_value = ".$shouts." WHERE setting_name = 'sh_msg_display'";
$result = $site_db->query($sql);
if ($result) {
echo $lang['sh_updated'];
show_text_link($lang['sh_back'], "shoutbox_admin.php?action=main");
} else {
echo $lang['sh_not_updated'];
show_text_link($lang['sh_back'], "shoutbox_admin.php?action=main");
}
unset ($active);
unset ($allowguests);
unset ($usr_lgth);
unset ($msg_lgth);
unset ($sh_wordwrap);
unset ($bbcode);
unset ($bbimg);
unset ($html);
unset ($shouts);
}
show_admin_footer();
?>
-
can now delete from admin cp but not from home page options in shoutbox,
but still cannot edit from either admin cp or home page.
At least i can delete the shouts :)
Thanks for your time.
-
is it possible to take nick from DB (registered users) and disable nick changes in posts ?
it reloads my whole page and when i put it in iframe it show me just tags like {shout_form} ,{shout_form}..
what im doing wrong ?
i know im still asking about something :oops:
give me some time...
-
Hi there,
i have installed this Mod but when i write a shout and click the "shout it" button i have a blank page.
to see and test look here -> http://www.terraristik-galerie.de/board.php
Anyone an idea why i have a blank page???
-
hi there, hav a lot of errors,, maybe someone can fix it! other is see, have the same problems..
1. can't delete posts, not as admin, not as user (klick under cp nothing happens blank screen and under site at the delete button,window pops up, press at the delete button->nothing happens
2. when i have done a post, its shows correctly but, when i refresh the site after that, it will post it again.. so now 2* the same
the mod is very nice, so let's fix the error's *g thx
(http://www.castorsworld.de/bilder/shoutbox1.jpg)
-
Hi everyone,
nice mod, but when I'm in the ACP and try to click shoutbox admin I get this:
Warning: main(./../admin/admin_global.php) [function.main]: failed to open stream: No such file or directory in /is/htdocs/wp1021617_4KJEKX6SI2/www/pixelmall/admin/plugins/shoutbox_admin.php on line 16
Fatal error: main() [function.require]: Failed opening required './../admin/admin_global.php' (include_path='./:/usr/share/pear/php5/') in /is/htdocs/wp1021617_4KJEKX6SI2/www/pixelmall/admin/plugins/shoutbox_admin.php on line 16
Anyone an idea?
-
How make multilanguage button shout it!?
-
getting
Fatal error: Call to undefined function: safe_htmlspecialchars() in /home/sexymal/public_html/Galeries/includes/shout.php on line 47
-
getting Fatal error: Call to undefined function: safe_htmlspecialchars() in /home/sexymal/public_html/Galeries/includes/shout.php on line 47
Ok, so in shout.php file,
find :
$shout_message = safe_htmlspecialchars($shout_message);
replace with :
$shout_message = htmlspecialchars($shout_message);
-
Hi everyone,
nice mod, but when I'm in the ACP and try to click shoutbox admin I get this:
Warning: main(./../admin/admin_global.php) [function.main]: failed to open stream: No such file or directory in /is/htdocs/wp1021617_4KJEKX6SI2/www/pixelmall/admin/plugins/shoutbox_admin.php on line 16
Fatal error: main() [function.require]: Failed opening required './../admin/admin_global.php' (include_path='./:/usr/share/pear/php5/') in /is/htdocs/wp1021617_4KJEKX6SI2/www/pixelmall/admin/plugins/shoutbox_admin.php on line 16
Anyone an idea?
You will need to play with this line :
$root_path = (!eregi("\/plugins\/", $HTTP_SERVER_VARS['PHP_SELF'])) ? "./../" : "./../../";
a little bit. Simply compare with the other plugin files you might have by copy / pasting that correct line statement over this one. This should definitely clear out the problem. ;)
Merry Christmas.
-
Merry Christmas everyone,
hi Oracle,
actually I already added this:
$root_path = (eregi("\/plugins\/", $_SERVER['PHP_SELF'])) ? "./../../" : "./../";
but no luck. I guess I missed something and will try yours. Thanks.
-
This is the one I have :
$root_path = (eregi("\/plugins\/", $HTTP_SERVER_VARS['PHP_SELF'])) ? "./../../" : "./../";
-
I don't know why Jan used this kind of path detecting mechanizm in the first plugin published and now everyone is using it as an example, because code
$root_path = (!eregi("\/plugins\/", $HTTP_SERVER_VARS['PHP_SELF'])) ? "./../" : "./../../";
define('ROOT_PATH', $root_path);
should be simplier and does not require plugin folder detection at all:define('ROOT_PATH', "./../../");
-
hi there, hav a lot of errors,, maybe someone can fix it! other is see, have the same problems..
1. can't delete posts, not as admin, not as user (klick under cp nothing happens blank screen and under site at the delete button,window pops up, press at the delete button->nothing happens
2. when i have done a post, its shows correctly but, when i refresh the site after that, it will post it again.. so now 2* the same
the mod is very nice, so let's fix the error's *g thx
(http://www.castorsworld.de/bilder/shoutbox1.jpg)
what about my problem and others here, read this thread again and again .. but didnt find the answer .. thx for help
-
I don't know why Jan used this kind of path detecting mechanizm in the first plugin published
The eregi module means that if the current file has not been loaded before passing to any other plugin files, it will not be loaded. Althought, I also doubt it is necessary to keep it there for this case.
-
The link is not working for me. Anyone have these files elsewhere? I will check V@no's now.
-
It's true ... both links from the first post are returning as invalid now ... anyone else has this package aside ? 8O
-
Must be that one.
Rename the *.zip file to *.rar if necessary
Because rar files are not allowed to attach
-
Must be that one.
Yep - must be. 8)
-
Please follow the whole discussion in this topic. The answer is right about two threads above your message (as an attachment file). ;)
[Note] - Topic deleted above mine.
-
hmm.... i see in small letters shoutbox v1.1.... :) ......
must be this one :)
-
must be this one
Must be. :roll:
-
can't extract the file, it says... the file has been damaged... anyone another idea? .... the file is not big..maybe to post it in code...
-
can't extract the file, it says... the file has been damaged... anyone another idea? .... the file is not big..maybe to post it in code...
Download the latest version of WinRAR from : http://www.rarsoft.com and re-download the ZIP file from the attachment. It should definitely work. ;)
-
yes it does !! ... still had the old version of winzip...
thx!!
-
Hi,
ich habe alles der Anleitung nach gemacht aber trotz Installation über das Admin Panel wurden die Tabellen nicht angelegt
DB Error: Bad SQL Query: SELECT * FROM gallery_shoutbox ORDER BY id DESC
Table 'mirandus_de.gallery_shoutbox' doesn't exist
Wie komme ich denn jetzt an die Tabellen ?
edit: hat sich erledigt, es lag am Pfad
Danke,
Miranda
-
I have a problem guys. The {self} is not being detected. When I view the source code of the webpage I get
<form method="post" action="">
I am using a custom template.
-
is somebody supporting this topic? Because i see a lot of questions and errors..
have errors too, after the 8th shout is written, new ones arent updated to the box, and after i place a shout, it redirects me to the index.php
http://www.ggrec.com/zapomnime2/index.php?template=chat
please advise ;)
greeting,
georgi
-
Maybe it could help to write the user a pm who wrote this mod.
I had to do several changes to get this mod working for me,
as it should,
but unfortunatley i didn't documented the changes.
-
link to download chotbox is dead
-
Take a look at the previous pages,
i attached the file in one of my posts.
http://www.4homepages.de/forum/index.php?topic=10545.msg58003#msg58003
-
HI !
Very Nice Mod.
unfortunately i cannot delete a shout.
The popup appears but if i click to delete nothing else happens ?
the only way to delete some shouts is directly in the database.
this function doesnt work from the homepage and the admin panel.
How to fix that.
regards.
Birne
-
After I have installed the mod I get the following error:
Warning: session_start(): open(/usr/export/tmp/e/2/sess_e2d29c0398a5cfaa15cce41b7551b2d7, O_RDWR) failed: No such file or directory (2) in /usr/export/www/vhosts/funnetwork/hosting/kl102/Bilder/images/includes/sessions.php on line 84
and at the bottom this:
Warning: Unknown(): open(/usr/export/tmp/e/2/sess_e2d29c0398a5cfaa15cce41b7551b2d7, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (2;/usr/export/tmp) in Unknown on line 0
What can I do
Much thanks for your help
-
is there still support for this mod.
I have installed it but under the Shoutbox Admin, I see no descriptions or anywhere to click to install ?
-
Maybe it could help to write the user a pm who wrote this mod.
I had to do several changes to get this mod working for me,
as it should,
but unfortunatley i didn't documented the changes.
-
anyone has the files for this???
download link doesnt work.. dead.. 8O
-
http://www.4homepages.de/forum/index.php?topic=10545.msg58003#msg58003
-
А где скачать файлы? Все ссылки битые!!! :|
-
товарищи- дайте пожалуйста ссылку на файлы, что бы скачать и поставить, а то та ссылка что в начале битая! :roll:
-
Its possible added post data (time) ?
i.e = 18:39 - USERNAME
:?:
-
http://www.f1do.york-networks.com/gallery/shoutboxmod/ - битая ссылка, мне нужны эти файлы что бы поставить shoutbox
-
i've put a question http://www.4homepages.de/forum/index.php?topic=10545.msg52704#msg52704 and i've fix it , so if someone are interested in put shouts appear on page without be on iframe, so the solution its simple.
On style.css find
/*--Shoutbox--------------------------------------------------*/
.shouts {
border: 1px;
border-style:solid;
border-color: #004C75;
height: 120px;
width: 148px;
padding: 0px;
overflow: auto;
} .shoutinput {
background-color: #FFFFFF;
font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif;
color: #0f5475;
font-size: 11px;
WIDTH: 130px;
} .shouttextarea {
font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif;
color: #0f5475;
font-size: 11px;
}
and remove
/*--Shoutbox--------------------------------------------------*/
.shouts {
border: 1px;
border-style:solid;
border-color: #004C75;
height: 120px;
width: 148px;
padding: 0px;
overflow: auto;
} .shoutinput {
background-color: #FFFFFF;
font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif;
color: #0f5475;
font-size: 11px;
WIDTH: 130px;
} .shouttextarea {
font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif;
color: #0f5475;
font-size: 11px;
}
and its done :) i hope this help ! :mrgreen:
-
None can make a page with all old shouts ?
-
It;s posible to add flash messeage ? and display random example > epuls.pl "Oneliner"
-
I've wondering if its possible make a shoutbox for every member (at profile) ????would be awesome... :mrgreen:
-
there is a personal guestbook mod
i think this will statisfy your needs
-
there is a personal guestbook mod
i think this will statisfy your needs
where ???
-
hi
the url for MOD not found, the server bad, i like the mod, y need instaled,
Download:http://www.f1do.york-networks.com/gallery/shoutboxmod/
help for this MOD thanks
-
could anybody attach this mod on this forum who still have it?
-
There is a file attached to a message somewhere.
I can get it to work but I can't get posts to delete. I am an admin and it doesn't work through the control panel or the pop-up window. Any ideas?
Thanks
-
for who is looking for the shoutbox files , ill attach here :wink:
-
thx man
i really appreciate this
hopefully this shoutbox rocks
-
OK so I got this message left on my shoutbox:
googlebot:
I am GoogleBot.
I like bots.
LOL.
Also, still can't delete/edit comments...any ideas?
-
OK so I got this message left on my shoutbox:
googlebot:
I am GoogleBot.
I like bots.
LOL.
Also, still can't delete/edit comments...any ideas?
At ACP > Shoutbox Admin
;)
-
nope, nothing.
-
also i couldnt delete shouts.. pressing delete but no action
-
download link not working!
-
download link not working!
take a look here http://www.4homepages.de/forum/index.php?topic=10545.msg76698#msg76698
-
Hallo ihr,
Wie bekomme ich denn in den Einträgen das Erstellungsdatum+ Uhrzeit rein (wie im Admin)
Habe schon gesucht, ob das schon besprochen wurde, konnte aber dazu nichts finden.
lieben gruss Harald
-
Also, still can't delete/edit comments...any ideas?
You don't need to delete the comments in the ACP, just change this lines in shout_editor.php
find:
if ($action == "delete") {
$url_delete = $site_sess->url(ROOT_PATH."shout_editor.php?action=deleteyes&shout_id=".$shout_id);
change to
if ($action == "delete") {
$url_sh_delete = $site_sess->url(ROOT_PATH."shout_editor.php?action=deleteyes&shout_id=".$shout_id);
And after the popup-window opens, just confirm deleting by clicking the "Delete shout?" button...
I did also a small change to the edit/delete links - you can make it look a bit better by using images instead of the text-links...
open shout.php
find:
$admin_shout = "<a href=\"".$site_sess->url(ROOT_PATH."shout_editor.php?action=edit&shout_id=".$shouts[$i]['id'])."\" target=\"_blank\" onClick=\"return popup(this,'edit_shout')\">".$lang['edit']."</a><a href=\"".$site_sess->url(ROOT_PATH."shout_editor.php?action=delete&shout_id=".$shouts[$i]['id'])."\" target=\"_blank\" onClick=\"return popup(this,'delete_shout')\">".$lang['delete']."</a>";
change to:
$admin_shout = "<a href=\"".$site_sess->url(ROOT_PATH."shout_editor.php?action=edit&shout_id=".$shouts[$i]['id'])."\" target=\"_blank\" onClick=\"return popup(this,'edit_shout')\"><IMG SRC=\"".$site_sess->url(TEMPLATE_DIR."/default/images/edit.gif")."\" border=\"0\"></a> <a href=\"".$site_sess->url(ROOT_PATH."shout_editor.php?action=delete&shout_id=".$shouts[$i]['id'])."\" target=\"_blank\" onClick=\"return popup(this,'delete_shout')\"><IMG SRC=\"".$site_sess->url(TEMPLATE_DIR."/default/images/delete.gif")."\" border=\"0\"></a>";
(I use to upload "standard" buttons into the default-template folder, because I do not change these in the various templates...)
Then download the 2 attached images and upload these into templates/default/images/
:)
Have fun
-
OK so I got this message left on my shoutbox:
googlebot:
I am GoogleBot.
I like bots.
LOL.
well... you should hide the form from bots, if you'd installed my "Treat bots as users with less rights"
(use {ifnot is_bot}....{endifnot is_bot} as shown there on any action you don't want the bots to see or do...)
otherwise anybody, who knows how to change some of his brower-settings, can enter your page and spam your shoutbox (or even: do a lot of other things on you site ;) )
;)
-
Hatte die Shoutbox installiert. Die Shoutbox soll in einer extra Templateseite erscheinen. Die Seite ist wesentlich breiter als die Shoutbox. Wie passe ich diese an?
Außerdem, wenn ich den "Shout it" -Button in der shout_form.html in "Senden!" ändere, funktioniert die gesamte Shoutbox nicht mehr.
My Shoutbox will be integrate in an extra template-site. This site The side is substantially broader than the shoutbox. How can I adapt the side?
In addition, when I the "Shout it!"- button in the "shout_form.html" into "Senden!", the shoutbox don´t send.
-
Hi,
Is there a way to preview shouts and validate them (publish in shoutbox) or delete them before publishing?
Thanks in advance,
António
-
Hallo,
kenn zwar den Mod nicht, aber bestimmt nicht
in der style.css:
/*--Shoutbox--------------------------------------------------*/
.shouts {
border: 1px;
border-style:solid;
border-color: #004C75;
height: 120px;
width: 148px;
padding: 0px;
overflow: auto;
}
die Größe der Box.
Zum Absenden:
Vielleicht sind in dem Quelltext die <form> </form> nicht passend, bzw. ineinander verschachtelt.
Dann klappts auch nicht.
Ne URL wäre gut
Gruß
Kurt
-
Danke, die Breite und Höhe hatte ich in der Zwischenzeit in der style.css selbst angepaßt. Nun werden die Eintragungen breitenmäßig aber nicht an die neue Breite angepaßt, sondern kleben links. Das müßte noch geändert werden, dann wäre dieser Part perfekt.
Zwei weitere kleine Dinge noch: Nach dem Versenden wird man automatisch aus der Shoutbox herausgeschmissen und findet sich auf der Startseite wieder. Und beim Editieren im extra Fenster ist noch die kleine Größe eingestellt, so daß man es zum Editieren erst großziehen muß.
Zur URL: Die shoutbox.html liegt im abgeschlossenen Mitgliederbereich. Ich habe den Link getestet, da kommt man so nicht rein, ohne sich anzumelden.
-
Great mod people! :D
-
is it possible to take nick from DB (registered users) and disable nick changes in posts ?
it reloads my whole page and when i put it in iframe it show me just tags like {shout_form} ,{shout_form}..
what im doing wrong ?
i know im still asking about something :oops:
give me some time...
Find in shout_form.html:
<input type="text" name="shout_user" value="{name}">
Replace with:
<input type="hidden" name="shout_user" value="{name}">
-
Ok, der Threat ist zwar bös alt, aber ich bekomme , nachdem ich die Shoutbox implementiert habe und auf "search" oder "advanced search" gehe folgende Fehlermeldung:
Notice: Undefined index: shout in C:\Programme\xampp\htdocs\images\4image\includes\shout.php on line 21
Notice: Undefined variable: prof_linka in C:\Programme\xampp\htdocs\images\4image\includes\shout.php on line 99
Notice: Undefined variable: prof_linkb in C:\Programme\xampp\htdocs\images\4image\includes\shout.php on line 100
Notice: Undefined variable: prof_linka in C:\Programme\xampp\htdocs\images\4image\includes\shout.php on line 99
Notice: Undefined variable: prof_linkb in C:\Programme\xampp\htdocs\images\4image\includes\shout.php on line 100
Notice: Undefined variable: prof_linka in C:\Programme\xampp\htdocs\images\4image\includes\shout.php on line 99
Notice: Undefined variable: prof_linkb in C:\Programme\xampp\htdocs\images\4image\includes\shout.php on line 100
Auf allen anderen Seiten funktioniert der Script recht Problemlos, abgesehen davon, das ich ndie Shouts nicht löschen kann ;)
Auch mit den Bugfix ging das löschen nicht :-\ Aber das Search Problem ist schlimmer...
-
hi is possible put a validation image (captcha solution) to post in the shoutbox'??? because in my shoutbox there is a lot of spam. it would be great that the visitors put the text from the validation image and the users won't have to write the text because is login
sorry my horrible english
-
i have spam .. in my site only registered users can shout and i have spam too... why??
-
Ok. I tried to myself add a captcha for shoutbox and i think that it works right
ADDON TO SHOUTBOX : CAPTCHA : SPAN SOLUTION
Open global.php
Search:
$captcha_enable_postcards = 1;
Add after:
$captcha_enable_shout = 1;
Open includes/shout.php
search
$shout_message = trim ($shout_message);
after add:
$captcha = (isset($HTTP_POST_VARS['captcha'])) ? un_htmlspecialchars(trim($HTTP_POST_VARS['captcha'])) : "";
search:
elseif (!$config['sh_active']) {
$errormsg = $lang['sh_e_inactive'];
}
after add:
elseif (!captcha_validate($captcha)) {
$errormsg = $lang['captcha_required'];
}
search:
"shoutmsg" => $message,
after add:
"captcha_shout" => (bool)$captcha_enable_shout,
"lang_captcha" => $lang['captcha'],
"lang_captcha_desc" => $lang['captcha_desc'],
Open shout_editor.php
Search:
$shout_message = (stripslashes(trim($HTTP_POST_VARS['shout_message'])));
After add:
$captcha = (isset($HTTP_POST_VARS['captcha'])) ? un_htmlspecialchars(trim($HTTP_POST_VARS['captcha'])) : "";
if ($captcha_enable_contact && !captcha_validate($captcha)) {
$shout_message .= (($shout_message != "") ? "<br />" : "").$lang['captcha_required'];
}
search:
"sh_message" => $shout['0']['message'],
after add:
"captcha_shout" => (bool)$captcha_enable_shout,
"lang_captcha" => $lang['captcha'],
"lang_captcha_desc" => $lang['captcha_desc'],
Open templates/default/shout_editor.html
search:
<a href="{delete_link}"><input type="button" value="{lang_delete}" class="button"></a>
</td>
</tr>
after add:
{if captcha_upload}
<tr>
<td class="row1" valign="top" ><b>{lang_captcha}</b></td>
<td class="row1">
<a href="javascript:new_captcha_image();"><img src="{url_captcha_image}" border="0" id="captcha_image" /></a> <br />
<input type="text" name="captcha" size="30" value="" class="commentinput" id="captcha_input" />
<br />
{lang_captcha_desc}
</td>
</tr>
{endif captcha_upload}
Open templates/default/shout_form.html[/b]
search:
<input type="submit" name="shout" value="shout it!" class="button">
</td>
</tr>
after add:
{if captcha_upload}
<tr>
<td class="row1" valign="top" ><b>{lang_captcha}</b></td>
<td class="row1">
<a href="javascript:new_captcha_image();"><img src="{url_captcha_image}" border="0" id="captcha_image" /></a> <br />
<input type="text" name="captcha" size="30" value="" class="commentinput" id="captcha_input" />
<br />
{lang_captcha_desc}
</td>
</tr>
{endif captcha_upload}
Is the first time that I modify php mods.. so is sure that there is any problem, please it would be great that someone help me
-
now I have the problem that captcha is too width to my template .. http://www.myart.es/details.php?image_id=536 so anyone know how can I resize captcha image or put an iframe???
-
hi all
i installed this Shoutbox Mod today, but i cant find a helping post for the problem with "delete messages"
I can only edit them!
When i click "delete" (direct in the post or in the Admin) nothing works!
I have tried serveral possibilities, but none of them solved my problems!
:(
Please help! Thanks a lot!
-
I have the search problem, too! New Images or Search are giving:
Notice: Undefined index: shout in /var/www/vhosts/domain.de/httpdocs/memberz/bwneu/includes/shout.php on line 21
Notice: Use of undefined constant SHOUTBOX_TABLE - assumed 'SHOUTBOX_TABLE' in /var/www/vhosts/domain.de/httpdocs/memberz/bwneu/includes/shout.php on line 61
Has anyone a solution or an idea?
-
Follow step 1.3 from first topic. Looks like you missed the includes/constants.php file steps . . .
-
Hi,
i have an error when i open the search funktion
Notice: Undefined index: shout
Whats wrong ?? can i help me please.
Thanks darkness :mrgreen:
Ok i find the error, here is my code ;-)
Part 1. open includes/page_header.php
kill this code:
/*include (ROOT_PATH.'includes/shout.php');*/
find this:
"url_lightbox" => $site_sess->url(ROOT_PATH."lightbox.php"),
insert below this:
"url_shout" => $site_sess->url(ROOT_PATH.'includes/shout.php'),
Part 2. open index.php
Code einfügen
find this:
include(ROOT_PATH.'includes/page_header.php');
insert below this:
include(ROOT_PATH.'includes/shout.php');
safe and upload the files, i test it.. works fine :lol:
Greetings darkness :mrgreen:
-
"url_shout" => $site_sess->url(ROOT_PATH.'includes/shout.php'),
May just be me but ... includes not good thing use $site_sess (by include) ...
-
is there still support for this mod.
I have installed it but under the Shoutbox Admin, I see no descriptions or anywhere to click to install ?
I have the same problem.... :roll: :roll:
i got this:
DB Error: Bad SQL Query: SELECT * FROM 4images_shoutbox ORDER BY id DESC
Table 'beckytee_vers.4images_shoutbox' doesn't exist
-
Table 'beckytee_vers.4images_shoutbox' doesn't exist
SQL table no exist ... create it.
-
aha, yes :idea:
But now i get this "delete" problem, any help for that?
-
But now i get this "delete" problem, any help for that?
Exact text ?
-
I cant delete shouts....
-
Shure, a program return exact message text say - 'I cant delete shouts....'. :roll:
Please post exact text for help.
-
Ok, this is not easy i see....
I cant delete tha shouts.... I want to delete my shoust... but i can.. the delete button do not work :roll: :roll:
-
the delete button do not work
The mean of not work ? Is do ? :roll:
-
I can only edit them!
When i click "delete" (direct in the post or in the Admin) nothing works!
-
nothing works!
Result of nothing work ? Error message (precise) ?
-
No error message, no nothing....
-
Which version 4images - PHP - mySQL use ?
-
4images1.7.4
PHP version 5.2.3
MySQL version 5.0.27
-
One of new PHP version. My gues is this. Validate diff before PHP old version. ;)
I go first post - no download can ... have the ZIP file of MOD ? If so, please attach. Will look.
-
Okay, here is the zip.
Thank you for the help.
-
Ok, shout_editor.php file - for you:
if ($shout['0']['usrid']
replace:
if ($shout[0]['usrid']
"sh_name" => $shout['0']['name'],
"sh_message" => $shout['0']['message'],
replace:
"sh_name" => $shout[0]['name'],
"sh_message" => $shout[0]['message'],
$site_template->register_vars(array(
"lang_deleted" => $lang['sh_deleted']
));
replace:
$site_template->register_vars(array(
"lang_deleted" => $lang['sh_deleted']
));
if (isset($result) && $result) {
redirect(ROOT_PATH . "shout.php");
}
Done.
-
ok, then i get this:
Parse error: syntax error, unexpected $end in .../shout_editor.php on line 80
-
if (isset($result) && $result) {
redirect(ROOT_PATH . "shout.php");
}
add:
}
-
ok, When i click "delete" i get 404 -not found
When i click "edit" i get the editor up but nothing happends when i click the buttons.
-
404 not found ? Check web error logs in cPanel. What say ?
-
File does not exist: .../shout.php
-
Here problem. ;)
shout.php is from ZIP you send ... no have it on site :mrgreen:
Upload it on ROOT_PATH gallery. Should work. ;)
-
ok, then i get this:
Fatal error: Call to a member function query() on a non-object in ./shout.php on line 62
-
**************************************/
add after:
define('ROOT_PATH', './');
include(ROOT_PATH . "global.php");
require(ROOT_PATH . "includes/sessions.php");
function get_num_words ($text) {
$text_words = explode (" ", $text);
$text_words = sizeof ($text_words);
return $text_words;
}
replace:
function get_num_words ($text) {
if (strlen(trim($text)) == 0) {
return;
} else {
$text_words = explode (" ", $text);
$text_words = sizeof ($text_words);
return $text_words;
}
}
//--------------------------------------------------------------------------
//---------------Save Shouts------------------------------------------------
//--------------------------------------------------------------------------
$shout = (stripslashes(trim($HTTP_POST_VARS['shout'])));
if ($shout == "shout it!") {
$shout_user = trim($HTTP_POST_VARS['shout_user']);
$shout_message = $HTTP_POST_VARS['shout_message'];
$shout_message = trim ($shout_message);
$shout_date = time();
$shout_ip = $session_info['session_ip'];
$shout_user_id = $user_info['user_id'];
replace:
//--------------------------------------------------------------------------
//---------------Save Shouts------------------------------------------------
//--------------------------------------------------------------------------
$shout = (stripslashes(trim($HTTP_POST_VARS['shout'])));
if ($shout == "shout it!") {
$shout_user = (isset($HTTP_POST_VARS['shout_user'])) ? (stripslashes(trim($HTTP_POST_VARS['shout_user']))) : "";
$shout_message = (isset($HTTP_POST_VARS['shout_message'])) ? un_htmlspecialchars(trim((string)$HTTP_POST_VARS['shout_message'])) : "";
$shout_date = time();
$shout_ip = $session_info['session_ip'];
$shout_user_id = $user_info['user_id'];
Done.
-
ok, then i get:
Parse error: syntax error, unexpected $end in ./shout.php on line 142
-
Top of ?> - add }
-
ok, no error this time, but a blank site... no text or buttons.
-
Check web error logs.
-
No error log....
-
No have or no new report ?
-
no new report
-
Sorry - can no do on this (for now).
-
Ok, thanks for help anyway
-
PHP site say PHP v5 out official January 2008. There, more solution.
-
One last ...
Is register_globals off or on from site ? If no ide .. go to ACP - > phpinfo() . Fin info there.
-
its off.
-
In global.php file,
find:
error_reporting(E_ERROR | E_WARNING | E_PARSE);
replace:
//error_reporting(E_ERROR | E_WARNING | E_PARSE);
error_reporting(E_ALL);
Go back to blank page (MOD) and see if error message.
-
Help me link download, link download die
-
hi People!
There are now so many entries to this mod!
My Shoutbox is working good, but i have a problem with it since the beginning!
I can delete entries in my ACP good, but not directly in the shoutobx.
When i click the delete button --> i get a pop up with the text and the Buttons "edit" oder "delete", when i click delete, I get no result. There remains the same page without any changes.
I have read that many people has the same problem, but so far no one could help.
Has andybody any idea?
Best regards!
glitzer
P.s I use version 1.7.1
-
is there any other mirror so i can download the shoutbox files ?
-
Ich habe bemerkt, das, warum auch immer, deutsche Umlaute wie ä,ö,ü im Shouttext dazu führen, das der gesamte Text nicht übernommen wird. Vorher ging es, hatte bislang nichts geändert. Wie kann so etwas kommen?
-
@ desperate_housewif
... am besten mal hier vorbeischauen ... http://www.4homepages.de/forum/index.php?topic=18256.0
... das Problem ist sicher auf eine Serverumstellung auf PHP5 zurückzuführen ...
... ein FIX für für die Umlaute / Sonderzeichen (bei Kommentaren) hat Jan hier gepostet ...
... http://www.4homepages.de/forum/index.php?topic=18256.msg99614#msg99614 ...
-
Perfekt- funktioniert wieder. Vielen Dank!
-
... wie schreibt thunderstrike immer so schön ... "Thank for posting." ... ;)
-
... wie schreibt thunderstrike immer so schön ... "Thank for posting." ... ;)
Very good - you use e.g. ;)
-
is there any other mirror so i can download the shoutbox files ?
I can't download too. Mirrors?
-
I skimmed through the thread, and if this was posted before I'm sorry...
I'm getting random SQL/PHP errors on my search pages...
Notice: Undefined index: shout in /homepages/35/d90034645/htdocs/imgdump2/includes/shout.php on line 21
Notice: Undefined variable: prof_linka in /homepages/35/d90034645/htdocs/imgdump2/includes/shout.php on line 99
Notice: Undefined variable: prof_linkb in /homepages/35/d90034645/htdocs/imgdump2/includes/shout.php on line 100
Example, http://www.imgdump.info/search.htm
Any ideas?
Thanks
-
hi
i am looking the shoutbox files
thanks for you help
-
Ok. I tried to myself add a captcha for shoutbox and i think that it works right
ADDON TO SHOUTBOX : CAPTCHA : SPAN SOLUTION
Is the first time that I modify php mods.. so is sure that there is any problem, please it would be great that someone help me
Thanks!
-
hi
looking for the shoutbox files
thanks
-
Help me link download
Link die
-
help:(
die link
-
help help help
wait:(
-
How are you 4images?
the download link die
please help?
-
hasanok86,
pls. do not push.. seems that no1 have this files..
-
Sorry
Thanks 4 images
use free bevatiful shoutbox look:http://www.cbox.ws/
-
I think you will find that using cbox will work well, and it is incredibly easy to add to your page.. if you want to see it in action, you can check it out on my site here:
http://www.darrenhayesinteractive.com/galleries/
That is, btw, the free version of cbox and it is great.
-
Hallo ihr,
Wie bekomme ich denn in den Einträgen das Erstellungsdatum+ Uhrzeit rein (wie im Admin)
Habe schon gesucht, ob das schon besprochen wurde, konnte aber dazu nichts finden.
lieben gruss Harald
Mal wieder aufgegriffen :wink:
Aber hab mir mal selber gedanken gemacht, hab aber ein Problem mit dem auslesen von Dartum und Uhrzeit
einfügen von dem Wort Datum war ja noch einfach :mrgreen:
öffne /includes/shout.php
suche:
$site_template->register_vars(array(
"prof_linka"=>$prof_linka,
"prof_linkb"=>$prof_linkb,
"shoutusr"=>$shouts[$i]['name']
füge darunter ein:
"lang_date"=>$lang['date'],
öffne dein template/shout_bit.html
suche:
{prof_linka}{shoutusr}:{prof_linkb}
ersetze mit
{prof_linka}{shoutusr}:{prof_linkb} {lang_date}
Nur das Datum bekomme ich nicht hin :cry:
Auch nicht mit dem Codeschnippsel
echo "<td>".date('M jS Y h:i:s A', $shouts[$i]['date'])."</td>\n";
Da gehört doch bestimmt in der includes/shout.php noch was rein, nur was :?:
Harald
-
Kann man die Shoutbox noch irgendwoe her bekommen?
Der Downloadlink geht nicht mehr!
-
hab ich Nicky gegeben, er macht den Download fertig, wollte den Mod nur auf 1.7.6 überprüfen (klappt aber :wink:)
-
ohaaaaaaaaaaaaaaaaaaaaa..........................
/me echt blöd :)
hab darauf ganz vergessen..
schau ich heute nach das ich die files bereitstelle..
Jan-Lukas,
ich weiss gar nicht mehr ob ich mich bei dir bedankt habe..
falls nicht, vielen dank nochmals für die files! :)
LG
[EDIT]
for another guys here...
shoutbox files will be attached today to 1st post of this thread...
-
Aber klar :wink:
-
Supie!
-
attached shoutbox.rar to the 1st post.
i didn't tested it... due i'm tired today..
-
Super, danke!
Ich werde es direkt testen und ggf in meiner Liste aufnehmen!
Edit://
Mod läuft 1A unter 1.7.6!
Habs in meiner Liste aufgenommen!
Look at my Signatur
vv
-
Hallo,
ich hatte die Shoutbox installiert! Was mir aber jetzt erst aufgefallen ist, dass folgender Fehler kommt, wenn ich die Suche öffne, aber nur beider Suche kommt das vor:
Notice: Constant SHOUTBOX_TABLE already defined in C:\xampp\htdocs\1\includes\shout.php on line 12
Notice: Undefined index: shout in C:\xampp\htdocs\1\includes\shout.php on line 22
Kann mir da jemand aushelfen?
Hier der Code der Shout.php
<?php
/*************************************\
** **
** Shoutbox Mod for 4images **
** Version: v1.0 **
** By: f1do **
** Email: f1do.987@gmail.com **
** Web: http://f1do.uni.cc **
** **
\*************************************/
define('SHOUTBOX_TABLE', $table_prefix.'shoutbox');
function get_num_words ($text) {
$text_words = explode (" ", $text);
$text_words = sizeof ($text_words);
return $text_words;
}
//--------------------------------------------------------------------------
//---------------Save Shouts------------------------------------------------
//--------------------------------------------------------------------------
$shout = $HTTP_POST_VARS['shout'];
if ($shout == "shout it!") {
$shout_user = $HTTP_POST_VARS['shout_user'];
$shout_message = $HTTP_POST_VARS['shout_message'];
$shout_message = trim ($shout_message);
$shout_date = time();
$shout_ip = $session_info['session_ip'];
if ($session_info['session_user_id']) {
$shout_user_id = $user_info['user_id'];
}
$errormsg = "";
if (empty($shout_message)) {
$errormsg = $lang['sh_e_nomessage'];
}
elseif (empty($shout_user)) {
$errormsg = $lang['sh_e_nouser'];
}
elseif (strlen($shout_user) > $config['sh_usr_lgth']) {
$errormsg = $lang['sh_e_usrlgth'];
}
elseif (get_num_words ($shout_message) > $config['sh_msg_lgth']) {
$errormsg = $lang['sh_e_msglgth'];
}
elseif (!$config['sh_active']) {
$errormsg = $lang['sh_e_inactive'];
}
else {
$shout_message = safe_htmlspecialchars($shout_message);
$sql = "INSERT INTO ".SHOUTBOX_TABLE."(name,message,date,ip,usrid) VALUES('$shout_user','$shout_message','$shout_date','$shout_ip','$shout_user_id')";
$result = $site_db->query($sql);
}
$site_template->register_vars(array("errormsg"=>$errormsg));
}
unset ($errormsg);
//----------------------------------------------------------------------------
//---------------Show Shouts--------------------------------------------------
//----------------------------------------------------------------------------
$shouts = array();
$sql = "SELECT * FROM ".SHOUTBOX_TABLE." ORDER BY id DESC";
$result = $site_db->query($sql);
while ($row = $site_db->fetch_array($result)) {
$shouts[] = $row;
}
$num_shouts = sizeof ($shouts);
if ($num_shouts > $config['sh_msg_display']) {
$num_shouts = $config['sh_msg_display'];
}
$shoutings = "";
for ($i = 0; $i < $num_shouts; $i++) {
$message = $shouts[$i]['message'];
$message = un_htmlspecialchars($message);
$message = format_text($message, $config['sh_html'], $config['sh_wordwrap'], $config['sh_bbcode'], $config['sh_bbimg']);
$message = replace_url($message);
$admin_shout = "";
if ($session_info['session_user_id'] != -1) {
if (($user_info['user_id'] == $shouts[$i]['usrid']) || ($user_info['user_level'] == ADMIN)){
$admin_shout = "<a href=\"".$site_sess->url(ROOT_PATH."shout_editor.php?action=edit&shout_id=".$shouts[$i]['id'])."\" target=\"_blank\" onClick=\"return popup(this,'edit_shout')\">[edit]</a><a href=\"".$site_sess->url(ROOT_PATH."shout_editor.php?action=delete&shout_id=".$shouts[$i]['id'])."\" target=\"_blank\" onClick=\"return popup(this,'delete_shout')\">[delete]</a>";
}
}
if ($shouts[$i]['usrid'] != GUEST) {
$prof_linka = "<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=showprofile&user_id=".$shouts[$i]['usrid'])."\">";
$prof_linkb = "</a>";
}
else {
unset ($prof_linka, $prof_linkb);
}
$site_template->register_vars(array(
"prof_linka"=>$prof_linka,
"prof_linkb"=>$prof_linkb,
"shoutusr"=>$shouts[$i]['name'],
"shoutmsg"=>$message,
"admin_shout"=>$admin_shout
));
$message = "";
$shoutings .= $site_template->parse_template("shout_bit");
}
unset ($admin_shout);
$shout_form = "";
if ($config['sh_allow_guests'] || $session_info['session_user_id']) {
$site_template->register_vars(array(
"name"=>$user_info['user_name'],
"lang_sh_name"=>$lang['sh_name'],
"lang_sh_message"=>$lang['sh_message']
));
$shout_form .= $site_template->parse_template("shout_form");
}
$site_template->register_vars(array(
"shout_form"=>$shout_form,
"shoutings"=>$shoutings,
"lang_shoutbox"=>$lang['shoutbox']
));
if (!$config['sh_allow_guests'] && $session_info['session_user_id'] == GUEST) {
$site_template->register_vars(array("shout_form"=>$lang['sh_e_register']));
}
unset ($shout_form);
unset ($shoutings);
?>
-
kann ich nicht bestätigen
http://ue-ei-portal-sammlerkatalog.de/katupdate/
muss an etwas anderem liegen, wird sich etwas mit der Shoutbox nicht vertragen.
bist aber auch jede Menge am einbauen ;)
-
Mh,
aber wieso erscheint es dann gerade nur wenn ich die Suche öffne?
Ich hoffe das mir da jemand weiter helfen kann!
Und ja/nein. Also ich habe eigentlich nicht viel eingebaut. Ich habe z.B nur in meiner Testumgebung, Mods und Plugins getestet um meine Liste hier zu füllen, damit Newcomer (wie ich eigtl. selber noch bin) eine sofortiege Anlaufstelle haben und einen kleinen Überblick darüber haben, was aktuell in der Version 1.7.6 von 4images läuft.
-
Hallo,
das sind kleine Fehler, die der Coder übersehen hat.
Jedoch beeinflussen sie die Funktion der page oder des Scriptes nicht :wink:
Warum bei search.php sichtbar?
Weil standartmässig nur in dieser Datei dieses drin ist:
error_reporting(E_ALL);
Kannste rauslöschen, oder halt die 2 Fehler beheben...
Kurt
-
Hy Kurt,
danke für die Info!
Habe das mal auskommentiert und siehe da, die Fehleranzeige ist futsch :D!
Super, ich dank dir!
Ps.: Warum ist dies in der Search vorhanden? Und warum nur bei der Search? Und warum wurden diese Fehler ausgegeben? (Ich löcher dich :wink: )
-
hi,
warum in der search...
kann ich auch nicht sage, vielleicht wurde es damals übersehen beim coden.
ist aber schon seit 1.7.4 drin.. vorher?
warum werden Fehler ausgegeben.
sind kleine Fehler, die zwar nicht im Ablauf stören, aber halt doch Fehler sind.
hatte ich ein meinen Mods auch schon beim Coden, kann man halt nur korregieren,
wenn man
error_reporting(E_ALL);
in jeder .php drin hat.
Kurt
-
Naja, gut!
habs auf jeden Fall rausgenommen!
Ist ok jetzt!
Danke dir!
-
I must say... this is the WORST MOD I ran into so far. :?
It ignores the table prefix settings on install, resulting in SQL errors right away from the start.
The templates are totally messed up, useless.
After fixing the previous stuff, there are still loads of errors popping up on various pages.
Sorry, this is just lame.
-
This mod was originally created for 4images v1.7 where most what you said wasn't so to say "required"...
Fill free publish your corrections ;)
-
I too had the issues with errors on my search page.
I couldn't completely understand what you were suggesting as a fix, but I understood that you were just trying to hide the errors which works for me. I ended up putting "display_errors = Off" in my php.ini file.
Thanks!
-
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
i dont have^^ that in header.html
-
Hello Mods...,
I'm just starting 4images website of my own.., it's now up and running perfectly
with several simple mod and modification here and there.
running version 1.7.6
I would like to implement this shoutbox feature as well.., but looking at so many revisions of it..,
which one should I apply..? is there any definitive working procedure?
thank you.
-
Hallo,
ich habe nach einem Fehlversuch mit einem anderen Shoutbox-MOD jetzt diese hier installiert.
Läuft einwandfrei..danke an die Programmierer.
Vielleicht weiß jemand wie ich die shoutbox an mein themplate anpasse?
In der style.css habe ich zwar die Einstellungen für die Tabelle gefunden,aber nicht für die eigendliche Shoutbox wo die kommentare rein geschrieben werden
Ich würde gerne die Zeilenabstände und die Farben der Trennlienen ändern.
Danke Gruß Dirk
-
Was für eine andere Shoutbox?
-
das war die hier:
http://www.4homepages.de/forum/index.php?topic=22492.0
entsprach aber nicht meinen vorstellungen..das war nicht das was ich wollte.
Aber wie gesagt die shoutbox 1.1 läuft ,nur die Zeilenabstände und Linienfarben (ich sag mal im Listenfeld dazu) würde ich gerne noch ändern und ich weiß nicht wo.
-
habe die shoutbox auch mal ausprobiert habe allerdings eine frage !
kann man irgendwie den wert von "wordwrap" dynamisch gestalten ? wenigstens mit einem prozent wert ?denn ein pixelgenauer wert nutzt mir nicht soviel
:)
bis jetzt habe ich dafür keine lösung gefunden !
_________________________
hi i just tried teh shoutbox, its great ! i just have one question!
is it possible to make the "wordwrap" dynamic ? or to set it to an "percent" ? a pixelnumber doesnt work well for me :)
i didnt find an aswer on that question!
-
:flag-de: Ist das möglich, dass die abgegebenen Shouts durch Zufall ausgegeben werden? Also das nicht alle Shots untereinander sind sonder durch Zufall ausgegeben werden!
:flag-en: Is it possible that the votes by chance Shouts spent? So not all the shots at each other but are issued by coincidence!
-
Hi,
I am using the last version of 4images (1.7.6) and I got this error when I open the hompage of my site after installing this shoutbox mod:
Fatal error: Cannot redeclare get_num_words() (previously declared in /hsphere/local/home/******//******/includes/shout.php:15) in /hsphere/local/home/******/********/includes/shout.php on line 15
Do you know why?
-
restore backups and try again, follow the installation instructions exactly...? ;)
-
Hi V@no,
I solved this way:
/*
function get_num_words ($text) {
$text_words = explode (" ", $text);
$text_words = sizeof ($text_words);
return $text_words;
}
*/
&
/*
elseif (get_num_words ($shout_message) > $config['sh_msg_lgth']) {
$errormsg = $lang['sh_e_msglgth'];
}
*/
-
The error should not occur if you follow instructions exactly without trying add/change something else.
Your "fix" is actually removes restrictions of how many words is allowed per message.
If anything, the "fix" should be:
add if (!function_exists("get_num_words"))
above function get_num_words ($text) {
-
Hi Vano, I just tried it, but the problem is still happening.
-
Hi all,
I believe this code in shout_editor.html is wrong. The button does not react to the click to delete the shout.
<a href="{delete_link}"><input type="button" value="{lang_delete}" class="button"></a>
Any idea why? :?
Thanks in advance,
-
Hi,
I solved it with this code:
<input type="button" value="{lang_delete}" class="button" onclick="window.location.href='{delete_link}'">
If you have a better way, I will happy to hear it from you.
-
Thank you for this great modification!
-
Ich habe die Shoutbox eingebaut und es sie läuft prima nur wenn ich auf "neue Bilder" klicke bekomme ich folgende Fehler
Notice: Constant SHOUTBOX_TABLE already defined in /www/htdocs/w005efb0/posermagic/includes/shout.php on line 12
Notice: Undefined index: shout in /www/htdocs/w005efb0/posermagic/includes/shout.php on line 22
Notice: Undefined variable: prof_linka in /www/htdocs/w005efb0/posermagic/includes/shout.php on line 96
Notice: Undefined variable: prof_linkb in /www/htdocs/w005efb0/posermagic/includes/shout.php on line 97
Notice: Undefined variable: prof_linka in /www/htdocs/w005efb0/posermagic/includes/shout.php on line 96
Notice: Undefined variable: prof_linkb in /www/htdocs/w005efb0/posermagic/includes/shout.php on line 97
Notice: Undefined variable: prof_linka in /www/htdocs/w005efb0/posermagic/includes/shout.php on line 96
Notice: Undefined variable: prof_linkb in /www/htdocs/w005efb0/posermagic/includes/shout.php on line 97
Notice: Undefined variable: prof_linka in /www/htdocs/w005efb0/posermagic/includes/shout.php on line 96
Notice: Undefined variable: prof_linkb in /www/htdocs/w005efb0/posermagic/includes/shout.php on line 97
Notice: Undefined variable: prof_linka in /www/htdocs/w005efb0/posermagic/includes/shout.php on line 96
Notice: Undefined variable: prof_linkb in /www/htdocs/w005efb0/posermagic/includes/shout.php on line 97
http://www.poser-magic.de
-
selbe problem auch bei mir, leider.
habe bisher auch noch keine lösung gefunden.
-
Notice: Constant SHOUTBOX_TABLE already defined in /www/htdocs/w005efb0/posermagic/includes/shout.php on line 12
ist klar, wird ja auch 2mal definiert:
- includes/constants.php
- includes/shout.php
einmal reicht :wink:
kenn den mod nicht, sollte aber klappen:
in includes/shout.php
suche:
//--------------------------------------------------------------------------
//---------------Save Shouts------------------------------------------------
//--------------------------------------------------------------------------
danach einfügen:
$prof_linka = "";
$prof_linkb = "";
########## EDIT ##########
hier wird meine Änderung wieder unwirksam 8O
also folgendes noch aus includes/shout.php rauslöschen:
else {
unset ($prof_linka, $prof_linkb);
}
Kurt
-
on 1.76 I recieve the message after pushing the post button
:The name should be shorter than characters.
When push the button, it refreshed the screen, however there is no shout...
-
working my way through this...
Page 7 of this mod says to find:
$shout_message = (stripslashes(trim($HTTP_POST_VARS['shout_message'])));
in shout_editor.php ...
and after put this:
$captcha = (isset($HTTP_POST_VARS['captcha'])) ? un_htmlspecialchars(trim($HTTP_POST_VARS['captcha'])) : "";
if ($captcha_enable_contact && !captcha_validate($captcha)) {
$shout_message .= (($shout_message != "") ? "<br />" : "").$lang['captcha_required'];
}
and it says to find "sh_message" => $shout['0']['message'],
and after it add "captcha_shout" => (bool)$captcha_enable_shout,
"lang_captcha" => $lang['captcha'],
"lang_captcha_desc" => $lang['captcha_desc'],
The only problem is I dont have this code! to modify in shout_editor.php
And the following styles were not included in the mod and had to be added to style.css:
shoutmsg
and
shoutusr
here is my shout_editor.php
<?php
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');
define('SHOUTBOX_TABLE', $table_prefix.'shoutbox');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={charset}" />
<title>Shoutbox Editor</title>
<link rel="stylesheet" href="<?php echo TEMPLATE_PATH."/style.css" ?>" />
<SCRIPT TYPE="text/javascript">
<!--
window.focus();
//-->
</SCRIPT>
</head>
<body style="margin: 0">
<?php
$shout_id = $HTTP_GET_VARS['shout_id'];
if ($action == "editupdate") {
$sql = "UPDATE ".SHOUTBOX_TABLE." SET message='".$HTTP_POST_VARS['shout_message']."' WHERE id = ".$shout_id."";
$result = $site_db->query($sql);
$action = "edit";
echo $lang['sh_edited'];
}
if ($action == "edit") {
unset($shout);
$sql = "SELECT * FROM ".SHOUTBOX_TABLE." WHERE id = ".$shout_id;
$result = $site_db->query($sql);
while ($row = $site_db->fetch_array($result)) {
$shout[] = $row;
}
if ($shout['0']['usrid'] == $session_info['session_user_id']) {
?>
<form method="post" action="<?php echo $site_sess->url(ROOT_PATH."shout_editor.php?action=editupdate&shout_id=".$shout_id) ?>">
<table>
<tr>
<td>
<?php echo $lang['sh_name'] ?><br>
<input type="text" name="shout_user" value="<?php echo $shout['0']['name'] ?>" class="shoutinput">
</td>
</tr>
<tr>
<td>
<?php echo $lang['sh_message'] ?><br>
<textarea name="shout_message" cols="21" rows="2" class="shouttextarea"><?php echo $errormsg; echo $shout['0']['message'] ?></textarea>
<input type="submit" name="shout" value="<?php echo $lang['sh_edit'] ?>" class="button">
<a href="<?php echo $site_sess->url(ROOT_PATH."shout_editor.php?action=delete&shout_id=".$shout_id) ?>"><input type="button" value="<?php echo $lang['sh_delete'] ?>" class="button"></a>
</td>
</tr>
</table>
</form>
<?php
unset($action);
}
}
if ($action == "delete") {
echo "<br /><br /><a href=\"".$site_sess->url(ROOT_PATH."shout_editor.php?action=deleteyes&shout_id=".$shout_id)."\">".$lang['sh_ask_delete']."</a>";
}
if ($action == "deleteyes") {
$sql = "DELETE FROM ".SHOUTBOX_TABLE."
WHERE id = ".$shout_id;
$result = $site_db->query($sql);
echo "<br /><br />".$lang['sh_deleted'];
}
echo "<br /><a href=\"#\" onClick=\"javascript: window.close();\">".$lang['sh_close']."</a>"
?>
</body>
</html>
<?php
include(ROOT_PATH.'includes/page_footer.php')
?>
-
How do you disable this error message:
The name should be shorter than characters.
It seems to make more problems than it solves.
-
Mod is working fine, but what to do with reposting shouts with reload page? :(
-
Welcome to 4images forum.
I don't have this mod installed, it's not tested:
in shout.php find:
$site_template->register_vars(array("errormsg"=>$errormsg));
}
unset ($errormsg);
Replace with:
$site_sess->set_session_var("shoutmsg", $errormsg);
redirect("shout.php");
}
$errormsg = $site_sess->get_session_var("shoutmsg");
$site_template->register_vars("errormsg", $site_sess->get_session_var("shoutmsg"));
unset ($errormsg);
-
The requested URL /shout.php was not found on this server. :(
-
Also shouts doesnt fit in message window. I mean after five messages they move below shouts window! Even right under the name string and message edit field.
-
Download link doesnt work.. pleaes help meeee
-
2 g2gayan ,
On the first page? It works for me.
Take it...
-
Notice: Constant SHOUTBOX_TABLE already defined in /www/htdocs/w005efb0/posermagic/includes/shout.php on line 12
ist klar, wird ja auch 2mal definiert:
- includes/constants.php
- includes/shout.php
einmal reicht :wink:
kenn den mod nicht, sollte aber klappen:
in includes/shout.php
suche:
//--------------------------------------------------------------------------
//---------------Save Shouts------------------------------------------------
//--------------------------------------------------------------------------
danach einfügen:
$prof_linka = "";
$prof_linkb = "";
########## EDIT ##########
hier wird meine Änderung wieder unwirksam 8O
also folgendes noch aus includes/shout.php rauslöschen:
else {
unset ($prof_linka, $prof_linkb);
}
Kurt
Bin auch gerade eine Galerie am updaten, nur bei mir klappen die änderungen nicht
habe diese beiden Meldungen bei neue Bilder, und bei alle Bilder von User ?
Notice: Constant SHOUTBOX_TABLE already defined in includes/shout.php on line 12
Notice: Undefined index: shout in includes/shout.php on line 22
komme da nicht weiter
LG Harald
-
Hi all,
My German isn't that good, so is there a problem solved for the error
Notice: Constant SHOUTBOX_TABLE already defined in /shared/usr/jibbersnl/DOMAIN/ds/HTML/includes/shout.php on line 12
Notice: Undefined index: shout in /shared/usr/jibbersnl/DOMAIN/ds/HTML/includes/shout.php on line 24
Notice: Undefined variable: prof_linka in /shared/usr/jibbersnl/DOMAIN/ds/HTML/includes/shout.php on line 102
Notice: Undefined variable: prof_linkb in /shared/usr/jibbersnl/DOMAIN/ds/HTML/includes/shout.php on line 103
I've got the same problem only not on every page only on the search.html even when i remove the shoutbox from search.html
I tried some stuff that is explaned in german but that didnt work for me so if any one got a solution for it.
Thanks in advance
[edit by nicky]
url removed
-
Still No one?? Please........ :oops:
-
Hallo ihr,
Wie bekomme ich denn in den Einträgen das Erstellungsdatum+ Uhrzeit rein (wie im Admin)
Habe schon gesucht, ob das schon besprochen wurde, konnte aber dazu nichts finden.
lieben gruss Harald
Mal wieder aufgegriffen :wink:
Aber hab mir mal selber gedanken gemacht, hab aber ein Problem mit dem auslesen von Dartum und Uhrzeit
einfügen von dem Wort Datum war ja noch einfach :mrgreen:
öffne /includes/shout.php
suche:
$site_template->register_vars(array(
"prof_linka"=>$prof_linka,
"prof_linkb"=>$prof_linkb,
"shoutusr"=>$shouts[$i]['name']
füge darunter ein:
"lang_date"=>$lang['date'],
öffne dein template/shout_bit.html
suche:
{prof_linka}{shoutusr}:{prof_linkb}
ersetze mit
{prof_linka}{shoutusr}:{prof_linkb} {lang_date}
Nur das Datum bekomme ich nicht hin :cry:
Auch nicht mit dem Codeschnippsel
echo "<td>".date('M jS Y h:i:s A', $shouts[$i]['date'])."</td>\n";
Da gehört doch bestimmt in der includes/shout.php noch was rein, nur was :?:
Harald
1. Gibt's dafür mittlerweile eine Lösung oder (noch mal aufgegriffen gesagt) wie kann ich Datum und Uhrzeit in die Shoutbox integrieren?
2. Andere Frage: Wenn man die Cache-Funktion nutzt, ist die Shoutbox ziemlich sinnlos, oder?
-
Any idea why this server-error-log appears? There are no other errors on the page and the shout box works...
[Wed Jun 24 09:54:35 2009] [error] [client XYZ] PHP Notice: Undefined index: shout in /srv/www/vhosts/XYZ.de/httpdocs/XYZ/includes/shout.php on line 22, referer: http://www.XYZ.de/XYZ/member.php?action=showprofile&user_id=19&sessionid=XYZ
-
Hallo ihr,
Wie bekomme ich denn in den Einträgen das Erstellungsdatum+ Uhrzeit rein (wie im Admin)
Habe schon gesucht, ob das schon besprochen wurde, konnte aber dazu nichts finden.
lieben gruss Harald
+++ PUSH +++ :)
-
ich glaube, die shoutbox müsste mal komplett neu updatet werden, verträgt sich nicht so richtig mit den neuen Versionen.
Bei der Gelegenheit, könnte das denn mit erweitert werden.
-
ich glaube, die shoutbox müsste mal komplett neu updatet werden, verträgt sich nicht so richtig mit den neuen Versionen.
Bei der Gelegenheit, könnte das denn mit erweitert werden.
Also eigentlich geht's doch recht einfach.. da hier einige darüber klagten, hatte ich erst gar nicht angefangen nach dem Fehler zu suchen, und gleich die Frage gepushed. Aber es geht recht simpel:
Die includes/shout.php öffnen und das hier suchen:
"shoutusr"=>$shouts[$i]['name'],
...danach das einfügen:
"shoutdate"=>date('j.n./G:i', $shouts[$i]['date']),
Das "date"-Format kann natürlich individuell angepasst werden.
Nun braucht man nur noch die Variable (in diesem Fall {shoutdate} )
in das template "shout_bit.html" einfügen.
-
werde ich später mal testen
LG
-
hmm, also funktioniert das nun bei den neuren Versionen oder nicht?
Sind sich hier alle irgendwie nicht einig wie mir scheint :P
-
Bei mir läuft das unter 1.7.7.
-
Also bei mir klappt es nicht und habe alles 100% so gemacht wie es dort steht.
Allerdings gab es ein Problem, das in der header.html das zu suchende garnicht existierte, also habe ich es einfach so eingefügt (In den Script Teil)
1.3 Open /templates/your_template/header.html
Find:
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
After add:
function popup(mylink, windowname) {
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href, windowname, 'width=170,height=240,scrollbars=no');
return false;
}
-
Please Post 1 Topic with the latest modification to this ...
i get a huge blank white space in the message area covering my thumnbails too :( although thier were fixes ... the links do not work :( domains are expired..so please upload a correct and working thing,.,, im realy messed up cuz of this mod .. and when the user delets a comment , we have to refresh the page to see the effect :( it must be autometiccaly done :(
Please post a toptic with correct uplodsa !
-
Ein Klasse MOD!!!
Es funktioniert auch fast komplett bei mir.
Es kommen zwei Fehlermeldungen, wenn ich auf die "Suche" gehe...
Notice: Constant SHOUTBOX_TABLE already defined in /www/.../includes/shout.php on line 14
Notice: Undefined index: shout in /www/.../includes/shout.php on line 24
Den ersten Fehler bekomm ich weg, wenn ich in der shout.php
define('SHOUTBOX_TABLE', $table_prefix.'shoutbox');
durch
if (!defined('SHOUTBOX_TABLE')){
define('SHOUTBOX_TABLE', $table_prefix.'shoutbox');}
ersetze.
Aber wie ich den zweiten beheben kann, weiß ich leider nicht. Habt ihr einen Tipp??
Vielen Dank schonmal!!!
-
:flag-de: Habs eingebaut und läuft unter 1.7.7. fehlerfrei.
Frage:
Ist es möglich einzelne User für die shout_form.html zu sperren???
Die gesperrten User sollten nur die Shouts lesen können, jedoch nicht posten.
Gruß
Ralf
_________________________________________________________________
:flag-en: It works perfect with 1.7.7
Question:
Is it possible for individual users to block shout_form.html???
The blocked user should be able to read only the shouts, but not post.
Thx
Ralf
-
hi,
is it possible to insert the bbcode (with smilies etc.) into the shoutbox_form?
-
and another question:
i can't select all shouts (checked all) in the shoutbox_admin to delete itself.
my version 1.7.7
-
I love this MOD. Works perfectly.
I hope this forum is active in 2010 :P
I need some help to adapt it to my personal needs.
Is it possible to make it work somewhat a like category, with different permissions and different shoutboxes for every category?
Thank you in advance,
dfever
-
Mod is working fine, but what to do with reposting shouts with reload page? :(
Hat jemand eine Lösung für das Reload Problem gefunden?
V@no hat zwar etwas geschrieben, funktioniert aber leider nicht :cry:
Nochmal das Problem: Wenn man die Seite aktualisiert (F5 mit FF) wiederholt sich der letzte Shout!
-
Mod is working fine, but what to do with reposting shouts with reload page? :(
push, would be awesome if sb could do this, because Vano's solution doesn't work :(
-
:flag-de: Habs eingebaut und läuft unter 1.7.7. fehlerfrei.
Frage:
Ist es möglich einzelne User für die shout_form.html zu sperren???
Die gesperrten User sollten nur die Shouts lesen können, jedoch nicht posten.
Gruß
Ralf
_________________________________________________________________
:flag-en: It works perfect with 1.7.7
Question:
Is it possible for individual users to block shout_form.html???
The blocked user should be able to read only the shouts, but not post.
Thx
Ralf
kannst du evtl. deine shout.php mal posten, habe in der 1.7.7 immer noch die beiden Fehlermeldungen
Notice: Constant SHOUTBOX_TABLE already defined in /is/htdocs/wp1186757_MZ0O7VPUFQ/www/4images/includes/shout.php on line 12
Notice: Undefined index: shout in /is/htdocs/wp1186757_MZ0O7VPUFQ/www/4images/includes/shout.php on line 24
Danke
-
...
habe in der 1.7.7 immer noch die beiden Fehlermeldungen
Notice: Constant SHOUTBOX_TABLE already defined in /is/htdocs/wp1186757_MZ0O7VPUFQ/www/4images/includes/shout.php on line 12
Notice: Undefined index: shout in /is/htdocs/wp1186757_MZ0O7VPUFQ/www/4images/includes/shout.php on line 24....
versuche mal in der shout.php, die zeile:
$shout_user = $HTTP_POST_VARS['shout_user'] ;
mit dieser zu ersetzen:
$shout_user = (isset($HTTP_POST_VARS['shout_user'])) ? $HTTP_POST_VARS['shout_user'] : "";
und in der shoutbox_admin.php diese zeile mittels // auszukommentieren:
define('SHOUTBOX_TABLE', $table_prefix.'shoutbox');
-
meine shout.php
<?php
/*************************************\
** **
** Shoutbox Mod for 4images **
** Version: v1.0 **
** By: f1do **
** Email: f1do.987@gmail.com **
** Web: http://f1do.uni.cc **
** **
\*************************************/
define('SHOUTBOX_TABLE', $table_prefix.'shoutbox');
function get_num_words ($text) {
$text_words = explode (" ", $text);
$text_words = sizeof ($text_words);
return $text_words;
}
//--------------------------------------------------------------------------
//---------------Save Shouts------------------------------------------------
//--------------------------------------------------------------------------
$shout = $HTTP_POST_VARS['shout'];
if ($shout == "shout it!") {
$shout_user = $HTTP_POST_VARS['shout_user'];
$shout_message = $HTTP_POST_VARS['shout_message'];
$shout_message = trim ($shout_message);
$shout_date = time();
$shout_ip = $session_info['session_ip'];
if ($session_info['session_user_id']) {
$shout_user_id = $user_info['user_id'];
}
$errormsg = "";
if (empty($shout_message)) {
$errormsg = $lang['sh_e_nomessage'];
}
elseif (empty($shout_user)) {
$errormsg = $lang['sh_e_nouser'];
}
elseif (strlen($shout_user) > $config['sh_usr_lgth']) {
$errormsg = $lang['sh_e_usrlgth'];
}
elseif (get_num_words ($shout_message) > $config['sh_msg_lgth']) {
$errormsg = $lang['sh_e_msglgth'];
}
elseif (!$config['sh_active']) {
$errormsg = $lang['sh_e_inactive'];
}
else {
$shout_message = safe_htmlspecialchars($shout_message);
$sql = "INSERT INTO ".SHOUTBOX_TABLE."(name,message,date,ip,usrid) VALUES('$shout_user','$shout_message','$shout_date','$shout_ip','$shout_user_id')";
$result = $site_db->query($sql);
}
$site_template->register_vars(array("errormsg"=>$errormsg));
}
unset ($errormsg);
//----------------------------------------------------------------------------
//---------------Show Shouts--------------------------------------------------
//----------------------------------------------------------------------------
$shouts = array();
$sql = "SELECT * FROM ".SHOUTBOX_TABLE." ORDER BY id DESC";
$result = $site_db->query($sql);
while ($row = $site_db->fetch_array($result)) {
$shouts[] = $row;
}
$num_shouts = sizeof ($shouts);
if ($num_shouts > $config['sh_msg_display']) {
$num_shouts = $config['sh_msg_display'];
}
$shoutings = "";
for ($i = 0; $i < $num_shouts; $i++) {
$message = $shouts[$i]['message'];
$message = un_htmlspecialchars($message);
$message = format_text($message, $config['sh_html'], $config['sh_wordwrap'], $config['sh_bbcode'], $config['sh_bbimg']);
$message = replace_url($message);
$admin_shout = "";
if ($session_info['session_user_id'] != -1) {
if (($user_info['user_id'] == $shouts[$i]['usrid']) || ($user_info['user_level'] == ADMIN)){
$admin_shout = "<a href=\"".$site_sess->url(ROOT_PATH."shout_editor.php?action=edit&shout_id=".$shouts[$i]['id'])."\" target=\"_blank\" onClick=\"return popup(this,'edit_shout')\">[Bearbeiten]</a><a href=\"".$site_sess->url(ROOT_PATH."shout_editor.php?action=delete&shout_id=".$shouts[$i]['id'])."\" target=\"_blank\" onClick=\"return popup(this,'delete_shout')\">[Löschen]</a>";
}
}
if ($shouts[$i]['usrid'] != GUEST) {
$prof_linka = "<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=showprofile&user_id=".$shouts[$i]['usrid'])."\">";
$prof_linkb = "</a>";
}
else {
unset ($prof_linka, $prof_linkb);
}
$site_template->register_vars(array(
"prof_linka"=>$prof_linka,
"prof_linkb"=>$prof_linkb,
"shoutusr"=>$shouts[$i]['name'],
"shoutdate"=>date('j.n.Y / G:i', $shouts[$i]['date']),
"shoutmsg"=>$message,
"admin_shout"=>$admin_shout
));
$shoutings .= $site_template->parse_template("shout_bit");
}
unset ($admin_shout);
$shout_form = "";
if ($config['sh_allow_guests'] || $session_info['session_user_id']) {
$site_template->register_vars(array(
"name"=>$user_info['user_name'],
"lang_sh_name"=>$lang['sh_name'],
"lang_sh_message"=>$lang['sh_message']
));
$shout_form .= $site_template->parse_template("shout_form");
}
$site_template->register_vars(array(
"shout_form"=>$shout_form,
"shoutings"=>$shoutings,
"lang_shoutbox"=>$lang['shoutbox']
));
if (!$config['sh_allow_guests'] && $session_info['session_user_id'] == GUEST) {
$site_template->register_vars(array("shout_form"=>$lang['sh_e_register']));
}
unset ($shout_form);
unset ($shoutings);
?>
-
leider kein erfolg
Wo kann man denn die Fehlermeldungen unterdrücken, ist ja nur in der search.php (warum auch immer)
Hi luener,
Leider klappt das auch nicht mit deiner shout.php, musst noch was anderes gemacht haben ;)
Oder es vertragen sich einige Mods nicht untereinander
LG Harald
-
...
Wo kann man denn die Fehlermeldungen unterdrücken, ist ja nur in der search.php (warum auch immer)...
mit dem hier: http://www.4homepages.de/forum/index.php?topic=26943.msg145977#msg145977
das ist aber meinung nach der falsche weg, wenn ein script fehlerhaft ist.
mfg Andi
-
schon, aber die Shoutbox ist schon so alt, die müsste mal neu aufgelegt werden *liebguck*
-
Hello
How to expand?
Thank you
Here is a screen:
(http://nsa15.casimages.com/img/2010/06/21/100621064347322810.png)
-
can anyone here please help me if they see this,
AS u can see from the post above a person have put an image of there shout box and which they would like to expand it, i would like to do the same thing and i have tried everything and i just cannot do it. I know it may seem simple as in making the table width big and hieght but trust me i have tried, can anyone here point me in the right direction please
god bless u all and thank u
-
Have you tried set width to 100% in this line?
<table width="148" border="0" cellspacing="0" cellpadding="0">
?
-
@ vano
thank u sir for the reply
I did of course check but the table is fine, its the code below thats the problem. For example i will change column and row to higher numbers, inside dreamweaver i can see that the text area is being changed but when i upload and then refresh the page, the page is still the same, nothing has expanded.
<textarea name="shout_message" cols="" rows="8" class="shouttextarea">{sh_message}</textarea>
Why do u think that this is happening sir,
god bless u
-
I see.
Make sure you fix the classes in stylesheet (style.css), for instance the default width of input fields for shoutbox is set to 130px
.shoutinput {
background-color: #FFFFFF;
font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif;
color: #0f5475;
font-size: 11px;
WIDTH: 130px;
}
The textarea style doesn't have any width, so default is used, perhaps try set it manually in stylesheet as well.
-
Hello vano, thank u for the reply. To be honest i removed the contraint widths from the style sheets and then i proceeded to make the area bigger but with no success... it still looks the same when i upload it but in dreamweaver it has expanded i dont understand why this is. Should i put teh contraints back in the style sheets and then change the width from there, because i tried this and it not worked sir.
(http://i38.tinypic.com/10en79e.jpg)
god bless u sir
-
Have you tried firebug extension for firefox? I'd suggest you try it. Might take some time to figure out how to use it, but its a must-have tool for debugging html/javascript
It even allows you edit your pages live and will show your changes instantly (temporary obviously).
-
@VANO
Hello sir, i hope u r ok.. Im sorry but i need ur help vano. I know i asking for help to much :(...
On the top of for 4images next to top images, there is a link called 'new images', whn i clcik on new iimages link, i get the below error...
(http://i36.tinypic.com/iveds1.jpg)
I have looked but whats is point :( i dont know what im doing to try to fix it. Thank u VAno, god bless u sir.
-
Ok this is to anyone that is having problem i am having, i have managed to fix problem... Thank to Vano, i have inspiration from him to be like him in future so i tried to find problem myself. So first of i want to thank V@no for being my inspiration and motivation and role model.
Ok if you ever getting error like this : Notice: undefined index ........etc , in top of screen please follow below instruction.
1)
Go inside includes/page_header.php
Find...
$shout = $HTTP_POST_VARS['shout'];
Insert above
if (isset($_POST['shout']))
{
2)
Find...
unset ($errormsg);
insert below..
}
Now this will fix problem because we are testing whether the fields of the table was initialized with the function isset ().
-
Can anyone here help me. Im new here and i have installed the shoutbox MOD but the bbcode doesnt seem to be work. For example if i put :( then the smily face does not appear like it did. Just to let you know i have installed the PM MOD so i dont know if this is the problem. Any ideas. please
-
@VANO :mrgreen:
Sir, how are you. I was just wondering you helped me with a MOD http://www.4homepages.de/forum/index.php?topic=27868.0 (http://www.4homepages.de/forum/index.php?topic=27868.0) which redirected the user to there most recent. However it doesnt seem to work on google chrome. However the principle that you helped me with that i am very utterly grateful for can the same principle be done for shoutbox?, I have placed the shoutbox on my home.html at the bottom. When user scrolls down makes a comment (page refreshes, as it should do) but the page is pushed up and user has to scroll down again. Can it be so user makes comment and page refreshes but gets pushed to the bottom rather than up.
Thanks u so much in advance.
-
Einträge lassen sich nicht mehr editieren, oder löschen
CSRF check failed.
evtl. hat ja schon einer eine Lösung dazu gefunden.
LG Harald
-
Neuauflage der Modifikation @ Rembrandt :P
-
Hi -
I posted this on 23 December in the wrong Shoutbox MOD! :oops:
I wanted to document that I also had the same problem, and it is ongoing. I had a look at Rembrandt's profile of modifications that Sumale.nin quotes but I can't find anything. Right now the Shoutbox does not work at all on my version v1.7.7
Looks like we have an incompatibility issue with the security fix for XSS and CSRF vulnerability patches.
Using v1.7.7
implemented the security fixes for XSS and CSRF almost 2 months or more back? just after it came back.
just tried to use the shoutbox for a user and got this:
Error
CSRF check failed.
Any ideas ?
Thanks so much for looking at this.
Brian.
-
Neuauflage der Modifikation @ Rembrandt
ich habe mir den mod testhalber mal eingebaut, funktioniert eigentlich alles, oder übersehe ich etwas?
wegen den CSRF fehlers:
suche in der "shout_editor.php":
method="post"
und ersetzt es mit:
method="GET"
mfg Andi
-
Hi Rembrandt,
Thanks for posting the fix. I looked for the file and could not find it. I then when back and had a look at the MOD and discovered that I had posted in the correct place, for the other Shoutbox MOD:
http://www.4homepages.de/forum/index.php?topic=22492.0
Do you recommend I remove that MOD and install this one, or just try to replace all the instances of 'POST' with 'GET' in the code modifications?
Thanks so much for your thoughts.
Brian
-
....
Do you recommend I remove that MOD and install this one, or just try to replace all the instances of 'POST' with 'GET' in the code modifications?
...
i can say only this mod works, for the other mod you can try this:
replace the "POST" with "GET" in the "user_gb_new.html"
have you more question to the other mod, please post your question in the other thread.
-
Hi -
Thanks for the suggestions and your efforts to help. I am going to switch to this MOD because it works and and has support from nice folks like you.
I know how to delete all the template files and remove the code from the files I modified but what about the db table that was created with the other MOD. Should I try to delete those fields or just let them sit there?
Thanks again,
Brian
-
..Should I try to delete those fields or just let them sit there?
....
delete if you can.
it's better you have a clean DB
-
Neuauflage der Modifikation @ Rembrandt
ich habe mir den mod testhalber mal eingebaut, funktioniert eigentlich alles, oder übersehe ich etwas?
wegen den CSRF fehlers:
suche in der "shout_editor.php":
method="post"
und ersetzt es mit:
method="GET"
mfg Andi
Bei mir klappt der Mod auch noch sehr gut, das mit dem get hätte ich mir ja denken können, hatte das ja auch mit der externen suche :oops:
LG Harald
Edit:
Andi, klappt noch nicht ganz, löschen geht, editieren noch nicht.
-
Hi -
Okay, that was a lot of hours spent uninstalling the other Shoutbox/Guestbook MOD and then installing this MOD ... and doing my diligence by slowly going through all 17 pages of posts.
Thank all of you for your efforts to support the MOD and help everyone. At the end of the day, I don't really see the usefulness of this MOD. The other MOD was more like an instant message personal communication MOD while this MOD is much more like a guestbook where everyone leaves their shouts. I guess it could be useful if people had errors to report or suggestions or issues but I'm not sure how useful it is unless it was just pasted in the home.html code and there are too many other MODS competing for space there.
What would be great is if the MOD allowed people to make separate comments about each category ... so you could make comments about category A and then a comment about Category B and those comments would only be visible in their respective Category displays. As it is, the comments are visible on every category page, if you posted the template code on the categories.html page. Likewise, if you posted the template code on the member.html page, you would see everyone's shouts no matter what or who they applied to so that doesn't seem to useful.
With some of the lingering issues of the search box error messages, it seems like this MOD is just way too complicated and sensitive to be very valuable, in my opinion.
So I undid it all.
I would love to hear other people's thoughts on why they like this MOD or how they find it useful.
We have a separate forum on our website so it seems logical for people to post their questions and concerns in our gallery forum instead of this guestbook format. And ... with the format, it is hard to respond if someone posts a 'shout' so to speak.
Thanks again for everyone's dedication to helping each other here and throughout the 4images forum.
Brian
-
Edit:
Andi, klappt noch nicht ganz, löschen geht, editieren noch nicht.
möglich das mein edit unter gegangen ist ;)
mit dem ändern von post in GET, klappt zwar das löschen wieder, nur das editieren klappt leider immer noch nicht :cry:
wenn ich das <form method="post"> in den Dateien shout_editor.html und shout_form.html in GET ändere, wird kein Eintrag mehr gespeichert.
komme also nicht weiter, obwohl ich mir den Code schon hundert mal angesehen habe ( zu viele Bäume im Wald *gg)
Harald
-
die shout_editor.html wir eh nicht gebraucht, das popup wird in der shout_editor.php generiert.
hat das editieren überhaupt schon mal funktioniert?
-
ja, bis zu dem Fix
http://www.4homepages.de/forum/index.php?topic=28168.0
ging das ausgezeichnet, nutze den Mod ja schon einige Jahre in beiden Galerien
-
ja, bis zu dem Fix
...
mit den original files vom ersten post?
-
neue Datei.
bin mir eigentlich sicher dass das editieren geklappt hat (wurde auch von Usern darauf angesprochen)
nur habe ich gerade mal
$csrf_protection_enable = 1;
testweise deaktiviert, und klappt trotzdem nicht
muss das mal austesten
-
...$csrf_protection_enable = 1;
testweise deaktiviert, und klappt trotzdem nicht
....
das hatte ich auch als allererst probiert, darum fragte ich ob das den überhaupt schon mal funktioniert hat.
-
ja, ohne diesen Fix klappt das editieren, habe es gerade auf einer Testinstall probiert.
da ist alles bis auf diesem Fix identisch
-
No error pop up only one problem it does not show
the page is still same as before
i got admin panel of shout box i edited it to my requirement and then click install but still it does not show
plus i could not find this on my template
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
not even on default template i even used word word finder while opening the file in thru Word but din find it
-
Gäste können nicht schreiben wo ist der Fehler hab ich was falsch gemacht
-
im Admin unter PlugIns kannst Du das einstellen "Shoutbox Admin"
Würde ich mir aber überlegen ;)
-
Ja guter Tip aber es war ein ander Fehler :roll:
-
aber es war :roll:
und lässt Du uns daran teilhaben ? könnte ja sein das ein anderer auch mal dein Problem hat.
Und dann kann er sich deine Frage sparen :wink:
-
Nun, ich hab vor kurzem den Server gewechselt und dabei auch von 1.7.8 auf 1.7.9 geupdatet.
Seitdem kann ich in der Shoutbox die Beiträge nicht mehr editieren, klick ich auf Edit, steht dort keine Nachricht sondern nur Close Window ...
einer eine Lösung?
-
möchte das noch mal nach oben holen, und z.T.bestätigen.
Löschen /Delete klappt
editieren klappt nicht, Beitrag wird zwar angezeigt, wird halt nur nicht in der Datenbank neu gespeichert.
Auch als Admin kann ich in der Galerie, und auch im Admin keine Beiträge editieren.
Ich wäre für eine neue Version 8)
Einbau sollte variabel sein, entweder in der Menüleiste, oder wie ich es habe im footer (finde ich besser)
Und bitte keine Smileys, oder abschaltbar.
LG
-
funktioniert es bei dir wieder ?
ich hatte nämlich vor die shoutbox bei mir zu installieren... aber wenn es nicht zu 100% funkt lass ich es lieber....
-
nein, klappt nicht
-
möchte das noch mal nach oben holen, und z.T.bestätigen.
Löschen /Delete klappt
editieren klappt nicht, Beitrag wird zwar angezeigt, wird halt nur nicht in der Datenbank neu gespeichert.
Auch als Admin kann ich in der Galerie, und auch im Admin keine Beiträge editieren.
Ich wäre für eine neue Version 8)
Einbau sollte variabel sein, entweder in der Menüleiste, oder wie ich es habe im footer (finde ich besser)
Und bitte keine Smileys, oder abschaltbar.
LG
möchte das noch mal aufgreifen, wie gesagt das editieren klappt nicht mehr
ansonsten läuft es auch in der 1.7.10
-
Ich hab dann auch mal versucht die shoutbox einzubauen. Bin mit dem Resultat eigentlich auch recht zufrieden. Leider gibt es da noch ein großes Manko. Macht man einen Eintrag in die Box, sieht es auf dem ersten Blick ja noch ganz gut aus. Aber wenn man den Refeshbutton am Browser drückt wird der Eintrag immer wieder neu in die Box geschrieben und ist dann auch natürlich oft in Shoutbox Adminbereich zu sehen. Dieses Problem wurde hier bereits schon in englisch angesprochen. Ein Lösung konnte ich aber bisher nicht entdecken. Die Lösung von Vano funzt jedenfalls nicht. Zu mindestens nicht bei mir. Ich finde die Box wirklich gut und würde diese natürlich auch gerne eingebaut lassen. Aber so werde ich sie erstmal deaktivieren. Weiß vielleicht jemand Rat?
-
Stimmt, das Problem gibt es auch, stört aber nicht, die 4x im Jahr wo das vorkommt, lösche ich dann einfach ;)
Aber warum drückt man den "Refeshbutton" oder F5 ? der Fehler ist doch nur wenn man auf einer Seite bleibt, aber eine Bildergalerie soll man doch besuchen, das heißt auch weiterblättern, und dann gibt es diesen Fehler nicht ;)
Ich wüsste z.Z. auch nicht warum ich auf einer Seite sitzenbleibe, und ständig F5 drücke :wink:
Weiß vielleicht jemand Rat?
mal abwarten und Tee trinken, evtl. werden wir ja erhört
Aber nur nicht drängeln, unsere Engel haben auch ein privat Leben, und auch einen Fulltimejob.
-
Also wenn ich eines habe, dann ist es Geduld. Ich finde es halt nur schön wenn Mods auch fehlerfrei laufen. Aber letztendlich hast du recht. Wer drückt schon andauernd refresh? Wohl die Wenigsten. Aber es ist auf jeden Fall eine einfache Möglichkeit die Shoutbox schnell voll zu spammen. :wink:
Gruß
Mathias
-
Hi!
....Ich wäre für eine neue Version
...
Ich auch :mrgreen:
New Version is Available:
http://www.4homepages.de/forum/index.php?topic=30748.msg161694#msg161694
mfg Andi