vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - Get direct links v1.4 (https://vborg.vbsupport.ru/showthread.php?t=129598)

lazydesis 10-22-2006 08:51 PM

There is a bug in the code i guess ...there is an extra pair of qoutes around get_direct_links_table

see below ... this solved the mysql error

Code:

function doHistory($links,$number) {
        global $vbulletin;
        $vbulletin->db->query_write("INSERT INTO " . TABLE_PREFIX . "`get_direct_links_table`
                (`userid`,`thedate`,`links`,`number`)
                VALUES ('" . $vbulletin->userinfo['userid'] . "', NOW(), '" . $links . "'," . $number . ");");
}

change to
Code:

function doHistory($links,$number) {
        global $vbulletin;
        $vbulletin->db->query_write("INSERT INTO " . TABLE_PREFIX . "get_direct_links_table
                (`userid`,`thedate`,`links`,`number`)
                VALUES ('" . $vbulletin->userinfo['userid'] . "', NOW(), '" . $links . "'," . $number . ");");
}

thanx for the hack :) works great now ...*clicks install*

thedvs 10-22-2006 09:05 PM

this is one of the best hacks ever!

how about megashares.com please! :)

lazydesis 10-23-2006 12:56 AM

If anyone posts the links obtained from this hack in other forums. ..will they still be accessible ???

mrpaint 10-23-2006 02:11 AM

Quote:

Originally Posted by lazyindian
There is a bug in the code i guess ...there is an extra pair of qoutes around get_direct_links_table

see below ... this solved the mysql error

Code:

function doHistory($links,$number) {
        global $vbulletin;
        $vbulletin->db->query_write("INSERT INTO " . TABLE_PREFIX . "`get_direct_links_table`
                (`userid`,`thedate`,`links`,`number`)
                VALUES ('" . $vbulletin->userinfo['userid'] . "', NOW(), '" . $links . "'," . $number . ");");
}

change to
Code:

function doHistory($links,$number) {
        global $vbulletin;
        $vbulletin->db->query_write("INSERT INTO " . TABLE_PREFIX . "get_direct_links_table
                (`userid`,`thedate`,`links`,`number`)
                VALUES ('" . $vbulletin->userinfo['userid'] . "', NOW(), '" . $links . "'," . $number . ");");
}

thanx for the hack :) works great now ...*clicks install*


Yes, I'm very sorry for this problem
Thank you, lazyindian

lazydesis 10-23-2006 03:44 AM

can it be made to function in such a way that when user clicks on get links it actually downloads the file instead of showing the link to them ..because if it shows the link this function can be misused by people who might paste the links in other forums?

mrpaint 10-23-2006 03:52 AM

Quote:

Originally Posted by lazyindian
can it be made to function in such a way that when user clicks on get links it actually downloads the file instead of showing the link to them ..because if it shows the link this function can be misused by people who might paste the links in other forums?

The direct link just available for a few hour (as I know is only 1~3 hour?) so posting this link is useless
By other side, why don't you ban this kind of member? :)

lazydesis 10-23-2006 03:22 PM

Quote:

Originally Posted by mrpaint
The direct link just available for a few hour (as I know is only 1~3 hour?) so posting this link is useless
By other side, why don't you ban this kind of member? :)

Its been 12 hrs since i got a direct link and now i tested it on another machine and it still works fine ... so the links are not expiring ...

can there be a way where the user is not shown the file link ...instead when user clicks on Get Direct Links button ..it actually downloads the file ?

By the way its very diffciult to track such users who paste the links in other forums :(

Rian 10-23-2006 05:55 PM

Great MOD! It works like a charm.

Thanks a million for your time and effort put into this!

DavutPasha 10-23-2006 10:20 PM

what about RS-Link-Checker? Can we add a link checker?

And can add a Premium Account Donation page. A premium account user can donate his account. Adding premium account ids to php file is so dangerous for security. it has to be in database, i think.

I'm waiting new releases. I'm sure, this hack will be second best hack (first is vbadvanced :))

Good works, thank you so much.. :)

DavutPasha 10-24-2006 08:55 AM

That's wonderful, everything is fine, thanks a lot..


All times are GMT. The time now is 12: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.01268 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)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