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)
-   -   Show Thread Enhancements - Social Networking in Postbit (with or without block) (https://vborg.vbsupport.ru/showthread.php?t=257924)

BadgerDog 02-02-2011 04:27 PM

I haven't had the chance to install for testing yet, but I prefer this to the other one mentioned .. ;)

Just my two cents .. :)

Regards,
Doug

J-P 02-02-2011 04:51 PM

1 Attachment(s)
Ok... got it.

I thought I was supposed to be adding in the "social media manager". Found out that it is the "user profile fields" ..

I think I got it :D

It is almost what I was looking for..... I was hoping that I could do a "Digg this post" etc..
with it.

boydy 02-02-2011 05:08 PM

It seems a bit high in the postbit, unless that's what you want. It should be under your posts and the current IM services that show.

If you need help on location post your postbit code in here and i'll take a look. Also there are already mods here on vb.org for like/tweet/digg this thread.

Such as - https://vborg.vbsupport.ru/showthrea...ght=tweet+post

I can't seem to find one for "digg" if you like i can look into this for you if you need it?

J-P 02-02-2011 06:19 PM

Thank you!
This is what I have edited in the "postbit_legacy" Version 4.1.0 Patch Level 2

Code:

{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
            </a>
            </vb:if>
            <vb:if condition="$post['userid']">
                <hr />
                <dl class="userinfo_extra">
                    <vb:if condition="$post['joindate']"><dt>{vb:rawphrase join_date}</dt> <dd>{vb:raw post.joindate}</dd></vb:if>
                    <vb:if condition="$post['field2']"><dt>{vb:rawphrase location_perm}</dt> <dd>{vb:raw post.field2}</dd></vb:if>
                    <vb:if condition="$post['age']"><dt>{vb:rawphrase age}</dt> <dd>{vb:raw post.age}</dd></vb:if>
                    <dt>{vb:rawphrase 'posts'}</dt> <dd>{vb:raw post.posts}</dd>   
                    {vb:raw template_hook.postbit_userinfo_right_after_posts}
                </dl>
                <vb:if condition="$show['infraction'] OR $show['reppower']">
                <dl class="user_rep">
                    <vb:if condition="$show['infraction']">
                    <dt>{vb:rawphrase infractions}</dt>
                    <dd>{vb:raw post.warnings}/{vb:raw post.infractions} ({vb:raw post.ipoints})</dd>
                    </vb:if>
                    <vb:if condition="$show['reputation']">
                        <vb:if condition="$show['reppower']">
                    <dt>{vb:rawphrase reppower}</dt>
                    <dd id="reppower_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reppower}</dd>
                        </vb:if>
                    </vb:if>
                </dl>
                </vb:if>
                {vb:raw template_hook.postbit_userinfo_right}
                <div class="imlinks">
                    {vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
                </div>
            </vb:if>
<vb:if condition="$post['field5']">
<a target ="blank" href="{vb:raw post.field5}"><img src="images/postbit_social/twitter.png" onmouseover="this.src='images/postbit_social/twitter_a.png'" onmouseout="this.src='images/postbit_social/twitter.png'" alt="Follow {vb:raw post.username} On Twitter" /></a>
</vb:if>
<vb:if condition="$post['field6']">
<a target ="blank" href="{vb:raw post.field6}"><img src="images/postbit_social/facebook.png" onmouseover="this.src='images/postbit_social/facebook_a.png'" onmouseout="this.src='images/postbit_social/facebook.png'" alt="Add {vb:raw post.username} on Facebook" /></a>
</vb:if>
<vb:if condition="$post['field7']">
<a target ="blank" href="{vb:raw post.field7}"><img src="images/postbit_social/bebo.png" onmouseover="this.src='images/postbit_social/bebo_a.png'" onmouseout="this.src='images/postbit_social/bebo.png'" alt="Add {vb:raw post.username} on Bebo" /></a>
</vb:if>
<vb:if condition="$post['field8']">
<a target ="blank" href="{vb:raw post.field8}"><img src="images/postbit_social/myspace.png" onmouseover="this.src='images/postbit_social/myspace_a.png'" onmouseout="this.src='images/postbit_social/myspace.png'" alt="Add {vb:raw post.username} on MySpace" /></a>
</vb:if>
<vb:if condition="$post['field9']">
<a target ="blank" href="{vb:raw post.field9}"><img src="images/postbit_social/youtube.png" onmouseover="this.src='images/postbit_social/youtube_a.png'" onmouseout="this.src='images/postbit_social/youtube.png'" alt="Visit {vb:raw post.username}'s Youtube Channel" /></a>
</vb:if>
<vb:if condition="$post['field10']">
<a target ="blank" href="{vb:raw post.field10}"><img src="images/postbit_social/vimeo.png" onmouseover="this.src='images/postbit_social/vimeo_a.png'" onmouseout="this.src='images/postbit_social/vimeo.png'" alt="Visit {vb:raw post.username}'s Vimeo Channel" /></a>
</vb:if>
        </div>
        <div class="postbody">
            <div class="postrow<vb:if condition="$show['postedited'] || $post['signature']"> has_after_content</vb:if>">
                {vb:raw template_hook.postbit_messagearea_start}
                <vb:if condition="$post['title'] OR $show['messageicon']">
                <h2 class="title icon">
                    <vb:if condition="$show['messageicon']"><img src="{vb:raw post.iconpath}" alt="{vb:raw post.icontitle}" /> </vb:if>{vb:raw post.title}
                </h2>
                </vb:if>


                        <vb:if condition="$post['isfirstshown']">
                            {vb:raw ad_location.ad_showthread_firstpost_start}
                            {vb:raw ad_location.thread_first_post_content}
                        </vb:if>
                        <vb:if condition="$post['islastshown']">
                            {vb:raw ad_location.thread_last_post_content}
                        </vb:if>
                <div class="content<vb:if condition="$show['first_ad'] OR $show['last_ad']"> hasad</vb:if>">
                    <div id="post_message_{vb:raw post.postid}">
                        <blockquote class="postcontent restore ">
                            {vb:raw post.message}
                        </blockquote>
                    </div>

                    <vb:if condition="$show['attachments']">
                        <div class="attachments">

                        <vb:if condition="$show['thumbnailattachment']">
                            <fieldset class="postcontent">
                                <legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" alt="{vb:rawphrase attached_thumbnails}" /> {vb:rawphrase attached_thumbnails}</legend>
                                {vb:raw post.thumbnailattachments}
                            </fieldset>
                        </vb:if>


DaRK mAN306 02-03-2011 06:23 PM

Interesting hack .!
I'll check it out later >> Tagged for now ..

Thanks for sharing ..

OldSchoolDSL 02-04-2011 03:22 AM

1 Attachment(s)
Installed & kind of working
4.1.1

Rather then showing up under my avatar... They seem to be going down the side of my avatar.

boydy 02-04-2011 06:30 AM

Hmm that's a few people with that issue. I'll look into it today.

Xencored 02-04-2011 06:52 AM

Quote:

Originally Posted by boydy (Post 2158581)
Hmm that's a few people with that issue. I'll look into it today.

Code:

                    <vb:if condition="$post['userid']">
                        <div class="imlinks">
                            {vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
                        </div>
                    </vb:if>

If you add it after

Code:

<vb:if condition="$post['userid']">
                        <div class="imlinks">
                            {vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
                        </div>

They will sit nicely under the IM's
So where wraped in the
Code:

$post['userid']
Well works great on my default test site

OldSchoolDSL 02-05-2011 12:54 AM

Quote:

Originally Posted by Vodkaholic (Post 2158587)
Code:

                    <vb:if condition="$post['userid']">
                        <div class="imlinks">
                            {vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
                        </div>
                    </vb:if>

If you add it after

Code:

<vb:if condition="$post['userid']">
                        <div class="imlinks">
                            {vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
                        </div>

They will sit nicely under the IM's
So where wraped in the
Code:

$post['userid']
Well works great on my default test site

So do you just add that code or do you change the code above in the 1st post to format this change?

BlueCheri 02-05-2011 10:56 AM

Nice work, Thanx


All times are GMT. The time now is 06:00 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.03411 seconds
  • Memory Usage 1,771KB
  • 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_code_printable
  • (2)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