Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Social Group Discussions Like Postbit Legacy Details »»
Social Group Discussions Like Postbit Legacy
Version: 1.00, by MrEyes MrEyes is offline
Developer Last Online: May 2017 Show Printable Version Email this Page

Category: Social Group and Album Enhancements - Version: 3.8.x Rating:
Released: 02-02-2009 Last Update: Never Installs: 67
Template Edits
Re-useable Code Translations  
No support by the author.

Social Group Discussions Like Postbit Legacy

The following template modification makes Social Group discussion look similar to Postbit Legacy.

To install open your "socialgroups_message" template and overwrite the entire template with the markup below:

Code:
<if condition="$message['goto']">
        <a name="newmessage"></a>
</if>

<div id="gmessage_qe$message[gmid]" style="margin-bottom:5px">
    <table id="gmessage$message[gmid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
        <tr>
            <td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[right]: 0px">$message[date] $message[time]</td>
            <td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[left]: 0px" align="$stylevar[right]">
                <if condition="$show['inlinemod']"><div class="inlinemod_control"><input type="checkbox" class="inlinemod_checkbox" name="gmessagelist[$message[gmid]]" id="gmessagelist_$message[gmid]" value="$message[checkbox_value]" title="$vbphrase[select_this_item_for_inline_moderation]"  /></div></if>
            </td>
        </tr>
        <tr valign="top">
            <td class="alt2" width="175" align="center" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">
                <div id="sgpostmenu_$message[gmid]">
                    <if condition="$message['postuserid']">
                        <a class="bigusername" href="member.php?$session[sessionurl]u=$message[postuserid]">$message[musername]</a>
                        <script type="text/javascript"> vbmenu_register("sgpostmenu_$message[gmid]", true); </script>
                    <else />
                        $message[musername]
                    </if>
                </div>
                <br/>
                <img src="$message[avatarurl]" class="alt2 avatar"<if condition="$message['avatarwidth']"> width="$message[avatarwidth]"</if><if condition="$message['avatarheight']"> height="$message[avatarheight]"</if> border="0" alt="$message[username]" /><if condition="$message['postuserid']"></a></if>
            </div>
            </td>
            <td class="alt1" id="td_post_$message[gmid]" style="border-$stylevar[right]: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
                <div class="social_group_message_body">
                <if condition="$show['moderation']"><div class="shade smallfont">$vbphrase[this_message_is_moderated]</div></if>
                <div class="group_message_body" id="gmessage_text_$message[gmid]">$message[message]</div>
            </td>
        </tr>
        <tr>
            <td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px">
                <if condition="$show['reportlink']">
                    <a href="group.php?$session[sessionurl]do=report&amp;gmid=$message[gmid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a>
                </if>
                <if condition="$message['itemipaddress']">
                    <a href="group.php?do=viewip&amp;gmid=$message[gmid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/ip.gif" alt="$vbphrase[ip]" border="0" /></a>
                </if>
            </td>
            <td class="alt1" align="$stylevar[right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[left]: 0px; border-top: 0px">
                <if condition="$message['edit']">
                    <if condition="!$message[is_discussion]">
                        <img style="display: none" id="progress_$message[gmid]" src="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[loading_editor_please_wait]" />
                    </if>
                    <a href="group.php?$session[sessionurl]do=message&amp;gmid=$message[gmid]<if condition="$perpage">&amp;pp=$perpage</if><if condition="$pagenumber">&amp;page=$pagenumber</if>" id="gmessage_qe_edit_$message[gmid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
                </if>
            </td>
        </tr>
    </table>
    <if condition="$show['edit'] AND $show['popups'] AND !$message[is_discussion]">
        <script type="text/javascript">
        <!--
        vBulletin.register_control("vB_QuickEdit", "$message[gmid]", 'GroupMessage');
        //-->
        </script>
    </if>
</div>
    
<!-- post $message[gmid] popup menu -->
<div class="vbmenu_popup" id="sgpostmenu_$message[gmid]_menu" style="display:none">
    <table cellpadding="4" cellspacing="1" border="0">
        <tr><td class="thead">$message[musername]</td></tr>
        <if condition="$message['postuserid']">
            <tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$message[postuserid]">View Public Profile</a></td></tr>
            <tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$message[postuserid]" rel="nofollow"><phrase 1="$message[musername]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
        </if>
        <if condition="$show['member']">
            <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$message[postuserid]"><phrase 1="$message[musername]">$vbphrase[add_x_to_contacts]</phrase></a></td></tr>
        </if>
    </table>
</div>
<!-- / post $message[gmid] popup menu -->
Something you need to know

This template change will not display the full postbit that includes post count, location etc, it will only show avatar and username. The reason for this is simple, the data simply isn't available without a plugin modification.

Other Information
If you have installed my Quote Functionality in Social Discussions modification you can add a quote button by following the steps below:
  1. In the template markup above find:

    Code:
    <if condition="$message['edit']">
  2. Immediately before this paste in the following

    Code:
    <a href="group.php?$session[sessionurl]do=message&amp;discussionid=$message[discussionid]&amp;gmq=$message[gmid]"><img src="$stylevar[imgdir_button]/quote.gif" alt="$vbphrase[quote]" border="0" /></a>
Unfortunately I do not have the time to sort out a template for the new postbit, so feel free to create one if you want. If you do, drop me a PM and I will link to it from this mod.

This is one of the mods in my "Why isn't this stuff in the default social group system" series, for the others see these threads:

Social Group Statistics in Whats Going On
Quote Functionality in Social Discussions

Screenshots

