vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Miscellaneous Hacks - Ignored User Post Better Layout (https://vborg.vbsupport.ru/showthread.php?t=297695)

CoffeeLovesYou 04-28-2013 10:00 PM

Ignored User Post Better Layout
 
1 Attachment(s)
This will better display a post by a user that is on your ignored list.

Screenshot:
Non-Moderator of Forum:
https://vborg.vbsupport.ru/external/2013/04/2.png
Moderator of Forum:
https://vborg.vbsupport.ru/external/2013/04/3.png

As you can see, you only see "Ignored User" in replace of their username, the time & date posted, and you only see 'View Post' and the checkbox if you are a moderator of that forum.

This is much better than what vBulletin currently has in place.
Why?
It gives you the option to remove the user as well as view the post AND it shows the ignored user's username. If you hate the person, but want to see their post, you can just press View Post and having them ignored is POINTLESS. This adds point to the system!

You must do the following template edits:
In the template postbit_ignore

FIND
HTML Code:

<a style="float:$stylevar[right]" href="showpost.php?$session[sessionurl]p=$post[postid]" target="_blank" rel="nofollow" onclick="return display_post($post[postid]);">$vbphrase[view_post]</a>
REPLACE WITH
HTML Code:

<if condition="$show['inlinemod']">
<a style="float:$stylevar[right]" href="showpost.php?$session[sessionurl]p=$post[postid]" target="_blank" rel="nofollow" onclick="return display_post($post[postid]);">$vbphrase[view_post]</a></if>

FIND
HTML Code:

<tr>
        <td class="alt1">
                <if condition="$show['moderated']">
                        <div style="float:$stylevar[right]"><img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" /></div>
                </if>
                <if condition="$show['deletedpost']">
                        <div style="float:$stylevar[right]"><img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[deleted_post]" border="0" /></div>
                </if>
                <div class="smallfont">
                        <phrase 1="$post[username]" 2="profile.php?$session[sessionurl]do=ignorelist">$vbphrase[message_hidden_x_on_ignore_list]</phrase>
                </div>

        </td>
</tr>
<!-- / main bar -->
</table>

REPLACE WITH
HTML Code:

<tr>
        <td class="alt1">
                <if condition="$show['moderated']">
                        <div style="float:$stylevar[right]"><img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" /></div>
                </if>
                <if condition="$show['deletedpost']">
                        <div style="float:$stylevar[right]"><img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[deleted_post]" border="0" /></div>
                </if>
        <td class="alt2">
                <span style="color:red">Ignored User</span>
        </td>
</tr>

<!-- / main bar -->
</table>



All times are GMT. The time now is 02:35 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.04113 seconds
  • Memory Usage 1,723KB
  • 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
  • (4)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete