vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   New Posting Features - vFCoders - Hide Hack v4 (https://vborg.vbsupport.ru/showthread.php?t=282328)

faraz_hamza 05-28-2012 06:52 PM

**Hidden Content: Reply to see the content**

how can we change the color and font size of this Text... how can we change this text to blinking. like Cursor blink?

is there any way to make prominant these words like to change color or blinking style???

faraz_hamza 05-28-2012 07:15 PM

**Hidden Content: Reply to see the content**

how can we change the color and font size of this Text... how can we change this text to blinking. like Cursor blink?

is there any way to make prominant these words like to change color or blinking style???

Badshah93 05-29-2012 03:31 AM

Quote:

Originally Posted by faraz_hamza (Post 2333991)
**Hidden Content: Reply to see the content**

how can we change the color and font size of this Text... how can we change this text to blinking. like Cursor blink?

is there any way to make prominant these words like to change color or blinking style???

Edit vfc_hide_hack_bbcode_reply template

Find:
Code:

{vb:rawphrase vfc_hidden_content_reply_ntml}
Replace With:
Code:

<blink>{vb:rawphrase vfc_hidden_content_reply_ntml}</blink>

blueperspective 05-29-2012 05:37 AM

I have a question on the same field: Where can I change "** Hidden Content: You don't have sufficient privileges to see this hidden data **" ?
Thanks in advance!
Till now, the mod works wonderful!

Badshah93 05-29-2012 05:52 AM

Quote:

Originally Posted by blueperspective (Post 2334162)
I have a question on the same field: Where can I change "** Hidden Content: You don't have sufficient privileges to see this hidden data **" ?
Thanks in advance!
Till now, the mod works wonderful!

edit this phrase

Code:

vfc_hidden_content_stg_ntml

faraz_hamza 05-29-2012 06:06 PM

you just
Is it possible to display an image instead of displaying that text

**Hidden Content: Reply to see the content**

image which designed by me and showing the message to reply or press thanks?

Eosian 05-29-2012 09:27 PM

Seems obvious, but you need a [HIDE-VOTE] option as well so that people can say things in a thread thats hidden to people who haven't already voted.

Approximately this;

Code:


        /**
    * Callback function for Parsing [HIDE-VOTE] Tag
    *
    * @param        string        Message text
    *
    * @return        Message (Parsed)
    */

function p_bb_code_hv($message)
{
  global $vbphrase;
  $message = str_replace('\"', '"', $message);
  // Checking if user can view the message
  if (!$this->_registry->owner)
  { 
                if ($this->_registry->threadid)
                {
                        $creply = $this->_vbulletin->db->query_first("
                                                                SELECT p.pollid, p.votedate
                                                                FROM " . TABLE_PREFIX . "thread t
                                                                left join " . TABLE_PREFIX . "pollvote p on t.pollid = p.pollid
                                                                WHERE
                                                                        p.userid = " . $this->_vbulletin->userinfo[userid] . "
                                                                        AND t.threadid = " . $this->_registry->threadid . "
                                                                        AND userid > 0 LIMIT 1 "); 

                        if ($creply['pollid'] > 0 AND $creply['votedate'] > 0) 
                                $this->_registry->hvote = true;
                }       
                if ($this->_registry->dohtml)
                {
                        if ($this->_registry->owner OR $this->_registry->hvote)
                        {  $usercansee = true; }       
                        $templater = vB_Template::create('vfc_hide_hack_bbcode_vote');
                        $templater->register('usercansee', $usercansee);
                        $templater->register('postid', $this->_registry->postid);
                        $templater->register('message', $message);
                        $message = $templater->render();
                        return $message;
                }
                else
                {
                        if ($this->_registry->owner OR $this->_registry->hvote)
                        { 
                                return $message;
                        }
                        else
                        {
                                return $vbphrase[vfc_hidden_content_reply_vote];;
                        }
                }
        }
        return $message;
}

Plus the associated vfc_hide_hack_bbcode_vote template.

And adding this

'HIDE-VOTE' => 'p_bb_code_hv',
to $taglist

etc.

You could go one step more complex and make a hide-vote-option that's only visible to people who selected a specific vote option, but seems unnecessarily complex for most usage.

Otherwise very good mod.

faraz_hamza 05-30-2012 05:23 AM

i think you failed to Got my point.

i just Want to Display Image(jpg banner) instead of the text hiddent content

faraz_hamza 05-30-2012 05:47 AM

How Can we hide Attachments???

Cuz when i do attachment then there is nothing displayed in text editor . and after submiting it displayed attached file in thread.

Badshah93 05-30-2012 08:25 PM

Quote:

Originally Posted by faraz_hamza (Post 2334390)
you just
Is it possible to display an image instead of displaying that text

**Hidden Content: Reply to see the content**

image which designed by me and showing the message to reply or press thanks?

Edit vfc_hide_hack_bbcode_reply template

Replace
PHP Code:

{vb:rawphrase vfc_hidden_content_reply_ntml

With Your Img Code
Code:

<img src="yourimgurl" alt="{vb:rawphrase vfc_hidden_content_reply_ntml}">


All times are GMT. The time now is 03:15 PM.

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.01316 seconds
  • Memory Usage 1,755KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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