File Type: jpg sg_sample.jpg (44.0 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 04-09-2009, 11:57 PM
Jaiibee's Avatar
Jaiibee Jaiibee is offline
 
Join Date: Sep 2007
Location: Australia
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't know why I found that screenshot humorous ><
Reply With Quote
  #23  
Old 04-23-2009, 03:23 PM
s8glive s8glive is offline
 
Join Date: Mar 2009
Location: USA
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great mod love it hope they put it in ver 4.0
Reply With Quote
  #24  
Old 04-25-2009, 09:21 AM
zefyx's Avatar
zefyx zefyx is offline
 
Join Date: Oct 2008
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, here's the 100% XHTML valid code:

Code:
<if condition="$message['goto']">
        <a name="newmessage"></a>
</if>

<div id="gmessage_qe$message[gmid]" style="margin-bottom:5px">
    <table id="gmessage$message[gmid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
        <tr>
            <td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[right]: 0px">$message[date] $message[time]</td>
            <td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[left]: 0px" align="$stylevar[right]">
                <if condition="$show['inlinemod']"><div class="inlinemod_control"><input type="checkbox" class="inlinemod_checkbox" name="gmessagelist[$message[gmid]]" id="gmessagelist_$message[gmid]" value="$message[checkbox_value]" title="$vbphrase[select_this_item_for_inline_moderation]"  /></div></if>
            </td>
        </tr>
        <tr valign="top">
            <td class="alt2" width="175" align="center" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">
                <div id="sgpostmenu_$message[gmid]">
                    <if condition="$message['postuserid']">
                        <a class="bigusername" href="member.php?$session[sessionurl]u=$message[postuserid]">$message[musername]</a>
                        <script type="text/javascript"> vbmenu_register("sgpostmenu_$message[gmid]", true); </script>
                    <else />
                        $message[musername]
                    </if>
                </div>
                <br/>
                <img src="$message[avatarurl]" class="alt2 avatar"<if condition="$message['avatarwidth']"> width="$message[avatarwidth]"</if><if condition="$message['avatarheight']"> height="$message[avatarheight]"</if> border="0" alt="$message[username]" /><if condition="$message['postuserid']"></if>

            <td class="alt1" id="td_post_$message[gmid]" style="border-$stylevar[right]: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
                <div class="social_group_message_body"/>
                <if condition="$show['moderation']"><div class="shade smallfont">$vbphrase[this_message_is_moderated]</div></if>
                <div class="group_message_body" id="gmessage_text_$message[gmid]">$message[message]</div>
            </td>
        </tr>
        <tr>
            <td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px">
                <if condition="$show['reportlink']">
                    <a href="group.php?$session[sessionurl]do=report&amp;gmid=$message[gmid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a>
                </if>
                <if condition="$message['itemipaddress']">
                    <a href="group.php?do=viewip&amp;gmid=$message[gmid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/ip.gif" alt="$vbphrase[ip]" border="0" /></a>
                </if>
            </td>
            <td class="alt1" align="$stylevar[right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[left]: 0px; border-top: 0px">
                <if condition="$message['edit']">
                    <if condition="!$message[is_discussion]">
                        <img style="display: none" id="progress_$message[gmid]" src="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[loading_editor_please_wait]" />
                    </if>
                    <a href="group.php?$session[sessionurl]do=message&amp;gmid=$message[gmid]<if condition="$perpage">&amp;pp=$perpage</if><if condition="$pagenumber">&amp;page=$pagenumber</if>" id="gmessage_qe_edit_$message[gmid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
                </if>
            </td>
        </tr>
    </table>
    <if condition="$show['edit'] AND $show['popups'] AND !$message[is_discussion]">
        <script type="text/javascript">
        <!--
        vBulletin.register_control("vB_QuickEdit", "$message[gmid]", 'GroupMessage');
        //-->
        </script>
    </if>
</div>
    
<!-- post $message[gmid] popup menu -->
<div class="vbmenu_popup" id="sgpostmenu_$message[gmid]_menu" style="display:none">
    <table cellpadding="4" cellspacing="1" border="0">
        <tr><td class="thead">$message[musername]</td></tr>
        <if condition="$message['postuserid']">
            <tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$message[postuserid]">View Public Profile</a></td></tr>
            <tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$message[postuserid]" rel="nofollow"><phrase 1="$message[musername]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
        </if>
        <if condition="$show['member']">
            <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$message[postuserid]"><phrase 1="$message[musername]">$vbphrase[add_x_to_contacts]</phrase></a></td></tr>
        </if>
    </table>
</div>
<!-- / post $message[gmid] popup menu -->
Reply With Quote
  #25  
Old 09-09-2009, 04:56 AM
EidolonAH EidolonAH is offline
 
Join Date: Apr 2009
Location: London, England
Posts: 178
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Brilliant extra, thank you for the share.

I'd like the avatar to be actual size, this doesn't work in 3.8.4:

Quote:
Originally Posted by MrEyes View Post
Find this bit:

Code:
<img src="$message[avatarurl]" class="alt2 avatar"<if condition="$message['avatarwidth']"> width="$message[avatarwidth]"</if><if condition="$message['avatarheight']"> height="$message[avatarheight]"</if> border="0" alt="$message[username]" />
and replace with

Code:
<img src="$message[avatarurl]" class="alt2 avatar" border="0" alt="$message[username]" />
I haven't tested this, but it should work
Do you know how we do that in 3.8.4?
Reply With Quote
  #26  
Old 09-18-2009, 12:28 PM
Mobo Mobo is offline
 
Join Date: Jan 2004
Location: Colorado
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed your whole series, thanks!

I would also like to know this....

Quote:
Originally Posted by EidolonAH View Post
Brilliant extra, thank you for the share.

I'd like the avatar to be actual size, this doesn't work in 3.8.4:



Do you know how we do that in 3.8.4?
Reply With Quote
  #27  
Old 11-26-2009, 10:03 PM
Warlord's Avatar
Warlord Warlord is offline
 
Join Date: Jan 2002
Location: TN, USA
Posts: 668
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by EidolonAH View Post
Brilliant extra, thank you for the share.

I'd like the avatar to be actual size, this doesn't work in 3.8.4:



Do you know how we do that in 3.8.4?
I'm on 3.8.4 and it worked for me.
Reply With Quote
  #28  
Old 12-27-2009, 11:00 PM
Thelonius Beck's Avatar
Thelonius Beck Thelonius Beck is offline
 
Join Date: Jan 2008
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jaiibee View Post
I don't know why I found that screenshot humorous ><
I do.
Reply With Quote
  #29  
Old 01-19-2011, 07:23 PM
benstillman benstillman is offline
 
Join Date: Jun 2007
Location: Ohio
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anything like this for vB4?
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 02:13 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.06112 seconds
  • Memory Usage 2,345KB
  • Queries Executed 24 (?)
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
  • (6)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (1)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete