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

RFViet,
i was confused by your first post I can remember (or find)
Quote:
disable Ajax then my shoutbox won't work !!
Maybe I just misunderstood what's your intention, sorry.
I never said that you need to disable ajax to work with post-thanks...
nevermind, if it's working now, I'm pretty happy with it
To install the images, read ahead

Willie1950,
You have to uninstall all "custom vb Codes" for any [hide] tag before you can install this hack.
To make sure this hack works, you fully have to uninstall all other hide-hacks before, otherwise it'll surely cause errors.
But I'm pretty sure that you didn't install this hack properly,
so let us do it step by step:
1) first, go to acp -> Product Management -> import new product
(product, not plugin or language!!)
select "ajax-product-sids_hide_v0.3.5-vborg-en.xml", check the radiobutton "Allow Overwrite" (yes) and click on import
(you should not see any SQL-Error or it failed, make sure you uninstalled all previous versions of this hack, and all hacks parsing [hide] tag first, then try again)

2) Now upload the images marked as en_hide_<something>.gif into your root/images/ folder via ftp

3) Import the "hide_bbcode-images-english.xml" via Languages & Phrases -> "Download/Upload Languages" make sure to mark
"Overwrite Language" -> "english // or whatever from the dropdown"
AND
"Ignore Language Version" (yes)

** if you do not have any language in the dropdown (never heard of that though) edit the phrases manually:
Search in Phrases: "sid_hide_img" search in "Phrase Variable Name Only"
and edit as descrpted below:
sid_hide_img_post
from:
You will have to reply to see hidden content
to:
Code:
<div align="center"><img src="images/en_hide_post.gif" alt="You will have to reply to see hidden content" border="0" /></div>
sid_hide_img_pot
from:
You may reply or click 'thank you' to see hidden content
to:
Code:
<div align="center"><img src="images/en_hide_pot.gif" alt="You may reply or click 'thank you' to see hidden content" border="0" /></div>
sid_hide_img_sorry
from:
Admin refused to unhide hidden content<br /> nothing will help to see hidden content
to:
Code:
<div align="center"><img src="images/en_hide_sorry.gif" alt="Admin refused to unhide hidden content nothing will help to see hidden content" border="0" /></div>
sid_hide_img_thank
from:
You will have to click 'thank you' to see hidden content
to:
Code:
<div align="center"><img src="images/en_hide_thank.gif" alt="You will have to click 'thank you' to see hidden content" border="0" /></div>
4) Now check your settings in "vBulletin Options" -> "Posts: vB Code [hide]"

If you encounter any error within the forums, let me know the exact error to give me a chance to let you know what to do.
Most it's because you've not installed the post_thank_you hack (see first post for link) and checked the "Choose YES to unhide hidden content to users who clicked 'Thank You'" what then will cause a invalid sql query for the post_thanks table (that's missing for sure) just set this option to "No" to get rid of that error (or, install the hack mentioned )
For any other error, I need some details

'sid
Reply With Quote
  #203  
Old 12-13-2006, 11:13 AM
Zork2 Zork2 is offline
 
Join Date: Sep 2006
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you so much for this hack, I have been trying to modify an old hide hack to get it to work like yours with out a lot of success.

I had the old buttons from my last hide hack installed so I got the

Invalid SQL:
INSERT INTO bbcode(bbcodeid, bbcodetag,.....

error when I first tried to install, I deleted the bbcode section from your file and then it installed fine.

I don't have the thank you button hack installed, I don't think I need that, very happy just the way it is now.
it seems to work great,
I just came back to click on the button that says I have it installed,
and I also voted for you for mod of the month.

thanks again.
Reply With Quote
  #204  
Old 12-14-2006, 03:10 AM
hostvn hostvn is offline
 
Join Date: Jan 2006
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how can i do if i want to get 2 these texts
[hide-reply]
[hide-thankyou]

?
Reply With Quote
  #205  
Old 12-14-2006, 08:37 AM
itsid itsid is offline
 
Join Date: Oct 2006
Posts: 253
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nothing.
There is no way to give that option to the users,
because I don't want to have any useroption.

Sorry if that doesn't fit your needs, but I will not change that.

'sid
Reply With Quote
  #206  
Old 12-14-2006, 03:01 PM
marotichat marotichat is offline
 
Join Date: Aug 2005
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello and thank you for this nice hack.
My only problem is that once I click on the thank you button it shows the hidden content fine.
I navigate to some other thread, and when I return I see the picture again with the Hidden content please press the Thank you button…
Also since I installed this hack I see that some people can have double thanks for the same post.

Your advice is highly appreciated.
Reply With Quote
  #207  
Old 12-14-2006, 04:39 PM
itsid itsid is offline
 
Join Date: Oct 2006
Posts: 253
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

in fact double-thanks are blocked by the post-thanks hack,
that's what the post_thanks_already phrase is made for
Are you sure you have the correct post_thanks hack installed?
The hack can only check settings and thanks given with the post_thanks_hack mentioned in first post.
(which is the best "thank you" Hack around imho )

If you have any other thank you hack, let me know which one, maybe I can help you out,
but the best way (in my opinion) is to use the thank you hack from Abe1

cheers
'sid
Reply With Quote
  #208  
Old 12-14-2006, 06:00 PM
BBF BBF is offline
 
Join Date: Dec 2006
Location: Israel, Netanya.
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks alot, great mod.
using it on my forums
Reply With Quote
  #209  
Old 12-14-2006, 06:30 PM
marotichat marotichat is offline
 
Join Date: Aug 2005
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for your reply,
Yes I have the correct, and the latest version of the post thank-you hack (5.3) from Abe1.
In fact I have used it for quite a while before I installed your hide hack and I had no problem with it what so ever.
The strangest part is that after clicking the Thanks button, it disappears (the thanks button) so I have no idea what could be the problem.
Also as I mentioned in my previous post the other issue is that after navigating to another thread and returning where I previously pressed the thanks button the content is hidden again.
Thank you in advance for your feed back
Reply With Quote
  #210  
Old 12-14-2006, 09:45 PM
itsid itsid is offline
 
Join Date: Oct 2006
Posts: 253
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

marotichat,
if you allow, would you mind sending me a PM, with an active useraccount login/pass to your forum ?
could be an old testuser of yourself, or a new one for me,
I don't intend to post, but to click some thanks buttons and get me the userside html-sourcecodes to see where I have to search for that error.
I've tried for an hour to reproduce this error on my testforums but I've got no chance to see that button again once clicked
I truely believe that both issues are addicted, maybe just an error of a local cache treatment, maybe influenced by another hack, maybe just because it's monday soon
Honest, to get an idea what's going on, I'd love to catch sight of that

BBF,
happy to hear, thank you

'sid
Reply With Quote
  #211  
Old 12-15-2006, 12:16 PM
Adam21 Adam21 is offline
 
Join Date: Apr 2005
Location: In The Network!
Posts: 299
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The insert image in the Custom BBCode does not work.When you enabled that,all previously hidden content are replaced by a line of text-"No code is to be allowed here"

Any ideas?
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 05:14 AM.


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.17795 seconds
  • Memory Usage 2,327KB
  • 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
  • (4)bbcode_code
  • (1)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