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)

Saint_I_Am 09-15-2008 12:58 AM

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?

The url of the youtube video I am trying to add for example is http://au.youtube.com/watch?v=??????? I need it so that members in Australia can use that first url format

But if I change the url to http://www.youtube.com/watch?v=??????? it now displays play me when I hover the mouse over it. When I click it, it goes to another page with a table saying vbulletin message, but there is no message in the box. The url of the page for example is

http://mysite.com/local_links.php?ac...nkid=19&page=1

It did the same thing when I uploaded the test videos in the flash sites file. I've looked at permissions and everything looks fine.

Hope you can solve those two issues for me

MissKalunji 09-15-2008 01:20 AM

suggestion

download permissions enabled per entry :) i don't know if you get what i mean?

Saint_I_Am 09-15-2008 01:54 AM

I am the admin so all permissions should be correct

Saint_I_Am 09-15-2008 02:25 AM

Got the youtube video to play, it was in "LDM FlashSite VideoPlayer " was set to stream instead of url.

Still need help on the file name issue in the post above.

Also in settings it is set to open in new window, yet it doesn't

abdelghani68 09-15-2008 03:16 AM

Quote:

Originally Posted by AndrewD (Post 1622108)
Not sure - both of these work fine for me.

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

Yes the bbcode is enable. The probleme when the bbcode are display in the previsualisation of the comment is only in one categorie. Not in all categories.

This probleme wasn't with ldm 2.2.9.

thanks

AndrewD 09-15-2008 04:00 AM

Quote:

Originally Posted by TsirhCitna (Post 1622215)
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?

I have not started testing/debugging the vba modules, but I am very surprised. Will investigate. Thanks

AndrewD 09-15-2008 04:02 AM

Quote:

Originally Posted by MissKalunji (Post 1622222)
Uhm heads up the ajax comment isn't working when i press the comment it still loads the other page...

Just to confirm - you are using the 'inline' rather than the 'drop down' comments and you have checked the 'ajax enabled' option? Drop down is not ajax enabled.

AndrewD 09-15-2008 04:08 AM

Quote:

Originally Posted by Kosovarap (Post 1622309)
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

The 'mimetype' table is the vbulletin/admincp/attachments/attachments manager. Each filetype that you want LDM to recognise as uploadable/downloladable/playable must be listed in this table, with approriate mimetype information (this is basically a standard convention for telling computers what to do with file contents.) For mp3, the appropriate mimetype info is "Content-type: audio/mpeg"

You can either add the required types manually, or I provide an addin in the release 'extras' directory (add-mimetypes) which automatically adds most of the common types in one go.

The media player will automatically become available via the entry name in the lDM displays once the media file types are defined in that table.

MissKalunji 09-15-2008 04:10 AM

Quote:

Originally Posted by AndrewD (Post 1622406)
Just to confirm - you are using the 'inline' rather than the 'drop down' comments and you have checked the 'ajax enabled' option? Drop down is not ajax enabled.

My bad i never noticed i had to set : dropdown_comment_and_rate to 0 for it to work.....It's fine now :)

everything's working fine so far. Soon going to upgrade on my main board to test it out

oh and hope you won't be mad it's Favorite not favourite *hides face*

AndrewD 09-15-2008 04:22 AM

Quote:

Originally Posted by yahoooh (Post 1622256)
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]http://www.mysitename.com/folder/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]http://www.mysite.com/$file[dir]/$file[name][/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

When the template is called, $file contains the following:

["dir"] => file directory
["prefix"]=> filename prefix
["type"]=> filename filetype
["linkname"]=> normally the same as prefix, unless user code attached to the ldm_addlink_getfileinfo hook has modified it

Code attached to the ldm_addlink_getfileinfo hook can also dump other information into that array.

So I think you need $file[prefix].$file[type] rather than $file[name]

AndrewD 09-15-2008 04:26 AM

Quote:

Originally Posted by Saint_I_Am (Post 1622321)
The url of the youtube video I am trying to add for example is http://au.youtube.com/watch?v=??????? I need it so that members in Australia can use that first url format

This needs a minor change in include/local_links_flashplayers.php - I would like to test the change before explaining it - expect a reply this evening.

vbboarder 09-15-2008 06:22 AM

Thanks Andrew for the update to 2.3.0-alpha! I'm really looking forward to trying it out! I really like the ajax-enabled ratings/comments and the enhancement upgrades for id3 tags.... which reminds me of:

Feature Request: The # of attributes can become large and unwieldy for a site that allows many filetypes. This can be overwhelming for users posting new entries. To make attributes more manageable, can you add 2 features:
1. For each attribute group, can you show them inside a collapsible table (similar to VB's collapsible forum tables) and provide options of having or not having each group initially collapsed?
2. Can you allow attribute groups to be assignable to categories so that a group will appear when adding/ editing an entry only if the category has enabled that attribute group?
Thanks for considering these requests.

AndrewD 09-15-2008 09:46 AM

Quote:

Originally Posted by vbboarder (Post 1622471)
Thanks Andrew for the update to 2.3.0-alpha! I'm really looking forward to trying it out! I really like the ajax-enabled ratings/comments and the enhancement upgrades for id3 tags.... which reminds me of:

Feature Request: The # of attributes can become large and unwieldy for a site that allows many filetypes. This can be overwhelming for users posting new entries. To make attributes more manageable, can you add 2 features:
1. For each attribute group, can you show them inside a collapsible table (similar to VB's collapsible forum tables) and provide options of having or not having each group initially collapsed?
2. Can you allow attribute groups to be assignable to categories so that a group will appear when adding/ editing an entry only if the category has enabled that attribute group?
Thanks for considering these requests.

I think these are very sensible suggestions for taking attributes forward, and will see what I can do to implement them.

Saint_I_Am 09-15-2008 12:52 PM

Quote:

Originally Posted by AndrewD (Post 1622421)
This needs a minor change in include/local_links_flashplayers.php - I would like to test the change before explaining it - expect a reply this evening.

Thanks, looking forward to it

AndrewD 09-15-2008 03:52 PM

Quote:

Originally Posted by MissKalunji (Post 1622411)
oh and hope you won't be mad it's Favorite not favourite *hides face*

Outraged and incandescent :mad: - had that discussion with another dasterdly foreigner a couple of years back - am quite happy to distribute another language translation if someone can handle it - like all Brits, I don't speak other languages very well :):)

AndrewD 09-15-2008 04:07 PM

Quote:

Originally Posted by Saint_I_Am (Post 1622597)
Thanks, looking forward to it

Edit includes/local_links_flashsites.php, find the lines:

PHP Code:

"YouTube" => array(
    
"pattern" => "#http://(www.youtube|youtube)\.com/watch\?v=([\w-]+)#i",
    
"urlreplace" => "http://www.youtube.com/v/$2"

and replace by

PHP Code:

"YouTube" => array(
    
"pattern" => "#http://([a-z]+.youtube|youtube)\.com/watch\?v=([\w-]+)#i",
    
"urlreplace" => "http://$1.com/v/$2"

This will work with any alphabetical alternative to www.youtube

Please note that a number of the video sites originally coded in that 'extra' may not work any longer - I don't have time to keep checking them an dthe sites do tend to change the formats of their urls.

MissKalunji 09-15-2008 04:09 PM

Quote:

Originally Posted by AndrewD (Post 1622683)
Outraged and incandescent :mad: - had that discussion with another dasterdly foreigner a couple of years back - am quite happy to distribute another language translation if someone can handle it - like all Brits, I don't speak other languages very well :):)

oh lol i don't really care i thought you never noticed *hangs head* sorry

AndrewD 09-15-2008 04:11 PM

Quote:

Originally Posted by sparklywater (Post 1622174)
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.

Sorry to discover that. I am surprised that the site I got the information from said that there were no side effects. As far as I know, MySQL does not offer a 'natural order' search option, which is what you are looking for, and the alternative of doing this in php will make page generation much more costly.

You can always try the old trick of putting zeros at the beginning of the labels, so that they are all the same length.

AndrewD 09-15-2008 04:27 PM

Quote:

Originally Posted by TsirhCitna (Post 1622215)
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?

As I said, I'm somewhat surprised. I ran a test on a vba page using only the new media module and attach the results. The 2.3.0 code used 10 queries and took 0.24 seconds. The 2.2.9 code used 15 queries and took 0.40 seconds.

Any chance that you were doing something else at the same time?

sparklywater 09-15-2008 04:50 PM

Quote:

Originally Posted by AndrewD (Post 1622030)
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.

If you look at this preview of an entry of a pdf file:


https://vborg.vbsupport.ru/attachmen...1&d=1221500888


Do you see in the red circle the extended description of a category is displayed?
If this is a preview of an entry, then why is the description of a category displayed here?

skooby 09-15-2008 05:54 PM

Hi,
is it possible to have one uploaded file be accessible to everyone? I guess what 'm asking is, can you set one upload to override the default settings?

I have 1 file that I want guests and registered users both to be able to see and download.

dranet 09-15-2008 06:41 PM

I have this installed and am having problems with uploads. We have the max file size set to 30meg (in both vbulletin and in php.ini). I have been able to successfully upload 4 meg files, but the larger ones don't upload. I'm not getting any error at all. All it does is take the uploader back to the categories screen and the file is not there.

Help? I'm using 2.2.9 post 3, vb 1.3.7

Thanks!
Tracy

AndrewD 09-15-2008 06:53 PM

Quote:

Originally Posted by skooby (Post 1622759)
Hi,
is it possible to have one uploaded file be accessible to everyone? I guess what 'm asking is, can you set one upload to override the default settings?

I have 1 file that I want guests and registered users both to be able to see and download.

LDM has two different permissions systems available - its own, which is category based, and a forum-based mechanism. The first is easier to apply, but the second is more flexible, because it can be applied right down to individual entries.

Do you want to place the special upload in the same category as other entries, or not? If you are happy to have the open entry in its own category, then it's easy - you just give that category different access permissions (ldm/edit category/user group permissions).

Otherwise, you need to use the forums-based permissions system.

These are explained in the wiki - get back to me if it's not clear.

AndrewD 09-15-2008 06:57 PM

Quote:

Originally Posted by dranet (Post 1622797)
I have this installed and am having problems with uploads. We have the max file size set to 30meg (in both vbulletin and in php.ini). I have been able to successfully upload 4 meg files, but the larger ones don't upload. I'm not getting any error at all. All it does is take the uploader back to the categories screen and the file is not there.

Help? I'm using 2.2.9 post 3, vb 1.3.7

Thanks!
Tracy

Possibly, the script is timing out before the upload completes. Are you using the standard file upload, or have you tried installing the swfupload 'extra', which gives you a progress bar?

AndrewD 09-15-2008 07:14 PM

Quote:

Originally Posted by sparklywater (Post 1622722)
If you look at this preview of an entry of a pdf file:

Do you see in the red circle the extended description of a category is displayed?
If this is a preview of an entry, then why is the description of a category displayed here?

The logic is that you are looking at an entry within its category. In the standard links_main template (which I think you've modified), it makes sense to show the extended description within the category title box.

You can always hide the extended description by including a text on $viewcatid in the template. In the standard links_main template, you have this sequence:
Code:

<if condition="$viewcattext or $viewcatextra">
<tr>
        <td class="alt1">
        $viewcattext
        <div class="smallfont alt1" style="float:$stylevar[right]" align="$stylevar[right]">$viewcatextra</div>
        </td>
</tr>
</if>

which you could change to

Code:

<if condition="($viewcattext or $viewcatextra) and !$viewlinkid">
<tr>
        <td class="alt1">
        $viewcattext
        <div class="smallfont alt1" style="float:$stylevar[right]" align="$stylevar[right]">$viewcatextra</div>
        </td>
</tr>
</if>


dranet 09-15-2008 07:22 PM

That is what it looks like. Our information panel on the left says 60 seconds. Do you know how to change that setting? Is it done in the program or is that something in mysql?

I'm using the standard file upload. I'm not familiar with swfupload - do you think it will help? How do I find it?

Thanks again!
Tracy

Quote:

Originally Posted by AndrewD (Post 1622807)
Possibly, the script is timing out before the upload completes. Are you using the standard file upload, or have you tried installing the swfupload 'extra', which gives you a progress bar?


skooby 09-15-2008 07:30 PM

Quote:

Originally Posted by AndrewD (Post 1622805)
LDM has two different permissions systems available - its own, which is category based, and a forum-based mechanism. The first is easier to apply, but the second is more flexible, because it can be applied right down to individual entries.

Do you want to place the special upload in the same category as other entries, or not? If you are happy to have the open entry in its own category, then it's easy - you just give that category different access permissions (ldm/edit category/user group permissions).

Otherwise, you need to use the forums-based permissions system.

These are explained in the wiki - get back to me if it's not clear.

Thanks for the response. I read the wiki and understand how both work, but from what I'm reading in the Wiki, I don't understand how to actually give individual permissions to one entry.

The default permission for the category is to deny access to unregistered users, but I want unregistered users to be able to download one entry within that category, and not sure how to go about doing that (without giving unregistered users access to everything in that

Do I have to create a special usergroup that has read permissions for guests, but then I'm not sure how I would apply the permissions to that one specific entry (and not the entire category).

dranet 09-15-2008 07:39 PM

Quote:

Originally Posted by skooby (Post 1622829)
Thanks for the response. I read the wiki and understand how both work, but from what I'm reading in the Wiki, I don't understand how to actually give individual permissions to one entry.

The default permission for the category is to deny access to unregistered users, but I want unregistered users to be able to download one entry within that category, and not sure how to go about doing that (without giving unregistered users access to everything in that

Do I have to create a special usergroup that has read permissions for guests, but then I'm not sure how I would apply the permissions to that one specific entry (and not the entire category).

I think the easiest thing would be to create a category specifically for the file and unregistered users. If you want the file in a specific category, you can upload it twice.

obmob 09-15-2008 09:43 PM

So many posts to read x.x

Thanks for the update Andrew :D

Saint_I_Am 09-15-2008 10:40 PM

Quote:

Originally Posted by AndrewD (Post 1622696)
Edit includes/local_links_flashsites.php, find the lines:

PHP Code:

"YouTube" => array(
    
"pattern" => "#http://(www.youtube|youtube)\.com/watch\?v=([\w-]+)#i",
    
"urlreplace" => "http://www.youtube.com/v/$2"

and replace by

PHP Code:

"YouTube" => array(
    
"pattern" => "#http://([a-z]+.youtube|youtube)\.com/watch\?v=([\w-]+)#i",
    
"urlreplace" => "http://$1.com/v/$2"

This will work with any alphabetical alternative to www.youtube

Please note that a number of the video sites originally coded in that 'extra' may not work any longer - I don't have time to keep checking them an dthe sites do tend to change the formats of their urls.

Works great, thank you

abdelghani68 09-16-2008 01:33 PM

I woul'd likre when inlineJWplayer_active is enable, the lecteur is in the center.

How to do that please?

Thanks

AndrewD 09-16-2008 02:07 PM

Quote:

Originally Posted by abdelghani68 (Post 1623353)
I woul'd likre when inlineJWplayer_active is enable, the lecteur is in the center.

How to do that please?

Thanks

The player is dropped into the links_linkbit (or whatever) template as variable $linkbottomline. If you edit that template, look for the section:
Code:

<if condition="$linkbottomline">
        <table cellpadding="0" cellspacing="0" border="0" width="100%">
        <tr>
                <td style="padding-top:5px">
                $linkbottomline
                </td>
        </tr>
        </table>
</if>

Put an align=center on the td element.

Kosovarap 09-16-2008 05:39 PM

Thank you Andrew, appreciate the help. One last thing, hopefully i'll be set, if i wanted to add ads "Adsense" to comments, players, Extended Description, is there something in extras i should look, or is this a manual option,
thanks again,

TsirhCitna 09-17-2008 01:57 AM

Quote:

Originally Posted by AndrewD (Post 1622708)
As I said, I'm somewhat surprised. I ran a test on a vba page using only the new media module and attach the results. The 2.3.0 code used 10 queries and took 0.24 seconds. The 2.2.9 code used 15 queries and took 0.40 seconds.

Any chance that you were doing something else at the same time?

Nope. Just tried it again. ldm_new.php module off and on:

dilbert 09-17-2008 02:59 AM

I uploaded a few mp3 files. They are podcasts that had documents available with them. I pasted the text of the document, but when the player opens the text is centered.

Where can I edit it to left justify the text?

Many thanks for this awesome addition.

obmob 09-17-2008 03:08 AM

Quote:

Originally Posted by Kosovarap (Post 1623498)
Thank you Andrew, appreciate the help. One last thing, hopefully i'll be set, if i wanted to add ads "Adsense" to comments, players, Extended Description, is there something in extras i should look, or is this a manual option,
thanks again,

If you want to add the adsense code, edit the tempaltes you want, but be careful not to add more than 3, or you might receive some notifications from Google, happened to me when added to the comments, now i just use the linkbit ^^,

MissKalunji 09-17-2008 04:54 AM

Here maybe this might help

Quote:

Page generated in 0.31724 seconds with 27 queries (3 queries for uncached templates) [Server Loads: 0.01 0.13 : 0.21]
Uncached templates: links_ratebit_ajax (8)
Uncached templates: links_ratebit_dropdown (8)
Uncached templates: links_ratebit_inline (8)
Edit : I reinstalled The Vbadvanced Module

and now i have 24 Queries which is 2 more then what i had before

AndrewD 09-17-2008 05:23 AM

Quote:

Originally Posted by Kosovarap (Post 1623498)
Thank you Andrew, appreciate the help. One last thing, hopefully i'll be set, if i wanted to add ads "Adsense" to comments, players, Extended Description, is there something in extras i should look, or is this a manual option,
thanks again,

There is nothing in the extras. You should work on the links_main and link_playbit templates, for example. I will see if I can incorporate vbulletin's standard handles into the main LDM templates before version 2.3.0 is finalised.

Edited: the ad_header* and ad_footer* templates are automatically included already.

AndrewD 09-17-2008 05:24 AM

Quote:

Originally Posted by MissKalunji (Post 1623933)
Here maybe this might help



Edit : I reinstalled The Vbadvanced Module

and now i have 24 Queries which is 2 more then what i had before

Yes, there are uncached templates, which are adding extra database accesses. These will be fixed during the debugging of 2.3.0. Bear in mind this is the alpha release.

MissKalunji 09-17-2008 05:32 AM

Quote:

Originally Posted by AndrewD (Post 1623948)
Yes, there are uncached templates, which are adding extra database accesses. These will be fixed during the debugging of 2.3.0. Bear in mind this is the alpha release.

That's fine only had to add the template to the module and that was it

Quote:

Originally Posted by TsirhCitna (Post 1623845)
Nope. Just tried it again. ldm_new.php module off and on:

Did you reinstall the module? i noticed whatever you had installed before 2.3.0 had to be reinstalled or reuploaded to add the new stuff that could be your problem


All times are GMT. The time now is 09:31 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.02472 seconds
  • Memory Usage 1,909KB
  • 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
  • (1)bbcode_html_printable
  • (5)bbcode_php_printable
  • (31)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