vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Profile Enhancements - Awesome Flash Music Player For Members Profile (https://vborg.vbsupport.ru/showthread.php?t=264078)

Omniverse 10-14-2011 08:02 PM

Quote:

Originally Posted by socialteenz (Post 2257289)
It's centered already!! Yeah, no problem, i have installed this modification on 6 sites already :p

On both Safari and Firefox it's on the left side, not centered for my view. Really not a big deal.

Thanks again for the mod, it's great :)

iSins 10-17-2011 09:38 AM

Question, is it possible to block usergroups from using the player?

bada_bing 10-17-2011 04:45 PM

I have added this nice feature but I wanted to see how I can allow my members to choose auto start or not auto start within the usercp when added the URI of the song?

socialteenz 10-17-2011 05:02 PM

Quote:

Originally Posted by iSins (Post 2258096)
Question, is it possible to block usergroups from using the player?


You can grant access only to specific user groups by adding this code!!

Code:

<vb:if condition="is_member_of($bbuserinfo, 1,2,3)">Music Player code Goes here </vb:if>
Replace 1,2,3 with the usergroups which you want to allow to use this player.!!

socialteenz 10-17-2011 05:10 PM

Quote:

Originally Posted by bada_bing (Post 2258259)
I have added this nice feature but I wanted to see how I can allow my members to choose auto start or not auto start within the usercp when added the URI of the song?


I don't think i can help you in this!! Can be done by changing the code for sure!!

iSins 10-17-2011 08:45 PM

Quote:

Originally Posted by socialteenz (Post 2258266)
You can grant access only to specific user groups by adding this code!!

Code:

<vb:if condition="is_member_of($bbuserinfo, 1,2,3)">Music Player code Goes here </vb:if>
Replace 1,2,3 with the usergroups which you want to allow to use this player.!!

Not working =/ where exactly do i add the code?

ofir24 10-18-2011 02:51 PM

"Replace the field x with your field number"

userinfo['fieldxx']">

what is my field number?

iSins 10-18-2011 06:34 PM

Quote:

Originally Posted by ofir24 (Post 2258595)
"Replace the field x with your field number"

userinfo['fieldxx']">

what is my field number?

Under User Profile Fields/User Profile Field Manager, You will see the music player part you added it will have a field number in it, for instance mine says field7

socialteenz 10-20-2011 07:46 PM

Quote:

Originally Posted by iSins (Post 2258351)
Not working =/ where exactly do i add the code?

In the Member Info Template, replace the current code with this!


Code:

<vb:if condition="is_member_of($bbuserinfo, 1,2,3)">
<!---Flash Music Player--->
<vb:if condition="$userinfo['fieldxx']">
<div class="block">
  <div class="visitors">
    <h5 class="blocksubhead smaller">My Profile Song</h5>
      <div class="blockbody">
        <div class="blockrow">
          <div class="meta">
            <li>
<center><tbody><tr>
                <td class="alt1" style="font-family: Verdana; font-size: 10pt">
               


<script src="{vb:raw vboptions.bburl}/embed/swfobject.js" type="text/javascript"></script>

<div id="player"></div>

<script type="text/javascript">
var so = new SWFObject('{vb:raw vboptions.bburl}/embed/player.swf','mpl','170','20','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addParam('flashvars','&amp;file={vb:raw userinfo.fieldxx}&volume=100&autostart=true');
so.write('player');
</script>

</td>
            </tr>
            </tbody></center>
 </div>
 </div>
    </div>
  </div>
</div>
<div class="underblock"></div>
</vb:if>
<!---Flash Music Player--->
</vb:if>

Replace 1,2,3 with the usergroups which you want to allow to use this player.!!

socialteenz 10-20-2011 07:47 PM

Quote:

Originally Posted by iSins (Post 2258696)
Under User Profile Fields/User Profile Field Manager, You will see the music player part you added it will have a field number in it, for instance mine says field7


Yes exactly, i might post a screen shot of this later!!


All times are GMT. The time now is 09:11 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.02156 seconds
  • Memory Usage 1,744KB
  • 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
  • (3)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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