vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Major Additions - Links and Downloads Manager (https://vborg.vbsupport.ru/showthread.php?t=166094)

MissKalunji 09-09-2008 03:22 PM

- Would there be anyway to transform the "Favorite" into a mp3 player ?

Like everytime you add a media to favorite...and you go to your favorite it would show the mp3 player with the favorite as a playlist??

- Is there any (simple way) when you press play on one song (example) and you press another one for the previous one to stop playing?

- When you're using the (mp3 button) would be nice to have a loading message or something cause sometimes i press play and it takes a little bit to load

AndrewD 09-09-2008 03:25 PM

Quote:

Originally Posted by sparklywater (Post 1618195)
Thanks for taking your time to reply. I tried making that change but it didn't do what I had asked. To clarify, I am providing an image below of the "Who's Online" display. The entry that has been circled in red is the link that should go directly to the embedded player page when a person clicks on that link. But the user is taken to a non-embedded page instead:


You need to make a similar change in the code attached to hook online_location_unknown. However, this code is somewhat more complex and I'm sitting in a train station, so I prefer not to give you a definitive answer at the moment.

sparklywater 09-09-2008 06:24 PM

Quote:

Originally Posted by AndrewD (Post 1618278)
You need to make a similar change in the code attached to hook online_location_unknown. However, this code is somewhat more complex and I'm sitting in a train station, so I prefer not to give you a definitive answer at the moment.

no problem, but please don't forget to let me know when you get the chance.

MissKalunji 09-09-2008 08:48 PM

Quote:

Originally Posted by MissKalunji (Post 1618274)
- Would there be anyway to transform the "Favorite" into a mp3 player ?

Like everytime you add a media to favorite...and you go to your favorite it would show the mp3 player with the favorite as a playlist??

- Is there any (simple way) when you press play on one song (example) and you press another one for the previous one to stop playing?

- When you're using the (mp3 button) would be nice to have a loading message or something cause sometimes i press play and it takes a little bit to load

and is there anyways to cut down on the queries for vbadvanced? is 6 queries really necessary? like i only wanna show the Title and the Play button?

AndrewD 09-10-2008 04:20 AM

Quote:

Originally Posted by MissKalunji (Post 1618274)
- Would there be anyway to transform the "Favorite" into a mp3 player ?

Like everytime you add a media to favorite...and you go to your favorite it would show the mp3 player with the favorite as a playlist??

Let me think about this. I'm reworking a number of things like this for version 2.3.0

Quote:

Originally Posted by MissKalunji (Post 1618274)
- Is there any (simple way) when you press play on one song (example) and you press another one for the previous one to stop playing?

- When you're using the (mp3 button) would be nice to have a loading message or something cause sometimes i press play and it takes a little bit to load

These require a bit of Javascript.

The Wimpy mp3 button is a self-contained commercial product and until recently I don't think the authors described the scripting interface. (The JWplayer is much better in that respect, as well as being free, although I still have to figure out how to do these things with version 4.x.)

AndrewD 09-10-2008 04:24 AM

Quote:

Originally Posted by MissKalunji (Post 1618511)
and is there anyways to cut down on the queries for vbadvanced? is 6 queries really necessary? like i only wanna show the Title and the Play button?

Well, I suppose I could keep all the information on tablets of stone instead and read the information out loud ;)

Seriously, I'm not sure whether 6 queries is the bare minimum with the vbadvanced - the stand alone code for version 2.3.0 makes better use of the datastore cache, but I've not yet looked to see whether the vba interface gives access to the datastore at the right time.

MissKalunji 09-10-2008 04:46 AM

Quote:

Originally Posted by AndrewD (Post 1618729)
Let me think about this. I'm reworking a number of things like this for version 2.3.0


These require a bit of Javascript.

The Wimpy mp3 button is a self-contained commercial product and until recently I don't think the authors described the scripting interface. (The JWplayer is much better in that respect, as well as being free, although I still have to figure out how to do these things with version 4.x.)

Great Thanks

Quote:

Originally Posted by AndrewD (Post 1618730)
Well, I suppose I could keep all the information on tablets of stone instead and read the information out loud ;)

Seriously, I'm not sure whether 6 queries is the bare minimum with the vbadvanced - the stand alone code for version 2.3.0 makes better use of the datastore cache, but I've not yet looked to see whether the vba interface gives access to the datastore at the right time.

