• [MOD] Shoutbox 4 0 5 1
Currently:  

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

0 Members and 2 Guests are viewing this topic.

Offline sanko86

  • Sr. Member
  • ****
  • Posts: 310
    • View Profile
    • Elemegim
Re: [MOD] Shoutbox
« Reply #150 on: April 14, 2008, 09:32:54 AM »
help:(
die link

Web site:http://www.anlatiyoruz.com
Hayat zorluklarla doludur.Ama en zoru insanın insana düşmanlığıdır.

Offline sanko86

  • Sr. Member
  • ****
  • Posts: 310
    • View Profile
    • Elemegim
Re: [MOD] Shoutbox
« Reply #151 on: April 22, 2008, 02:44:11 PM »
help help help
wait:(
Web site:http://www.anlatiyoruz.com
Hayat zorluklarla doludur.Ama en zoru insanın insana düşmanlığıdır.

Offline sanko86

  • Sr. Member
  • ****
  • Posts: 310
    • View Profile
    • Elemegim
Re: [MOD] Shoutbox
« Reply #152 on: April 27, 2008, 12:14:30 PM »
How are you 4images?

the download link die

please help?
Web site:http://www.anlatiyoruz.com
Hayat zorluklarla doludur.Ama en zoru insanın insana düşmanlığıdır.

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [MOD] Shoutbox
« Reply #153 on: April 27, 2008, 01:33:59 PM »
hasanok86,

pls. do not push.. seems that no1 have this files..
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline sanko86

  • Sr. Member
  • ****
  • Posts: 310
    • View Profile
    • Elemegim
Re: [MOD] Shoutbox
« Reply #154 on: April 28, 2008, 01:11:54 PM »
Sorry
Thanks 4 images

use free bevatiful shoutbox look:http://www.cbox.ws/
Web site:http://www.anlatiyoruz.com
Hayat zorluklarla doludur.Ama en zoru insanın insana düşmanlığıdır.

Offline Laurina

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • Darren Hayes Interactive
Re: [MOD] Shoutbox
« Reply #155 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.


Offline Jan-Lukas

  • Addicted member
  • ******
  • Posts: 1.289
    • View Profile
    • Discover the New World of Kindersurprise
Re: [MOD] Shoutbox
« Reply #156 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:
Code: [Select]
$site_template->register_vars(array(
  "prof_linka"=>$prof_linka,
  "prof_linkb"=>$prof_linkb,
  "shoutusr"=>$shouts[$i]['name']

füge darunter ein:
Code: [Select]
"lang_date"=>$lang['date'],
öffne dein template/shout_bit.html

suche:
Code: [Select]
{prof_linka}{shoutusr}:{prof_linkb}
ersetze mit
Code: [Select]
{prof_linka}{shoutusr}:{prof_linkb} {lang_date}
Nur das Datum bekomme ich nicht hin  :cry:
Auch nicht mit dem Codeschnippsel

Code: [Select]
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

Danke Harald




Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.806
  • I ♥ 4I
    • View Profile
Re: [MOD] Shoutbox
« Reply #157 on: June 13, 2008, 11:45:09 AM »
Kann man die Shoutbox noch irgendwoe her bekommen?
Der Downloadlink geht nicht mehr!

Offline Jan-Lukas

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




Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [MOD] Shoutbox
« Reply #159 on: June 13, 2008, 03:56:08 PM »
ohaaaaaaaaaaaaaaaaaaaaa..........................
* Nicky 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...
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline Jan-Lukas

  • Addicted member
  • ******
  • Posts: 1.289
    • View Profile
    • Discover the New World of Kindersurprise
Re: [MOD] Shoutbox
« Reply #160 on: June 13, 2008, 03:57:58 PM »
Aber klar  :wink:
Danke Harald




Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.806
  • I ♥ 4I
    • View Profile
Re: [MOD] Shoutbox
« Reply #161 on: June 13, 2008, 05:25:02 PM »
Supie!

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [MOD] Shoutbox
« Reply #162 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..
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.806
  • I ♥ 4I
    • View Profile
Re: [MOD] Shoutbox
« Reply #163 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
« Last Edit: June 13, 2008, 11:21:00 PM by Phisker B »

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.806
  • I ♥ 4I
    • View Profile
Re: [MOD] Shoutbox
« Reply #164 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:

Code: [Select]
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

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')\">[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);
?>