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
  #52  
Old 11-09-2006, 02:05 PM
lolo? lolo? is offline
 
Join Date: Jun 2005
Posts: 243
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great for me in 3.6.3 very good job sid
the probleme for the first tag and the last are found very good ^^
Reply With Quote
  #53  
Old 11-09-2006, 02:19 PM
itsid itsid is offline
 
Join Date: Oct 2006
Posts: 253
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi dermo..
i don't have 3.6.3 here..
I expect you to just have that "no such table" error with the post_thanks -table;
is that true?
if , just deactivate the "show on thank you" option in acp,
if not, please let me know the exact error you're getting maybe i can see what's up without knowing 3.6.3

thanks lolo, it was quite obvious though that i just have forgotten to put an U behind my si... but you know, if you are too close you wont see anything

'sid
Reply With Quote
  #54  
Old 11-09-2006, 02:44 PM
lolo? lolo? is offline
 
Join Date: Jun 2005
Posts: 243
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you think it's possible to reduce sql request ?
Reply With Quote
  #55  
Old 11-09-2006, 03:01 PM
Dermo-MIO Dermo-MIO is offline
 
Join Date: Jan 2006
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Database error in vBulletin 3.6.3:

Invalid SQL:
SELECT COUNT(postid) AS count FROM vBulletinpost WHERE userid='5911' AND post.visible = 1 AND threadid='25207';

MySQL Error : Unknown table 'post' in where clause
Error Number : 1109
Date : Thursday, November 9th 2006 @ 06:00:42 PM
Script : http://murderinc-online.com/usforum/...d.php?p=242230
Referrer : http://murderinc-online.com/usforum/...searchid=25642
IP Address : 83.70.160.180
Username : Dermo
Classname : vb_database
thats the error it gives and i have ticked "no" in the enable thanks which i think you asked me to do
Reply With Quote
  #56  
Old 11-09-2006, 03:11 PM
Ronak's Avatar
Ronak Ronak is offline
 
Join Date: Sep 2006
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by itsid
Hi Lonely Heart, I wont fix that.. simple reason:
to just hide hidden content in quotes or on topic review is more or less ONE single line
to show up (or not) what's hidden is about 200 lines of code.
well, save resources

ociosos, what module of cmps? latesttopics, news?
cmps doesn't include any hooks to let me step into,
so if you want to get rid of hidden content in the latesttopics module, you will have to take care on your $thread['preview'] in there.
if you find a place where to put something like
PHP Code:
$thread['preview'] =preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU'$vbphrase['sid_hide_has_hidden'] , $thread['preview']) 
I think it'll do (line 111 seems to be a nice place) ... but: I didn't try
And I don't guarantee for anything neither that it works nor that is isn't scrambling your portal
take it as it is: A hint

so, as a sneak preview (still without ajax)
check out the latest version
(better handling of post_thanks_settings // thanks to abe1's kind permission)
and some minor improvements
what are the new features in this version ??
Reply With Quote
  #57  
Old 11-09-2006, 03:33 PM
ociosos ociosos is offline
 
Join Date: Jun 2006
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

please dont laught at me lol XD just trying to help.... :surprised:

what if by making click on the thank button will also refresh the website automatic????? just by clicking the THANK??

this is what i found arround..... thank you for the time to read this

ALSO I WILL UPGRADE TO THE LASTED!!!!!

ANY INSTRUCTIONS FOR THE UPGRADE PLZ WILL BE REALLY HELPFULL

THANK YOU AGAIN!!!!! YOU ARE GREAT!!!!!


OK HERE IS MY IDEA I HOPE IT HELP...

ADDING THIS TO THE THANK BUTTON?

Quote:

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
document.write('<form><input type=button value="Refresh" onClick="history.go()"></form>')
// End -->
</script>
WHAT DO YOU THINK?


POSTDATA: PLZ. THE REST OF THE PEOPLE DO NOT DO THIS JET IT IS JUST AN IDEA, I DON'T KNOW JET IF IT WORK OR NOT... THANK YOU
Reply With Quote
  #58  
Old 11-09-2006, 03:41 PM
Ronak's Avatar
Ronak Ronak is offline
 
Join Date: Sep 2006
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ociosos
please dont laught at me lol XD just trying to help.... :surprised:

what if by making click on the thank button will also refresh the website automatic????? just by clicking the THANK??

this is what i found arround..... thank you for the time to read this

ALSO I WILL UPGRADE TO THE LASTED!!!!!

ANY INSTRUCTIONS FOR THE UPGRADE PLZ WILL BE REALLY HELPFULL

THANK YOU AGAIN!!!!! YOU ARE GREAT!!!!!


OK HERE IS MY IDEA I HOPE IT HELP...

ADDING THIS TO THE THANK BUTTON?



WHAT DO YOU THINK?


POSTDATA: PLZ. THE REST OF THE PEOPLE DO NOT DO THIS JET IT IS JUST AN IDEA, I DON'T KNOW JET IF IT WORK OR NOT... THANK YOU
yeah this shud be on quick reply too automatic thread refresh

gr8 idea

Quote:
Originally Posted by itsid
quote
What abt a button ??? on reply boxes showing HIDE tag ??
Reply With Quote
  #59  
Old 11-09-2006, 08:16 PM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Working Perfectly!

Great work! Without file edits amazing!

Thanks!

/me clicks install

now all i wish thsi had is the "hide attachement"
Reply With Quote
  #60  
Old 11-10-2006, 03:55 PM
FatalBreeze FatalBreeze is offline
 
Join Date: Apr 2004
Location: Haifa - Israel
Posts: 163
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the hack, but when i install it, i immediately get this error:
Invalid SQL:
INSERT INTO bbcode VALUES (NULL, 'hide', 'No code has to be inserted here.', '[hide]some text[/hide]', 'With this tag you can hide some text an force members to answer or click the thank you button to see what you\'ve posted.', 0, 'hide', '');;
Reply With Quote
  #61  
Old 11-10-2006, 06:46 PM
lolo? lolo? is offline
 
Join Date: Jun 2005
Posts: 243
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you have already a tagg hide in your forum delte this bbcode and after reinstall this product
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:54 AM.


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.06147 seconds
  • Memory Usage 2,328KB
  • 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_php
  • (5)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
  • (2)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