Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[hide] hack incl post thank you "addon" Details »»
[hide] hack incl post thank you "addon"
Version: 0.3.5, by itsid itsid is offline
Developer Last Online: Jun 2010 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.6.2 Rating:
Released: 11-05-2006 Last Update: 12-08-2006 Installs: 863
Uses Plugins
Additional Files  
No support by the author.

UPDATE
sid's [hide] hack 0.3.5

Hi again,

I've tried my best to build a [hide] hack that will fit to to
the wonderful POST THANK YOU HACK

but for sure you can use it without, then it'll work if user replies to a post with hidden content

You can coose in acp to show hidden content to admins mods or users of a certain usergroup (if you have useradmins or something) too.

It will show up some hint that will let your users know what to do (thank, answer, or even nothing)
by now with some small text, soon with a set of images

BUT
  • my english is way off what I want it to be, so please go ahead and edit the language file to your needs

NOW UPDATED

Thanks to Andreas of vbhacks-germany
  • no hidden content visible in archive
  • no php edits necessary no more
  • kicked out bitfield-code

    and further
  • no hidden content visible in printthread.php if not in showthread.php
  • now with a set of small images showing up as hint
  • and least updateurl in acp
have fun

cheers
'sid

ps Sorry for updating that fast

UPDATE 0.3.0
uninstall previous version before installing the update!
So, here's what you've all been waiting for *grin*
Tha ajaxified version of my hide hack.

BUT, this is rather bruteforcing ajax, so be warned
First: you could fully disable ajax for this script in ACP!
Now how it goes, it checks the length of pagecontent every three seconds (usersides, no worries about serverload here), and if it finds some new "content" like a filled thanks-box or a new post it calls all the posts that have hidden content (of this page only of course) and tries to refill the postbits,
this causes some sql-queries, almost as much as to totally reload the page itself.
AS soon as I find a more elegant method I will update again.
Nothing else was changed though since 2.6, only modified in handling the ajax-request.
If you encounter any problems with the ajax of this script, just deactivate,
no javascript at all then will be loaded from this script, and you'll have a "normal" version in hands.
(size is due to an pic-install-help-image )

UPDATE 0.3.5
reduced querys,
smarter installations code.

that's all

cheers
'sid

PS If you encounter any problems not seeing thanked posts hidden content after reload,
try this codechange

PPS Sorry, Support only for those who clicked "install"

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
lange

Comments
  #192  
Old 12-11-2006, 02:26 AM
RFViet RFViet is offline
 
