• [MOD] Shoutbox 4 0 5 1
Currently:  

Author Topic: [MOD] Shoutbox  (Read 309894 times)

0 Members and 1 Guest are viewing this topic.

Offline Mariuz

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: [MOD] Shoutbox
« Reply #210 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

Offline Sebas Bonito

  • Sr. Member
  • ****
  • Posts: 271
  • Sebas Bonito
    • View Profile
Re: [MOD] Shoutbox
« Reply #211 on: August 05, 2009, 10:42:46 PM »
Bei mir läuft das unter 1.7.7.

Offline Mariuz

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: [MOD] Shoutbox
« Reply #212 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:
Code: [Select]
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;

After add:
Code: [Select]
  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;
  }




Offline GaYan

  • Sr. Member
  • ****
  • Posts: 301
  • ♫ | G2 | ♫
    • View Profile
    • Ziramagic
Re: [MOD] Shoutbox
« Reply #213 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 !
I'm Back :)

Offline cyberax

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: [MOD] Shoutbox
« Reply #214 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...

Code: [Select]
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
Code: [Select]
define('SHOUTBOX_TABLE', $table_prefix.'shoutbox');
durch
Code: [Select]
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!!!

Offline luener

  • Jr. Member
  • **
  • Posts: 54
  • Pessimisten sind Optimisten mit mehr Erfahrung!
    • View Profile
    • TopFoto24.com
Re: [MOD] Shoutbox
« Reply #215 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


Offline Loda

  • Sr. Member
  • ****
  • Posts: 353
    • View Profile
    • Fotosucht Schweiz
Re: [MOD] Shoutbox
« Reply #216 on: November 18, 2009, 10:06:36 AM »
hi,
is it possible to insert the bbcode (with smilies etc.) into the shoutbox_form?

Offline Loda

  • Sr. Member
  • ****
  • Posts: 353
    • View Profile
    • Fotosucht Schweiz
Re: [MOD] Shoutbox
« Reply #217 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

Offline dfever

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: [MOD] Shoutbox
« Reply #218 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

Offline ghost_wizard

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: [MOD] Shoutbox
« Reply #219 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!

Offline Mr Kennedy

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
Re: [MOD] Shoutbox
« Reply #220 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 :(

Offline Jan-Lukas

  • Addicted member
  • ******
  • Posts: 1.289
    • View Profile
    • Discover the New World of Kindersurprise
Re: [MOD] Shoutbox
« Reply #221 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
Danke Harald




Rembrandt

  • Guest
Re: [MOD] Shoutbox
« Reply #222 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');

Offline luener

  • Jr. Member
  • **
  • Posts: 54
  • Pessimisten sind Optimisten mit mehr Erfahrung!
    • View Profile
    • TopFoto24.com
Re: [MOD] Shoutbox
« Reply #223 on: May 09, 2010, 09:14:21 PM »
meine shout.php
Code: [Select]
<?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);
?>

Offline Jan-Lukas

  • Addicted member
  • ******
  • Posts: 1.289
    • View Profile
    • Discover the New World of Kindersurprise
Re: [MOD] Shoutbox
« Reply #224 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
Danke Harald