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)

Syxguns 05-12-2012 07:13 AM

Quote:

Originally Posted by Badshah93 (Post 2328439)
2nd one i will do it in gold version.

first one is also possible but i have no intention to do it as this mod already have post thank you hack and vbseo like system integrated.

You do not have to do it, but I as well as many other vB users know that DBTech (Dragonbyte) creates, updates and integrates so many mods that they are well known in the community of vBulletin.

For example Pro Version:
Quote:

Infinite Buttons: Ability to create new buttons to press! No longer do you need to be limited by Thanks / Like / Dislike.

Auto Collapse Posts: Collapses a post so it doesnt show up by using a formulae for button clicks of your choosing.

User Postbit Config: Lets users decide what postbit stats they want to see.

Additional permissions: Un-click a button. Control how many stats show on the statistics page, set permissions per subforum.

Integrated Controls: You can now integrate the button clicking controls into the post footer, like many of you requested.

Buttons in First Post Only: This allows you to only make the first post thankable. If you forum is based around news, releases or anything similar this will allow your users to easily see the quality of the thread in question.

Button Click Anonymity: This feature will be extremely helpful to forums who like the idea of a "dislike" button, but don't like the drama it brings. Now you can set certain buttons to be anonymous - no one will see who clicked.

Post Colour Thresholds: Ever wanted an easy way for members to tell if a post is helpful or trash? Colour thresholds let you change the colour of posts depending on how many clicks of a button they receive. Members can now see at a glance whether or not a post is helpful, interesting or pointless.
And that does not even mention the integration of this system with vBActivity! DBTech is very highly used and recommended, whether it is the free version or the pro version. Abe 1 is a nice hack, but not as nice as DBTech. I removed DBTech to install Abe 1 for this Mod.:eek:

Syxguns 05-13-2012 05:52 AM

I noticed something in firebug, when trying to figure out what the error was. If you notice I placed a blank line right before the URL string. Notice the string does not give a direct location! Well, it does, but does so twice, and I'm trying to find out in the template editor where that line of code is so I can correct it. Do you know where this line is located?

Code:

<a id="cke_61" class="cke_off cke_button_Hide" onclick="CKEDITOR.tools.callFunction(134, this); return false;" onfocus="return CKEDITOR.tools.callFunction(133, event);" onkeydown="return CKEDITOR.tools.callFunction(132, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_61_label" role="button" hidefocus="true" tabindex="-1" title="Wrap [HIDE] tags around selected text">

<span class="cke_icon" style="background-image:url(http://Place4Musicians.com/music/http://Place4Musicians.com/music/images/buttons/hide.gif?t=B8DJ5M3);background-position:0 0px;">&nbsp;</span>
<span id="cke_61_label" class="cke_label">Wrap [HIDE] tags around selected text</span>
</a>
</span>


Badshah93 05-13-2012 07:55 AM

1 Attachment(s)
Quote:

Originally Posted by Syxguns (Post 2328918)
I noticed something in firebug, when trying to figure out what the error was. If you notice I placed a blank line right before the URL string. Notice the string does not give a direct location! Well, it does, but does so twice, and I'm trying to find out in the template editor where that line of code is so I can correct it. Do you know where this line is located?

Code:

<a id="cke_61" class="cke_off cke_button_Hide" onclick="CKEDITOR.tools.callFunction(134, this); return false;" onfocus="return CKEDITOR.tools.callFunction(133, event);" onkeydown="return CKEDITOR.tools.callFunction(132, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_61_label" role="button" hidefocus="true" tabindex="-1" title="Wrap [HIDE] tags around selected text">

<span class="cke_icon" style="background-image:url(http://Place4Musicians.com/music/http://Place4Musicians.com/music/images/buttons/hide.gif?t=B8DJ5M3);background-position:0 0px;">&nbsp;</span>
<span id="cke_61_label" class="cke_label">Wrap [HIDE] tags around selected text</span>
</a>
</span>


