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)
-   -   Major Additions - Links and Downloads Manager (https://vborg.vbsupport.ru/showthread.php?t=119041)

ericgtr 10-03-2006 04:27 PM

Quote:

Do I understand you right? You want to create 250 threads, each one pointing to one of your entries in LDM?

Funny thing is, I answered this same question two days ago - take a look at post 424 just above.
Yes, you understand it right. I have a lot of files that I would like new threads created out of :)

I tried that and had no luck, I tested with 30 tables, set all of the linkmoderate fields to -2, went into moderation and accepted them all and it still will not show up in the associated forum.

BTW, thanks for the excellent support I have seen throughout this thread.

obmob 10-03-2006 05:13 PM

Hmm... ok, i'm still struggling with XML a lot :(

I'd really need further explanation about columns and its format.

I want to import over 50 items at once, Andrew told me it's better to use XML for this, so i have my xml file only with the new entries, and this is how i do or don't understand them :D

linkid: well, just follow the last entry in my db
linkname: no problem
linkdoi: i don't use it, it's blank
linkdesc: no prob
linkurl: ok
linkfile: blank
linkimg: it's ok
linkimgthumb to zero
linkhits to zero
linkforum: to -999 i dont use it
linkcheck: No idea :(
linksize: this is built after link validation, right? so, can it be blank?
linkstatus: to 1? what does it mean?
linkstatusimg: also to 1?
linkdate: :( what format is this? i want to put this one after another, if i place the same date and hour, i usually sort them by number or series... so, how do you read this?
linkusername: ok
linkuserid: ok
linkmoderate: i have all to zero
linkreviewfreq: to zero
numrate: zero
totalrate: zero

Hope you can explain this to me, thanks!

ericgtr 10-03-2006 07:12 PM

I got this to work, thanks again for the help Andrew. Maybe this would be good for a future request :) It's a bummer to have to manually sit and approve each link one at a time, with many links that takes quite a while.

Der Sauger1 10-03-2006 08:20 PM

Very nice Hack,but have questions!!

What must i do too addet ED2K links or AJ Links and others Link vormates ??:confused:

Thanks for the work :D :D :D :D :D

AndrewD 10-04-2006 05:09 AM

Quote:

Originally Posted by ericgtr
I got this to work, thanks again for the help Andrew. Maybe this would be good for a future request :) It's a bummer to have to manually sit and approve each link one at a time, with many links that takes quite a while.

Yes, I agree. The alpha code for 2.2.7 has 'select all' options for moderation.

AndrewD 10-04-2006 05:14 AM

Quote:

Originally Posted by Der Sauger1
Very nice Hack,but have questions!!

What must i do too addet ED2K links or AJ Links and others Link vormates ??:confused:

Thanks for the work :D :D :D :D :D


LDM is currently hard coded to accept certain protocols. From what I see, ed2k protocol is straightforward to handle. If you are comfortable playing around with the code, take a look in includes/local_links_include.php Find the block

Code:

// Protocols supported
define('MODE_HIDE', 0);
define('MODE_REDIRECT', 1);
define('MODE_OPEN', 2);
$protocol_schemes = array(
        "http"=> array("mode"=>MODE_HIDE, "validate"=>1, "musicbox"=>1),
        "https"=> array("mode"=>MODE_HIDE, "validate"=>1, "musicbox"=>1),
        "ftp"=> array("mode"=>MODE_HIDE, "validate"=>1, "musicbox"=>1),
        "irc"=> array("mode"=>MODE_OPEN, "validate"=>0, "musicbox"=>0),
        "mms"=> array("mode"=>MODE_HIDE, "validate"=>0, "musicbox"=>2),
);

Maybe you just have to add a new row to the protocol_schemes array, e.g.

Code:

        "ed2k"=> array("mode"=>MODE_HIDE, "validate"=>0, "musicbox"=>0),
I have not tried this.

AndrewD 10-04-2006 05:23 AM

Quote:

Originally Posted by obmob
COLOR=red]linkcheck[/COLOR]: No idea :(
linksize: this is built after link validation, right? so, can it be blank?
linkstatus: to 1? what does it mean?
linkstatusimg: also to 1?
linkdate: :( what format is this? i want to put this one after another, if i place the same date and hour, i usually sort them by number or series... so, how do you read this?

linkcheck and linkdate are both dates, expressed as seconds since 1.1.1970 (there's a nice calculation for you). Easiest way to get these close to correct is just to add an entry to your database and take a look at the value.

linkstatus and linkstatusimg is one of the following:

LINK_BROKEN = 0;
LINK_OK = 1;
LINK_UPLOAD = 2;

Easiest is to set linkstatus to either 0 or 1. If you use 0, then you can subsequently use LDM/admin/statistics/validate broken to check the entries you've added. Leave linkimgstatus as 0 if you have no thumb image.

linksize is always re-built on access, so leave it at 0

I think that's all

Der Sauger1 10-04-2006 05:59 AM

Quote:

Originally Posted by AndrewD
LDM is currently hard coded to accept certain protocols. From what I see, ed2k protocol is straightforward to handle. If you are comfortable playing around with the code, take a look in includes/local_links_include.php Find the block

Code:

// Protocols supported
define('MODE_HIDE', 0);
define('MODE_REDIRECT', 1);
define('MODE_OPEN', 2);
$protocol_schemes = array(
        "http"=> array("mode"=>MODE_HIDE, "validate"=>1, "musicbox"=>1),
        "https"=> array("mode"=>MODE_HIDE, "validate"=>1, "musicbox"=>1),
        "ftp"=> array("mode"=>MODE_HIDE, "validate"=>1, "musicbox"=>1),
        "irc"=> array("mode"=>MODE_OPEN, "validate"=>0, "musicbox"=>0),
        "mms"=> array("mode"=>MODE_HIDE, "validate"=>0, "musicbox"=>2),
);

Maybe you just have to add a new row to the protocol_schemes array, e.g.

Code:

        "ed2k"=> array("mode"=>MODE_HIDE, "validate"=>0, "musicbox"=>0),
I have not tried this.


Okey it add the Link,but not Add this in Client :confused:
That search for the file on my Server???
Thx for to do this

2. i want implantet this Links and Downloads Manager - Patch forumhome to display thumbs of new links/hot linksin cmps 2.2.0 Portal,is ther any modul for to do??

obmob 10-04-2006 03:16 PM

Quote:

Originally Posted by AndrewD
linkcheck and linkdate are both dates, expressed as seconds since 1.1.1970 (there's a nice calculation for you). Easiest way to get these close to correct is just to add an entry to your database and take a look at the value.

linkstatus and linkstatusimg is one of the following:

LINK_BROKEN = 0;
LINK_OK = 1;
LINK_UPLOAD = 2;

Easiest is to set linkstatus to either 0 or 1. If you use 0, then you can subsequently use LDM/admin/statistics/validate broken to check the entries you've added. Leave linkimgstatus as 0 if you have no thumb image.

linksize is always re-built on access, so leave it at 0

I think that's all

wow, i had no idea about that... well, i guess now i can calculate them ^^

http://www.onlineconversion.com/days...n_advanced.htm
Thanks

Another question.

You know? in vb 3.6.1 when i click on LDMs config inside control panel... i'm taken out of it and config is open in the whole page... is this supposed to happen? Oo

Still using 2.2.5

ericgtr 10-04-2006 03:19 PM

Quote:

Originally Posted by AndrewD
Yes, I agree. The alpha code for 2.2.7 has 'select all' options for moderation.

Excellent, and thanks again for this mod! :)


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