• [MOD] Shoutbox 4 0 5 1
Currently:  

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

0 Members and 1 Guest are viewing this topic.

Offline BuT9l

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: [MOD] Shoutbox
« Reply #195 on: April 11, 2009, 07:40:32 PM »
Mod is working fine, but what to do with reposting shouts with reload page?  :(

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Shoutbox
« Reply #196 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);
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline BuT9l

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: [MOD] Shoutbox
« Reply #197 on: April 11, 2009, 09:02:19 PM »
The requested URL /shout.php was not found on this server.  :(

Offline BuT9l

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

Offline GaYan

  • Sr. Member
  • ****
  • Posts: 301
  • ♫ | G2 | ♫
    • View Profile
    • Ziramagic
Re: [MOD] Shoutbox
« Reply #199 on: April 17, 2009, 05:43:53 PM »
Download link doesnt work.. pleaes help meeee
I'm Back :)

Offline BuT9l

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: [MOD] Shoutbox
« Reply #200 on: April 17, 2009, 06:25:41 PM »
2 g2gayan ,
On the first page? It works for me.
Take it...

Offline Jan-Lukas

  • Addicted member
  • ******
  • Posts: 1.289
    • View Profile
    • Discover the New World of Kindersurprise
Re: [MOD] Shoutbox
« Reply #201 on: May 07, 2009, 10:15:21 PM »
Quote
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:
Code: [Select]
//--------------------------------------------------------------------------
//---------------Save Shouts------------------------------------------------
//--------------------------------------------------------------------------
danach einfügen:
Code: [Select]
$prof_linka = "";
$prof_linkb =  "";

########## EDIT ##########
hier wird meine Änderung wieder unwirksam 8O
also folgendes noch aus includes/shout.php rauslöschen:
Code: [Select]
  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
Danke Harald




Offline keesjansma

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: [MOD] Shoutbox
« Reply #202 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
« Last Edit: June 11, 2009, 10:33:22 PM by Nicky »

Offline keesjansma

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: [MOD] Shoutbox
« Reply #203 on: June 11, 2009, 09:46:52 PM »
Still No one?? Please........ :oops:

Offline Sebas Bonito

  • Sr. Member
  • ****
  • Posts: 271
  • Sebas Bonito
    • View Profile
Re: [MOD] Shoutbox
« Reply #204 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:
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



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?
« Last Edit: June 22, 2009, 01:40:59 AM by Schnick_und_Schnack »

Offline Sebas Bonito

  • Sr. Member
  • ****
  • Posts: 271
  • Sebas Bonito
    • View Profile
Re: [MOD] Shoutbox
« Reply #205 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
[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

Offline Sebas Bonito

  • Sr. Member
  • ****
  • Posts: 271
  • Sebas Bonito
    • View Profile
Re: [MOD] Shoutbox
« Reply #206 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 +++  :)

Offline Jan-Lukas

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




Offline Sebas Bonito

  • Sr. Member
  • ****
  • Posts: 271
  • Sebas Bonito
    • View Profile
Re: [MOD] Shoutbox
« Reply #208 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:
Code: [Select]
"shoutusr"=>$shouts[$i]['name'],...danach das einfügen:
Code: [Select]
"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.

Offline Jan-Lukas

  • Addicted member
  • ******
  • Posts: 1.289
    • View Profile
    • Discover the New World of Kindersurprise
Re: [MOD] Shoutbox
« Reply #209 on: July 19, 2009, 07:56:43 PM »
werde ich später mal testen

LG
Danke Harald