try this attach file, i have made the changes for you specially. (it will pull images from images/button)

unzip and upload plugin.js file in clientscript/ckeplugins/hidetags

Syxguns 05-13-2012 08:28 AM

Almost worked perfectly! Had to use firebug to see where images were. First showed images located in:
...musicians.com/music/clientscript/ckeditor/images/buttons/hide.gif

So I dropped the buttons/images from the mod in that location. Now only one image is not showing and it gives me the same kind of URL.

Showtogroups.gif
...Musicians.com/music/http://...Musicians.com/music/images/buttons/images/buttons/showtogroups.gif

Currently this is the only button that has the loop with URL after URL. Thanks for the quick fix on the java script file. Almost there! :)

Badshah93 05-13-2012 08:35 AM

1 Attachment(s)
Quote:

Originally Posted by Syxguns (Post 2328934)
Almost worked perfectly! Had to use firebug to see where images were. First showed images located in:
...musicians.com/music/clientscript/ckeditor/images/buttons/hide.gif

So I dropped the buttons/images from the mod in that location. Now only one image is not showing and it gives me the same kind of URL.

Showtogroups.gif
...Musicians.com/music/http://...Musicians.com/music/images/buttons/images/buttons/showtogroups.gif

Currently this is the only button that has the loop with URL after URL. Thanks for the quick fix on the java script file. Almost there! :)

ya, i missed showtogroups tag..
try ths attach file.

Syxguns 05-13-2012 05:32 PM

I'm still receiving the double url on showtogroups button. I placed the new file in twice to double check.

Badshah93 05-13-2012 05:58 PM

Quote:

Originally Posted by Syxguns (Post 2329046)
I'm still receiving the double url on showtogroups button. I placed the new file in twice to double check.

i have corrected the directory in last one.
delete old file first and then upload new one.

Hippy 05-13-2012 07:02 PM

Quote:

Originally Posted by Badshah93 (Post 2325886)
CMS Widget (Recent Forum Posts) doesn't have any plugin hook, so manual edit is required to strip hide bbcodes from recent forum posts widget.

Open file -> packages/vbcms/widget/recentposts.php
Find:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

PHP Code:

            $post['previewtext'] = fetch_censored_text($parser->get_preview($post['pagetext'], $this->default_previewlen$allow_html));
            
$post['pagetext'] = fetch_censored_text($parser->do_parse($post['pagetext'], $allow_html)); 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Add Below:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

PHP Code:

            if (vB::$vbulletin->options[hide_hack_sett_main]) 
            {
            global 
$vfc_hide;
            
$post['previewtext'] = $vfc_hide->strip_hide_bbcodes($post['previewtext'], 'email');
            
$post['pagetext'] = $vfc_hide->strip_hide_bbcodes($post['pagetext'], 'email');
            } 


thanks , this seems very promising .. anything to do with abe1's mod
thanks for the release..
and the above works with suite
but in forum only the widgets on the right also need to be edited .. different file..

thanks

Badshah93 05-13-2012 07:44 PM

Quote:

Originally Posted by Hippy (Post 2329078)
thanks , this seems very promising .. anything to do with abe1's mod
thanks for the release..
and the above works with suite
but in forum only the widgets on the right also need to be edited .. different file..

thanks

sideblock also doesnt use plugins, so manual edit is required to strip hide tags.

To Strip HIDE TAG's from sideblock


Open -> includes/block/newpost.php file

Find:
PHP Code:

                $post['message'] = $this->get_summary($post['message'], $this->config['newposts_messagemaxchars']); 

Add Above:
PHP Code:

global $vfc_hide
 
$post['message'] = $vfc_hide->strip_hide_bbcodes($post['message'], 'email'); 


Hippy 05-13-2012 07:47 PM

thanks Badshah


All times are GMT. The time now is 08:44 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.02841 seconds
  • Memory Usage 1,770KB
  • 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
  • (4)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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