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)

RikiB 02-24-2008 04:10 AM

I am currently trying to use the JW flv player. Here are a few problems I am having, maybe someone can give me some tips:

1. Why are the settings not changeable through the admin control? I have to edit the .xml plugin to change the size and other settings?
2. The player seems to play mp3 files fine outside the webroot but is having troubles with flv files? ( i installed the mime plugin but it didnt help, I also edited to plugin to "stream")
3. Is there a way to point to a playlist xml instead of a single flv file?
4. Can I customize the jukebox page to only play the player and no jukebox icons or anything?

Thanks!

RikiB 02-24-2008 04:27 AM

also:

5. When I enter the video player it resizes the browser window, can this be disabled.
6. Ive read the earlier posts about having the player play inside the links view instead of opening in another window, having this open in lightbox, or greybox, or even right there would be a great addition.

Thanks again.

AndrewD 02-24-2008 04:41 AM

Quote:

Originally Posted by RikiB (Post 1449679)
I am currently trying to use the JW flv player. Here are a few problems I am having, maybe someone can give me some tips:

1. Why are the settings not changeable through the admin control? I have to edit the .xml plugin to change the size and other settings?
2. The player seems to play mp3 files fine outside the webroot but is having troubles with flv files? ( i installed the mime plugin but it didnt help, I also edited to plugin to "stream")
3. Is there a way to point to a playlist xml instead of a single flv file?
4. Can I customize the jukebox page to only play the player and no jukebox icons or anything?

Thanks!

Point 1 - fixed in 2.2.9.

Point 2 - fixed in 2.2.9 (I hope) - I think I'd made a mistake with urlencoding

Point 3 - not currently - I think this may get done for the final release of 2.2.9

Point 4 - edit the links_playbit template

AndrewD 02-24-2008 04:45 AM

Quote:

Originally Posted by RikiB (Post 1449682)
also:

5. When I enter the video player it resizes the browser window, can this be disabled.
6. Ive read the earlier posts about having the player play inside the links view instead of opening in another window, having this open in lightbox, or greybox, or even right there would be a great addition.

Thanks again.

5 - edit the links_play_standalone template and kill the Javascript self.resizeTo

6 - I agree. there is an addon in the 2.2.9 extras directory (inline-JW-player) which puts the player in the linkbit. It would be much cooler to put videos in the lightbox, and I'll see if I can work out how.

RikiB 02-24-2008 04:51 AM

Thank you very much!, let me know if you need a 2.29 beta tester :).

Ophelia 02-24-2008 10:06 PM

We ran into an issue tonight. I have checked the permissions, and this gal should be able to upload, however, we get the following error

Quote:

Username Rachel's Stuff not recognised
Her username is Rachel's Stuff (just like that).

She's in the correct usergroup, she has permissions, but it's deny her the right to upload. Any ideas (I am thinking it's because of her username).

Ophelia 02-24-2008 11:18 PM

One more thing.

We now require them to comment before they can download, the problem with this is that once the first person makes a comment the (Rate/Comment) link changes to [1 comments/ratings]. There is no obvious visual indicator on how to comment. A button that would bring up the comment box, without forcing them to view the other comments would be wonderful, or even just a button that does.. just a button all together ;)

Christian96 02-25-2008 12:42 PM

Hi AndrewD !

Congratulations for your LDM, works great !

I have two questions:
- How can i add the LDM seach to the navigation bar of the vBulletin main page ?
- I also want that new posts in the LDM are shown up in the New Posts of the vBulletin main page ?

Many thanks,
Christian

AndrewD 02-25-2008 04:51 PM

Quote:

Originally Posted by Ophelia (Post 1450296)
We ran into an issue tonight. I have checked the permissions, and this gal should be able to upload, however, we get the following error



Her username is Rachel's Stuff (just like that).

She's in the correct usergroup, she has permissions, but it's deny her the right to upload. Any ideas (I am thinking it's because of her username).

Yes, this is a username problem.

I can't recall which version of LDM you are running - if it is 2.2.8, you can fix the problem (I hope) as follows:

edit includes/local_links_include.php
find function lookup_userids (around line 1843)

replace the following sequence of lines:

Code:

        $ids = array();
        foreach ($usernames as $k=>$v) {
                $usernames[$k] = trim($vbulletin->db->escape_string(htmlspecialchars_uni($v)));
                $ids[$k] = 0;
        }
        $userlist = implode("' ,'", $usernames);
        if (!trim($userlist)) return $ids;

        $query = "
                SELECT userid, username
                FROM " . TABLE_PREFIX . "user AS user
                WHERE username IN ('" . $userlist . "')
                ";
        $asb = $vbulletin->db->query_read($query);

        while ($rec=$vbulletin->db->fetch_array($asb)) {
                foreach ($usernames as $k=>$v) {
                        if ($v==$rec['username']) {
                                $ids[$k] = $rec['userid'];
                                continue;
                        }
                }
        }
        $vbulletin->db->free_result($asb);

        return $ids;

by

Code:

        $ids = array();
        $safe_usernames = array();
        foreach ($usernames as $k=>$v) {
                $safe_usernames[$k] = trim($vbulletin->db->escape_string(htmlspecialchars_uni($v)));
                $ids[$k] = 0;
        }
        $safe_userlist = implode("' ,'", $safe_usernames);
        if (!trim($safe_userlist)) return $ids;

        $query = "
                SELECT userid, username
                FROM " . TABLE_PREFIX . "user AS user
                WHERE username IN ('" . $safe_userlist . "')
                ";
        $asb = $vbulletin->db->query_read($query);

        while ($rec=$vbulletin->db->fetch_array($asb)) {
                foreach ($usernames as $k=>$v) {
                        if ($v==$rec['username']) {
                                $ids[$k] = $rec['userid'];
                                continue;
                        }
                }
        }
        $vbulletin->db->free_result($asb);

        return $ids;

Basically, replace most of the references to usernames with safe_usernames.

This will be fixed in the next version of 2.2.9.

AndrewD 02-25-2008 04:54 PM

Quote:

Originally Posted by Ophelia (Post 1450335)
One more thing.

We now require them to comment before they can download, the problem with this is that once the first person makes a comment the (Rate/Comment) link changes to [1 comments/ratings]. There is no obvious visual indicator on how to comment. A button that would bring up the comment box, without forcing them to view the other comments would be wonderful, or even just a button that does.. just a button all together ;)

Noted.


All times are GMT. The time now is 04:54 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.04015 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
  • (2)bbcode_code_printable
  • (5)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