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)
-   -   [ Audio / Visual ] - VB Mega Jukebox - Now with permissions to save bandwith (https://vborg.vbsupport.ru/showthread.php?t=74170)

trafix 02-09-2005 07:32 PM

Quote:

Originally Posted by dhurd
trafix,
I don't know if you can help with this or not. I am having trouble with the installer. I renamed my admincp directory when I installed vB so I think this may be causing a problem. When I run "forum/install/hack_install.php" script I get the following error:

Warning: chdir(): No such file or directory (errno 2) in c:\inetpub\...\install\his_files\hack_install_b3.p hp on line 32

Warning: main(./global.php): failed to open stream: No such file or directory in c:\inetpub\...\install\his_files\hack_install_b3.p hp on line 34

Fatal error: main(): Failed opening required './global.php' (include_path='.;c:\php4\pear') in c:\inetpub\...\install\his_files\hack_install_b3.p hp on line 34


I looked at the line of code it was referencing and it was using the variable $admincpdir. I looked at this variable and the value is "admincp" which is incorrect because I had renamed my admincp directory. So I hardcoded the name of my directory into the line which let me at least attempt to run the installer but now when I run it I get the following errors:


<?php

// Templates

Warning: Invalid argument supplied for foreach() in \his_files\hack_creator_b2.php on line 161
?>


and


<?php

// Phrases
Warning: Invalid argument supplied for foreach() in \his_files\hack_creator_b2.php on line 203
?>


and


Warning: halt(./includes/functions_log_error.php): failed to open stream: No such file or directory in c:\inetpub\...\includes\db_mysql.php on line 389

Warning: halt(): Failed opening './includes/functions_log_error.php' for inclusion (include_path='.;c:\php4\pear') in c:\inetpub\...\includes\db_mysql.php on line 389


And then an SQL error:

Database error in vBulletin 3.0.6:

Invalid SQL: SELECT varname, text FROM phrase WHERE varname IN () ORDER BY languageid DESC
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY languageid DESC' at line 1

mysql error number: 1064

Date: Wednesday 09th of February 2005 08:51:18 AM
Script: http://.../install/hack_install.php
Referer: http://.../install/hack_install.php


Any ideas on what is going on? I know this is probably an installer problem but I looked at the thread for the installer and didn't really find any help. I'm not a php programmer so I'm pretty lost as far as debugging the scripts to find out whats going on.

Any help will be appreciated.

Regards,
Dan Hurd
DWE
www.smallrc.com

Ummm, these installer files go into the "install" folder, not the "admincp" folder.

There is only 1 file that is uploaded to the admincp .. vb_jukebox_admin.php

trafix 02-09-2005 09:10 PM

For those who want to be able to install without using the HIS please read https://vborg.vbsupport.ru/showthrea...661#post609661

WiseOwl 02-09-2005 09:46 PM

Still gettin negative plays after adding the code around line 300 in vb_jukebox.php take a peep at http://bb.hiphop.org/vb_jukebox.php

spence2 02-09-2005 09:46 PM

Quote:

No the user cant select the genre .... the songs are put into a genra called "A new song" so you can find new uploads easily ... you can hear the song by clicking on the title in the admin song list ... then decide for yourself
Might you consider making this a feature for a future version? (fingers-crossed).

In my particular instance, my users will be uploading both published songs and original compositions ... and there is no way for me to tell the diff without some way for them to designate which genre.

trafix 02-09-2005 09:47 PM

hmmm ok ... i will look at it ;)

spence2 02-09-2005 09:48 PM

You da MAN!

dhurd 02-09-2005 10:22 PM

Trafix,
I did migrate the HIS files into the install folder. I put all the other files in the zip within thier respective folders from the root of my directory.
What happened initally when I ran the script was I was getting an error because the script used the variable $admincpdir to set some other variables containing directory values. The problem is the $admincpdir in the script contains the value of "admincp" which is incorrect because I renamed my admincp folder during the inital vB install so that directory doesn't exist. I changed it by hard coding it to the correct folder name but then it produced errors once I checked the jukebox option and clicked install. I wonder if the installer script uses that variable elsewhere and it's causing the problems.
I will try the manual method. Thanks for the link.

Dan

trafix 02-09-2005 10:37 PM

Quote:

Originally Posted by dhurd
Trafix,
I did migrate the HIS files into the install folder. I put all the other files in the zip within thier respective folders from the root of my directory.
What happened initally when I ran the script was I was getting an error because the script used the variable $admincpdir to set some other variables containing directory values. The problem is the $admincpdir in the script contains the value of "admincp" which is incorrect because I renamed my admincp folder during the inital vB install so that directory doesn't exist. I changed it by hard coding it to the correct folder name but then it produced errors once I checked the jukebox option and clicked install. I wonder if the installer script uses that variable elsewhere and it's causing the problems.
I will try the manual method. Thanks for the link.

Dan

thats possible ... i havnt looked at the coding of the HIS

WiseOwl 02-09-2005 11:28 PM

Still gettin negative plays after replacing the original coding with the following coding, take a peep http://bb.hiphop.org/vb_jukebox.php still "-plays"

Quote:

Originally Posted by trafix
ok try this .. open vb_jukebox and remove (aroung line 300)
PHP Code:

// because the jukebox is using credits this overrides the usergroup permissions
    
if ($vboptions[jb_mode] == "3" AND $bbuserinfo[userid] > "0" AND $mysong "0")
    {
        if (
$bbuserinfo[vbt_adcredit] > $vboptions[jb_cost])
        {
            
$DB_site->query("
                UPDATE " 
TABLE_PREFIX "user 
                SET vbt_adcredit = vbt_adcredit - 
$vboptions[jb_cost] 
                WHERE userid = 
$bbuserinfo[userid]
            "
);
        }
        else
        {
            
$DB_site->query("
                UPDATE " 
TABLE_PREFIX "vb_jukebox_trax 
                SET plays = plays - 1 
                WHERE songid = 
$mysong
            "
);
            
            
$mostplayed[plays] = $mostplayed[plays] - 1;
            
$canplay "2";
            
$warning "1";
            
$warningdesc "$vbphrase[jb_need_credits]";
            
$songdetails "$vbphrase[jb_nothing]";
        }
    } 



trafix 02-09-2005 11:30 PM

not replace .... just remove the code from the file altogether :)


All times are GMT. The time now is 11:55 AM.

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.01579 seconds
  • Memory Usage 1,772KB
  • 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
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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