Post Reply  Post Thread 
Hide tags plugin/modification!
Pacifier
Administrator
*******

Posts: 222
Group: Administrators
Joined: May 2006
Status: Offline
Reputation: 1
Post: #1
Hide tags plugin/modification!

This plugin will give you the ability to use [hide] tags in your posts.

I) Requirements:

  • MyBB 1.2.3 (should work with 1.2.x)

II) What it Does?

When the [hide] tag is used in posts, only admins, the post owner, super moderators, and those who have replied to the topic are able to see the hidden content (the one that's between [hide] and [/hide]).

  • Adds [hide] tags to quotes (while replying), when the user can view the post.
  • Adds [hide] tags to quotes (while replying), when the user can view the post.
  • Removes hidden content from searched posts.
  • Does the required replacement on post overview (when replying)

III) How to install:


  1. Download and extra data from the hide_tags_*.zip file.
  2. Upload the files as follows:
    hidden.jpg => images/hidden.jpg
    hide_tags.php => inc/plugins/hide_tags.php
  3. Go to your Admin CP -> Plugin Manager, and activate the Hide tags plugin.
  4. Open xmlhttp.php, and find:

    PHP Code:
    $post['message'] = htmlspecialchars_uni($post['message']); 


    Replace with:

    PHP Code:
    $post['message'] = htmlspecialchars_uni(ht_xmlhttp_fix($post['message'], $post['tid'])); 


    Find:

    PHP Code:
    // Tack on to list of messages
            
    $message .= "[quote={$quoted_post['username']}]\n{$quoted_post['message']}\n[/quote]\n\n";
        }
        
        
    // Send our headers.
        
    header("Content-type: text/plain; charset={$charset}");
        echo 
    $message


    Inline Find:

    PHP Code:
    echo $message


    Replace With:

    PHP Code:
    echo ht_xmlhttp_fix($message); 

  5. Save/close xmlhttp.php file.


That's all!

Download URL: http://spicefuse.com/mybb_mods/hide_tags_1b1.zip

== History

Beta 1: (March 03rd, 2007)
* Released

03-29-2008 04:32 PM
Find all posts by this user Quote this message in a reply
ivantoar
Junior Member
**

Posts: 1
Group: Registered
Joined: Jun 2008
Status: Offline
Reputation: 0
Post: #2
RE: Hide tags plugin/modification!

Can this mod added to MyCode list? If can, please show me the steps. Thank you

06-01-2008 01:15 PM
Find all posts by this user Quote this message in a reply
ciorax
Junior Member
**

Posts: 1
Group: Registered
Joined: Jun 2008
Status: Offline
Reputation: 0
Post: #3
RE: Hide tags plugin/modification!

me too.. who can help me to add in mycode list. Please

06-28-2008 08:01 AM
Find all posts by this user Quote this message in a reply
siopk
Junior Member
**

Posts: 1
Group: Registered
Joined: Sep 2008
Status: Offline
Reputation: 0
Post: #4
RE: Hide tags plugin/modification!

ciorax Wrote:
me too.. who can help me to add in mycode list. Please


Open /YOUR FORUM/jscript/editor.js
Than Find

Code:
        this.insertStandardButton(elements, "php", "images/codebuttons/php.gif", "php", "", this.options.lang.title_php);


Under Add This

Code:
    this.insertStandardButton(elements, "hide", "images/codebuttons/hide.gif", "hide", "", "Hidden Text");


Upload small hide pic to this directory images/codebuttons/hide.gif

refresh page when creating newthread
this will show up image

11-29-2008 08:15 PM

This post was last modified: 11-29-2008 08:15 PM by siopk.

Find all posts by this user Quote this message in a reply
combus
Junior Member
**

Posts: 2
Group: Registered
Joined: Dec 2008
Status: Offline
Reputation: 0
Post: #5
RE: Hide tags plugin/modification!

Is it possible that the hidden content can be viewed only by admins, mods and the owner?? I really need this please

12-14-2008 03:53 AM

This post was last modified: 12-14-2008 04:00 AM by combus.

Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: