vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Shoutbox Hack 1.04b (https://vborg.vbsupport.ru/showthread.php?t=68861)

Lionel 10-20-2004 12:19 AM

I've got two scripts:

hack_install.php

error_reporting(E_ALL & ~E_NOTICE);

$path_to_install = str_replace("hack_install.php", "", $_SERVER['PATH_TRANSLATED']);
$install_dir = opendir($path_to_install);
while (($file = readdir($install_dir)) !== false) {
if (strpos($file, "hack_install_b") !== false) {
$versions[] = $file;
}
}
unset($install_dir);
unset ($file);
asort($versions);
foreach ($versions as $version) {
$theversion = $version;
}
unset($version);
unset($versions);
require_once($theversion);


and hack_install_b1.php

define('THIS_SCRIPT', 'hack_install');
define('INSTALLER_BUILD_NUMBER', '1');
define('INSTALLER_VERSION', '1.0');

require_once('../includes/config.php');
chdir("../$admincpdir");
require_once('./global.php');
require_once('./includes/adminfunctions_template.php');
require_once('./includes/adminfunctions_language.php');
require_once('./includes/hackfunctions_b1.php');
chdir('./install');


I get the above error with both...

Zachery 10-20-2004 01:35 AM

Quote:

Originally Posted by Lionel
I've got two scripts:

hack_install.php

error_reporting(E_ALL & ~E_NOTICE);

$path_to_install = str_replace("hack_install.php", "", $_SERVER['PATH_TRANSLATED']);
$install_dir = opendir($path_to_install);
while (($file = readdir($install_dir)) !== false) {
if (strpos($file, "hack_install_b") !== false) {
$versions[] = $file;
}
}
unset($install_dir);
unset ($file);
asort($versions);
foreach ($versions as $version) {
$theversion = $version;
}
unset($version);
unset($versions);
require_once($theversion);


and hack_install_b1.php

define('THIS_SCRIPT', 'hack_install');
define('INSTALLER_BUILD_NUMBER', '1');
define('INSTALLER_VERSION', '1.0');

require_once('../includes/config.php');
chdir("../$admincpdir");
require_once('./global.php');
require_once('./includes/adminfunctions_template.php');
require_once('./includes/adminfunctions_language.php');
require_once('./includes/hackfunctions_b1.php');
chdir('./install');


I get the above error with both...

What error?

Link14716 10-20-2004 03:52 AM

Quote:

Originally Posted by Lionel
so where do I define that db?

Remove this in hack_install_b1.php and see if it works.

Code:

require_once('../includes/config.php');
Not sure why that line is there.

Lionel 10-20-2004 04:07 AM

it tells me

Fatal error: Call to undefined function: print_cp_header() in /var/www/site/forums/install/hack_install_b1.php on line 33

which is

print_cp_header('Hack Installer', '', "<style type=\"text/css\">

Lionel 10-20-2004 04:13 AM

I also do not have such required file in my includes:

require_once('./includes/hackfunctions_b1.php');

Kalipo 10-20-2004 04:21 AM

just installed and the shoutbox doesnt show on forumhome :( anyone got the code so i can add it to forumhome template :)

Lionel 10-20-2004 04:22 AM

I got it by doing like you said about config.php and by hardcoding the ../$admindir into ../admincp

Lionel 10-20-2004 05:23 AM

Everything installed fine, except for templates of shoutbox.php all messed up and a javascript error at line 115, and another one when I click on the quicklinks in navar. Problem is line 115 is just the css. I got a feeling it is coming from the WYSIWYG editor.

Also, can the "shoutbox closed" error message template be changed? It is bringing up the whole header and footer in the forumhome iframe box.

Link14716 10-20-2004 07:04 PM

Quote:

Originally Posted by Lionel
I got it by doing like you said about config.php and by hardcoding the ../$admindir into ../admincp

That's what I get for suggesting a fix at 1 AM.

Link14716 10-20-2004 07:05 PM

Quote:

Originally Posted by Lionel
Everything installed fine, except for templates of shoutbox.php all messed up and a javascript error at line 115, and another one when I click on the quicklinks in navar. Problem is line 115 is just the css. I got a feeling it is coming from the WYSIWYG editor.

Also, can the "shoutbox closed" error message template be changed? It is bringing up the whole header and footer in the forumhome iframe box.

That's because it is checked at the top of the file.

I'm going to have to check it on forumhome as well, though I thought it was checked there.

Lionel 10-20-2004 07:39 PM

Quote:

Originally Posted by Link14716
That's what I get for suggesting a fix at 1 AM.

?? I did not say that in a bad way...

anyway, I forgot to thank you...

Link14716 10-20-2004 10:47 PM

Quote:

Originally Posted by Lionel
?? I did not say that in a bad way...

anyway, I forgot to thank you...

I know, I'm just pissed at myself for not noticing the $admincpdir right below it.

HackMaster3d 10-21-2004 03:01 AM

After installation. The shoutbox works perfect.
But Now when I go to the usergroup manager in my admin CP I get this error

Parse error: parse error, unexpected $ in /home/xtreme11/public_html/forums/admincp/usergroup.php on line 1361

I've never had this problem untill I installed this hack .
Any help would be appriciated. I looked into line 1361 and did not notice anything funny.

Zachery 10-21-2004 03:05 AM

Quote:

Originally Posted by HackMaster3d
After installation. The shoutbox works perfect.
But Now when I go to the usergroup manager in my admin CP I get this error

Parse error: parse error, unexpected $ in /home/xtreme11/public_html/forums/admincp/usergroup.php on line 1361


I've never had this problem untill I installed this hack .
Any help would be appriciated. I looked into line 1361 and did not notice anything funny.

What is on line 1361

HackMaster3d 10-21-2004 03:27 AM

}

}
}

print_cp_footer();

/*================================================= =====================*\
|| ################################################## ##################
|| # Downloaded: 21:17, Sat Oct 9th 2004
|| # CVS: $RCSfile: usergroup.php,v $ - $Revision: 1.143 $
|| ################################################## ##################
\*================================================ ======================*/
?>

Line 1361 is the last line according to dreamweaver code editor
BTW. If I look at any of the other php files within the admincp folder they all end the same way.
Highly confused

HackMaster3d 10-21-2004 03:53 AM

Update. I repaired the error.

Everyone. When your editing your php files PLEASE use a good php editor. Wordpad or notepad . even dreamweaver does not do a good job.

Look for a program called

Winsyntax2.0 It should be free and you will have a much easier time

Blam Forumz 10-21-2004 05:54 AM

Ok, heres some problems, I would like to disable the font size bb code, but no others

how would i go about doing this?

Harley D 10-21-2004 02:08 PM

Quote:

Originally Posted by HackMaster3d
Update. I repaired the error.

Everyone. When your editing your php files PLEASE use a good php editor. Wordpad or notepad . even dreamweaver does not do a good job.

Look for a program called

Winsyntax2.0 It should be free and you will have a much easier time

Can't find a good link to the progy, as if its been pulled for some reason.

Link14716 10-21-2004 10:21 PM

I need someone to test HIS build 2. Preferably if you run into the 4 line error like what is posted on the main page with the current build.

boydekort 10-22-2004 10:45 AM

Quote:

Originally Posted by HackMaster3d
Update. I repaired the error.

Everyone. When your editing your php files PLEASE use a good php editor. Wordpad or notepad . even dreamweaver does not do a good job.

Look for a program called

Winsyntax2.0 It should be free and you will have a much easier time

I always use ultraedit love it :D ( www.ultraedit.com

and my problem is same as some others I dont get any names in the admincp as well my shoutbox wont go back ( it works perfect true shoutbox.php)
but when i use the iframe version it looks damaged.

example see attachment.

djohn 10-22-2004 05:09 PM

Link14716, i'll test it.

Link14716 10-22-2004 08:12 PM

Quote:

Originally Posted by djohn
Link14716, i'll test it.

Too late. :p

I have updated the installer. If you had problems with it before, it should work now.

HackMaster3d 10-23-2004 12:29 AM

Here is winsyntax. It's a small proggy so I don't think there will be a problem uploading.

Peace

Edit: I removed your attachment of a program for the reason that we cannot verify that it does not contain a virus. Thanks for understanding

Zachery 10-23-2004 01:20 AM

Quote:

Originally Posted by HackMaster3d
Here is winsyntax. It's a small proggy so I don't think there will be a problem uploading.

Peace

What is the license for that file, is it even legal for you to redistribute that program?

HackMaster3d 10-23-2004 03:29 AM

I got it free from I belive geekydesigns. There is no licence needed that I see.

P.S I just did a search from google . It say's on a couple of sites that it's a free program .

Enjoy

Zachery 10-23-2004 03:32 AM

Quote:

Originally Posted by HackMaster3d
I got it free from I belive geekydesigns. There is no licence needed that I see.

P.S I just did a search from google . It say's on a couple of sites that it's a free program .

Enjoy

Free does not mean you can redistrubte it, where in the licenses does it grant you to do it?

HackMaster3d 10-23-2004 03:45 AM

Dude. delete it if you want.
What am I am miracle worker. Where in ANY licenses does it say you can.

Here read this.

Description from the author
"Arisesoft Winsyntax - is a free PHP-code editor with a fast syntax highlighting engine and the context PHP-help for professional scripting. Supporting of the line kinds for PC/UNIX and encoding between ANSI-UTF8-KOI8. Integrated File Manager. Multi-document interface. Multiple history of 'Undo-Redo' for the edited documents. Highlighting of syntax for several script languages in one document. Opportunities for customizing of highlighting and the addition of new languages. Now it supports syntax: PHP, HTML, CSS, JavaScript, SQL'92 and extensions for MySQL and PostgreSQL, and Windows INI files. Moving the cursor with ignoring of the line carry - for all width of line. Selection of the text by columns-lines-symbols. Autoindent of the input line by start position of the previous line. History of last ten open documents. Alerts for external change of open documents. Context help for any PHP keyword, when clicked [F1] on cursor position. The code explorer for PHP-scripts - tree of the classes with variables and functions. The search and replacing of the text in external files with different encoding. Other features."

It's free . and posted on MANY website. If you don't like the fact that I posted a good program for all people to use then remove it. They can find it on over 100 freeware websites.

boydekort 10-23-2004 08:18 AM

no one can help me with my problem should i do a reinstall as well and i regged at geekydesigns seems kind of dead or is there a hidden section ?

djohn 10-23-2004 09:23 AM

Link14716, bad luck.
Code:

Warning: chdir(): No such file or directory (errno 2) in /home/web/public_html/forums/install/hack_install_b2.php on line 30

Warning: main(./global.php): failed to open stream: No such file or directory in /home/pwnedru/public_html/web/install/hack_install_b2.php on line 31

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/web/public_html/forums/install/hack_install_b2.php on line 31

PHP 4.3.8, Apache 1.3.31

Zachery 10-23-2004 12:18 PM

Quote:

Originally Posted by djohn
Link14716, bad luck.
Code:

Warning: chdir(): No such file or directory (errno 2) in /home/web/public_html/forums/install/hack_install_b2.php on line 30

Warning: main(./global.php): failed to open stream: No such file or directory in /home/pwnedru/public_html/web/install/hack_install_b2.php on line 31

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/web/public_html/forums/install/hack_install_b2.php on line 31

PHP 4.3.8, Apache 1.3.31

With the new version?

Zachery 10-23-2004 12:19 PM

Quote:

Originally Posted by boydekort
no one can help me with my problem should i do a reinstall as well and i regged at geekydesigns seems kind of dead or is there a hidden section ?

I don't really see a problem....

djohn 10-23-2004 12:25 PM

Quote:

Originally Posted by Zachery
With the new version?

positive. with brand new freshly uploaded Shoutbox Hack 1.04a

Mosh 10-24-2004 10:49 AM

Is there a manual installation procedure as all I keep on getting are sql errors, I have manually removed the queries as the installer says there is no installation but then refuses to install because the keys already exist.

This is the only thing preventing me installing this hack and is the only one I have tried to install that uses HIS, I want the option to install this by hand so that I know exactly what is going on and can see if it is me making an error (if I want to make changes it is easier for me to do it manually), also don't like the fact that we do not have the option between HIS and manual install.

Thanks in advance,

jdsinclair

The Equivocate 10-24-2004 09:58 PM

Parse error: parse error, unexpected '\"', expecting ']' in /home/w360/public_html/discuss/includes/adminfunctions_template.php(3055) : eval()'d code on line 257

Recieving this error when trying to do the edits on FORUMHOME.

Zachery 10-24-2004 10:01 PM

Quote:

Originally Posted by The Equivocate
Parse error: parse error, unexpected '\"', expecting ']' in /home/w360/public_html/discuss/includes/adminfunctions_template.php(3055) : eval()'d code on line 257

Recieving this error when trying to do the edits on FORUMHOME.

Sounds like you didnt hack the file correclty

The Equivocate 10-24-2004 10:27 PM

What changes am I supposed to make to this file (I assume you mean adminfunctions_template.php)? I can't find it in the readme nor in the install file. And I edited forumhome correctly.

Link14716 10-25-2004 02:06 AM

Quote:

Originally Posted by djohn
Link14716, bad luck.
Code:

Warning: chdir(): No such file or directory (errno 2) in /home/web/public_html/forums/install/hack_install_b2.php on line 30

Warning: main(./global.php): failed to open stream: No such file or directory in /home/pwnedru/public_html/web/install/hack_install_b2.php on line 31

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/web/public_html/forums/install/hack_install_b2.php on line 31

PHP 4.3.8, Apache 1.3.31

If you uploaded all the new files, it should work fine. It is failing on the chdir to the admincp. The variable is defined in hack_config_default.php.

Link14716 10-25-2004 02:07 AM

Quote:

Originally Posted by The Equivocate
Parse error: parse error, unexpected '\"', expecting ']' in /home/w360/public_html/discuss/includes/adminfunctions_template.php(3055) : eval()'d code on line 257

Recieving this error when trying to do the edits on FORUMHOME.

I'm guessing you are trying to add it to the bottom of forumhome?

EDIT: I can't reproduce.

boydekort 10-25-2004 07:38 AM

Quote:

Originally Posted by Zachery
I don't really see a problem....

problem is the permissions in admincp dont show up fixed the problem with the shoutbox itself myself. took me a while to find the imagepath.

djohn 10-25-2004 11:49 AM

ok, the problem was that i have changed the default admincp location. now it's installed and working fine.

2 questions.
1. i have my shoutbox at the bottom of the forums, and it kind of blends with the statistics box. id like it to have it's own heading and the ability to minimise it

2. how can i remove shouts? i have all permissins set for the usergroups, but it i don't see any edit or delete buttons.

thanks for the great hack.

also, how can i change the hight of the shoutbox box on forumhome? i need to decrease it because i have quite compact design and right now it takes way too much space.


All times are GMT. The time now is 01:57 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02062 seconds
  • Memory Usage 1,846KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete