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)

AndrewD 08-21-2008 03:45 PM

Quote:

Originally Posted by blackwolfcds (Post 1603645)
Good morning,

First, a big thank you for this wonderful module.

I have a problem with the "filter".
I have a category which includes many files (more than 20000 for some).
If you choose a filter, for example the letter "B", only the first page complies.
If you click on page 2, for example, the filter cancels ...

I tried with versions post1 and post2, and invariably the same problem.

If someone can help me, it would be very nice.

Thank you in advance.

You are right, this is a bug. I will fix in the upload when possible.

Edited: In the meantime, if you want to fix it yourself, edit local_links.php in your forum directory. Find the following code (around line 675):

Code:

                $pagenav = construct_page_nav($pagenumber, $thispage, $nhits, $LINKS_SCRIPT.".php?catid=$viewcatid&sort=$sort", "&pp=$thispage");
and replace with

Code:

                $pagenav = construct_page_nav($pagenumber, $thispage, $nhits, $LINKS_SCRIPT.".php?catid=$viewcatid&sort=$sort".(strlen($viewfilter) ? "&filter=$viewfilter" : ""), "&pp=$thispage");

Stilgar 08-21-2008 04:19 PM

How can I limit a usergroup to only being able to add one Link to the list?

Also, Where can I change $linkimgjump ? I would like to change the image's link to go to:

Code:

<a href="member.php?u=$linkuserid">$linkusername</a>

Thanks!

p.s. Andrew, I was able to allow images to be displayed on the directory. I just used the File Upload instead of the Image upload. Then I just limited the files available for upload to only image file types. It adds the Thumbnails just as I wanted. Now all I have to do is edit out the file links so members are not trying to download the thumbs. Thanks for all your help!

James

blackwolfcds 08-22-2008 08:46 AM

Quote:

Originally Posted by AndrewD (Post 1603862)
You are right, this is a bug. I will fix in the upload when possible.

Edited: In the meantime, if you want to fix it yourself, edit local_links.php in your forum directory. Find the following code (around line 675):

Code:

                $pagenav = construct_page_nav($pagenumber, $thispage, $nhits, $LINKS_SCRIPT.".php?catid=$viewcatid&amp;sort=$sort", "&amp;pp=$thispage");
and replace with

Code:

                $pagenav = construct_page_nav($pagenumber, $thispage, $nhits, $LINKS_SCRIPT.".php?catid=$viewcatid&amp;sort=$sort".(strlen($viewfilter) ? "&amp;filter=$viewfilter" : ""), "&amp;pp=$thispage");

Thank you very much :)

I edited the file local_links.php as you said and now it works correctly :up:

AndrewD 08-22-2008 09:37 AM

Quote:

Originally Posted by Stilgar (Post 1603877)
How can I limit a usergroup to only being able to add one Link to the list?

not currently an option - would require writing some extra code or a plugin

Quote:

Originally Posted by Stilgar (Post 1603877)
Also, Where can I change $linkimgjump ? I would like to change the image's link to go to:

Code:

<a href="member.php?u=$linkuserid">$linkusername</a>

linkimgjump is set up in includes/local_links_include.php, function ldm_get_entrybits. The clean way to modify it as you want is to create a small plugin tied to the ldm_linkbit_create hook.

Stilgar 08-22-2008 04:47 PM

Ok, sounds good. Thank you.

How can I change the Link Title displayed in links_linkbit ($linkurljump) to be linked to the member's forum profile?

Added: Nevermind, I found it!

Code:

<a href="member.php?$session[sessionurl]u=$linkuserid">$linkname</a>

Thanks! :)

exportforce 08-22-2008 07:45 PM

Hello,

just wanted to try this one, but every time I try to do something, it comes up, that some securitytoken would be wrong or missing...
I am running 3.7.2. pl2

any tips ?

edit:
Also when I try to uninstall it, it just gives me a blank site.
Could you please post an uninstaller, so I can clean it up and reinstall it ?

sparklywater 08-23-2008 02:15 AM

Why can we not enter percentage values for the 'link_imagemagsize' setting? For example 100% would mean cover full screen of user. Also, why is there only one dimension setting in 'link_imagemagsize', why not both width and height?

AndrewD 08-23-2008 03:54 AM

Quote:

Originally Posted by exportforce (Post 1604715)
Hello,

