Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-01-2008, 09:37 AM
jerx jerx is offline
 
Join Date: Feb 2006
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Music/Videos in profile

There are similar mods already, but they are not featurich enough.

I was thinking of having a media player on each user' s profile, which plays a playlist of 10 songs or videos. I might want to seperate the two players, one for music only and the other for videos only. I am afraid there could be display problems to have different media types in one playlist. Songs and videos will be hosted elsewhere, either on a video portal or on a free file hoster.

What is needed?

1. a flv player. I have found two:
http://www.mcmediaplayer.com/
http://www.jeroenwijering.com/?item=JW_FLV_Media_Player
One of those will be integrated in profile. I think that this won' t be a problem. There are some articles about adding a new tab or block to your profile.

2. (a) new custom profile field(s).
I am not sure what to use for the playlist. It will probably look like this:
http://h1.ripway.com/shakiro/playlists/Music.xml
Either using 20 single line input fields for the playlist or using 1 text area input field.
I think using 20 custom profile fields is a little bit easier concerning coding knowledge, but it does not look very efficient.
A text area custom profile field is setup more quickly and might have performance advantages, because you do not add uneccessary columns to your database. Probably only 20% of the users will use the player. If presented to the user, you need to strip off all code from the playlist but the media title and url.
I don' t know if performance is an issue with having so many custom profile fields. I have looked at the pc specs mod and they all seem to use single line profile fields.

3. optional, but desired: users should be able to sort their playlist.
I don' t know if there is a variable for the position in the playlist, I have not seen one yet. Maybe you need to have an extra custom profile field for each media. I have seen a non vb site where the playlist was displayed and you were able to click up and down arrows to move the songs. It probably was javascript.

I think that this is all you need to create such a mod. If you notice that I have forgotten something important or the outline of this mod is wrong, please reply.

But my main questions are these:
1. which player would you choose or is their a better one?
2. 20 fields or one field only? What php functions would be needed, eg preg_replace?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:06 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05829 seconds
  • Memory Usage 2,153KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete