4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Releases & Support) => Topic started by: f1do on November 23, 2005, 04:38:08 PM



Title: [MOD] Shoutbox
Post 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:
1
2
3
//-----------------------------------------------------
//--- User Box ----------------------------------------
//-----------------------------------------------------

Before Add:
1
2
3
4
5
//-----------------------------------------------------
//--- Shoutbox ----------------------------------------
//-----------------------------------------------------

include (ROOT_PATH.'includes/shout.php');

1.2 Open /templates/your_template/style.css

Find:
1
/*--Categories------------------------------------------------*/

Before add:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*--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:
1
2
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;

After add:
1
2
3
4
5
6
7
8
9
10
  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:
1
define('WORDMATCH_TABLE', $table_prefix.'wordmatch');

Add after:
1
define('SHOUTBOX_TABLE', $table_prefix.'shoutbox');


2 Languge configuration
2.1 Open /lang/your_language/main.php

Find:

Before add(ONLY YOUR LANGUAGE):
[ENGLISH]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//-----------------------------------------------------
//--- 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]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//-----------------------------------------------------
//--- 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))
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//-----------------------------------------------------
//--- 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]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//-----------------------------------------------------
//--- 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]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//-----------------------------------------------------
//--- 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))
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//-----------------------------------------------------
//--- Shoutbox ----------------------------------------
//-----------------------------------------------------
$lang['sh_not_updated'] = "Die Einstellungen konnten nicht aktualisiert werden.";
$lang['sh_not_installed'] = "Die Installation konnte nicht durchgef&uuml;hrt werden.";
$lang['sh_cfg'] = "Shoutbox Einstellungen";
$lang['sh_activate'] = "Shoutbox aktivieren";
$lang['sh_allow_guests'] = "G&auml;ste d&uuml;rfen posten";
$lang['sh_usr_lgth'] = "Username L&auml;nge(weniger als 50 Buchstaben)";
$lang['sh_msg_lgth'] = "Nachricht L&auml;nge(in W&ouml;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&uuml;ck zur Shoutbox Administration";
$lang['sh_currnt'] = "<h1>Aktuelle Shouts</h1>\n";
$lang['sh_deletes'] = "L&ouml;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&ouml;schen";
$lang['sh_deleted'] = "Die Nachrichten wurden gel&ouml;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.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!-- 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.


Title: Re: [MOD] Shoutbox
Post by: Stoleti on November 23, 2005, 04:52:23 PM
wooooow awesome !!!  :mrgreen:


Title: Re: [MOD] Shoutbox
Post by: Stoleti on November 23, 2005, 05:41:35 PM
one problem .... you've forgot the DB Table .... (4images_shoutbox.....) .... :?:


Title: Re: [MOD] Shoutbox
Post by: mawenzi on November 23, 2005, 06:26:24 PM
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:


Title: Re: [MOD] Shoutbox
Post by: Stoleti on November 23, 2005, 07:00:38 PM
ops...sorry......i've forgot check that ........  8O


Title: Re: [MOD] Shoutbox
Post by: Stoleti on November 23, 2005, 07:21:06 PM
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 ? :?:


Title: Re: [MOD] Shoutbox
Post by: f1do on November 23, 2005, 10:49:57 PM
Security Fix(read http://www.4homepages.de/forum/index.php?topic=10545.msg52698#msg52698)
Open /includes/shout.php

Find:
1
    if ($user_info['user_id'] == $shouts[$i]['usrid'] || $user_info['user_level'] == ADMIN){

Replace for:
1
    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.


Title: Re: [MOD] Shoutbox
Post by: Stoleti on November 23, 2005, 10:59:58 PM
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) .

 :?:


Title: Re: [MOD] Shoutbox
Post by: f1do on November 23, 2005, 11:39:21 PM
Ok, i think this should fix that:

Open /includes/shout.php

Find:
1
  $shoutings .= $site_template->parse_template("shout_bit");

Add Before:
1
  $message = "";


Title: Re: [MOD] Shoutbox
Post by: Stoleti on November 23, 2005, 11:54:59 PM
thanks :) it's working !!  :mrgreen:


Title: Re: [MOD] Shoutbox
Post by: Stoleti on November 24, 2005, 12:22:59 AM
one simple question...how can i make it work in all pages (memberlist,pms,escuestas,potm,register...etc ) ???


Title: Re: [MOD] Shoutbox
Post by: f1do on November 24, 2005, 01:31:35 AM
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.


Title: Re: [MOD] Shoutbox
Post by: Stoleti on November 24, 2005, 05:18:26 AM
i've one problem about style ...so this show a huge space without nothing....  and how make it show without scroll bar ??


Title: Re: [MOD] Shoutbox
Post by: Loda on November 24, 2005, 01:07:32 PM
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.


Title: Re: [MOD] Shoutbox
Post by: Jeevan25 on November 25, 2005, 05:14:02 AM
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.


Title: Re: [MOD] Shoutbox
Post by: f1do on November 25, 2005, 04:00:17 PM
New version V1.1
updating from 1.0 to 1.1
Open /includes/constants.php
Find:
1
define('WORDMATCH_TABLE', $table_prefix.'wordmatch');
Add after:
1
define('SHOUTBOX_TABLE', $table_prefix.'shoutbox');

Open /templates/your_template/header.html
find:
1
  window.open(href, windowname, 'width=150,height=170,scrollbars=no');
Replace for
1
  window.open(href, windowname, 'width=170,height=240,scrollbars=no');

Open /lang/your_language/admin.php
Find:
1
2
3
//-----------------------------------------------------
//--- Shoutbox ----------------------------------------
//-----------------------------------------------------
Add after(IN YOUR LANGUAGE):
[ENGLiSH]
1
2
$lang['sh_not_updated'] = "Settings couldn't be updated";
$lang['sh_not_installed'] = "Installation couldn't be completed";
[SPANISH]
1
2
$lang['sh_not_updated'] = "La configuracion no pudo ser guardada";
$lang['sh_not_installed'] = "No se pudo completar la instalación";
[GERMAN]
1
2
$lang['sh_not_updated'] = "Die Einstellungen konnten nicht aktualisiert werden.";
$lang['sh_not_installed'] = "Die Installation konnte nicht durchgef&uuml;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:
1
<form method="post">
replace with
1
<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.


Title: Re: [MOD] Shoutbox
Post by: Stoleti on November 25, 2005, 07:53:54 PM
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


Title: Re: [MOD] Shoutbox
Post by: f1do on November 25, 2005, 08:21:00 PM
can you show me an html output, or give me the address of your web.


Title: Re: [MOD] Shoutbox
Post by: Stoleti on November 26, 2005, 12:22:34 AM
this is the code where i've insert the html code (for where we want show shoutbox in template)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<td>&nbsp;<!-- 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>


Title: Re: [MOD] Shoutbox
Post by: Bear on November 26, 2005, 08:14:27 AM
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 


Title: Re: [MOD] Shoutbox
Post by: vanish on November 26, 2005, 06:56:03 PM
find
1
2
  echo $lang['sh_not_updated'];
  show_text_link($lang['sh_back'], "shoutbox_admin.php?action=main");

add after


Title: Re: [MOD] Shoutbox
Post by: Bear on November 26, 2005, 09:29:18 PM
prosume you mean in shoutbox_admin.php

this is that part of code
1
2
3
4
5
6
7
8
9
10
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


Title: Re: [MOD] Shoutbox
Post by: vanish on November 27, 2005, 11:04:22 AM
here is working code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
<?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();
?>


Title: Re: [MOD] Shoutbox
Post by: Bear on November 27, 2005, 05:39:38 PM
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.


Title: Re: [MOD] Shoutbox
Post by: Zyga on December 16, 2005, 09:22:31 PM
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...


Title: Re: [MOD] Shoutbox
Post by: JensF on December 17, 2005, 12:01:46 AM
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???


Title: Re: [MOD] Shoutbox
Post by: castor on December 20, 2005, 04:11:42 PM
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)


Title: Re: [MOD] Shoutbox
Post by: chip on December 21, 2005, 08:33:33 PM
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?


Title: Re: [MOD] Shoutbox
Post by: @rtur on December 22, 2005, 04:21:42 PM
How  make multilanguage button shout it!?


Title: Re: [MOD] Shoutbox
Post by: yellows on December 23, 2005, 09:33:14 AM
getting
Quote  [Expand]
Fatal error: Call to undefined function: safe_htmlspecialchars() in /home/sexymal/public_html/Galeries/includes/shout.php on line 47


Title: Re: [MOD] Shoutbox
Post by: TheOracle on December 25, 2005, 03:59:34 PM
getting
Quote  [Expand]
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 :

Quote  [Expand]

$shout_message = safe_htmlspecialchars($shout_message);


replace with :

1
2
3

$shout_message = htmlspecialchars($shout_message);



Title: Re: [MOD] Shoutbox
Post by: TheOracle on December 25, 2005, 04:02:39 PM
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 :

Quote  [Expand]

$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.


Title: Re: [MOD] Shoutbox
Post by: chip on December 26, 2005, 11:57:48 PM
Merry Christmas everyone,

hi Oracle,

actually I already added this:


1
$root_path = (eregi("\/plugins\/", $_SERVER['PHP_SELF'])) ? "./../../" : "./../";


but no luck. I guess I missed something and will try yours. Thanks.


Title: Re: [MOD] Shoutbox
Post by: TheOracle on December 27, 2005, 01:41:15 AM
This is the one I have :

1
2
3

$root_path = (eregi("\/plugins\/", $HTTP_SERVER_VARS['PHP_SELF'])) ? "./../../" : "./../";



Title: Re: [MOD] Shoutbox
Post by: V@no on December 27, 2005, 07:41:29 AM
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
1
2
$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:
1
define('ROOT_PATH', "./../../");


Title: Re: [MOD] Shoutbox
Post by: castor on December 27, 2005, 09:39:05 AM
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


Title: Re: [MOD] Shoutbox
Post by: TheOracle on December 27, 2005, 10:32:06 PM
Quote  [Expand]

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.


Title: Re: [MOD] Shoutbox
Post by: lemccoy on January 19, 2006, 09:00:22 PM
The link is not working for me.  Anyone have these files elsewhere?  I will check V@no's now. 


Title: Re: [MOD] Shoutbox
Post by: TheOracle on January 21, 2006, 01:37:52 AM
It's true ... both links from the first post are returning as invalid now ... anyone else has this package aside ?  8O


Title: Re: [MOD] Shoutbox
Post by: IcEcReaM on January 21, 2006, 02:37:06 AM
Must be that one.
Rename the *.zip file to *.rar if necessary
Because rar files are not allowed to attach


Title: Re: [MOD] Shoutbox
Post by: TheOracle on January 21, 2006, 02:51:11 AM
Quote  [Expand]

Must be that one.


Yep - must be. 8)


Title: Re: [MOD] Shoutbox
Post by: TheOracle on January 31, 2006, 07:01:31 PM
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.


Title: Re: [MOD] Shoutbox
Post by: djith on January 31, 2006, 07:03:03 PM



hmm.... i see in small letters shoutbox v1.1.... :) ......

must be this one :)


Title: Re: [MOD] Shoutbox
Post by: TheOracle on January 31, 2006, 07:04:59 PM
Quote  [Expand]

must be this one


Must be.  :roll:


Title: Re: [MOD] Shoutbox
Post by: djith on January 31, 2006, 07:14:52 PM
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...


Title: Re: [MOD] Shoutbox
Post by: TheOracle on January 31, 2006, 07:17:40 PM
Quote  [Expand]

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. ;)


Title: Re: [MOD] Shoutbox
Post by: djith on January 31, 2006, 07:20:41 PM
yes it does !! ... still had the old version of winzip...

thx!!


Title: Re: [MOD] Shoutbox
Post by: Miranda on February 11, 2006, 06:28:09 PM
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


Title: Re: [MOD] Shoutbox
Post by: Instigator on February 12, 2006, 10:35:33 AM
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.


Title: Re: [MOD] Shoutbox
Post by: trez on February 20, 2006, 05:09:48 PM
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


Title: Re: [MOD] Shoutbox
Post by: IcEcReaM on February 20, 2006, 05:51:04 PM
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.




Title: Re: [MOD] Shoutbox
Post by: Lukazs on February 24, 2006, 03:15:54 PM
link to download chotbox is dead


Title: Re: [MOD] Shoutbox
Post by: IcEcReaM on February 24, 2006, 04:00:36 PM
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


Title: Re: [MOD] Shoutbox
Post by: Birne on February 26, 2006, 05:00:14 PM
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


Title: Re: [MOD] Shoutbox
Post by: anderitor on February 26, 2006, 07:28:18 PM
After I have installed the mod I get the following error:

1
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:

1
2
3
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





Title: Re: [MOD] Shoutbox
Post by: viper357 on March 08, 2006, 09:32:49 PM
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 ?


Title: Re: [MOD] Shoutbox
Post by: trez on March 09, 2006, 05:26:17 AM
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.





Title: Re: [MOD] Shoutbox
Post by: mentally on March 28, 2006, 11:53:45 PM
anyone has the files for this???

download link doesnt work.. dead..  8O


Title: Re: [MOD] Shoutbox
Post by: IcEcReaM on March 29, 2006, 01:39:50 AM
http://www.4homepages.de/forum/index.php?topic=10545.msg58003#msg58003


Title: Re: [MOD] Shoutbox
Post by: MEXX on May 03, 2006, 03:05:02 PM
А где скачать файлы? Все ссылки битые!!! :|


Title: Re: [MOD] Shoutbox
Post by: ded on May 11, 2006, 09:00:10 AM
товарищи- дайте пожалуйста ссылку на файлы, что бы скачать и поставить, а то та ссылка что в начале битая!  :roll:


Title: Re: [MOD] Shoutbox
Post by: Stoleti on May 11, 2006, 06:36:19 PM
Its possible  added post data (time) ?

i.e = 18:39 - USERNAME

 :?:


Title: Re: [MOD] Shoutbox
Post by: ded on May 12, 2006, 09:33:02 AM
http://www.f1do.york-networks.com/gallery/shoutboxmod/ - битая ссылка, мне нужны эти файлы что бы поставить shoutbox


Title: Re: [MOD] Shoutbox
Post by: Stoleti on May 12, 2006, 04:41:57 PM
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
Quote  [Expand]
/*--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
Quote  [Expand]
/*--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:


Title: Re: [MOD] Shoutbox
Post by: Stoleti on May 12, 2006, 07:07:06 PM
None can make a page with all old shouts ?


Title: Re: [MOD] Shoutbox
Post by: aletapety on June 13, 2006, 08:41:12 AM
It;s posible to add flash messeage ? and display random example > epuls.pl "Oneliner"


Title: Re: [MOD] Shoutbox
Post by: Stoleti on July 30, 2006, 06:43:26 PM
I've wondering if its possible make a shoutbox for every member (at profile) ????would be awesome...  :mrgreen:


Title: Re: [MOD] Shoutbox
Post by: tdkpaul on July 31, 2006, 11:34:55 PM
there is a personal guestbook mod

i think this will statisfy your needs


Title: Re: [MOD] Shoutbox
Post by: Stoleti on August 01, 2006, 12:15:15 AM
there is a personal guestbook mod

i think this will statisfy your needs

where ???


Title: Re: [MOD] Shoutbox
Post by: masterred on August 19, 2006, 04:32:38 AM
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


Title: Re: [MOD] Shoutbox
Post by: tdkpaul on August 19, 2006, 04:19:28 PM
could anybody attach this mod on this forum who still have it?


Title: Re: [MOD] Shoutbox
Post by: lemccoy on August 20, 2006, 07:39:32 AM
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


Title: Re: [MOD] Shoutbox
Post by: Stoleti on August 20, 2006, 05:05:14 PM
for who is looking for the shoutbox files , ill attach here  :wink:


Title: Re: [MOD] Shoutbox
Post by: tdkpaul on August 20, 2006, 08:03:21 PM
thx man

i really appreciate this

hopefully this shoutbox rocks


Title: Re: [MOD] Shoutbox
Post by: lemccoy on September 01, 2006, 07:16:14 PM
 OK so I got this message left on my shoutbox:
 
1
2
3
4
googlebot:   
I am GoogleBot.

I like bots. 

LOL.

Also, still can't delete/edit comments...any ideas?


Title: Re: [MOD] Shoutbox
Post by: Stoleti on September 01, 2006, 07:31:56 PM
OK so I got this message left on my shoutbox:
 
1
2
3
4
googlebot:  
I am GoogleBot.

I like bots.  

LOL.

Also, still can't delete/edit comments...any ideas?

At ACP > Shoutbox Admin

;)


Title: Re: [MOD] Shoutbox
Post by: lemccoy on September 01, 2006, 10:29:46 PM
nope, nothing.


Title: Re: [MOD] Shoutbox
Post by: maninblue on September 10, 2006, 10:49:16 AM
also i couldnt delete shouts.. pressing delete but no action


Title: Re: [MOD] Shoutbox
Post by: Forty on September 15, 2006, 04:30:02 PM
download link not working!


Title: Re: [MOD] Shoutbox
Post by: Stoleti on September 15, 2006, 04:54:38 PM

take a look here http://www.4homepages.de/forum/index.php?topic=10545.msg76698#msg76698


Title: Re: [MOD] Shoutbox
Post by: Jan-Lukas on November 18, 2006, 08:01:23 PM
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


Title: Re: [MOD] Shoutbox
Post by: martrix on November 24, 2006, 06:51:48 PM
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:
1
2
if ($action == "delete") {
  $url_delete = $site_sess->url(ROOT_PATH."shout_editor.php?action=deleteyes&shout_id=".$shout_id);
change to
1
2
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:
1
  $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:

1
  $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>&nbsp;<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


Title: Re: [MOD] Shoutbox
Post by: martrix on November 24, 2006, 07:13:42 PM
OK so I got this message left on my shoutbox:
 
1
2
3
4
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 ;) )


;)
Quote  [Expand]


Title: Re: [MOD] Shoutbox
Post by: desperate_housewif on December 25, 2006, 01:24:14 PM
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.


Title: Re: [MOD] Shoutbox
Post by: antonio2005 on January 17, 2007, 01:51:42 AM
Hi,

Is there a way to preview shouts and validate them (publish in shoutbox) or delete them before publishing?

Thanks in advance,
António


Title: Re: [MOD] Shoutbox
Post by: KurtW on January 17, 2007, 06:13:13 AM
Hallo,

kenn zwar den Mod nicht, aber bestimmt nicht
in der style.css:

1
2
3
4
5
6
7
8
9
10
/*--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


Title: Re: [MOD] Shoutbox
Post by: desperate_housewif on January 18, 2007, 08:24:20 PM
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.


Title: Re: [MOD] Shoutbox
Post by: medo007 on January 24, 2007, 05:02:42 PM
Great mod people!  :D


Title: Re: [MOD] Shoutbox
Post by: Parasco on February 13, 2007, 11:21:00 PM
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:
1
          <input type="text" name="shout_user" value="{name}">

Replace with:
1
          <input type="hidden" name="shout_user" value="{name}">



Title: Re: [MOD] Shoutbox
Post by: Noro on March 13, 2007, 09:46:33 PM
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...


Title: Re: [MOD] Shoutbox
Post by: ccsakuweb on March 23, 2007, 07:06:26 PM
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


Title: Re: [MOD] Shoutbox
Post by: ccsakuweb on March 24, 2007, 09:03:31 PM
i have spam .. in my site only registered users can shout and i have spam too... why??


Title: Re: [MOD] Shoutbox
Post by: ccsakuweb on March 24, 2007, 10:38:52 PM
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:
1
$captcha_enable_postcards    = 1;

Add after:
1
$captcha_enable_shout      = 1;

Open includes/shout.php
search
1
  $shout_message = trim ($shout_message);

after add:
1
  $captcha = (isset($HTTP_POST_VARS['captcha'])) ? un_htmlspecialchars(trim($HTTP_POST_VARS['captcha'])) : "";

search:

1
2
3
  elseif (!$config['sh_active']) {
    $errormsg = $lang['sh_e_inactive'];
  }

after add:
1
2
3
  elseif (!captcha_validate($captcha)) {
      $errormsg = $lang['captcha_required'];
  }

search:
1
  "shoutmsg" => $message,

after add:
1
2
3
  "captcha_shout" => (bool)$captcha_enable_shout,
  "lang_captcha" => $lang['captcha'],
  "lang_captcha_desc" => $lang['captcha_desc'],

Open shout_editor.php
Search:
1
  $shout_message = (stripslashes(trim($HTTP_POST_VARS['shout_message'])));

After add:
1
2
3
4
  $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:
1
  "sh_message" => $shout['0']['message'],

after add:
1
2
3
  "captcha_shout" => (bool)$captcha_enable_shout,
      "lang_captcha" => $lang['captcha'],
      "lang_captcha_desc" => $lang['captcha_desc'],


Open templates/default/shout_editor.html

search:
1
2
3
  <a href="{delete_link}"><input type="button" value="{lang_delete}" class="button"></a>
        </td>
      </tr>

after add:
1
2
3
4
5
6
7
8
9
10
11
{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:
1
2
3
        <input type="submit" name="shout" value="shout it!" class="button">
        </td>
      </tr>
after add:
1
2
3
4
5
6
7
8
9
10
11
{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


Title: Re: [MOD] Shoutbox
Post by: ccsakuweb on March 24, 2007, 10:41:24 PM
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???


Title: Re: [MOD] Shoutbox
Post by: glitzer on June 17, 2007, 08:28:27 PM
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!


Title: Re: [MOD] Shoutbox
Post by: FotoRalle on July 27, 2007, 10:30:51 AM
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?


Title: Re: [MOD] Shoutbox
Post by: thunderstrike on July 30, 2007, 10:06:51 PM
Follow step 1.3 from first topic. Looks like you missed the includes/constants.php file steps . . .


Title: Re: [MOD] Shoutbox
Post by: Darkness2001 on August 02, 2007, 05:39:38 PM
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:

1
/*include (ROOT_PATH.'includes/shout.php');*/

find this:

1
"url_lightbox" => $site_sess->url(ROOT_PATH."lightbox.php"),

insert below this:

1
"url_shout" => $site_sess->url(ROOT_PATH.'includes/shout.php'),

Part 2. open index.php
Code einfügen

find this:

1
include(ROOT_PATH.'includes/page_header.php');

insert below this:

1
include(ROOT_PATH.'includes/shout.php');


safe and upload the files, i test it.. works fine  :lol:

Greetings darkness  :mrgreen:


Title: Re: [MOD] Shoutbox
Post by: thunderstrike on August 02, 2007, 10:46:46 PM
Quote  [Expand]
"url_shout" => $site_sess->url(ROOT_PATH.'includes/shout.php'),

May just be me but ... includes not good thing use $site_sess (by include) ...


Title: Re: [MOD] Shoutbox
Post by: bjorn666 on August 09, 2007, 10:28:42 AM
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


Title: Re: [MOD] Shoutbox
Post by: thunderstrike on August 09, 2007, 02:48:55 PM
Quote  [Expand]
Table 'beckytee_vers.4images_shoutbox' doesn't exist

SQL table no exist ... create it.


Title: Re: [MOD] Shoutbox
Post by: bjorn666 on August 09, 2007, 05:10:03 PM
aha, yes :idea:
But now i get this "delete" problem, any help for that?


Title: Re: [MOD] Shoutbox
Post by: thunderstrike on August 09, 2007, 06:01:09 PM
Quote  [Expand]
But now i get this "delete" problem, any help for that?

Exact text ?


Title: Re: [MOD] Shoutbox
Post by: bjorn666 on August 09, 2007, 06:27:03 PM
I cant delete shouts....


Title: Re: [MOD] Shoutbox
Post by: thunderstrike on August 09, 2007, 08:12:12 PM
Shure, a program return exact message text say - 'I cant delete shouts....'.  :roll:

Please post exact text for help.


Title: Re: [MOD] Shoutbox
Post by: bjorn666 on August 09, 2007, 08:16:41 PM
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:


Title: Re: [MOD] Shoutbox
Post by: thunderstrike on August 09, 2007, 08:32:33 PM
Quote  [Expand]
the delete button do not work

The mean of not work ? Is do ?  :roll:


Title: Re: [MOD] Shoutbox
Post by: bjorn666 on August 09, 2007, 08:33:59 PM
I can only edit them!

When i click "delete" (direct in the post or in the Admin) nothing works!


Title: Re: [MOD] Shoutbox
Post by: thunderstrike on August 09, 2007, 08:35:22 PM
Quote  [Expand]
nothing works!

Result of nothing work ? Error message (precise) ?


Title: Re: [MOD] Shoutbox
Post by: bjorn666 on August 09, 2007, 08:36:27 PM
No error message, no nothing....


Title: Re: [MOD] Shoutbox
Post by: thunderstrike on August 09, 2007, 08:38:19 PM
Which version 4images - PHP - mySQL use ?


Title: Re: [MOD] Shoutbox
Post by: bjorn666 on August 09, 2007, 08:41:15 PM
4images1.7.4
PHP version 5.2.3
MySQL version 5.0.27


Title: Re: [MOD] Shoutbox
Post by: thunderstrike on August 09, 2007, 08:45:28 PM
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.


Title: Re: [MOD] Shoutbox
Post by: bjorn666 on August 09, 2007, 08:47:33 PM
Okay, here is the zip.
Thank you for the help.


Title: Re: [MOD] Shoutbox
Post by: thunderstrike on August 09, 2007, 08:58:15 PM
Ok, shout_editor.php file - for you:

Quote  [Expand]
if ($shout['0']['usrid']

replace:

Quote  [Expand]
if ($shout[0]['usrid']

Quote  [Expand]
"sh_name" => $shout['0']['name'],
"sh_message" => $shout['0']['message'],

replace:

Quote  [Expand]
"sh_name" => $shout[0]['name'],
"sh_message" => $shout[0]['message'],

Quote  [Expand]
$site_template->register_vars(array(
    "lang_deleted" => $lang['sh_deleted']
  ));

replace:

Quote  [Expand]
$site_template->register_vars(array(
    "lang_deleted" => $lang['sh_deleted']
  ));

if (isset($result) && $result) {
    redirect(ROOT_PATH . "shout.php");
}

Done.


Title: Re: [MOD] Shoutbox
Post by: bjorn666 on August 09, 2007, 09:06:33 PM
ok, then i get this:

Parse error: syntax error, unexpected $end in .../shout_editor.php on line 80


Title: Re: [MOD] Shoutbox
Post by: thunderstrike on August 09, 2007, 09:18:22 PM
Quote  [Expand]
if (isset($result) && $result) {
    redirect(ROOT_PATH . "shout.php");
}

add:

Quote  [Expand]
}


Title: Re: [MOD] Shoutbox
Post by: bjorn666 on August 09, 2007, 09:31:02 PM
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.


Title: Re: [MOD] Shoutbox
Post by: thunderstrike on August 09, 2007, 09:33:51 PM
404 not found ? Check web error logs in cPanel. What say ?


Title: Re: [MOD] Shoutbox
Post by: bjorn666 on August 09, 2007, 09:39:18 PM
 File does not exist: .../shout.php


Title: Re: [MOD] Shoutbox
Post by: thunderstrike on August 09, 2007, 09:40:26 PM
Here problem. ;)