Join Date: Jan 2006
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I disable ajax for this hack, but still refresh after press thanks !! any idea how to fix ?? (I'm using vB3.6.4)
Reply With Quote
  #193  
Old 12-11-2006, 02:09 PM
itsid itsid is offline
 
Join Date: Oct 2006
Posts: 253
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And you've refreshed the showthread manually once, to unload the javascript?
then I have absolutely no idea what refreshes the page...
maybe another hack (shoutbox itself maybe) that's reloading ALL the page content?

'sid
Reply With Quote
  #194  
Old 12-11-2006, 04:37 PM
RFViet RFViet is offline
 
Join Date: Jan 2006
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by itsid View Post
And you've refreshed the showthread manually once, to unload the javascript?
then I have absolutely no idea what refreshes the page...
maybe another hack (shoutbox itself maybe) that's reloading ALL the page content?

'sid
If I don't refresh the page manually, then I won't see hidden contents after pressing Thanks button.
Reply With Quote
  #195  
Old 12-11-2006, 08:22 PM
Devil Woman Devil Woman is offline
 
Join Date: Jul 2005
Location: England
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am having a problem, I added this in a few weeks ago and all was working fine, I have now gone to add a hidden part of a thread and when I do I get this n the hidden part

{param}

this also happens when a reply is posted to see the hidden content.

Any help is appreciated

Thanks.
Reply With Quote
  #196  
Old 12-11-2006, 09:27 PM
stinger2's Avatar
stinger2 stinger2 is offline
 
Join Date: Jul 2005
Posts: 274
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by itsid View Post
But you'll not find the implemented editorbutton

That way you can install the hack without uploading anything via ftp,
with an editorbutton set as default it's not, because you'll see that ugly missing image thingy if you didn't upload the button itself.
I don't like that thought

'sid

you can add enable / disable button.........and i will make the button for you:banana:
Reply With Quote
  #197  
Old 12-11-2006, 10:37 PM
itsid itsid is offline
 
Join Date: Oct 2006
Posts: 253
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

stinger2,
feel free to make any button yu like.
I'm still unsure, cause I don't like editorbuttons at all
But maybe I will change the installcode to add the button (chooseable option if possible) if you all want to have the editorbutton.
But keep in mind: it's christmastime and all is terror (or something )
So I don't think it'll be added this year ...

Devil Woman,
in fact I don't have no clue at this moment
As I told bigM in german, please check that you have showing up "[hide]some text[/hide]" in your "own vB Codes" overview listed as replacement code.
If, it has to work (or it's been overruled by an other hack).
Or: your php or sql was updated or something...
as I said, I have no idea until I'll find a way to reproduce this error in my testboard; sorry.
Let me know about all changes you made just before the error occured, to give me some hint, please.

RFViet,
I don't get it, sorry...
So you disabled this hacks ajax functionality, okay.
After that you have to refresh the page with the hidden content ONCE to unload the ajax-javascript so that it is disabled.
Now posts will not be refreshed by the hack itself.
you can check the page's sourcecode for this line:
Code:
unhide.onreadystatechange = ausgeben;
if you find it, javascript is still enabled (and hack still tries to reload the page content) if not, the hacks ajax is fully disabled.
Now, your page is still refreshed after clicking the thanks button?
Yes, that's because of the javascript of the post_thank_you hack. But it only should refresh the content of the Post-thanks-bit (right after the thanked postbit) and nothing else.
If you have problems with the post_thanks hack (i can't think of that but maybe you know better) go and ask Abe1 in the thread you find linked in firstpost.
And yes, if you disable the hide-hacks ajax you'll have to refresh the page manually to see hidden content, what else? No Ajax no automatic refresh...
with ajax you don't need to refresh manually because the hack will do so.
I'm sorry, I don't understand your question/problem...

'sid
Reply With Quote
  #198  
Old 12-12-2006, 09:44 AM
stinger2's Avatar
stinger2 stinger2 is offline
 
Join Date: Jul 2005
Posts: 274
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by itsid View Post
stinger2,
feel free to make any button yu like.
I'm still unsure, cause I don't like editorbuttons at all
But maybe I will change the installcode to add the button (chooseable option if possible) if you all want to have the editorbutton.
But keep in mind: it's christmastime and all is terror (or something )
So I don't think it'll be added this year ...
[/I]

you are an angel ...thank you
Reply With Quote
  #199  
Old 12-12-2006, 02:00 PM
itsid itsid is offline
 
Join Date: Oct 2006
Posts: 253
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

because of the requests I got,
I've made an vB354 xml of this hack.

But it's not tested, didn't had the time
All codes are identical, so it should work...
if you want, give it a try
(I'm not responsible for anything )

images and stuff are to be taken from the original zip this is text-xml only!

'sid
Reply With Quote
  #200  
Old 12-12-2006, 06:20 PM
RFViet RFViet is offline
 
Join Date: Jan 2006
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by itsid View Post
RFViet,
I don't get it, sorry...
So you disabled this hacks ajax functionality, okay.
After that you have to refresh the page with the hidden content ONCE to unload the ajax-javascript so that it is disabled.
Now posts will not be refreshed by the hack itself.
you can check the page's sourcecode for this line:
Code:
unhide.onreadystatechange = ausgeben;
if you find it, javascript is still enabled (and hack still tries to reload the page content) if not, the hacks ajax is fully disabled.
Now, your page is still refreshed after clicking the thanks button?
Yes, that's because of the javascript of the post_thank_you hack. But it only should refresh the content of the Post-thanks-bit (right after the thanked postbit) and nothing else.
If you have problems with the post_thanks hack (i can't think of that but maybe you know better) go and ask Abe1 in the thread you find linked in firstpost.
And yes, if you disable the hide-hacks ajax you'll have to refresh the page manually to see hidden content, what else? No Ajax no automatic refresh...
with ajax you don't need to refresh manually because the hack will do so.
I'm sorry, I don't understand your question/problem...

'sid
Well, I'm confused, you asked to disable ajax for this hack from the instruction to work with thanks button -> In fact, it didn't work on my forum
Enable ajax for this hack -> it works for my forum , I don't know the reason you asked to disable ajax for this hack ??
Anyway , it works perfectly for my forum (vB 3.6.4) -> great hack !!!
The only thing I couldn't make was the image, since I don't see how to import the language as you are . But It's still ok to me
Thanks !!
Reply With Quote
  #201  
Old 12-12-2006, 08:28 PM
wi11ie1950 wi11ie1950 is offline
 
Join Date: Sep 2004
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed the Hack as per instructions and now i have..

Invalid SQL:
INSERT INTO bbcode(bbcodeid, bbcodetag, bbcodereplacement, bbcodeexample, bbcodeexplanation, twoparams, title, buttonimage) VALUES (NULL, 'hide', '[hide]{param}[/hide]', '[hide]some text[/hide]', 'With this tag you can hide some text and force members to answer or click the thank you button to see what you\'ve posted.', 0, 'hide', '');;

Anyway to remove it as it doesnt appear in Plugins @ Products or in BBcode in Options. If i try to access any of my forums i get a Database Error.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:45 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.05473 seconds
  • Memory Usage 2,334KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete