vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Ignore button inside the post$post[postid] (https://vborg.vbsupport.ru/showthread.php?t=48061)

Sapphire 01-23-2003 11:38 PM

Ignore button inside the post$post[postid]
 
Hi,

I'm trying to add an ignore link within my forum, but I am hoping to get it added inside the post ID section of the users info box, does anyone know if theres a hack for this?

Thanx

Dean C 01-24-2003 03:18 PM

PHP Code:

$bburls=&action=addlist&userlist=ignore&userid=$post[userid

That's the link you want :)

Change https://vborg.vbsupport.ru to your $bburl if it parses the code in that box above btw :)

- mist

Sapphire 01-24-2003 03:29 PM

Hi Mist,

Can you make this more clear, perhaps tell me which template to add this hack, and which line?

regards

arurcard 04-20-2005 08:21 PM

bump, I need this also

libertylounge 07-23-2006 05:07 AM

Can someone explain this in a little further detail, please?

Nevermind. I found the information on the vbulletin.com forums thanks to their staff.

Admin CP -> Styles & Templates -> Style Manager -> ? ? -> Postbit Templates -> postbit or postbit_legacy (depending on which layout you are using)

Using the postbit_legacy template for example, add the green code:

Code:

        <!-- controls -->
        <if condition="$post['userid'] AND $show['member'] AND $post['userid'] != $bbuserinfo['userid']">
            <a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=ignore&amp;u=$post[userid]">Ignore $post[username]</a>
        </if>

        <if condition="$post['editlink']">
            <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['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>
        <!-- / controls -->

If you want to use an image, the following should be used instead:

Code:

                <!-- ignore -->
                <if condition="$post['userid'] AND $show['member'] AND $post['userid'] != $bbuserinfo['userid']">
                        <a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=ignore&amp;u=$post[userid]"><img src="$stylevar[imgdir_button]/ignore.gif" alt="Ignore $post[username]" border="0"></a>
                </if>
                <!-- / ignore -->



All times are GMT. The time now is 12:34 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.00994 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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