vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   New Posting Features - [hide] hack incl post thank you "addon" (https://vborg.vbsupport.ru/showthread.php?t=130887)

itsid 11-05-2006 10:00 PM

[hide] hack incl post thank you "addon"
 
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 :D
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 :D

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"

Shazz 11-06-2006 01:45 AM

Looks very nice :)

SCRIPT3R 11-06-2006 02:11 AM

did you get permission to use all the copied code?

lolo? 11-06-2006 05:42 AM

thanks i try it :)
there is a small bug if have more one tag hide in the post the hide start on firts tagg and close after the last tagg

shadowevil 11-06-2006 06:52 AM

great mod ... i like it .... *installed*

Hornstar 11-06-2006 10:21 AM

Thanks for this.

BlueEyesOnly 11-06-2006 04:28 PM

hi,

ich finde dein hidehack ist sehr gut gelöst, ist dabei auch der hide auch versteckt wenn man das archiv benutzt?

eine andere frage, ich sehe du hast einen bedankomat im forum, ist der auch nach dem gleichem schema wie der hide von dir?

ich hätte da sehr starkes intresse! (melde mich nochmal per pm)

nedemail 11-06-2006 04:57 PM

Thank you for this hack

itsid 11-06-2006 05:28 PM

Hi there,
Gear, I've read some thousand lines of code of various hacks and "original" phps, getting me some ideas, possible hooks, workarounds and array-calls, I cannot say that you wont find a line in this code that isn't in any other hack or php.
But it wasn't my intention to just copy.. so give me a hint what code you're talking about and I'll replace that or get permissions ;)

lolo?, yeah I know :( I'll try to fix that

blueeyes, hidden content ist completly visible in archive (as meantioned above) my Bedankomat is exactly the one linked in first post (just made me some new templates)

'sid

ps andreas of vh-g.com gave some useful tipps i'll try these days, so update is more than posssible ;)

Frapegliko 11-06-2006 06:26 PM

thank u. nice mod


All times are GMT. The time now is 05:36 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.03999 seconds
  • Memory Usage 1,737KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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