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)
-   -   vBookie - vBulletin Betting Hack (https://vborg.vbsupport.ru/showthread.php?t=65844)

LoOnEyToOnZ 06-12-2004 12:44 PM

Quote:

Originally Posted by MrNase
you must be insane... how shall i translate that? dozens of templates, many phrases and some english text left in the file :(

Are you talking to me ? Kindly use a better tone towards me or anyone else

Shall i rephrase as "is it possible to use a 0 value inside the AdminCP Action Manager" ?

MrNase 06-12-2004 02:24 PM

ops sorry, i forgot a ':D' after the '...' :(

installed, translated and running, thank you :)

tjdrico 06-12-2004 03:42 PM

Quote:

Originally Posted by LoOnEyToOnZ
Another question - Is the tax a compulsary amount to have ? Cause i had noticed that quite a few items, by default come with a tax amount. Is it okay if we get rid of all the taxes ?

Thanks

vBookie imposes no taxes.

tjdrico 06-12-2004 03:44 PM

Quote:

Originally Posted by MrNase
you must be insane... how shall i translate that? dozens of templates, many phrases and some english text left in the file :(

Sorry for the bits that aren't in templates or phrases. That was just laziness on my part. I assure you that all the templates and phrases are there for a reason though. =)

Tim Wheatley 06-12-2004 04:13 PM

Can someone please tell me where/how I can hard code the userid of those I want to allow to post events? I don't want to risk the complications of setting up new usergroups, as some of those I want to post events are mods, some registered, etc etc. I don't expect this to be added to the hack, btu the knowledge would be useful to some. :)

tjdrico 06-12-2004 06:19 PM

Quote:

Originally Posted by Tim Wheatley
Can someone please tell me where/how I can hard code the userid of those I want to allow to post events? I don't want to risk the complications of setting up new usergroups, as some of those I want to post events are mods, some registered, etc etc. I don't expect this to be added to the hack, btu the knowledge would be useful to some. :)

There are probably a couple of places you should do this. The first would be in newthread.php

There'll be a section like this:

PHP Code:

    if (!($forumperms CANPOSTVBOOKIEEVENT))
    {
        unset(
$_POST['postvbookieevent']);
    } 

You could change that to something like:

PHP Code:

    if (!$bbuserinfo['userid'] != 126)
    {
        unset(
$_POST['postvbookieevent']);
    } 

Also:

PHP Code:

    if (($forumperms CANPOSTVBOOKIEEVENT) && ($vbookiesettings['active'] != 0))
    {
        
$show['vbookieevent'] = true;
    } 

To:

PHP Code:

    if (($bbuserinfo['userid'] == 126) && ($vbookiesettings['active'] != 0))
    {
        
$show['vbookieevent'] = true;
    } 

That should hide the checkbox for adding a new event from everyone but the allowed user.

Then, in vbookie.php, find the section that starts:

PHP Code:

if ($_REQUEST['do'] == 'newevent'

Then, below that, find the lines:

PHP Code:

    if (!($forumperms CANVIEW) OR !($forumperms CANPOSTNEW) OR !($forumperms CANPOSTVBOOKIEEVENT))
    {
        
print_no_permission();
    } 

Change that to:

PHP Code:

    if (!($forumperms CANVIEW) OR !($forumperms CANPOSTNEW) OR !($bbuserinfo['userid'] == 126))
    {
        
print_no_permission();
    } 

There will be a similar change to make in the section that starts:

PHP Code:

if ($_POST['do'] == 'postevent'

Just search on 'CANPOSTVBOOKIEEVENT' to find the two locations.

I think that'd be enough, but it's just from my head and not tested in any way.

stuc 06-12-2004 07:15 PM

I keep getting the error

Parse error: parse error in /usr/local/psa/home/vhosts/forestforum.co.uk/httpdocs/forum/includes/init.php on line 516
Parsing functions.php Time before: 1087071117.6956 Time after: 1087071117.7328 Time taken: 0.037165880203247
--------------------------------------------------------------------------------
Processing sessions.php Time before: 1087071117.7334

which relates to this section

Code:

'stylecache',
'arcadesettings',
// +++ vBookie
'vbookiesettings'
// --- vBookie
), $specialtemplates);

                $datastoretemp = $DB_site->query("
                        SELECT title, data
                        FROM " . TABLE_PREFIX . "datastore
                        WHERE title IN ('" . implode("', '", $specialtemplates)) . "')
                ");

Any ideas?

tjdrico 06-12-2004 07:23 PM

I think the problem is this line:

PHP Code:

WHERE title IN ('" . implode("''", $specialtemplates)) . "'

Maybe you've edited it for some other hack, but I think it should be:

PHP Code:

WHERE title IN ('" . implode("''", $specialtemplates) . "'

i.e. you've ended up with an extra ) in there.

stuc 06-12-2004 07:28 PM

excellent that sorted it - no idea how i missed that! :o

excellent hack by the way i'm sure it will become an essential part of my forum.

(clicked install)

BarHopper 06-12-2004 09:36 PM

I need this hack!! I attempted it, but i messed up on msot of the file eidts,

Is anyone interested doing the file edits for me? Just the include ones? I'll pay


All times are GMT. The time now is 04:31 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.01443 seconds
  • Memory Usage 1,767KB
  • 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_code_printable
  • (10)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
  • (3)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