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)

WiseOwl 02-08-2005 05:37 AM

Hmm its not downloading now, seems to play almost right away

trafix 02-08-2005 05:41 AM

its playing properly for me :)

WiseOwl 02-08-2005 06:07 AM

good deal.. thanks again Tafix and as soon as I got some extra loot, I got cha man..

Is there away to edit a category? and a form for leaving feedback on a song would be cool too, oh and a "date posted" column would be ideal

trafix 02-08-2005 06:14 AM

if you announce each song then that thread can be used for the feedback:)

to change the category of a song ... simply edit the song in the admin cp and either select a genre from the list or enter a new genre name

WiseOwl 02-09-2005 11:11 AM

Yo Trafix... set my Jukebox to "members only" to kinda give incentive to register, well found a problem..

When a guest or unregistered member clicks on one of the songs to play it and I have the setting set to the 3rd setting which is "On - For members only" not the "On - For members (Credits Required)" it counts the play as a negative play... is there a quick fix for that???????

trafix 02-09-2005 12:18 PM

hmmm, i will have to look into it

trafix 02-09-2005 12:21 PM

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]";
        }
    } 


spence2 02-09-2005 01:45 PM

Trafix,

As an admin when a user uploads a song and I approve it ... is there any way for me to know what category the user intended for the song? Thanks.

dhurd 02-09-2005 01:57 PM

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

trafix 02-09-2005 07:30 PM

Quote:

Originally Posted by spence2
Trafix,

As an admin when a user uploads a song and I approve it ... is there any way for me to know what category the user intended for the song? Thanks.

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 :)


All times are GMT. The time now is 10:33 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.01585 seconds
  • Memory Usage 1,755KB
  • 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
  • (1)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