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
  #122  
Old 11-18-2006, 11:14 PM
itsid itsid is offline
 
Join Date: Oct 2006
Posts: 253
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've checked the javascript multiple times misskalunji,
before releasing this version and after you said you've got errors to handle...
well, on my system tested (nowhere else) and i can't find any error not even any "nonworking" condition but to have an disabled ajax in the acp.
Well, please check as described:
activate ajax for your board in acp and activate ajax for this hack too
then find any hidden content that you CANNOT see by default (if you're an administrator or mod or hack is disabled in that forum or something)
to check wait for the page loaded completely (even better wait some seconds more )
then reply to the thread or click the thanks button.
(you will have to wait then for servers reply to that request, first hidden content is updated first then second (if visible) and so on.)
maybe this will take upto another five seconds (if you have large posts to be updated)
If you still don't see any hidden content without page reload, this javascript wont work with your javascript-engine installed (please let me know which one that is)
Or: you don't have javascripts enabled, but then you will have no ajax throughout the vbulletin page...

'sid
Reply With Quote
  #123  
Old 11-18-2006, 11:33 PM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this supposed to work on Quick reply? or only on Post reply?
Reply With Quote
  #124  
Old 11-18-2006, 11:39 PM
itsid itsid is offline
 
Join Date: Oct 2006
Posts: 253
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

quickreply; post-reply will need no ajax at all, because it reloads the entire page itself.

hopefully you have checked the (show hide on reply) radiobutton, otherwise you will see nothing for sure
Reply With Quote
  #125  
Old 11-19-2006, 12:07 AM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah i did it doesnt like me ah well! i'll live with it that way Thanks for ur help
Reply With Quote
  #126  
Old 11-19-2006, 12:36 AM
itsid itsid is offline
 
Join Date: Oct 2006
Posts: 253
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm sorry MissKalunji...
I have no idea why this wont do on vb3.6.0
maybe just the fetch_object function is working in a different way or is called a different name, I cannot check that out

But to be sure not to have unnecessary and notworking requests send to your forum, please be sure to deactivate AJAX in this hacks settings dialog,
just to erase that javascriptstuff from being loaded into users browsers.
(first ask some other user to test for you on a different system, maybe it's just because of your js engine (still an option))

'sid
Reply With Quote
  #127  
Old 11-19-2006, 12:38 AM
Shazz's Avatar
Shazz Shazz is offline
 
Join Date: Jun 2006
Location: Utah
Posts: 4,758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MissKalunji View Post
yeah i did it doesnt like me ah well! i'll live with it that way Thanks for ur help
Or....
Another option to upgrade
Reply With Quote
  #128  
Old 11-19-2006, 12:53 AM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by itsid View Post
I'm sorry MissKalunji...
I have no idea why this wont do on vb3.6.0
maybe just the fetch_object function is working in a different way or is called a different name, I cannot check that out

But to be sure not to have unnecessary and notworking requests send to your forum, please be sure to deactivate AJAX in this hacks settings dialog,
just to erase that javascriptstuff from being loaded into users browsers.
(first ask some other user to test for you on a different system, maybe it's just because of your js engine (still an option))

'sid
Quote:
Originally Posted by Shazz View Post
Or....
Another option to upgrade

I'll see maybe :P thanks for all ur help keep u updated
Reply With Quote
  #129  
Old 11-19-2006, 10:39 AM
Genjuro-Sensei's Avatar
Genjuro-Sensei Genjuro-Sensei is offline
 
Join Date: Jan 2006
Location: Alone in the Dark
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

When installing this hack in vB 3.6.3 a got this error (even by deactivating AJAX or not) when clicking to view a thread:
Code:
Database error in vBulletin 3.6.3:

Invalid SQL:
SELECT COUNT(postid) AS count FROM vb_post WHERE userid='2' AND post.visible = 1 AND threadid='837';

MySQL Error  : Unknown column 'post.visible' in 'where clause'
Error Number : 1054
Date         : Sunday, November 19th 2006 @ 01:36:56 PM
Script       : http://xxxxxxxxx/showthread.php?t=837
Referrer     : http://xxxxxxxxx/forumdisplay.php?f=27
IP Address   : xxxxxxxxxxxxx
Username     : Genjuro-Sensei
Classname    : vb_database
Any suggestions ?
Thx a lot !!
Reply With Quote
  #130  
Old 11-19-2006, 02:34 PM
itsid itsid is offline
 
Join Date: Oct 2006
Posts: 253
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well, in the unaltered database of vb 3.6.3 there has to be the column post.visible , that's the item that handles softdeleted posts (userdeleted but visible to mods and admins)
I cannot say where the problem comes from, maybe another hack that removes or alters this column (nerver heard of such, but that doesn't mean anything)

Dermio had/has almost the same problem a page ago, so I verified the existance of this table and column.
Same friend of mine (who gave me the sql-layout) installed this hack in his very clean 3.6.3 testboard and it worked without any errors.
Again, I have to say sorry, but I have no idea what's causing your problems

hang on a sec, i'll try to im my friend to find some hint in vb3.6.3
[EDIT]
So.. that's fast isn't it ?
there are 59 hits, searching for "post.visible" within the original vb 3.6.3 files.
for example this one:
PHP Code:
file (functions_forumdisplay.php)
$mythreads $vbulletin->db->query_read_slave("
            SELECT COUNT(*) AS count, threadid, MAX(dateline) AS lastpost
            FROM " 
TABLE_PREFIX "post AS post
            WHERE post.userid = " 
$vbulletin->userinfo['userid'] . " AND
            post.visible = 1 AND
            post.threadid IN (0
$ids)
            GROUP BY threadid
        "
); 
So, I'm sure that's somewhere else to search the error but the missing column
maybe we run different versions of MySQL and/or php.

Just to try:
Open the xml file with an appropate Editor (notepad++ ultraedit or even a simple wordpad) something with numbered lines best.
Edit Line 173 : find post.visible replace with visible
same in line 272 and 341.
save and try again.

I can't promise that this will help, but I assume
do not edit the way mentioned if you do not have THIS ERROR

'sid
Reply With Quote
  #131  
Old 11-19-2006, 05:25 PM
ga2000gt ga2000gt is offline
 
Join Date: Dec 2005
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
ga2000gt, You don't see hidden content in forumdisplay even if you thanked or replied? Is that what you're saying?
That's the way it works, because to simply hide the content is about 100lines less code, that's why hidden content is only available where it needs to be shown (showthread, showpost, printthread).
No preview is intended
same thing for newthread/newreply; you know what you're intending to hide whilst typing I guess, and because of the unfamous bunch of messie code wysiwyg produces once in a while it's easier to just not parse hide in any editor
no, when i hide the content i can't see the preview, and when i do not hide, i can't see the preview neither :S
so.. the problem is when the hack is enabled, i can't see the preview, but when i disable your hack, i can see it
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:57 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04995 seconds
  • Memory Usage 2,332KB
  • 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
  • (1)bbcode_code
  • (1)bbcode_php
  • (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