• [MOD] Shoutbox 4 0 5 1
Currently:  

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

0 Members and 1 Guest are viewing this topic.

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [MOD] Shoutbox
« Reply #30 on: December 25, 2005, 03:59:34 PM »
getting
Quote
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

$shout_message = safe_htmlspecialchars($shout_message);


replace with :

Code: [Select]

$shout_message = htmlspecialchars($shout_message);


Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [MOD] Shoutbox
« Reply #31 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

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

Offline chip

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • pixelmall.de
Re: [MOD] Shoutbox
« Reply #32 on: December 26, 2005, 11:57:48 PM »
Merry Christmas everyone,

hi Oracle,

actually I already added this:


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

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

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [MOD] Shoutbox
« Reply #33 on: December 27, 2005, 01:41:15 AM »
This is the one I have :

Code: [Select]

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


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 #34 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
Code: [Select]
$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:
Code: [Select]
define('ROOT_PATH', "./../../");
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 castor

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


what about my problem and others here, read this thread again and again .. but didnt find the answer .. thx for help

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [MOD] Shoutbox
« Reply #36 on: December 27, 2005, 10:32:06 PM »
Quote

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.

Offline lemccoy

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

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [MOD] Shoutbox
« Reply #38 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

Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: [MOD] Shoutbox
« Reply #39 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
Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [MOD] Shoutbox
« Reply #40 on: January 21, 2006, 02:51:11 AM »
Quote

Must be that one.


Yep - must be. 8)

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [MOD] Shoutbox
« Reply #41 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.

Offline djith

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
Re: [MOD] Shoutbox
« Reply #42 on: January 31, 2006, 07:03:03 PM »



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

must be this one :)

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [MOD] Shoutbox
« Reply #43 on: January 31, 2006, 07:04:59 PM »
Quote

must be this one


Must be.  :roll:

Offline djith

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