shout.php is from ZIP you send ...  no have it on site :mrgreen:

Upload it on ROOT_PATH gallery. Should work. ;)


Title: Re: [MOD] Shoutbox
Post by: bjorn666 on August 09, 2007, 09:42:14 PM
ok, then i get this:
Fatal error: Call to a member function query() on a non-object in ./shout.php on line 62


Title: Re: [MOD] Shoutbox
Post by: thunderstrike on August 09, 2007, 09:54:19 PM
Quote  [Expand]
**************************************/

add after:

Quote  [Expand]
define('ROOT_PATH', './');
include(ROOT_PATH . "global.php");
require(ROOT_PATH . "includes/sessions.php");

Quote  [Expand]
function get_num_words ($text) {
  $text_words = explode (" ", $text);
  $text_words = sizeof ($text_words);
  return $text_words;
}

replace:

Quote  [Expand]
function get_num_words ($text) {

if (strlen(trim($text)) == 0) {
return;
} else {

  $text_words = explode (" ", $text);
  $text_words = sizeof ($text_words);

  return $text_words;
}
}

Quote  [Expand]
//--------------------------------------------------------------------------
//---------------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:

Quote  [Expand]
//--------------------------------------------------------------------------
//---------------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.


Title: Re: [MOD] Shoutbox
Post by: bjorn666 on August 09, 2007, 10:00:11 PM
ok, then i get:
Parse error: syntax error, unexpected $end in ./shout.php on line 142


Title: Re: [MOD] Shoutbox
Post by: thunderstrike on August 09, 2007, 10:00:47 PM
Top of ?> - add }


Title: Re: [MOD] Shoutbox
Post by: bjorn666 on August 09, 2007, 10:04:13 PM
ok, no error this time, but a blank site... no text or buttons.


Title: Re: [MOD] Shoutbox
Post by: thunderstrike on August 09, 2007, 10:05:20 PM
Check web error logs.


Title: Re: [MOD] Shoutbox
Post by: bjorn666 on August 09, 2007, 10:08:00 PM
No error log....


Title: Re: [MOD] Shoutbox
Post by: thunderstrike on August 09, 2007, 10:08:30 PM
No have or no new report ?


Title: Re: [MOD] Shoutbox
Post by: bjorn666 on August 09, 2007, 10:13:48 PM
no new report


Title: Re: [MOD] Shoutbox
Post by: thunderstrike on August 09, 2007, 10:16:26 PM
Sorry - can no do on this (for now).


Title: Re: [MOD] Shoutbox
Post by: bjorn666 on August 09, 2007, 10:17:05 PM
Ok, thanks for help anyway


Title: Re: [MOD] Shoutbox
Post by: thunderstrike on August 09, 2007, 10:19:29 PM
PHP site say PHP v5 out official January 2008. There, more solution.


Title: Re: [MOD] Shoutbox
Post by: thunderstrike on August 09, 2007, 10:27:44 PM
One last ...

Is register_globals off or on from site ? If no ide .. go to ACP - > phpinfo() . Fin info there.


Title: Re: [MOD] Shoutbox
Post by: bjorn666 on August 12, 2007, 08:53:50 PM
its off.


Title: Re: [MOD] Shoutbox
Post by: thunderstrike on August 18, 2007, 07:47:55 PM
In global.php file,

find:

Quote  [Expand]
error_reporting(E_ERROR | E_WARNING | E_PARSE);

replace:

Quote  [Expand]
//error_reporting(E_ERROR | E_WARNING | E_PARSE);
error_reporting(E_ALL);

Go back to blank page (MOD) and see if error message.


Title: Re: [MOD] Shoutbox
Post by: mathuatden on October 16, 2007, 04:48:50 PM
Help me link download, link download die


Title: Re: [MOD] Shoutbox
Post by: glitzer on October 28, 2007, 08:51:53 AM
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


Title: Re: [MOD] Shoutbox
Post by: botakedan on November 14, 2007, 01:12:34 AM
is there any other mirror so i can download the shoutbox files ?


Title: Re: [MOD] Shoutbox
Post by: desperate_housewif on November 19, 2007, 03:28:52 PM
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?


Title: Re: [MOD] Shoutbox
Post by: mawenzi on November 19, 2007, 03:40:52 PM
@ 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 ...


Title: Re: [MOD] Shoutbox
Post by: desperate_housewif on November 19, 2007, 06:12:16 PM
Perfekt- funktioniert wieder. Vielen Dank!


Title: Re: [MOD] Shoutbox
Post by: mawenzi on November 19, 2007, 07:00:27 PM
... wie schreibt thunderstrike immer so schön ... "Thank for posting." ... ;)


Title: Re: [MOD] Shoutbox
Post by: thunderstrike on November 19, 2007, 09:01:34 PM
... wie schreibt thunderstrike immer so schön ... "Thank for posting." ... ;)

Very good - you use e.g. ;)


Title: Re: [MOD] Shoutbox
Post by: Ryotsuke on December 11, 2007, 12:26:35 PM
Quote  [Expand]
is there any other mirror so i can download the shoutbox files ?
I can't download too. Mirrors?


Title: Re: [MOD] Shoutbox
Post by: Falldog on December 17, 2007, 10:53:51 PM
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...

Quote  [Expand]
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


Title: Re: [MOD] Shoutbox
Post by: masterred on January 04, 2008, 12:01:18 PM
hi

i am looking the shoutbox files

thanks for you help


Title: Re: [MOD] Shoutbox
Post by: Falldog on January 04, 2008, 11:19:02 PM
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!


Title: Re: [MOD] Shoutbox
Post by: masterred on January 17, 2008, 07:42:45 AM
hi

looking for the shoutbox files

thanks


Title: Re: [MOD] Shoutbox
Post by: sanko86 on April 11, 2008, 08:13:50 AM
Help me link download
Link die


Title: Re: [MOD] Shoutbox
Post by: sanko86 on April 14, 2008, 09:32:54 AM
help:(
die link



Title: Re: [MOD] Shoutbox
Post by: sanko86 on April 22, 2008, 02:44:11 PM
help help help
wait:(


Title: Re: [MOD] Shoutbox
Post by: sanko86 on April 27, 2008, 12:14:30 PM
How are you 4images?

the download link die

please help?


Title: Re: [MOD] Shoutbox
Post by: Nicky on April 27, 2008, 01:33:59 PM
hasanok86,

pls. do not push.. seems that no1 have this files..


Title: Re: [MOD] Shoutbox
Post by: sanko86 on April 28, 2008, 01:11:54 PM
Sorry
Thanks 4 images

use free bevatiful shoutbox look:http://www.cbox.ws/


Title: Re: [MOD] Shoutbox
Post by: Laurina on May 19, 2008, 11:38:24 PM
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.


Title: Re: [MOD] Shoutbox
Post by: Jan-Lukas on June 02, 2008, 12:47:17 AM
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:
1
2
3
4
$site_template->register_vars(array(
  "prof_linka"=>$prof_linka,
  "prof_linkb"=>$prof_linkb,
  "shoutusr"=>$shouts[$i]['name']

füge darunter ein:
1
"lang_date"=>$lang['date'],

öffne dein template/shout_bit.html

suche:
1
{prof_linka}{shoutusr}:{prof_linkb}

ersetze mit
1
{prof_linka}{shoutusr}:{prof_linkb} {lang_date}

Nur das Datum bekomme ich nicht hin  :cry:
Auch nicht mit dem Codeschnippsel

1
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



Title: Re: [MOD] Shoutbox
Post by: Sumale.my on June 13, 2008, 11:45:09 AM
Kann man die Shoutbox noch irgendwoe her bekommen?
Der Downloadlink geht nicht mehr!


Title: Re: [MOD] Shoutbox
Post by: Jan-Lukas on June 13, 2008, 03:53:41 PM
hab ich Nicky gegeben, er macht den Download fertig, wollte den Mod nur auf 1.7.6 überprüfen (klappt aber  :wink:)


Title: Re: [MOD] Shoutbox
Post by: Nicky on June 13, 2008, 03:56:08 PM
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...


Title: Re: [MOD] Shoutbox
Post by: Jan-Lukas on June 13, 2008, 03:57:58 PM
Aber klar  :wink:


Title: Re: [MOD] Shoutbox
Post by: Sumale.my on June 13, 2008, 05:25:02 PM
Supie!


Title: Re: [MOD] Shoutbox
Post by: Nicky on June 13, 2008, 09:43:44 PM
attached shoutbox.rar to the 1st post.

i didn't tested it... due i'm tired today..


Title: Re: [MOD] Shoutbox
Post by: Sumale.my on June 13, 2008, 10:05:01 PM
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


Title: Re: [MOD] Shoutbox
Post by: Sumale.my on June 16, 2008, 11:53:10 PM
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:

1
2
3
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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?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);
?>


Title: Re: [MOD] Shoutbox
Post by: Jan-Lukas on June 17, 2008, 01:16:40 AM
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 ;)



Title: Re: [MOD] Shoutbox
Post by: Sumale.my on June 17, 2008, 01:22:58 AM
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.


Title: Re: [MOD] Shoutbox
Post by: KurtW on June 17, 2008, 06:11:58 AM
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:
1
error_reporting(E_ALL);
 

Kannste rauslöschen, oder halt die 2 Fehler beheben...




Kurt


Title: Re: [MOD] Shoutbox
Post by: Sumale.my on June 17, 2008, 12:01:55 PM
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: )


Title: Re: [MOD] Shoutbox
Post by: KurtW on June 17, 2008, 03:50:51 PM
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
1
error_reporting(E_ALL);

in jeder .php drin hat.


Kurt


Title: Re: [MOD] Shoutbox
Post by: Sumale.my on June 17, 2008, 05:11:14 PM
Naja, gut!
habs auf jeden Fall rausgenommen!
Ist ok jetzt!

Danke dir!


Title: Re: [MOD] Shoutbox
Post by: NetRebel on August 10, 2008, 12:17:37 AM
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.


Title: Re: [MOD] Shoutbox
Post by: V@no on August 10, 2008, 07:22:56 AM
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 ;)


Title: Re: [MOD] Shoutbox
Post by: Falldog on August 11, 2008, 07:33:03 AM
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!


Title: Re: [MOD] Shoutbox
Post by: RatedRWHC on September 05, 2008, 07:33:12 PM
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
i dont have^^ that in header.html


Title: Re: [MOD] Shoutbox
Post by: d1eter on September 10, 2008, 03:14:52 AM
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.


Title: Re: [MOD] Shoutbox
Post by: Dirk_K on September 10, 2008, 05:04:13 PM
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


Title: Re: [MOD] Shoutbox
Post by: Sumale.my on September 10, 2008, 05:16:07 PM
Was für eine andere Shoutbox?


Title: Re: [MOD] Shoutbox
Post by: Dirk_K on September 10, 2008, 05:37:09 PM
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.


Title: Re: [MOD] Shoutbox
Post by: i3ad on September 20, 2008, 08:09:18 PM
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!


Title: Re: [MOD] Shoutbox
Post by: Sumale.my on October 06, 2008, 06:51:12 AM
 :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!


Title: Re: [MOD] Shoutbox
Post by: Sun Zaza on December 24, 2008, 11:07:15 PM
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:

1
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?


Title: Re: [MOD] Shoutbox
Post by: V@no on December 25, 2008, 02:28:12 AM
restore backups and try again, follow the installation instructions exactly...? ;)


Title: Re: [MOD] Shoutbox
Post by: Sun Zaza on December 25, 2008, 02:30:22 AM
Hi V@no,

I solved this way:

1
2
3
4
5
6
7
/*
function get_num_words ($text) {
  $text_words = explode (" ", $text);
  $text_words = sizeof ($text_words);
  return $text_words;
}
*/

&

1
2
3
4
5
/*
  elseif (get_num_words ($shout_message) > $config['sh_msg_lgth']) {
    $errormsg = $lang['sh_e_msglgth'];
  } 
  */


Title: Re: [MOD] Shoutbox
Post by: V@no on December 25, 2008, 04:00:00 AM
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) {


Title: Re: [MOD] Shoutbox
Post by: Sun Zaza on December 26, 2008, 05:04:10 AM
Hi Vano, I just tried it, but the problem is still happening.


Title: Re: [MOD] Shoutbox
Post by: Sun Zaza on December 26, 2008, 06:52:32 PM
Hi all,

I believe this code in shout_editor.html is wrong. The button does not react to the click to delete the shout.


1
<a href="{delete_link}"><input type="button" value="{lang_delete}" class="button"></a>

Any idea why?  :?

Thanks in advance,


Title: Re: [MOD] Shoutbox
Post by: Sun Zaza on December 26, 2008, 07:42:09 PM
Hi,

I solved it with this code:

1
<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.


Title: Re: [MOD] Shoutbox
Post by: mike30 on January 02, 2009, 12:22:25 AM
Thank you for this great modification!


Title: Re: [MOD] Shoutbox
Post by: Honeyfee on January 14, 2009, 07:06:30 PM
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


Title: Re: [MOD] Shoutbox
Post by: Semi Kolon on February 07, 2009, 05:39:59 PM
selbe problem auch bei mir, leider.

habe bisher auch noch keine lösung gefunden.


Title: Re: [MOD] Shoutbox
Post by: KurtW on February 07, 2009, 05:52:56 PM
Quote  [Expand]
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:
1
2
3
//--------------------------------------------------------------------------
//---------------Save Shouts------------------------------------------------
//--------------------------------------------------------------------------
danach einfügen:
1
2
$prof_linka = "";
$prof_linkb =  "";

########## EDIT ##########
hier wird meine Änderung wieder unwirksam 8O
also folgendes noch aus includes/shout.php rauslöschen:
1
2
3
  else {
    unset ($prof_linka, $prof_linkb);
  }

Kurt


Title: Re: [MOD] Shoutbox
Post by: AntiNSA2 on March 11, 2009, 09:15:22 PM
on 1.76 I recieve the message after pushing the post button

Quote  [Expand]
:The name should be shorter than characters.

When push the button, it refreshed the screen, however there is no shout...


Title: Re: [MOD] Shoutbox
Post by: AntiNSA2 on March 12, 2009, 06:35:20 AM
working my way through this...


Page 7 of this mod says to find:
1
$shout_message = (stripslashes(trim($HTTP_POST_VARS['shout_message'])));
in shout_editor.php ...

and after put this:
1
2
3
4
$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
1
"sh_message" => $shout['0']['message'],

and after  it add
1
2
3
"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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?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')
?>



Title: Re: [MOD] Shoutbox
Post by: AntiNSA2 on March 12, 2009, 06:59:43 AM
How do you disable this error message:

The name should be shorter than  characters.


It seems to make more problems than it solves.


Title: Re: [MOD] Shoutbox
Post by: BuT9l on April 11, 2009, 07:40:32 PM
Mod is working fine, but what to do with reposting shouts with reload page?  :(


Title: Re: [MOD] Shoutbox
Post by: V@no on April 11, 2009, 08:00:18 PM
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);


Title: Re: [MOD] Shoutbox
Post by: BuT9l on April 11, 2009, 09:02:19 PM
The requested URL /shout.php was not found on this server.  :(


Title: Re: [MOD] Shoutbox
Post by: BuT9l on April 11, 2009, 09:11:17 PM
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.


Title: Re: [MOD] Shoutbox
Post by: GaYan on April 17, 2009, 05:43:53 PM
Download link doesnt work.. pleaes help meeee


Title: Re: [MOD] Shoutbox
Post by: BuT9l on April 17, 2009, 06:25:41 PM
2 g2gayan ,
On the first page? It works for me.
Take it...


Title: Re: [MOD] Shoutbox
Post by: Jan-Lukas on May 07, 2009, 10:15:21 PM
Quote  [Expand]
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:
1
2
3
//--------------------------------------------------------------------------
//---------------Save Shouts------------------------------------------------
//--------------------------------------------------------------------------
danach einfügen:
1
2
$prof_linka = "";
$prof_linkb =  "";

########## EDIT ##########
hier wird meine Änderung wieder unwirksam 8O
also folgendes noch aus includes/shout.php rauslöschen:
1
2
3
  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


Title: Re: [MOD] Shoutbox
Post by: keesjansma on June 07, 2009, 08:11:20 AM
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


Title: Re: [MOD] Shoutbox
Post by: keesjansma on June 11, 2009, 09:46:52 PM
Still No one?? Please........ :oops:


Title: Re: [MOD] Shoutbox
Post by: Sebas Bonito on June 21, 2009, 09:23:26 PM
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:
1
2
3
4
$site_template->register_vars(array(
  "prof_linka"=>$prof_linka,
  "prof_linkb"=>$prof_linkb,
  "shoutusr"=>$shouts[$i]['name']

füge darunter ein:
1
"lang_date"=>$lang['date'],

öffne dein template/shout_bit.html

suche:
1
{prof_linka}{shoutusr}:{prof_linkb}

ersetze mit
1
{prof_linka}{shoutusr}:{prof_linkb} {lang_date}

Nur das Datum bekomme ich nicht hin  :cry:
Auch nicht mit dem Codeschnippsel

1
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?


Title: Re: [MOD] Shoutbox
Post by: Sebas Bonito on June 24, 2009, 12:54:11 PM
Any idea why this server-error-log appears? There are no other errors on the page and the shout box works...

Quote  [Expand]
[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


Title: Re: [MOD] Shoutbox
Post by: Sebas Bonito on July 19, 2009, 07:25:55 PM
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 +++  :)


Title: Re: [MOD] Shoutbox
Post by: Jan-Lukas on July 19, 2009, 07:47:09 PM
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.


Title: Re: [MOD] Shoutbox
Post by: Sebas Bonito on July 19, 2009, 07:52:31 PM
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:
1
"shoutusr"=>$shouts[$i]['name'],
...danach das einfügen:
1
"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.


Title: Re: [MOD] Shoutbox
Post by: Jan-Lukas on July 19, 2009, 07:56:43 PM
werde ich später mal testen

LG


Title: Re: [MOD] Shoutbox
Post by: Mariuz on August 05, 2009, 01:52:02 PM
hmm, also funktioniert das nun bei den neuren Versionen oder nicht?
Sind sich hier alle irgendwie nicht einig wie mir scheint  :P


Title: Re: [MOD] Shoutbox
Post by: Sebas Bonito on August 05, 2009, 10:42:46 PM
Bei mir läuft das unter 1.7.7.


Title: Re: [MOD] Shoutbox
Post by: Mariuz on August 06, 2009, 03:31:48 PM
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:
1
2
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;

After add:
1
2
3
4
5
6
7
8
9
10
  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;
  }





Title: Re: [MOD] Shoutbox
Post by: GaYan on August 10, 2009, 08:49:11 PM
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 !


Title: Re: [MOD] Shoutbox
Post by: cyberax on October 19, 2009, 06:55:08 PM
Ein Klasse MOD!!!
Es funktioniert auch fast komplett bei mir.
Es kommen zwei Fehlermeldungen, wenn ich auf die "Suche" gehe...

1
2
3
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
1
define('SHOUTBOX_TABLE', $table_prefix.'shoutbox');
durch
1
2
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!!!


Title: Re: [MOD] Shoutbox
Post by: luener on November 07, 2009, 12:41:28 PM
 :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



Title: Re: [MOD] Shoutbox
Post by: Loda on November 18, 2009, 10:06:36 AM
hi,
is it possible to insert the bbcode (with smilies etc.) into the shoutbox_form?


Title: Re: [MOD] Shoutbox
Post by: Loda on November 26, 2009, 08:30:49 AM
and another question:
i can't select all shouts (checked all) in the shoutbox_admin to delete itself.
my version 1.7.7


Title: Re: [MOD] Shoutbox
Post by: dfever on March 19, 2010, 06:12:18 PM
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


Title: Re: [MOD] Shoutbox
Post by: ghost_wizard on March 29, 2010, 08:50:55 PM
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!


Title: Re: [MOD] Shoutbox
Post by: Mr Kennedy on April 19, 2010, 08:09:24 PM
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 :(


Title: Re: [MOD] Shoutbox
Post by: Jan-Lukas on May 09, 2010, 08:28:06 PM
: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


Title: Re: [MOD] Shoutbox
Post by: Rembrandt on May 09, 2010, 09:00:06 PM
...
 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');


Title: Re: [MOD] Shoutbox
Post by: luener on May 09, 2010, 09:14:21 PM
meine shout.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?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);
?>


Title: Re: [MOD] Shoutbox
Post by: Jan-Lukas on May 09, 2010, 09:20:45 PM
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


Title: Re: [MOD] Shoutbox
Post by: Rembrandt on May 09, 2010, 09:41:23 PM
...
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


Title: Re: [MOD] Shoutbox
Post by: Jan-Lukas on May 09, 2010, 10:03:06 PM
schon, aber die Shoutbox ist schon so alt, die müsste mal neu aufgelegt werden *liebguck*



Title: Re: [MOD] Shoutbox
Post by: webvision on June 21, 2010, 06:43:06 AM
Hello

How to expand?

Thank you

Here is a screen:
(http://nsa15.casimages.com/img/2010/06/21/100621064347322810.png)



Title: Re: [MOD] Shoutbox
Post by: zakaria666 on August 09, 2010, 11:54:36 PM
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


Title: Re: [MOD] Shoutbox
Post by: V@no on August 10, 2010, 12:24:47 AM
Have you tried set width to 100% in this line?
1
  <table width="148" border="0" cellspacing="0" cellpadding="0">
?


Title: Re: [MOD] Shoutbox
Post by: zakaria666 on August 10, 2010, 12:40:18 AM
@ 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


Title: Re: [MOD] Shoutbox
Post by: V@no on August 10, 2010, 01:15:52 AM
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
1
2
3
4
5
6
7
.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.


Title: Re: [MOD] Shoutbox
Post by: zakaria666 on August 10, 2010, 08:27:54 PM
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


Title: Re: [MOD] Shoutbox
Post by: V@no on August 10, 2010, 08:38:21 PM
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).


Title: Re: [MOD] Shoutbox
Post by: zakaria666 on August 13, 2010, 05:04:33 PM
@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.


Title: Re: [MOD] Shoutbox
Post by: zakaria666 on August 15, 2010, 02:56:18 AM
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...
1
$shout = $HTTP_POST_VARS['shout'];

Insert above
1
2
if (isset($_POST['shout']))
{

2)
Find...
1
unset ($errormsg);

insert below..
Quote  [Expand]
}

Now this will fix problem because we are testing whether the fields of the table was initialized with the function isset ().






Title: Re: [MOD] Shoutbox
Post by: iDownOwnAnything on August 23, 2010, 12:13:46 AM
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


Title: Re: [MOD] Shoutbox
Post by: zakaria666 on September 16, 2010, 11:18:45 PM
@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.


Title: Re: [MOD] Shoutbox
Post by: Jan-Lukas on January 05, 2011, 07:40:36 PM
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


Title: Re: [MOD] Shoutbox
Post by: Sumale.my on January 05, 2011, 08:01:48 PM
Neuauflage der Modifikation @ Rembrandt :P


Title: Re: [MOD] Shoutbox
Post by: surferboy on January 05, 2011, 08:56:04 PM
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

Quote  [Expand]
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.



Title: Re: [MOD] Shoutbox
Post by: Rembrandt on January 06, 2011, 12:25:34 PM
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


Title: Re: [MOD] Shoutbox
Post by: surferboy on January 06, 2011, 05:48:30 PM
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


Title: Re: [MOD] Shoutbox
Post by: Rembrandt on January 06, 2011, 06:21:21 PM
....
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.


Title: Re: [MOD] Shoutbox
Post by: surferboy on January 06, 2011, 06:36:57 PM
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


Title: Re: [MOD] Shoutbox
Post by: Rembrandt on January 06, 2011, 06:54:00 PM
..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


Title: Re: [MOD] Shoutbox
Post by: Jan-Lukas on January 06, 2011, 07:05:26 PM
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.


Title: Re: [MOD] Shoutbox
Post by: surferboy on January 07, 2011, 03:38:25 AM
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


Title: Re: [MOD] Shoutbox
Post by: Jan-Lukas on January 11, 2011, 10:55:22 AM
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


Title: Re: [MOD] Shoutbox
Post by: Rembrandt on January 11, 2011, 02:27:04 PM
die shout_editor.html wir eh nicht gebraucht, das popup wird in der shout_editor.php generiert.
hat das editieren überhaupt schon mal funktioniert?


Title: Re: [MOD] Shoutbox
Post by: Jan-Lukas on January 11, 2011, 04:40:43 PM
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


Title: Re: [MOD] Shoutbox
Post by: Rembrandt on January 11, 2011, 05:25:48 PM
mit den original files vom ersten post?


Title: Re: [MOD] Shoutbox
Post by: Jan-Lukas on January 11, 2011, 06:08:53 PM
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


Title: Re: [MOD] Shoutbox
Post by: Rembrandt on January 11, 2011, 06:42:10 PM
...$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.


Title: Re: [MOD] Shoutbox
Post by: Jan-Lukas on January 11, 2011, 06:55:50 PM
ja, ohne diesen Fix klappt das editieren, habe es gerade auf einer Testinstall probiert.
da ist alles bis auf diesem Fix identisch


Title: Re: [MOD] Shoutbox
Post by: gudservo on January 20, 2011, 05:56:02 PM
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

 


Title: Re: [MOD] Shoutbox
Post by: h24 on February 20, 2011, 04:07:21 AM
Gäste können nicht schreiben wo ist der Fehler hab ich was falsch gemacht


Title: Re: [MOD] Shoutbox
Post by: Jan-Lukas on February 20, 2011, 05:22:06 PM
im Admin unter PlugIns kannst Du das einstellen "Shoutbox Admin"

Würde ich mir aber überlegen ;)


Title: Re: [MOD] Shoutbox
Post by: h24 on February 21, 2011, 03:21:57 AM
Ja guter Tip aber es war ein ander Fehler  :roll:


Title: Re: [MOD] Shoutbox
Post by: Jan-Lukas on February 21, 2011, 07:46:37 AM

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:


Title: Re: [MOD] Shoutbox
Post by: Mr Kennedy on March 30, 2011, 02:47:12 PM
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?


Title: Re: [MOD] Shoutbox
Post by: Jan-Lukas on June 15, 2011, 07:55:46 PM
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


Title: Re: [MOD] Shoutbox
Post by: Nosferatu on June 24, 2011, 07:46:04 PM
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....


Title: Re: [MOD] Shoutbox
Post by: Jan-Lukas on June 24, 2011, 08:03:36 PM
nein, klappt nicht


Title: Re: [MOD] Shoutbox
Post by: Jan-Lukas on January 03, 2012, 02:45:11 AM
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


Title: Re: [MOD] Shoutbox
Post by: whwsammler on January 07, 2012, 04:44:41 PM
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?


Title: Re: [MOD] Shoutbox
Post by: Jan-Lukas on January 07, 2012, 07:04:48 PM
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:

Quote  [Expand]
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.


Title: Re: [MOD] Shoutbox
Post by: whwsammler on January 07, 2012, 09:28:50 PM
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


Title: Re: [MOD] Shoutbox
Post by: Rembrandt on May 23, 2012, 06:04:27 PM
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