just wanted to try this one, but every time I try to do something, it comes up, that some securitytoken would be wrong or missing...
I am running 3.7.2. pl2

any tips ?

edit:
Also when I try to uninstall it, it just gives me a blank site.
Could you please post an uninstaller, so I can clean it up and reinstall it ?

For the security token, check that you did not patch any of the templates before vbulletin introduced this mechanism. This could leave you with obsolete forms.

There should be no problem uninstalling via the standard vbulletin/admincp/products section. The uninstaller leaves the database tables intact, but this would not create a blank screen.

Blank screens are often a sign of a php bug somewhere. Have you tried vb/admincp/settings/ turn off gzip compression

AndrewD 08-23-2008 04:12 AM

Quote:

Originally Posted by sparklywater (Post 1604892)
Why can we not enter percentage values for the 'link_imagemagsize' setting? For example 100% would mean cover full screen of user. Also, why is there only one dimension setting in 'link_imagemagsize', why not both width and height?

I did wonder about allowing percentages for the image size. However, there's a problem - when you use a percentage in html, you are (afaik) refering to a percentage of the container size in which the item sits, not a percentage of screen size. A size of something specified as "100%" would depend on the specifications for other features on the board and would not mean "full page width". It could also vary with choice of template. It seems less confusing to stick with pixel sizes.

Again, I wondered about having both width and height parameters, but this would end up distorting pictures - by using only one value, the code can maintain the aspect ratio of the picture.

Am open to discussion

sparklywater 08-23-2008 10:35 AM

Quote:

Originally Posted by AndrewD (Post 1604933)
Again, I wondered about having both width and height parameters, but this would end up distorting pictures - by using only one value, the code can maintain the aspect ratio of the picture.

Am open to discussion


I can understand the importance of maintaining aspect-ratio, but I found one problem with the LDM imagemagsize setting. This setting sets the size of the image 'along larger dimension', and this becomes problematic if the image has a larger width than height (which is usually the case). This is because having a fixed width means that the height of the image varies according to the original size of the image, and this sometimes results in images having heights too large for the screen. What would be more useful is to have the 'imagemagsize' set the HEIGHT of the image rather than the width, which would then allow the width of the image to vary according to the aspect-ratio of the original picture. This would cause less problems because obviously the screen of the user is wider than the screen's height, so it can allow for more variability in the horizontal direction.

AndrewD 08-23-2008 11:35 AM

Quote:

Originally Posted by sparklywater (Post 1605050)
I can understand the importance of maintaining aspect-ratio, but I found one problem with the LDM imagemagsize setting. This setting sets the size of the image 'along larger dimension', and this becomes problematic if the image has a larger width than height (which is usually the case). This is because having a fixed width means that the height of the image varies according to the original size of the image, and this sometimes results in images having heights too large for the screen. What would be more useful is to have the 'imagemagsize' set the HEIGHT of the image rather than the width, which would then allow the width of the image to vary according to the aspect-ratio of the original picture. This would cause less problems because obviously the screen of the user is wider than the screen's height, so it can allow for more variability in the horizontal direction.

OK, that makes sense. I'll give it a try.

sparklywater 08-23-2008 12:38 PM

Quote:

Originally Posted by AndrewD (Post 1605074)
OK, that makes sense. I'll give it a try.

If you make the change please let me know how I can edit my current installation for the new setting. It would particularly improve the 'lightbox' display of images.

AndrewD 08-23-2008 01:48 PM

Quote:

Originally Posted by sparklywater (Post 1605104)
If you make the change please let me know how I can edit my current installation for the new setting. It would particularly improve the 'lightbox' display of images.

If you want to make the change yourself, try the following:

edit includes/lcal_links_resize.php

find, around line 145:

Code:

        $thumb_w = ($old_x >= $old_y ? (int) ($size) : (int) ($size*$old_x/$old_y));
        if ($thumb_w>$old_x) {
                $thumb_w = $old_x;
        }
        $thumb_h = (int) ($thumb_w*($old_y/$old_x));

if you want to force the pictures to be the defined height, replace these lines by:

Code:

        $thumb_h = $size;
        $thumb_w = (int) $size * $old_x/$old_y;

ditto, to force the width:

Code:

        $thumb_w = $size;
        $thumb_h = (int) $size * $old_y/$old_x;


ErnieTheMilk 08-23-2008 02:13 PM

This is such a great hack... thank you!

I am having a small problem of when I use it, I am being logged out and being asked to log back in, is there anything I can do about this, or something I am doing wrong to put this right!

AndrewD 08-23-2008 03:13 PM

Quote:

Originally Posted by ErnieTheMilk (Post 1605147)
This is such a great hack... thank you!

I am having a small problem of when I use it, I am being logged out and being asked to log back in, is there anything I can do about this, or something I am doing wrong to put this right!

Check how you've got your board url and forum defined on your vb/admincp/options. Most times when I hear this problem, it's because people are using www . sitename . com to get to the site but have defined it on the vbadmincp as sitename . com. The consequence is that the logon cookie disappears when you move between pages inside ldm.

ErnieTheMilk 08-23-2008 03:54 PM

Quote:

Originally Posted by AndrewD (Post 1605183)
it's because people are using www . sitename . com to get to the site but have defined it on the vbadmincp as sitename . com.

Great job Andrew, blinking marvellous! :D :up:

vbboarder 08-23-2008 05:15 PM

If your site contains Quicktime media files, you may want to advise your users of this:
Quicktime media will not play or will play without the player's controls bar if the mime types are not set in the user's browser. This may occur for other media types also (Windows, Real, etc), but I have only verified this problem with Quicktime. Solution:

The USER must edit their Quicktime's browser preferences: In Quicktime, go to Edit > Preferences > Quicktime Preferences > Browser > MIME Settings (located at bottom of Browser tab) > select the mime types that you want Quicktime to play. For best compatibility, I selected Quicktime movie (mov, qt), aac, mpeg-4, 3gpp, 3gpp2, qhtm. Click "OK", then "Apply", then "OK" again. Your users should now be able to play Quicktime media files :D

vbboarder 08-23-2008 05:26 PM

The default mime type for avi files (video/avi) does not work in Firefox. The correct mime type is: application/x-mplayer2
You can set that in VB in the control panel on the left side: select Attachments > Attachment Manager > Edit avi > then for mime type, type in: Content-type: application/x-mplayer2
That should do it, you can now play avi files in both IE and Firefox :D

vbboarder 08-23-2008 05:45 PM

Bug report: Real media will not play in IE browser. The solution requires 2 steps:
1. In VB control panel on the left side: select Attachments > Attachment Manager > Edit all file types that you want Real to play (ie: ra, rv, rm, etc.) > then for each file type, type in for mime type: Content-type: audio/x-pn-realaudio

2. Edit local_stream.php (in the forum root folder) so that the mime type is only changed for NON-IE browsers. Around line 143, FIND:
Code:

        foreach ($mimetype as $k=>$mime) {
            if (preg_match("/-real/", $mimetype[$k])) {
                $mimetype[$k] = "Content-type: audio/x-pn-realaudio-plugin";
            }
        }

And REPLACE that with:
Code:

// MODIFIED to change mime type ONLY IF browser is NOT Explorer (!is_browser('ie') does not work for IE7, but can check for other browsers)
require_once(DIR . '/includes/functions.php');
    if (is_browser('firefox') || is_browser('safari')) {
        foreach ($mimetype as $k=>$mime) {
            if (preg_match("/-real/", $mimetype[$k])) {
                $mimetype[$k] = "Content-type: audio/x-pn-realaudio-plugin";
            }
        }
    }

Real media should be able to play in both IE and Firefox :D

vbboarder 08-23-2008 06:07 PM

Bug report: JWPlayer can play mp4 & m4v files when viewing the entry itself, but the player does not show when viewing a category's list of entries. It should show the player for mp4 & m4v files because the same player shows for flv, swf, & mp3 files when viewing a category's list of entries. Andrew, I can help fix this bug if you can advise me which file/ where to edit?

vbboarder 08-23-2008 06:13 PM

Not sure if this is a LDM bug or IE7 (Windows XP) bug: IE7 will pop up a notification stating that "IE can't open the page" and the "operation was aborted" when loading a page that has a video larger than ~5 MB. However, the page still loads fine and the video plays (testing non-Flash videos that are 20 MB).

vbboarder 08-23-2008 06:49 PM

Bug report: I discovered a serious conflict for file types that are set by the user to be played by Quicktime. For Quicktime file types, if a non-Quicktime player is set with a higher priority in LDM than the Quicktime player, then both players will show up on top of each other in the browser. More seriously, Firefox will become unresponsive (but can still be terminated).

The source of this bug stems from 2 sources: LDM and Quicktime. LDM because it creates an object tag for the highest priority player, and Quicktime because it allows users to set mime types in the browser. This problem may occur for other media types also (Windows, Real, etc), but has only been verified for Quicktime. Changing the mime types in VB will NOT fix the problem.

Solution: Change the media players priority in LDM so that Quicktime has the highest priority for all Quicktime file types. In VB control panel on the left side, select Links and Downloads > Players > then give Quicktime a high priority like 20 so that it's higher than the Windows & Real players. Now only the Quicktime player should show and not freeze up Firefox :D

vbboarder 08-23-2008 07:08 PM

Bug report: Ok, this is probably the most difficult bug I've come across thus far since I've used VB. Spent a whole day :rolleyes::confused::eek: to find a partial work-around. The problem is that media players (ALL 3 - Windows Player, Quicktime, RealPlayer) will display and play media in IE7 but will only play, but NOT display in Firefox 2 (can hear the audio, but can not see the player or video/ image). First I thought it was a transparency issue similar to the LDM bug fix I did for the Flash and Silverlight players, but setting the transparency/ blend parameters for these players had NO effect. After hours of testing different hacks and trial & error debugging, I found the source of the problem.

Partial work-around: Remove this script from the headinclude template:
Quote:

<script type="text/javascript" src="$stylevar[yuipath]/yahoo-dom-event/yahoo-dom-event.js?v=$vboptions[simpleversion]"></script>
Removing this script will enable the players to display in Firefox. However, this partial solution is obviously not good since many VB scripts will not work since they depend on that yahoo event script. Andrew, can you PLEASE debug this one? I'll be glad to test out any fix you have. Thanks ;)

Note: testing with VB 3.7.2, LDM 2.2.9-post1, Windows XP (SP2), Firefox 2, Explorer 7, Quicktime 7.5, RealPlayer 11, Windows Player 11, and admin privileges for XP, VB & LDM.

vbboarder 08-23-2008 07:10 PM

Ok, I'm done with my bug reports for now..... ;)

AndrewD 08-23-2008 07:16 PM

Quote:

Originally Posted by vbboarder (Post 1605312)
Ok, I'm done with my bug reports for now..... ;)

Wow

TsirhCitna 08-23-2008 09:59 PM

Quote:

Originally Posted by AndrewD (Post 1534706)
OK, will take a look



Yes, I'd found this bug and I have the fix ready. It's releated to the new CSRF mechanisms in vBulletin. All you need to do is edit local_links_ajax.php (main forum directory)

After the line
Code:

define('CSRF_PROTECTION', true);
add
Code:

define('CSRF_SKIP_LIST', 'swfupload'); // because of problems with flash scripts assuming IE

I'm still having this same issue with anyone who is not an admin.

RikiB 08-24-2008 12:05 AM

The inline player seems to work only with FLV, is there a way to get Mp4/xml working with it as well?

also, is there anyway to have the entry thumbnail be a direct link to the file? It seems $linkimgjump forces it to open in litebox instead of opening the file.

Thanks

vbboarder 08-24-2008 04:26 AM

