Thread: New Posting Features - [hide] hack incl post thank you "addon"
View Single Post
  #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
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01248 seconds
  • Memory Usage 1,783KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete