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 12-12-2006 10:27 PM

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 :D

'sid

Zork2 12-13-2006 11:13 AM

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.

hostvn 12-14-2006 03:10 AM

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

?

itsid 12-14-2006 08:37 AM

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

marotichat 12-14-2006 03:01 PM

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.

itsid 12-14-2006 04:39 PM

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

BBF 12-14-2006 06:00 PM

Thanks alot, great mod.
using it on my forums :)

marotichat 12-14-2006 06:30 PM

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

itsid 12-14-2006 09:45 PM

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 :D

'sid

Adam21 12-15-2006 12:16 PM

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?


All times are GMT. The time now is 11:23 PM.

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.01798 seconds
  • Memory Usage 1,752KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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