In researching the Yahoo event script conflict with embedded players, I discovered a possible fix. I verified that the problem exists with VB 3.7.2 alone without LDM. You can reproduce the problem with VB 3.7.2 in Firefox 2 with Flash Player 9 (I'm using Windows XP - sp2):

1. Create a forum with HTML code enabled (remember to allow admins only to post if this will be a permanent forum).
2. Create a thread and post with this sample object tag from youtube:
Code:

<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/zzSpPaCIG0g&hl=en&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/zzSpPaCIG0g&hl=en&fs=1&rel=0" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object>
3. Save and view the thread. The embedded flash player will temporarily show for ~1 sec. when the page loads, but then disappears (if autostart is enabled, video should play but still does not show). Refreshing the page and clearing the cache does not help.

Since the Flash player showed in LDM but NOT in VB alone, I realized that a possible work-around is to create the embedded player with a JS script and not by the object or embed tags. In LDM, the JW Flash & Silverlight players were able to show because they do not directly use the object and embed tags. Instead, the players are created by a script in the links_playerbit_JWPlayer and links_playerbit_JWwmPlayer templates. Hope that helps to create a plugin fix for the other media players.

Since this bug is obviously a VB bug, I posted it at VB's site: http://www.vbulletin.com/forum/proje...?issueid=26190
Everyone, please confirm/ comment on this bug at that link so that the VB team will make this bug a high priority. Even if Andrew is able to provide a plugin fix for LDM, this bug will still affect posts at HTML enabled forums since users can NOT post script tags even if HTML is enabled. For example, you may want to create a HTML enabled forums where admins can post YouTube videos for users to watch. Without this bug fixed, you're not able to do that. :rolleyes:

AndrewD 08-24-2008 05:45 AM

Quote:

Originally Posted by vbboarder (Post 1605525)
In researching the Yahoo event script conflict with embedded players, I discovered a possible fix. I verified that the problem exists with VB 3.7.2 alone without LDM. You can reproduce the problem with VB 3.7.2 in Firefox 2 with Flash Player 9 (I'm using Windows XP - sp2):

1. Create a forum with HTML code enabled (remember to allow admins only to post if this will be a permanent forum).
2. Create a thread and post with this sample object tag from youtube:
Code:

<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/zzSpPaCIG0g&hl=en&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/zzSpPaCIG0g&hl=en&fs=1&rel=0" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object>
3. Save and view the thread. The embedded flash player will temporarily show for ~1 sec. when the page loads, but then disappears (if autostart is enabled, video should play but still does not show). Refreshing the page and clearing the cache does not help.

Since the Flash player showed in LDM but NOT in VB alone, I realized that a possible work-around is to create the embedded player with a JS script and not by the object or embed tags. In LDM, the JW Flash & Silverlight players were able to show because they do not directly use the object and embed tags. Instead, the players are created by a script in the links_playerbit_JWPlayer and links_playerbit_JWwmPlayer templates. Hope that helps to create a plugin fix for the other media players.

Since this bug is obviously a VB bug, I posted it at VB's site: http://www.vbulletin.com/forum/proje...?issueid=26190
Everyone, please confirm/ comment on this bug at that link so that the VB team will make this bug a high priority. Even if Andrew is able to provide a plugin fix for LDM, this bug will still affect posts at HTML enabled forums since users can NOT post script tags even if HTML is enabled. For example, you may want to create a HTML enabled forums where admins can post YouTube videos for users to watch. Without this bug fixed, you're not able to do that. :rolleyes:

I will see what I can find out. During the years, I've found that there are frequently interactions problems between the browser and media handling infrastructures - flash, windows media player and real player have all caused problems and they are all specific to certain releases of the support products. It's a real pain to keep up-to-date.

On a similar note, the guy who runs the quirksmode site must be ocmpletely hairless, trying to keep track o the javascript features that do or do not work in different browsers/browser versions.

I posted a question yesterday about an oddity in PHP which has really got me confused.

RikiB 08-24-2008 04:01 PM

Quote:

Originally Posted by AndrewD (Post 1540279)
On my own site, I use a simple bbcode definition

Code:

[link=NNN]Title[/link]
defined as

Code:

<a href="local_links.php?action=jump&id={option}" target="_new">{param}</a>
I also use

Code:

[linkcat=NNN]Title[/link]
defined as

Code:

<a href="local_links.php?catid={option}" target="_new">{param}</a>
to jump to a category

Is there any way to post an inline video using the JW player in a post using bbcode? That way I can see the player inside the post and just hit play?

Also, mp4 files done seem to work with the inline player :(

Thanks for the hard work!
- Riki

bayigurita 08-25-2008 03:46 AM

When using force_redirect=0 / 1, the download unable to resume, but if using force_redirect=2, the download able to resume. So I used option "2". But the hits won't count. Is there anyway to make it counted just by clicking the link?

I'm using different server for my downloadable files and my vbulletin LDM

AndrewD 08-25-2008 03:50 AM

Quote:

Originally Posted by bayigurita (Post 1606245)
When using force_redirect=0 / 1, the download unable to resume, but if using force_redirect=2, the download able to resume. So I used option "2". But the hits won't count. Is there anyway to make it counted just by clicking the link?

Sorry, not with the code as it's currently written. What do you mean by 'won't resume' with force_download=0/1?

bayigurita 08-25-2008 04:43 AM

Quote:

Originally Posted by AndrewD (Post 1606249)
Sorry, not with the code as it's currently written. What do you mean by 'won't resume' with force_download=0/1?

Nobody was able to resume the download, if I set force_redirect=0 or force_redirect=1. The file I hosted was larger than 100MB (not at the same vbulletin+LDM host), and if I try to download, and stop it in the middle and resume the download, the download start from the beginning not resuming properly.

AndrewD 08-25-2008 05:02 AM

Quote:

Originally Posted by bayigurita (Post 1606266)
Nobody was able to resume the download, if I set force_redirect=0 or force_redirect=1. The file I hosted was larger than 100MB (not at the same vbulletin+LDM host), and if I try to download, and stop it in the middle and resume the download, the download start from the beginning not resuming properly.

If you try to deliver large files held on a different server with force_redirect=0, then indeed you are going to have problems, because the script running on your server will use all its available cpu time fetching the file. This should not happen with force_redirect=1, because LDM simply triggers a browser redirect to get the file. With force_redirect=2, LDM is not involved at all in the transfer process.

sparklywater 08-25-2008 02:24 PM

Andrew,

I need to 'force' mp3 files to be downloaded rather than open up in a browser window or external player, ie. when the user clicks on the link a dialog box should pop up asking whether they'd like to save or open the file. Can you please explain how I can do this?

AndrewD 08-25-2008 02:35 PM

Quote:

Originally Posted by sparklywater (Post 1606572)
Andrew,

I need to 'force' mp3 files to be downloaded rather than open up in a browser window or external player, ie. when the user clicks on the link a dialog box should pop up asking whether they'd like to save or open the file. Can you please explain how I can do this?

Try ldm/admin/settings -> security and miscellaneous settings -> force_saveas -> yes

Let me know if it works as expected.

sparklywater 08-25-2008 03:40 PM

Quote:

Originally Posted by AndrewD (Post 1606579)
Try ldm/admin/settings -> security and miscellaneous settings -> force_saveas -> yes

Let me know if it works as expected.


That method does not work in Internet Explorer.

I was thinking of a more format-specific method which you seem to have mentioned in the wiki here: http://www.eirma.org/wikis/index.php...s_in_vBulletin

Here is a quote from that page:

"Specifying the mimetype as "Content-type: application/force-download" is a useful way to force a filetype to be downloaded rather than opened within the browser window or by a program on the user's PC"

That sounds perfect but I don't know how to specify the mp3 filetype as 'application/force-download'.

vbboarder 08-25-2008 04:50 PM

Can someone please verify if the conflict between Yahoo event script and embedded players exists in Firefox 3? For more info on this bug, you can read my posts #903 & 908. You can reproduce and verify the bug by:

1. Create a forum with HTML code enabled (remember to allow admins only to post if this will be a permanent forum).
2. Create a thread and post with this sample object tag from youtube:
Code:

<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/zzSpPaCIG0g&hl=en&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/zzSpPaCIG0g&hl=en&fs=1&rel=0" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object>
3. Save and view the thread. The embedded flash player will temporarily show for ~1 sec. when the page loads, but then disappears (if autostart is enabled, video should play but still does not show). Refreshing the page and clearing the cache does not help.

After testing, please post if the flash video remains displayed or disappears. I have not tested in Firefox 3 myself because I'm still waiting for several Firefox 3 bugs to be fixed and Firefox 2 still has a relatively large usage base (~18%) so this bug needs to be fixed. Much appreciated for any help.

sparklywater 08-25-2008 04:54 PM

Does anyone know if there is a way to check a user's browser for the latest RealPlayer plugin, and if they don't have it then display a message or an update?

AndrewD 08-25-2008 05:30 PM

Quote:

Originally Posted by sparklywater (Post 1606622)
That method does not work in Internet Explorer.

I was thinking of a more format-specific method which you seem to have mentioned in the wiki here: http://www.eirma.org/wikis/index.php...s_in_vBulletin

Here is a quote from that page:

"Specifying the mimetype as "Content-type: application/force-download" is a useful way to force a filetype to be downloaded rather than opened within the browser window or by a program on the user's PC"

That sounds perfect but I don't know how to specify the mp3 filetype as 'application/force-download'.

That's close to what the force_saveas settings does. Clearly I need to test it some more.

To specify the mp3 mimetype, go to vb/admincp/attachments/attachment manager.

Edit mp3, and change the mimetype box to Content-type: application/force-download. Remember what it used to be in case you want to go back again.


All times are GMT. The time now is 01: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.03173 seconds
  • Memory Usage 1,917KB
  • 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
  • (21)bbcode_code_printable
  • (23)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