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)

Meghwar 11-17-2007 12:58 AM

Good job :) it take me 2 minutes:) done permission mods, supers, admins only :)

thanx again

StakingAces 11-17-2007 04:45 AM

Thanks alot ChU v2, I appreciate your help!

ChU v2 11-17-2007 05:09 AM

Quote:

Originally Posted by StakingAces (Post 1384176)
Thanks alot ChU v2, I appreciate your help!

Anytime.

tarot 12-14-2007 05:33 PM

Quick install, super easy and fun! Great job

Alfa1 12-15-2007 10:33 PM

Quote:

Originally Posted by ChU v2 (Post 1383395)
Try editing this:

HTML Code:

<if condition="in_array($post['usergroupid'], array(5,6,7,12,14)) AND $post[fieldXX]">
Where it says ['usergroupid'], array(5,6,7,12,14))

Enter in the Usergroup IDs that you want to have access to it.

If I understand this correctly then that will allow full access to this function. I too want to use this for supporters. Meaning that I want everyone to see that supporters can have this cool avatar, while non-supporters can see it, but can not add Youtube video as their avatar.

Somehow I cant get this to work. Here is my POSTBIT template:
Code:

<if condition="in_array($post['usergroupid'], array(6,23)) OR in_array($post['membergroupids'], array(6,23)) AND $post[field21]" > 
<div class="smallfont"><br>
<object width="150" height="123.5"><param name="movie" value="http://www.youtube.com/v/$post[field21]"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/$post[field21]" type="application/x-shockwave-flash" wmode="transparent" width="150" height="123.5"></embed></object>
</div>
<else />
<if condition="$show['avatar']">
<div class="smallfont">
&nbsp;<br /><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>
</div>
</if>
</if>

The top line give an error.

Can it be that the myspace profile rewrite is messing with this hack? (Since it parses youtube videos through custom profile fields as well)

Can someone help?

Meghwar 01-01-2008 03:48 PM

Hi all

Hack will not work with MEMBERINFO template vb 3.7.0 Beta3 Different Codes

Please be advised

Regards

AzH 01-01-2008 06:24 PM

That's why it's in the 3.6 section.

REVHEAD 01-03-2008 10:32 AM

I marked as installed ,I will wait till its a littl more mature

MWSR 01-03-2008 04:11 PM

This Is Great.................thanks

Aclikyano 01-15-2008 02:58 AM

Installed and working on VBulletin 3.6.8 PL2 :)


knigh22 01-26-2008 02:23 AM

I have 3.6.8 PL2. It won't work heres the code

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<style type="text/css">
#additionalinfo_list, #membergroups_list { margin-top: 0px; margin-bottom: 0px; }
#additionalinfo_list dd, #membergroups_list dd { margin: 0px 0px $stylevar[cellpadding]px 0px; }
</style>
<title>$vboptions[bbtitle] - $vbphrase[view_profile]: $userinfo[username]</title>
</head>
<body>
$header
$navbar

<!-- main info - avatar, profilepic etc. -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat">$vbphrase[view_profile]<span class="normal">: $userinfo[username]</span></td>
</tr>
<tr>
<td class="alt2">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td style="border-bottom:1px solid $stylevar[tborder_bgcolor]" width="100%" colspan="2">
<if condition="$userinfo['rank'] OR $userinfo['reputationdisplay']">
<div style="float:$stylevar[right]; padding:4px">
<if condition="$userinfo['rank']"><div align="center">$userinfo[rank]</div></if>
<if condition="$userinfo['reputationdisplay']"><div align="center">$userinfo[reputationdisplay]</div></if>
</div>
</if>
<div class="bigusername">$userinfo[musername] $userinfo[onlinestatus]</div>
<if condition="$userinfo['usertitle']"><div class="smallfont">$userinfo[usertitle]</div></if>
</td>
<if condition="$show['profilepic']">
<td valign="top" align="$stylevar[right]" rowspan="2">
<img src="$userinfo[profilepicurl]" $userinfo[profilepicsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_picture]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" />
</td>
</if>
</tr>
<tr valign="top">
<if condition="in_array($post['usergroupid'], array(5,6,7,12,14)) AND $post[field5]">
<td>
<object width="150" height="123.5"><param name="movie" value="http://www.youtube.com/v/$post[field5]"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/$post[field5]" type="application/x-shockwave-flash" wmode="transparent" width="150" height="123.5"></embed></object>
</td>
<else />
<if condition="$show['avatar']">
<td><img src="$userinfo[avatarurl]" $userinfo[avatarsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /></td>
<else />
<td>&nbsp;</td>
</if>
</if>
</if>
<td class="smallfont" valign="bottom" align="$stylevar[right]">
<if condition="$show['lastactivity']">
<div>$vbphrase[last_activity]: $userinfo[lastactivitydate] <span class="time">$userinfo[lastactivitytime]</span>&nbsp;</div>
</if>
<if condition="$show['currentlocation']">
<div>$userinfo[action] $userinfo[where]<if condition="$show['detailedtime']"> - <else /> @ </if> $userinfo[time]&nbsp;</div>
</if>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- / main info - avatar, profilepic etc. -->

$template_hook[memberinfo_pos1]

<!-- button row -->
<if condition="$show['profilelinks']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
<tr align="center">
<if condition="$userinfo['showvcard']">
<td class="vbmenu_control"><a href="member.php?$session[sessionurl]do=vcard&amp;u=$userinfo[userid]" rel="nofollow">$vbphrase[download_vcard]</a></td>
</if>
<if condition="$show['member']">
<td class="vbmenu_control">
<if condition="$show['addbuddylist']">
<a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[add_x_to_buddy_list]</phrase></a>
<else />
<a href="profile.php?$session[sessionurl]do=removelist&amp;userlist=buddy&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[remove_x_from_your_buddylist]</phrase></a>
</if>
</td>
<td class="vbmenu_control">
<if condition="$show['addignorelist']">
<a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=ignore&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[add_x_to_ignore_list]</phrase></a>
<else />
<a href="profile.php?$session[sessionurl]do=removelist&amp;userlist=ignore&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[remove_x_from_your_ignorelist]</phrase></a>
</if>
</td>
</if>
<if condition="can_moderate()">
<td class="vbmenu_control"><a href="moderator.php?$session[sessionurl]do=useroptions&amp;u=$userinfo[userid]">$vbphrase[user_options]</a></td>
</if>
<if condition="$show['giveinfraction']">
<td class="vbmenu_control"><a href="infraction.php?$session[sessionurl]do=report&amp;u=$userinfo[userid]">$vbphrase[give_infraction]</a></td>
</if>
</tr>
</table>
</if>
<!-- / button row -->

<br />

$template_hook[memberinfo_pos2]

<if condition="$show['infractions']">
<!-- infractions row -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan="$colspan"><span style="float:$stylevar[right]" class="smallfont"><phrase 1="$userinfo[ipoints]">$vbphrase[x_points_total]</phrase>&nbsp; &nbsp;</span>$vbphrase[infractions]</td>
</tr>
<tr>
<td class="thead">&nbsp;</td>
<td class="thead">$vbphrase[post]</td>
<td class="thead">$vbphrase[date]</td>
<td class="thead">$vbphrase[expires]</td>
<td class="thead">$vbphrase[points]</td>
<td class="thead">$vbphrase[reason]</td>
<td class="thead" nowrap="nowrap">$vbphrase[posted_by]</td>
<if condition="$show['reverse']"><td class="thead">$vbphrase[details]</td></if>
</tr>
$infractionbits
</table>
<if condition="$pagenav">
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-top:3px">
<tr valign="bottom">
<td align="$stylevar[right]">$pagenav</td>
</tr>
</table>
</if>
<!-- / infractions row -->
<br />
</if>

$template_hook[memberinfo_pos3]

<if condition="$show['signature']">
<!-- signature row -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead">$vbphrase[signature]</td>
</tr>
<tr>
<td class="alt1" title="$vbphrase[signature]">$userinfo[signature]</td>
</tr>
</table>
<!-- / signature row -->
<br />
</if>

$template_hook[memberinfo_pos4]

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" width="50%">$vbphrase[forum_info]</td>
<td class="tcat" width="50%">$vbphrase[contact_info]</td>
</tr>
<tr valign="top">

<td class="panelsurround" align="center">
<div class="panel">
<div align="$stylevar[left]">

<div class="fieldset">
<div style="padding:$stylevar[formspacer]px">
$vbphrase[join_date]: <strong>$userinfo[datejoined]</strong>
</div>
</div>

<fieldset class="fieldset">
<legend>$vbphrase[posts]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td>
$vbphrase[total_posts]: <strong>$userinfo[posts]</strong> (<phrase 1="$postsperday">$vbphrase[x_posts_per_day]</phrase>)
</td>
</tr>
<if condition="$vboptions['profilelastpost']">
<tr>
<td>
$vbphrase[last_post]:<br />
<a href="$userinfo[lastposturl]">$userinfo[lastposttitle]</a><br />
$userinfo[lastpostdate] <span class="time">$userinfo[lastposttime]</span>
</td>
</tr>
</if>
<tr>
<td><a href="search.php?$session[sessionurl]do=finduser&amp;u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[find_all_posts_by_x]</phrase></a></td>
</tr>
<tr>
<td><a href="search.php?$session[sessionurl]do=finduser&amp;u=$userinfo[userid]&amp;starteronly=1" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[find_all_threads_started_by_x]</phrase></a></td>
</tr>
</table>
</fieldset>

<if condition="$vboptions['usereferrer']">
<div class="fieldset">
<div style="padding:$stylevar[formspacer]px">
$vbphrase[referrals]: <strong>$referrals</strong>
</div>
</div>
</if>

<if condition="$show['usernotes']">
<div class="fieldset">
<div style="padding:$stylevar[formspacer]px">
$vbphrase[user_notes]:
<if condition="$show['usernoteview']">
<strong>$usernote[total]</strong> [<a href="usernote.php?$session[sessionurl]u=$userinfo[userid]">$vbphrase[view]</a>]
</if>
<if condition="$show['usernotepost']">
[<a href="usernote.php?$session[sessionurl]do=newnote&amp;u=$userinfo[userid]">$vbphrase[post_user_note]</a>]
</if>
<if condition="$show['usernoteview']">
<br />($vbphrase[last_note]: $usernote[lastpostdate] <span class="time">$usernote[lastposttime]</span>)
</if>
</div>
</div>
</if>

$template_hook[memberinfo_foruminfo]

</div>
</div>
</td>

<td class="panelsurround" align="center">
<div class="panel">
<div align="$stylevar[left]">

<div class="fieldset">
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<if condition="!$show['contactlinks']">
<tr>
<td><strong><phrase 1="$userinfo[username]">$vbphrase[x_has_no_contact_info]</phrase></strong></td>
</tr>
</if>
<if condition="$show['homepage']">
<tr>
<td>
$vbphrase[home_page]:<br />
<a href="$userinfo[homepage]" target="_blank" dir="ltr">$userinfo[homepage]</a>
</td>
</tr>
</if>
<if condition="$show['email']">
<tr>
<td>
$vbphrase[email]:<br />
<a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[send_message_via_email_to_x]</phrase></a>
</td>
</tr>
</if>
<if condition="$show['pm']">
<tr>
<td>
$vbphrase[private_message]:<br />
<a href="private.php?$session[sessionurl]do=newpm&amp;u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[send_private_message_to_x]</phrase></a>
</td>
</tr>
</if>
</table>
</div>

<if condition="$show['hasimicons']">
<fieldset class="fieldset">
<legend>$vbphrase[instant_messaging]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<if condition="$show['textimicons']">
<if condition="$userinfo['showicq']">
<tr>
<td>$vbphrase[icq]</td>
<td>$userinfo[icq]</td>
</tr>
</if>
<if condition="$userinfo['showaim']">
<tr>
<td>$vbphrase[aim]</td>
<td>$userinfo[aim]</td>
</tr>
</if>
<if condition="$userinfo['showmsn']">
<tr>
<td>$vbphrase[msn]</td>
<td>$userinfo[msn]</td>
</tr>
</if>
<if condition="$userinfo['showyahoo']">
<tr>
<td>$vbphrase[yahoo]</td>
<td>$userinfo[yahoo]</td>
</tr>
</if>
<if condition="$userinfo['skype']">
<tr>
<td>$vbphrase[skype]</td>
<td>$userinfo[skype]</td>
</tr>
</if>
<else />
<if condition="$userinfo['showicq']">
<tr>
<td>$userinfo[icqicon]</td>
<td><a href="#" dir="ltr" onclick="imwindow('icq', '$userinfo[userid]', 500, 450); return false;">$userinfo[icq]</a></td>
</tr>
</if>
<if condition="$userinfo['showaim']">
<tr>
<td>$userinfo[aimicon]</td>
<td><a href="#" dir="ltr" onclick="imwindow('aim', '$userinfo[userid]', 400, 200); return false;">$userinfo[aim]</a></td>
</tr>
</if>
<if condition="$userinfo['showmsn']">
<tr>
<td>$userinfo[msnicon]</td>
<td><a href="#" dir="ltr" onclick="imwindow('msn', '$userinfo[userid]', 400, 200); return false;">$userinfo[msn]</a></td>
</tr>
</if>
<if condition="$userinfo['showyahoo']">
<tr>
<td>$userinfo[yahooicon]</td>
<td><a href="#" dir="ltr" onclick="imwindow('yahoo', '$userinfo[userid]', 400, 200); return false;">$userinfo[yahoo]</a></td>
</tr>
</if>
<if condition="$userinfo['showskype']">
<tr>
<td>$userinfo[skypeicon]</td>
<td><a href="#" dir="ltr" onclick="imwindow('skype', '$userinfo[userid]', 400, 285); return false;">$userinfo[skype]</a></td>
</tr>
</if>
</if>
$template_hook[memberinfo_iminfo]
</table>
</fieldset>
</if>

$template_hook[memberinfo_contactinfo]
</div>
</div>
</td>

</tr>
<tr>
<td class="tcat" width="50%">$vbphrase[additional_information]</td>
<td class="tcat" width="50%">$vbphrase[group_memberships]</td>
</tr>
<tr valign="top">

<td class="panelsurround" align="center">
<div class="panel">
<div align="$stylevar[left]">
<if condition="$show['extrainfo']">
<dl id="additionalinfo_list">
<if condition="$show['birthday']">
<dt class="smallfont"><strong>$vbphrase[birth_date]</strong>:</dt>
<dd class="smallfont">$userinfo[birthday]</dd>
</if>
<if condition="$show['age']">
<dt class="smallfont"><strong>$vbphrase[age]</strong>:</dt>
<dd class="smallfont">$userinfo[age]</dd>
</if>
$customfields
</dl>
<else />
<em>$vbphrase[n_a]</em>
</if>

$template_hook[memberinfo_additionalinfo]
</div>
</div>
</td>

<td class="panelsurround" align="center">
<div class="panel">
<div align="$stylevar[left]">
<if condition="$show['membergroups']">
<dl id="membergroups_list" class="smallfont">
$membergroupbits
</dl>
<else />
<div class="smallfont"><strong><phrase 1="$userinfo[username]">$vbphrase[x_is_not_a_member_of_any_public_groups]</phrase></strong></div>
</if>

$template_hook[memberinfo_groups]
</div>
</div>
</td>

</tr>
</table>
<br />

$footer

</body>
</html>

Alfa1 01-26-2008 06:48 AM

Please port this awesome hack to vb 3.7. I'll donate if you do.

hilfe-forum 02-16-2008 06:55 AM

Thanks alot 4x4 Mecca fot this Hack!
I Love it :D

In my Board the User-Avatar display in navbar template to.
I add the Code in navbar t. too but dont work.
If i visit a user-profil page it works but i see the Video from the User in the Navbar not my Video.
Cracy :D
How can i change this?

Edit:
Ok found the problem now it works ;)

TopNotch 02-20-2008 02:39 PM

Is there any way I can allow members who have over 2,000 posts on my forums to use this? how could i set that up?:D

Digital Jedi 02-22-2008 08:23 PM

Quote:

Originally Posted by knigh22 (Post 1429060)
I have 3.6.8 PL2. It won't work heres the code


Code:

<if condition="in_array($post['usergroupid'], array(5,6,7,12,14)) AND $post[field5]">
<td>
<object width="150" height="123.5"><param name="movie" value="http://www.youtube.com/v/$post[field5]"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/$post[field5]" type="application/x-shockwave-flash" wmode="transparent" width="150" height="123.5"></embed></object>
</td>
<else />
<if condition="$show['avatar']">
<td><img src="$userinfo[avatarurl]" $userinfo[avatarsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /></td>
<else />
<td>&nbsp;</td>
</if>
</if>
</if>


You have the Usergroups ID Numbers set to the same ones that come in the example. Do you actually have user groups that use those numbers? Because your supposed to set those to the ID Numbers of the User Groups you want it to work for.

Also, just to make things easier, you might want to use [CODE], [PHP] or [HTML] tags next time. Makes it easier to read. ;)

Digital Jedi 02-22-2008 08:24 PM

Well, inexplicably this stopped working on my forum one day. No rhyme or reason. I'm double checking now, but I can't imagine why that happened.

Division 02-26-2008 04:49 AM

I followed the video carefully and edited the postbit, postbit legacy, and MEMBERSINFO.

I did something right though because this shows up on the EDITPROFILE option in the USERCP

http://img82.imageshack.us/img82/1069/picture11nt2.png

But the videos dont show up. Help?



Code:

$template_hook[postbit_start]
<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="thead" $post[scrolltothis]>
                <div class="normal" style="float:$stylevar[right]">
                        &nbsp;
                        <if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a> &nbsp;</if>
                        <if condition="$show['reputationlink']">
                                <span id="reputationmenu_$post[postid]"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow" id="reputation_$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a></span>
                                <if condition="$show['popups']"><script type="text/javascript"> vbrep_register("$post[postid]")</script></if>&nbsp;
                        </if>
                        <if condition="$show['infractionlink']"><a href="infraction.php?$session[sessionurl]do=report&amp;p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/infraction.gif" alt="<phrase 1="$post[username]">$vbphrase[add_infraction_for_x]</phrase>" border="0" /></a> &nbsp;</if>
                        <if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a> &nbsp;</if>
                        $post[iplogged]
                        <if condition="$show['inlinemod']">
                        <input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" />
                        </if>
                </div>
               
                <div class="normal">
                        <!-- status icon and date -->
                        <a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a>
                        <if condition="!$show['announcement']">
                                $post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
                        <else />
                                <phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
                        </if>
                        $post[firstnewinsert]
                        <!-- / status icon and date -->
                </div>
        </td>
