vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Show Thread Enhancements - YouTube Video Avatars for specified usergroups (https://vborg.vbsupport.ru/showthread.php?t=150574)

4x4 Mecca 06-26-2007 05:19 PM

Thanks Jacquii, I'll work on that today or tomorrow, I have family in town, so I'm pretty busy.

4x4 Mecca 06-26-2007 05:24 PM

Dave, what are you making the video avatar user groups for. I mean what decides who gets put in it. If it's something like length of time or posts, I could probably work something. I don't user secondary user groups so I'm not sure how they work.

tipoboy 06-26-2007 09:20 PM

Quote:

Originally Posted by 4x4 Mecca (Post 1277085)
Dave, what are you making the video avatar user groups for. I mean what decides who gets put in it. If it's something like length of time or posts, I could probably work something. I don't user secondary user groups so I'm not sure how they work.

in your user manager there is an option to allow additional usergroups

i made a video avatar usergroup and added it to me as a aditional user group but this didnt work(see Screen Shot)

would i have to make up another user group for video avatars enabled for each group i want it to be effective on eg 1 for admin 1 for moderators 1 for registered users or could i do it using this method with alterations in the template change??

i hope this is clear as i love this mod and want to restrict the use to people in the video avatars group only

hope u understand and can achieve this
thanks for the help
dave

tipoboy 06-26-2007 09:25 PM

better screen shot for u

4x4 Mecca 06-26-2007 10:38 PM

Thanks dave, I understand what 2ndary user groups are, i just didn't get how you were going to choose who went in there. I will see if I can do it that way.. keep an eye on this thread.

TheBlackPoet 06-26-2007 10:55 PM

this is my working version.... see what you can do with this..

4x4 Mecca 06-26-2007 11:29 PM

Quote:

Originally Posted by tipoboy (Post 1277261)
better screen shot for u

Dave, change
Quote:

<if condition="in_array($post['usergroupid'], array(5,6,7,12,14)) AND $post[field54]">
to

Quote:

<if condition="$post['membergroupids'] == 9 AND $post[field6]">

Where 9 is the additional usergroup ID and 6 is your field number. That will work :)

4x4 Mecca 06-26-2007 11:39 PM

jacquii, let me know if this works.

replace this
Quote:

<!-- user info -->
<table cellpadding="0" cellspacing="$stylevar[cellpadding]" border="0" width="100%">
<tr>
<if condition="$show['avatar']">
<!-- check for staff -->
<if condition="in_array($post[usergroupid], array(5,6,7))">
<!-- I am staff so do this -->
<td class="alt2">

<table cellpadding="4" cellspacing="0" border="0" width="190" height="120" align="center" background="images/$post[username]_avatar.gif" nowrap="nowrap" no-repeat>
<tr>
<td width="46%">&nbsp;</td>
<td><img src="$post[avatarurl]" height="70" width="70" align="center"></td>
</tr>
</table>
</td>
<else />
<!-- I am not staff so do this -->
<td class="alt2">
<a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</td>
</if>
</if>

with this

Quote:

<!-- user info -->
<table cellpadding="0" cellspacing="$stylevar[cellpadding]" border="0" width="100%">
<tr>
<if condition="in_array($post['usergroupid'], array(5,6,7,12,14)) AND $post[fieldXX]">
<div class="smallfont">
<object width="150" height="123.5"><param name="movie" value="http://www.youtube.com/v/$post[fieldXX]"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/$post[fieldXX]" type="application/x-shockwave-flash" wmode="transparent" width="150" height="123.5"></embed></object>
</div>
<else />
<if condition="$show['avatar']">
<!-- check for staff -->
<if condition="in_array($post[usergroupid], array(5,6,7))">
<!-- I am staff so do this -->
<td class="alt2">

<table cellpadding="4" cellspacing="0" border="0" width="190" height="120" align="center" background="images/$post[username]_avatar.gif" nowrap="nowrap" no-repeat>
<tr>
<td width="46%">&nbsp;</td>
<td><img src="$post[avatarurl]" height="70" width="70" align="center"></td>
</tr>
</table>
</td>
<else />
<!-- I am not staff so do this -->
<td class="alt2">
<a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</td>
</if>
</if>
</if>
but edit the field number and user groups to match your site.

tipoboy 06-27-2007 01:46 PM

Quote:

Originally Posted by 4x4 Mecca (Post 1277332)
Dave, change


to




Where 9 is the additional usergroup ID and 6 is your field number. That will work :)

worked a treat thanks muchly for the quick help and reply!!!!!!!!!!

**tipoboy clicks nominate**

ThaSuper 06-27-2007 02:29 PM

great mod installed with no problems.
I have one question though...
Is there a way to restrict Video Avatars to only users with a certain number of post or greater?
Example: User1 reaches 100 post then Video Avatars show. User2 with less than 100 post his video avatar does not show.

Let me know if this is possible?

Thanks.


All times are GMT. The time now is 02:59 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.02001 seconds
  • Memory Usage 1,747KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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