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
  #132  
Old 11-19-2006, 05:46 PM
Dermo-MIO Dermo-MIO is offline
 
Join Date: Jan 2006
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by itsid View Post
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
thankyou sid i did those changes and it now works thankyou so much, you do not know how much hassle iv gone through to get a hide code that works. i will donate you money in the first week in december as i get paid monthly. im very greatfull to you.
Reply With Quote
  #133  
Old 11-19-2006, 07:46 PM
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

Quote:
Originally Posted by itsid View Post
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
Thank you very mutch, it solved the problem ^^
Thanks to you !! really !!
Reply With Quote
  #134  
Old 11-19-2006, 10:13 PM
itsid itsid is offline
 
Join Date: Oct 2006
Posts: 253
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dermio-MIO, Genjuro-Sensei, you're welcome
good to have you back in the "in working condition"-list

ga2000gt, I'm sorry what "preview" exactly are you talking about?
(what php is shown, what was you doing that moment, do you have any screenshot and/or errormessage?)

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

the thread preview, i'm using this hack and it doesn't work when the hide hack is enabled.
Reply With Quote
  #136  
Old 11-19-2006, 10:50 PM
itsid itsid is offline
 
Join Date: Oct 2006
Posts: 253
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, preview text is altered by one of my plugins to prevent users seeing the hidden content in forumdisplay.
But it's altered (only hidden content replaced by "This post contains hidden content") so there should be something in this box though.
what hack is this (link?) or: what hook does that hack uses, is it $thread['preview'] that is visible there, what execution-order do you have?

Maybe I will find a way to help you out

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

the name of the hack is 'Improved Thread Preview', yes, it's the link i put above.
is only one plugin, then there are a few templeta changes and two js files.
hook location is 'threadbit_process'
i don't know how to check the 'execution-order', if you tell, i'll do it =P
here is the plugin code, maybe it helps...

Code:
if ($ignore["$thread[postuserid]"])
        {
                $thread['preview'] = '';
        }
        else if (isset($thread['preview']) AND $vbulletin->options['threadpreview'] > 0)
        {
                $thread['preview'] = strip_quotes($thread['preview']);
                $thread['preview'] = htmlspecialchars_uni(fetch_trimmed_title(strip_bbcode($thread['preview'], false, true), $vbulletin->options['threadpreview']));
//tc
                $thread['preview'] = preg_replace("/\n/\n","<br />",$thread['preview']);
                $thread['preview'] = str_replace("\r\n","<br />",$thread['preview']);
                $thread['preview'] = str_replace("\n","<br />",$thread['preview']);
                $thread['preview'] = str_replace("\r","<br />",$thread['preview']);
                $thread['preview'] = str_replace("--","- - ",$thread['preview']);
//tc
        }
Reply With Quote
  #138  
Old 11-20-2006, 04:36 AM
emmanuel132 emmanuel132 is offline
 
Join Date: Nov 2006
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

theres a problem when i install this and go to my site and make a new post and put this [hide] hack on it keeps saying database error and it wont let me post
Reply With Quote
  #139  
Old 11-20-2006, 11:07 AM
itsid itsid is offline
 
Join Date: Oct 2006
Posts: 253
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ga2000gt, go to plugin management in your acp, there find the plugin Andreas hint 3 click on edit and see the executionorder 126
go back and edit the plugin Improved Thread Preview 1.5 change it's executionorder to something higher than 126, or change the executionorder of "Andreas hint 3" to let's say 4
If this still wont help, you can deactivate this plugin alone to see your threadpreview again, but keep in mind:
then you will have all hidden content in the preview.

emmanuel, some more information would be great,
what vbulletin version? what exact errormessage is showing?

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

i changed the executionorder of Improved Thread Preview 1.5 to 127, is working fine now =)
thnx a lot!! : D
Reply With Quote
  #141  
Old 11-24-2006, 06:43 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

will this work with 3.5.X?

edit: nope
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 11:32 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.14371 seconds
  • Memory Usage 2,339KB
  • 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
  • (2)bbcode_php
  • (2)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