</tr>
<tr>
        <td class="alt2" style="padding:0px">
                <!-- user info -->
                <table cellpadding="0" cellspacing="$stylevar[cellpadding]" border="0" width="100%">
                <tr>
                                                        <if condition="in_array($post['23'], array(5,6,7,12,14)) AND $post[field5]">
<div class="smallfont">
<object width="150" height="123.5"><param name="movie" value="http://www.youtube.com/v/$post[field5]"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/$post[field5]" type="application/x-shockwave-flash" wmode="transparent" width="150" height="123.5"></embed></object>
</div>
<else />
<if condition="$show['avatar']">
<div class="smallfont">
&nbsp;<br /><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>
</div>
</if>
</if>
                        <td nowrap="nowrap">
                       
                                <div id="postmenu_$post[postid]">
                                        <if condition="$show['profile']">
                                        <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
                                        $post[onlinestatus]
                                        <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
                                        <else />
                                        $post[musername]
                                        </if>
                                </div>
                               
                                <if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
                                <if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
                                $template_hook[postbit_userinfo_left]
                               
                        </td>
                        <td width="100%">&nbsp;</td>
                        <td valign="top" nowrap="nowrap">
                               
                                <div class="smallfont">
                                        <if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
                                        <if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
                                        <if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
                                        <div>
                                                $vbphrase[posts]: $post[posts]
                                        </div>

                                        <if condition="$vboptions['enable_htnx_tag'] AND in_array(THIS_SCRIPT, array('showthread', 'showpost', 'editpost'))">
                                        <div>
                                                <if condition="$bbuserinfo['userid'] == $post['userid'] OR in_array($post['postid'], $hidetag['said_thanks'])">
                                                        <img src='$stylevar[imgdir_misc]/thanks.gif' alt="" border="0" />
                                                <else />
                                                        <a href="showthread.php?t=$post[threadid]&amp;thanks=$post[postid]"><img src='$stylevar[imgdir_misc]/thanks.gif' alt="$vbphrase[say_thank_you]" border="0" /></a>
                                                </if> = $post_thanks_count $vbphrase[for_this_post] / $user_thanks_count $vbphrase[total]
                                        </div>
                                        </if>
                                        $template_hook[postbit_userinfo_right_after_posts]
                                        <if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
                                        <if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><div>
<span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>


                                        $template_hook[postbit_userinfo_right]
                                        <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
                                </div>
                               
                        </td>
                </tr>
                </table>
                <!-- / user info -->
        </td>
</tr>
<tr>
        <td class="alt1" id="td_post_$post[postid]">
        <!-- message, attachments, sig -->
       
                $template_hook[postbit_messagearea_start]
               
                <if condition="$show['messageicon'] OR $post['title']">
                        <!-- icon and title -->
                        <div class="smallfont">
                                <if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
                                <if condition="$post['title']"><strong>$post[title]</strong></if>
                        </div>
                        <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
                        <!-- / icon and title -->
                </if>
               
                <!-- message -->
                <div id="post_message_$post[postid]">$post[message]</div>
                <!-- / message -->
       
                <if condition="$show['attachments']">
                <!-- attachments -->
                        <div style="padding:$stylevar[cellpadding]px">
                       
                        <if condition="$show['thumbnailattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_thumbnails]</legend>
                                        <div style="padding:$stylevar[formspacer]px">
                                        $post[thumbnailattachments]
                                        </div>
                                </fieldset>
                        </if>
               
                        <if condition="$show['imageattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_images]</legend>
                                        <div style="padding:$stylevar[formspacer]px">
                                        $post[imageattachments]
                                        </div>
                                </fieldset>
                        </if>
                       
                        <if condition="$show['imageattachmentlink']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_images]</legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                        $post[imageattachmentlinks]
                                        </table>
                                        </fieldset>
                        </if>
                       
                        <if condition="$show['otherattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_files]</legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                        $post[otherattachments]
                                        </table>
                                </fieldset>
                        </if>
                       
                        <if condition="$show['moderatedattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attachments_pending_approval]</legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                        $post[moderatedattachments]
                                        </table>
                                </fieldset>               
                        </if>
                       
                        </div>
                <!-- / attachments -->
                </if>
               
                $template_hook[postbit_signature_start]
               
                <if condition="$post['signature']">
                <!-- sig -->
                        <div>
                                __________________<br />
                                $post[signature]
                        </div>
                <!-- / sig -->
                </if>
               
                $template_hook[postbit_signature_end]
               
                <if condition="$show['postedited']">
                <!-- edit note -->
                        <div class="smallfont">                        <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
                                <em>
                                <phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
                                <if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
                                </em>
                        </div>
                <!-- / edit note -->
                </if>
       
                <div style="margin-top: 10px" align="$stylevar[right]">
                        <!-- controls -->
                        <if condition="$post['editlink']">
                                <img style="display: none" id="progress_$postid" src="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[loading_editor_please_wait]" />
                                <a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
                        </if>
                        <if condition="$post['forwardlink']">
                                <a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
                        </if>
                        <if condition="$post['replylink']">
                                <a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
                        </if>
                        <if condition="$show['multiquote_post']">
                                <a href="$post[replylink]" rel="nofollow" onclick="return false"><img src="$stylevar[imgdir_button]/multiquote_<if condition="$show['multiquote_selected']">on<else />off</if>.gif" alt="$vbphrase[multi_quote_this_message]" border="0" id="mq_$post[postid]" /></a>
                        </if>
                        <if condition="$show['quickreply'] AND !$show['threadedmode']">
                                <a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
                        </if>
                        <if condition="$show['moderated']">
                                <img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" />
                        </if>
                        <if condition="$show['deletedpost']">
                                <img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[deleted_post]" border="0" />
                        </if>
                        <if condition="$show['redcard']">
                                <a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/redcard.gif" alt="$vbphrase[received_infraction]" border="0" /></a>
                        <else />
                                <if condition="$show['yellowcard']">
                                        <a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]" border="0" /></a>
                                </if>
                        </if>
                        $template_hook[postbit_controls]
                        <!-- / controls -->
                </div>
               
        <!-- message, attachments, sig -->
       
        </td>
</tr>
</table>
$template_hook[postbit_end]

<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none;">
        <table cellpadding="4" cellspacing="1" border="0">
        <tr>
                <td class="thead">$post[username]</td>
        </tr>
        <if condition="$show['profile']">
                <tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
        </if>
        <if condition="$show['pmlink']">
                <tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
        </if>
        <if condition="$show['emaillink']">
                <tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
        </if>
        <if condition="$show['homepage']">
                <tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
        </if>
        <if condition="$show['search']">
                <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_all_posts_by_x]</phrase></a></td></tr>
        </if>
        <if condition="$post['userid'] AND $show['member']">
        <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
        </if>
        $template_hook[postbit_user_popup]
        </table>
</div>
<!-- / post $post[postid] popup menu -->


Digital Jedi 02-28-2008 10:53 PM

Quote:

Originally Posted by Division (Post 1451197)
I followed the video carefully and edited the postbit, postbit legacy, and MEMBERSINFO.

I did something right though because this shows up on the EDITPROFILE option in the USERCP



But the videos dont show up. Help?

This line is your problem.
PHP Code:

<if condition="in_array($post['23'], array(5,6,7,12,14)) AND $post[field5]"

You weren't supposed to change $post['usergroupid']. If you want User Group ID 23 to be the only one to use these avatars, then it should look like this.
PHP Code:

<if condition="in_array($post['usergroupid], array(23)) AND $post[field5]"

You select the user groups you want to use this by putting their ID number in the $array(), separating multiple ID numbers with a comma.

bago200 03-05-2008 10:53 PM

Quote:

Originally Posted by ChU v2 (Post 1278711)
I'm new to installing mods, in fact this my second. I put both sets of code in both postbit and postbit_legacy, edited the FieldXX... I'm not getting the option in my User CP.

Only used the last part of the video URL after the "="

I don't know what I'm doing wrong. :(

Quote:

Originally Posted by tipoboy (Post 1278720)
it should be right t the bottom of the profile editor page

if its not there double check that you created the new profile field correctly.

if this is all done and still doesnt work post back here:)

Hey how your doing, i am having the same issue but the only difference is, i have done everything and it still does not show, sorry, i am a newbie but i have the latest version of vb.3.6.8

Digital Jedi 03-06-2008 06:48 AM

I think the majority of the problems people are having with this not showing up is there's no clear instruction telling them that they have to change the array(5,6,7,12,14) to the Usergroup ID numbers they want using this.

TopNotch 03-11-2008 12:24 AM

Hi, I love this hack I have been using it for about 2 weeks now but took it off recently. I would like to put it back up but I have a question. I noticed that only Admins are able to view the video as my avatar. Other like regular members don't see the video avatar they only see my old regular avatar. I think this is because I did not set the viewing permissions to everyone. I tried to edit it but I can't seem to find where to go to fix my problem. Could anyone help me?

Thank You

nectons 03-11-2008 12:54 AM

just perfect... works perfect.. you are great man.. thanks

instaled and motm

TopNotch 03-12-2008 01:02 AM

Quote:

Originally Posted by TopNotch (Post 1461926)
Hi, I love this hack I have been using it for about 2 weeks now but took it off recently. I would like to put it back up but I have a question. I noticed that only Admins are able to view the video as my avatar. Other like regular members don't see the video avatar they only see my old regular avatar. I think this is because I did not set the viewing permissions to everyone. I tried to edit it but I can't seem to find where to go to fix my problem. Could anyone help me?

Thank You

anyone?

Digital Jedi 03-12-2008 04:31 AM

Quote:

Originally Posted by TopNotch (Post 1462665)
anyone?

There really shouldn't be any reason it would do that. The permission array is only for those who can use the avatars, not see it. It could be possible that you had your if conditionals set up wrong, maybe wrapping it inside one farther up the code block.

TopNotch 03-12-2008 06:08 PM

Quote:

Originally Posted by Digital Jedi (Post 1462758)
There really shouldn't be any reason it would do that. The permission array is only for those who can use the avatars, not see it. It could be possible that you had your if conditionals set up wrong, maybe wrapping it inside one farther up the code block.

If I had that wrong then it wouldnt work at all. But this way I see it when Iam logged into my admin account but when I log into my regular members account it doesn't show up.

Digital Jedi 03-13-2008 08:04 AM

Not necessarily. If you have it wrapped in a conditional that's permission based, then that would cause the same effect. I'm speculating of course. Post your template code like the others did and we may be able to see what's causing it. Often times its something small like a character out of place.

Rideharder 03-16-2008 07:32 PM

sweet works good!

Majava 03-26-2008 02:28 AM

Quote:

Originally Posted by AzH (Post 1347734)
I think I have a fix for you. Use this code instead:

HTML Code:

                <if condition="in_array($post['usergroupid'], array(5,6,7,22,48)) AND $post[field8]">
<td class="alt2">
<object width="150" height="123.5"><param name="movie" value="http://www.youtube.com/v/$post[field8]"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/$post[field8]" type="application/x-shockwave-flash" wmode="transparent" width="150" height="123.5"></embed></object>
</td>
<else />
<if condition="$show['avatar']">
<td class="alt2">
&nbsp;<br /><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>

I was getting the same error as you so I switched from:

<div class="smallfont">

to:

<td class="alt2">

with the respective closing tag </td> and it works fine.

Thank you so much, I was about to give up on this hack!

Alfa1 03-26-2008 06:45 PM

Please upgrade this to vb 3.7.

nectons 03-27-2008 02:13 PM

Quote:

Originally Posted by ChU v2 (Post 1278742)
I got it to work. Thank you. Looks awesome.

Just a few things. The avatar isn't centered. It's fine if you have a YouTube video, but my user's avatar are left-aligned. It looks like crap. Anyway to fix that?

And its not viewable in your profile or the homepage, only in threads. Not that big of a deal.

Man it is stil working perfect except the LEFT aligned problem. I have the same problem with you.. did you find any solution to center all avatars ?

Anyone plz ? :)

Rideharder 04-11-2008 03:26 AM

Thanks for the video!!!!:)

tei727 05-02-2008 02:30 PM

Quote:

Originally Posted by Alfa1 (Post 1475232)
Please upgrade this to vb 3.7.

bump :):D

Digital Jedi 05-03-2008 05:11 AM

Quote:

Originally Posted by tei727 (Post 1505788)
bump :):D

I haven't fooled with the 3.7 templates all that much yet, but shouldn't the code be exactly the same?

Alfa1 05-03-2008 03:28 PM

It's different.

fukdawrld 05-09-2008 11:40 PM

most excellent works fine on 3.7 gold .now if you can give me instructions on how to do continuous play that would be even better., first response in a thread has this option is "the only one that plays continuous"

eXoOutsider 05-10-2008 12:37 AM

This did not work for me on Vbulletin 3.7. It was close, but the template edits were a bit off. It messes up the entire postbit. Anyone have any ideas?

MiahBeSmokin420 05-10-2008 02:07 AM

Quote:

Originally Posted by eXoOutsider (Post 1514428)
This did not work for me on Vbulletin 3.7. It was close, but the template edits were a bit off. It messes up the entire postbit. Anyone have any ideas?

is your postbit and/or postbit legacy which ever you are doing this to
was it already modified before you tried to do this

if so let me get a copy of that and i will take a look

most likely it is something small and easy to work around 98% of this stuff is

AzH 05-11-2008 07:09 AM

I have it working on 3.7.0. Same/similar code. In what way does it mess up the template? A common theme is the avatar appearing above the user info (ranks etc). The way around this is to look at your original template and find the bit in between:

Code:

<if condition="$show['avatar']">
and
Code:

<a href="member.php?$session[sessionurl]u=$post[userid]">
It could be something like:

Code:

<td class="alt2">
And change the
Code:

<div class="smallfont">
in the installation guide to your original code above.

Be sure to change the closing tag from div to td if this is the case.

It's very early, I'm not sure if that made any sense. :/

eXoOutsider 05-11-2008 12:27 PM

Quote:

Originally Posted by AzH (Post 1515678)
I have it working on 3.7.0. Same/similar code. In what way does it mess up the template? A common theme is the avatar appearing above the user info (ranks etc). The way around this is to look at your original template and find the bit in between:

Code:

<if condition="$show['avatar']">
and
Code:

<a href="member.php?$session[sessionurl]u=$post[userid]">
It could be something like:

Code:

<td class="alt2">
And change the
Code:

<div class="smallfont">
in the installation guide to your original code above.

Be sure to change the closing tag from div to td if this is the case.

It's very early, I'm not sure if that made any sense. :/

It messes up the template in that it makes another column to the right of the postbit, and places all the user info fields above the first postbit, it's probably just a small table error

AzH 05-12-2008 04:53 PM

Probably right. Post your postbit code so we can have a look?


All times are GMT. The time now is 09:10 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.02012 seconds
  • Memory Usage 2,034KB
  • 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
  • (11)bbcode_code_printable
  • (2)bbcode_html_printable
  • (2)bbcode_php_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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