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 - Goldbrick Audio/Video Media System (https://vborg.vbsupport.ru/showthread.php?t=165505)

JayT123 05-12-2008 04:13 PM

Quote:

Originally Posted by JayT123 (Post 1516583)
Nix here is the generated source on the page where the attached mp3 is not working

Code:

                <!-- attachments -->
                        <div style="padding:6px">

                       

                       

                       

                       
                                <fieldset class="fieldset">
                                        <legend>Attached Files</legend>
                                        <table cellpadding="0" cellspacing="3" border="0">
                                        <tr>

        <td><img class="inlineimg" src="http://www.voice-overs.com/forum/morbid/attach/mp3.gif" alt="File Type: mp3" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
        <td><a href="http://www.voice-overs.com/forum/attachments/lounge/324d1210260416-mp3-player-not-working-gravity2.mp3" target="_blank">gravity2.mp3</a> (845.7 KB, 2 views)</td>
</tr>
                <tr>
                        <td colspan="2"><div class="goldbrick">
       
       
       
       
       


       

       
</div>



        <embed
        src="players/mediaplayer.swf"
        width="470"
        height="20"
        allowscriptaccess="always"
        allowfullscreen="true"
        flashvars="width=470&height=20&file=http://www.voice-overs.com/forum/attachment.php?attachmentid=324.mp3"
        />

</td>
                </tr>
                                        </table>
                                </fieldset>
                       

                       

                        </div>
                <!-- / attachments -->

The flashvar link is wrong. I have vbseo installed. Could this be the issue?

Quote:

Originally Posted by nix (Post 1516709)
Did you add the mp3 extension to the allowed extension list to vbulletin? You also have to be using the flile system for vbulletin attachments. Make sure that path is also correct.

Yes the mp3 is in the options, I am using the file system and the path is correct. Like I said, the inline url to the attachment is correct but the flashvar url is not.

Correct : http://www.voice-overs.com/forum/att...g-gravity2.mp3
not correct: http://www.voice-overs.com/forum/att...mentid=324.mp3

nix 05-12-2008 05:18 PM

Quote:

Originally Posted by Tom_S (Post 1517254)
Just to avoid any confusion you can see I do have it selected as "media" however I think it is working now. I will see but I didn't do anything.

http://kmaoffroad.com/work/gbmedia.jpg

Go read all the post in this thread and the 3.6 thread and then let me know if my simple questions are a waste of time.

I've said not all features in implemented yet, so that bbcode tag options doesn't do anything.

For goldbrick to auto phrase a link this is what it needs.

What link are you posting that doesn't work?

Quote:

Originally Posted by JayT123 (Post 1517386)
Yes the mp3 is in the options, I am using the file system and the path is correct. Like I said, the inline url to the attachment is correct but the flashvar url is not.

Correct : http://www.voice-overs.com/forum/att...g-gravity2.mp3
not correct: http://www.voice-overs.com/forum/att...mentid=324.mp3

open up goldbrick/functions_public.php

change this line to suit your setup. If that works let me know.

PHP Code:

            $url $vbulletin->options['bburl'] . '/attachment.php?attachmentid=' $attach_id .'.' $attach_ext


sweeps78 05-12-2008 05:25 PM

Quote:

Originally Posted by nix
Quote:

Originally Posted by sweeps
Any word yet on why the thumbnail won't show up for DivX videos? The thumbs show up just fine on all other videos, just not DivX

For user posted content? If you want to fix it now look at the goldbrick_player tempalate for the divix

It was user posted content. After looking at the goldbrick_player tempalate though, I realized what was happening. I didn't quite understand how the thumbs were being added till now (still don't fully understand though). The user that was embedding DivX videos in her posts were embedding videos directly off of her server, which doesn't have any thumbnails associated with them.

So, my question is how do you need data sent to this plugin in order for thumbnails to work? She's totally cool with building whatever is needed to get her videos to display properly on my site, we just need to know how Goldbrick needs them to be sent:)

I had one other question though about the template. If I'm trying to troubleshoot what is going wrong with embedding in the forums threads/posts, why am I looking at a template that has the variable $info[profile] in it?

Code:

<if condition="$info[profile] == 'divx'">

nix 05-12-2008 05:31 PM

If it's user posted content, there is no thumbnail to display. It will just show the default gif. I could add that as an option when posting media.

Tom_S 05-12-2008 05:36 PM

Quote:

Originally Posted by nix (Post 1517452)
Go read all the post in this thread and the 3.6 thread and then let me know if my simple questions are a waste of time.

I've said not all features in implemented yet, so that bbcode tag options doesn't do anything.

For goldbrick to auto phrase a link this is what it needs.

What link are you posting that doesn't work?



open up goldbrick/functions_public.php

change this line to suit your setup. If that works let me know.

PHP Code:

            $url $vbulletin->options['bburl'] . '/attachment.php?attachmentid=' $attach_id .'.' $attach_ext


It just is NOT that important to me my friend. You evidently still didn't get what I said out of all of that. Your bbcode for using the function simply was not working and I was merely pointing it out. If you didn't understand that then it is not my problem to keep trying to simplify my explanation of it over and over. I will just go back to what I was using. I don't see where you got so confused with what I considered somewhat well explained feedback.

sweeps78 05-12-2008 05:45 PM

Quote:

If it's user posted content, there is no thumbnail to display. It will just show the default gif. I could add that as an option when posting media.
I'm not sure I understand. What exactly do you mean by "user posted content"?

Isn't there something that you already have built into the DivX embedding that automatically grabs an image from a URL (much like YouTube)? If so, what do I need to have her do to make this work with the videos on her server?

nix 05-12-2008 06:26 PM

Quote:

Originally Posted by Tom_S (Post 1517467)
It just is NOT that important to me my friend. You evidently still didn't get what I said out of all of that. Your bbcode for using the function simply was not working and I was merely pointing it out. If you didn't understand that then it is not my problem to keep trying to simplify my explanation of it over and over. I will just go back to what I was using. I don't see where you got so confused with what I considered somewhat well explained feedback.

I'm not sure why you're getting so hostile. If there is a bug I'll fix it. I just need to know what the problem is. From reading your post, you've posted a link and when you hit reply it wraps it in url tags. If that is what is happing, goldbrick didn't do anything. Changing the acp setting to url doesn't do anything. That setting isn't live yet. If this isn't your problem I'm not sure what is.


Quote:

Originally Posted by sweeps78 (Post 1517476)
I'm not sure I understand. What exactly do you mean by "user posted content"?

Isn't there something that you already have built into the DivX embedding that automatically grabs an image from a URL (much like YouTube)? If so, what do I need to have her do to make this work with the videos on her server?

By user posted content I mean any media that isn't part of a video site.

JayT123 05-12-2008 08:23 PM

Quote:

Originally Posted by nix (Post 1517452)
open up goldbrick/functions_public.php

change this line to suit your setup. If that works let me know.

PHP Code:

            $url $vbulletin->options['bburl'] . '/attachment.php?attachmentid=' $attach_id .'.' $attach_ext


The attachments are being stored at forum/attachments/. What would that line of code need to be to pull those attachments?

So far I have :
PHP Code:

function goldbrick_process_attachment($attach_id$userid$postid 0$attach_ext$gb_options 0)
{
    global 
$vbulletin;

    
$id = array();

    require_once(
DIR '/goldbrick/includes/class_goldbrick.php');

    
$goldbrick = new goldbrick_media($vbulletin);

    
$url $attach_id;

    if (
$media $goldbrick->is_valid_attachment($attach_ext))
        {
            
$url $vbulletin->options['bburl'] . '/forum/attachments/' $attach_name .'.' $attach_ext;
            
            
$info $goldbrick->parse_url($url$gb_options);
            
$info['unique'] = $attach_id;
            
            
//$goldbrick->save($info, $userid, $postid, $posthash);
        
}
    
    return 
$info;


But it is not pulling the name. What is the variable to do so? And will it need to be added to the function line?

sensimilla 05-12-2008 09:16 PM

Quote:

Originally Posted by nix (Post 1514043)
I've test this version and of course it works for me. If anyone wants to test it before I release it I would apreciatie it.

This fixes most bugs. There are some left, this version just fixes the major ones.

Bug Fixes that I remember :)
  1. Removed highslide and replaced (smaller footprint now)
  2. Profiles fixed
  3. edit post fixed
  4. dailymotion fixed
  5. um, a lot more I just don't remember :)
  6. attachments fixed

I'll also have a working demo up soon.

I have upgraded to 1.8 and no other site but youtube is working now, dailymotion adn google video are not parsed even if I add Tags manually. Great work and thanks for keeping this hook updated.

rapidphim 05-12-2008 09:26 PM

Yes, only YouTube is working properly. Veoh is also working. Google is working but if you have more than 1 video in the same post, when you submit the new thread, you'll get error in google.php file.
And this monster Dailymotion is never worked for me at all.


All times are GMT. The time now is 03:18 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.03367 seconds
  • Memory Usage 1,789KB
  • 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
  • (4)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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