lol Cool i'm just very careful with queries. Merci :)

realmr 09-10-2008 10:32 AM

can this be used as an link directory ? Displaying links of submitted sites in an external vb-page ?

obmob 09-10-2008 03:03 PM

Well... it is a links and downloads manager after all :p

AndrewD 09-10-2008 04:02 PM

Quote:

Originally Posted by realmr (Post 1618864)
can this be used as an link directory ? Displaying links of submitted sites in an external vb-page ?

Absolutely. Install it, and integrate it with vbadvanced.

AndrewD 09-10-2008 04:04 PM

Quote:

Originally Posted by Alfa1 (Post 1615426)
Is there anything special that I need to do to get ldm_new_media.module working? ldm_new.module works fine.

What is the problem? I delayed replying until I had a chance to retest this, and it seems ok to me.

glowinggal 09-11-2008 12:33 AM

hey there :) We have recently upgraded to 2.9.9 R3 hoping that it would correct the issue we seem to be having... we have the directory listed correctly in our admin for the images upload but when we upload an image it actually uploads to the server and is present... but when we view the download; it doesn't show an image

For instance one of the downloads is this and you can link directly to the image it should be linking to for the thumbnail but the thumbnail doesn't actually show WITH the download listed in the category :\

http://www.scrapbook-bytes.com/chat/...0317956368.jpg


heeeellllp =]

jwashburn 09-11-2008 12:38 AM

Getting this error when creating a new link

vBulletin Message
New entry accepted. Unfortunately, a thread could not be created in forum for the following reason:
Access denied.

Return

This is when I have the auto create announcement feature turned on.

Any ideas?

AndrewD 09-11-2008 03:54 AM

Quote:

Originally Posted by glowinggal (Post 1619539)
hey there :) We have recently upgraded to 2.9.9 R3 hoping that it would correct the issue we seem to be having... we have the directory listed correctly in our admin for the images upload but when we upload an image it actually uploads to the server and is present... but when we view the download; it doesn't show an image

For instance one of the downloads is this and you can link directly to the image it should be linking to for the thumbnail but the thumbnail doesn't actually show WITH the download listed in the category :\

http://www.scrapbook-bytes.com/chat/...0317956368.jpg


heeeellllp =]

By all means send me a PM with site details and an admin account - I will take a look.

AndrewD 09-11-2008 04:04 AM

Quote:

Originally Posted by jwashburn (Post 1619543)
Getting this error when creating a new link


vBulletin Message
New entry accepted. Unfortunately, a thread could not be created in forum for the following reason:
Access denied.

Return

Have you got LDM set up to post to the forum under a particular username, and is the forum only open for posting by certain usergroups?

There is a bug in version 2.2.9-post1, corrected in 2.2.9-post3, which gives the error message you report in that situation.

Simon Lloyd 09-11-2008 10:40 AM

Quote:

Originally Posted by Simon Lloyd (Post 1599814)
Andrew, thanks for your help last night!, can i ask is it possible (as mostly i intend my downloads to be text files) to have an excerpt or uncopiable show (including scrollbars) of the text in the item window? just so the folk can see what they are getting but can't copy it until they are in the download usergroup?

Hi Andrew, i know how busy you are but any ideas with the above?

Regards,
Simon

glowinggal 09-11-2008 12:40 PM

Quote:

Originally Posted by AndrewD (Post 1619615)
By all means send me a PM with site details and an admin account - I will take a look.

will do now :) TY!

sparklywater 09-11-2008 02:51 PM

Quote:

Originally Posted by AndrewD (Post 1618278)
You need to make a similar change in the code attached to hook online_location_unknown. However, this code is somewhat more complex and I'm sitting in a train station, so I prefer not to give you a definitive answer at the moment.

Just a reminder to please address this sometime soon when you can...

Thanks.

AndrewD 09-13-2008 10:58 AM

Quote:

Originally Posted by sparklywater (Post 1619890)
Just a reminder to please address this sometime soon when you can...

Thanks.

Go to vb/admincp/products and plugins/plugin manager

Edit the plugin Links and Downloads Manager - Handle Who's Online attached to hook online_location_unknown

Find the lines:
PHP Code:

    elseif ($linkid) {
        
$thisone $vbulletin->db->query_first("
            SELECT linkid, linkname
            FROM " 
THIS_TABLE "linkslink
            WHERE linkid = '"
.$linkid."'
            LIMIT 1
        "
);
        
$userinfo['where'] = '<a href="'.LINKS_SCRIPT.'.php?catid='.$catid.'&linkid='.$linkid.'">'.$thisone['linkname'].'</a>';
    } 

and change to
PHP Code:

    elseif ($linkid) {
        
$thisone $vbulletin->db->query_first("
            SELECT linkid, linkname
            FROM " 
THIS_TABLE "linkslink
            WHERE linkid = '"
.$linkid."'
            LIMIT 1
        "
);
        
$userinfo['where'] = '<a href="'.LINKS_SCRIPT.'.php?action=play&catid='.$catid.'&linkid='.$linkid.'">'.$thisone['linkname'].'</a>';
    } 

and save.

This will change the link for *all* entries to a direct "play"

AndrewD 09-13-2008 12:09 PM

A number of people have reported that they are having problems with file uploads, with the message:

Your submission could not be processed because a security token was missing.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.


This is probably a result of trying to upload files which are larger than your php settings allow.

If you experience this error, go to vb/admincp/maintenance/php info. Look in the section "PHP Core", for the following values:

post_max_size

and

upload_max_filesize

If the value of post_max_size is smaller than or the same size as upload_max_filesize, then things go badly wrong in ways that vbulletin/LDM cannot handle.

Solution - make sure that post_max_size is set to a larger value than upload_max_filesize in the php.ini file.

If you've no idea what I'm talking about, speak to your server administrator.

sparklywater 09-13-2008 03:06 PM

Quote:

Originally Posted by AndrewD (Post 1621068)
Go to vb/admincp/products and plugins/plugin manager

Edit the plugin Links and Downloads Manager - Handle Who's Online attached to hook online_location_unknown

Find the lines:

...

and save.

This will change the link for *all* entries to a direct "play"

Thanks for that. This is now working for all 'playable' media like streaming audio. But if the link is directed to an image in LDM, I get the message 'Invalid filetype specified.'

Any idea how to solve this?

Saint_I_Am 09-14-2008 11:07 AM

How can I add a youtube video? I installed the flash sites plugin and found a youtube video as a test and added the url for it.

Am I missing something?

sparklywater 09-14-2008 12:59 PM

Quote:

Originally Posted by Saint_I_Am (Post 1621865)
How can I add a youtube video? I installed the flash sites plugin and found a youtube video as a test and added the url for it.

Am I missing something?

Try installing this mod and then embed the video:

https://vborg.vbsupport.ru/showthread.php?t=130868

AndrewD 09-14-2008 02:26 PM

Quote:

Originally Posted by sparklywater (Post 1621249)
Thanks for that. This is now working for all 'playable' media like streaming audio. But if the link is directed to an image in LDM, I get the message 'Invalid filetype specified.'

Any idea how to solve this?

The attached is a complete replacement for the online_location_unknown plugin. It should be smart enough to tell the difference between playable media and other files. Let me know. I will make this standard behaviour in 2.3.0

AndrewD 09-14-2008 02:37 PM

Quote:

Originally Posted by Saint_I_Am (Post 1621865)
How can I add a youtube video? I installed the flash sites plugin and found a youtube video as a test and added the url for it.

Am I missing something?

The flash sites plugin seems to work ok for me with youtube. Install it (nb, remember to upload the includes/local_links_flashsite.php file as well) and then create an entry with url that points to a youtube video (i used http://www.youtube.com/watch?v=dompotjTeIA). The hyperlink on the LDM entry title shows a "Play Me" popup when you hover over it. Clicking the link takes you to the jukebox and it plays ok.

What is the situation your end?

sparklywater 09-14-2008 03:11 PM

Quote:

Originally Posted by AndrewD (Post 1621980)
The attached is a complete replacement for the online_location_unknown plugin. It should be smart enough to tell the difference between playable media and other files. Let me know. I will make this standard behaviour in 2.3.0

Thanks, but is it not possible to make all the links direct instead of having the intermediate preview pages? For example, now the direct play links are shown when 'Who's Online' says 'Playing content from LDM', but if the Who's Online display says 'ACCESSING content from LDM' (even for the playable entries) then the INDIRECT links are still shown like before (ie. not taken directly to the embedded page).

I think it would be best to make everything directly link to the entries in Who's Online in order to avoid confusion and make the redirection process efficient. There is also one other problem which will be eliminated if all the links are made direct instead of having the preview pages which use the 'links_main' template.

AndrewD 09-14-2008 03:30 PM

Quote:

Originally Posted by sparklywater (Post 1622014)
Thanks, but is it not possible to make all the links direct instead of having the intermediate preview pages? For example, now the direct play links are shown when 'Who's Online' says 'Playing content from LDM', but if the Who's Online display says 'ACCESSING content from LDM' (even for the playable entries) then the INDIRECT links are still shown like before (ie. not taken directly to the embedded page).

I think it would be best to make everything directly link to the entries in Who's Online in order to avoid confusion and make the redirection process efficient. There is also one other problem which will be eliminated if all the links are made direct instead of having the preview pages which use the 'links_main' template.

Different people will want different things. I've now done three versions of this for you, and each time you seem to explain that you want something different. What you are now describing requires loading quite a lot of the LDM infrastructure in order to work out what each user is actually doing and to deal with different combinations of permissions, etc. I don't think that this is justified just to save some people one click.

AndrewD 09-14-2008 03:56 PM

** Deleted - Beta 1 release now available here

abdelghani68 09-14-2008 04:16 PM

Thanks. I have upgrade.

sparklywater 09-14-2008 05:03 PM

If the 'default_sort_order' is set to 'Title (ascending)' for a given category, and the entries in that category are an ascending list of numbers (1, 2, 3, 4, 5 ... 100 ), then LDM does not correctly list these entries in ascending order of numbers. Instead, it lists the numbers like this:

1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 2, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 3, 30, 31, 32, 33 ...

abdelghani68 09-14-2008 05:29 PM

in the version 2.3.0 :

How to center the title :

http://www.monsterup.com/upload/1221416681.jpg

How to do for the bcode isn't display in the previsualisation :

http://www.monsterup.com/upload/1221416907.jpg

thanks

AndrewD 09-14-2008 05:51 PM

Quote:

Originally Posted by sparklywater (Post 1622080)
If the 'default_sort_order' is set to 'Title (ascending)' for a given category, and the entries in that category are an ascending list of numbers (1, 2, 3, 4, 5 ... 100 ), then LDM does not correctly list these entries in ascending order of numbers. Instead, it lists the numbers like this:

1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 2, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 3, 30, 31, 32, 33 ...

This is a well-known problem with computer sorts - they don't do what people consider right! It seems that one can fix the problem without any unwanted side effects by making a small change to the database query.

edit includes/local_links_include.php

find function ldm_get_sortsql and change the function's code as follows:

PHP Code:

function ldm_get_sortsql($sort$withlinkdorder=1) {
    
$linkdorder = ($withlinkdorder "linkdorder ASC, " "");
    if (
is_numeric($sort)) {
        
$sorder $linkdorder."  linkrecenthits DESC, linkname + 0 ASC, linkcatid ASC";
    }
    else {
        switch (
$sort) {
        case 
'r'$sorder $linkdorder."  IF(numrate>0,(totrate/numrate),numrate) DESC, linkname + 0 ASC, linkcatid ASC"; break;
        case 
'R'$sorder $linkdorder."  IF(numrate>0,(totrate/numrate),numrate) ASC,  linkname + 0 ASC, linkcatid ASC"; break;
        case 
'd'$sorder $linkdorder."  linkdate DESC, linkname + 0 ASC, linkcatid ASC"; break;
        case 
'D'$sorder $linkdorder."  linkdate ASC,  linkname + 0 ASC, linkcatid ASC"; break;
        case 
'h'$sorder $linkdorder."  linkhits DESC, linkname + 0 ASC, linkcatid ASC"; break;
        case 
'H'$sorder $linkdorder."  linkhits ASC,  linkname + 0 ASC, linkcatid ASC"; break;
        case 
'u'$sorder $linkdorder."  linkusername + 0 DESC,  linkname + 0 ASC, linkcatid ASC"; break;
        case 
'U'$sorder $linkdorder."  linkusername + 0 ASC,  linkname + 0 ASC, linkcatid ASC"; break;
        case 
'n'$sorder $linkdorder."  linkname + 0 DESC, linkcatid ASC"; break;
        case 
'N':
        default:  
$sorder $linkdorder."  linkname + 0 ASC,  linkcatid ASC"; break;
        }
    }

    (
$hook vBulletinHook::fetch_hook('ldm_sortsql_complete')) ? eval($hook) : false;

    return 
$sorder;


(the change is to add "+ 0" after every text field)

AndrewD 09-14-2008 06:07 PM

Quote:

Originally Posted by abdelghani68 (Post 1622092)
in the version 2.3.0 :

How to center the title :


How to do for the bcode isn't display in the previsualisation :


thanks

Not sure - both of these work fine for me.

are you sure you've got bbcodes enabled on the ldm admin/settings page?

sparklywater 09-14-2008 06:46 PM

Quote:

Originally Posted by AndrewD (Post 1622102)
This is a well-known problem with computer sorts - they don't do what people consider right! It seems that one can fix the problem without any unwanted side effects by making a small change to the database query.

edit includes/local_links_include.php

find function ldm_get_sortsql and change the function's code as follows:

---

(the change is to add "+ 0" after every text field)


Thanks, that's now sorted (pun is intended) :)

sparklywater 09-14-2008 07:37 PM

I've just checked my other category listing and the above change has messed up the alphabetical order of the list. I will be undoing those changes now.



TsirhCitna 09-14-2008 08:48 PM

The new media vba module drastically slows my page generation.

From: Page generated in 0.35296 seconds with 26 queries [Server Loads: 8.33 8.54 : 10.39]
To: Page generated in 6.83178 seconds with 35 queries [Server Loads: 8.72 8.50 : 10.01]

9 more queries to show 5 links?

MissKalunji 09-14-2008 09:01 PM

Quote:

Originally Posted by AndrewD (Post 1622039)
The most noticable change is to the 'inline comment and ratings'. These can be ajax-enabled so that quick remarks can be added without having to go to the advanced comment and rating page, and the most recent remarks can be seen on every linkbit page.

Uhm heads up the ajax comment isn't working when i press the comment it still loads the other page...

Saint_I_Am 09-14-2008 09:52 PM

Quote:

Originally Posted by AndrewD (Post 1621989)
The flash sites plugin seems to work ok for me with youtube. Install it (nb, remember to upload the includes/local_links_flashsite.php file as well) and then create an entry with url that points to a youtube video (i used http://www.youtube.com/watch?v=dompotjTeIA). The hyperlink on the LDM entry title shows a "Play Me" popup when you hover over it. Clicking the link takes you to the jukebox and it plays ok.

What is the situation your end?

I have everything installed ok. When I click on the file a new window opens and it redirects to the YouTube page where the video is

yahoooh 09-14-2008 10:27 PM

AndrewD
i have folder with more than 3000 bmp images
i want to put it in category with description begin like this:
HTML Code:

[img]https://vborg.vbsupport.ru/external/2008/09/1.bmp[/img]
and so on for other files
this will give the picture appearing in the description
i open new category , i run scan admin
and it insert all files but the error is not write description as i want

i use this in:links_scantext
PHP Code:

$file[name] [img]https://vborg.vbsupport.ru/[/img] 

but $file[name] not show any thing !
i test the default template and also it will not whow the filename
i need to show filename with extension also to make it work

plz help me
thanks

Kosovarap 09-15-2008 12:27 AM

This is by far the best mod in my opinion. Great stuff.
Installed, looks/works great. I just need to learn a little about it.
So i got a few questions:

- I use the scan/server option, to add Songs for example, but it says:
Code:

Skipped (not in mimetype table): mp3 [14]
How do i add them into mimetype table?

I noticed there's Media Players to stream them directly, but i have no idea how to use them, insert them.
How do I use the Media players? Is there a command i should know?


I appreciate the work,
Thank you


All times are GMT. The time now is 09:24 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.03370 seconds
  • Memory Usage 1,900KB
  • 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
  • (1)bbcode_html_printable
  • (4)bbcode_php_printable
  • (27)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
  • (40)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