Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
[hide] hack incl post thank you "addon" Details »
[hide] hack incl post thank you "addon"
Mod Version: 0.3.5, by itsid (Member) itsid is offline
Developer Last Online: Jun 2010 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.2 Rating: (69 votes - 4.59 average) Installs: 862
Released: 06 Nov 2006 Last Update: 09 Dec 2006 Downloads: 13838
Not Supported Uses Plugins Additional Files  

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"

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	hide1.jpg
Views:	11318
Size:	116.1 KB
ID:	55553   Click image for larger version

Name:	hide2.jpg
Views:	8993
Size:	101.7 KB
ID:	55554   Click image for larger version

Name:	hide3.jpg
Views:	4540
Size:	99.1 KB
ID:	55555   Click image for larger version

Name:	hide4.jpg
Views:	9259
Size:	111.1 KB
ID:	55556  

Click image for larger version

Name:	hide5.jpg
Views:	3193
Size:	95.0 KB
ID:	55557   Click image for larger version

Name:	hide6.jpg
Views:	3711
Size:	96.3 KB
ID:	55558   Click image for larger version

Name:	hide7.jpg
Views:	3062
Size:	97.3 KB
ID:	55559   Click image for larger version

Name:	hide8.jpg
Views:	3535
Size:	89.6 KB
ID:	55560  

Click image for larger version

Name:	en_hide_pot.gif
Views:	2877
Size:	8.2 KB
ID:	55587  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #61  
Old 10 Nov 2006, 20:47
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Real name: Mj Bain
/me nominates for mod of the month
__________________
____________
BossLady
Reply With Quote
  #62  
Old 11 Nov 2006, 01:05
itsid itsid is offline
 
Join Date: Oct 2006
Hi there,
thanks alot MissKalunji (to start from the end)

yup FatalBreeze that what it seems to be the problem of yours.
if not, please let me know.

and: thanks again MissKalunji,
I don't think that i can cope with attachments too, I'm sorry
maybe another hack.. a differnet time

Ronak, well, you mean those 21pix editor-buttons, don't you?
I don't have one by myself, I hate wysiwyg and never had used any of those buttons at all (strong believer in hand-bbcode-tagging ) but feel free to set one, just go and edit the settings in OWN VB CODES in acp, you will find where to set the button i'm sure

ociosos, then it would be a better idea to set the refreshscript on the hiddenimage, I think.
I may catch a button but I surely wont edit any buttons from other hacks or vb itself

Oh and Ronak again (uh how long I've been away??),
well, what improvements.. let me think:
mainly this script now catches the settings of the post thank you hack and
show all hidden content of a thread if post_thanks_button is in firstpost only,
if every posts has a thanks button it only shows the hidden content of the post you thanked for. (with kind permission of Abe1)
I killed one useless sql query (but added two others )
it also now shows up the [hidden not quoteable] message lolo suggested.
(editable in andreas' hint 2 at this time, no vbphrase, i'll fix that)
multiple-hide per post possible now
and some very minor changes I really can't even remeber

loloČ, yes, I try to reduce to a max of ONE sql query per post ,tag and call (worst case now is two, best case none), but I need too much lines for that by now.. must reduce

Now, let's get to the Ajax Part you're all waiting for :
I've done a small adaption of this hack (not nearly as exact) working with an ajax-button of it's own, but i can tell you this isn't fun at all;
I'm not quite good in writing javascripts, so I have to take one small step after another.
What I see so far is that if I do a ajax-version of this hack, I will have to build a jscript for each hidden-fieldset and again two(or more) sql-querys to show them up;
to be honest: I don't like that thought
Maybe it's on me and I only have to fix some errors, I don't know by now.

Will let you know when ever I make some improvements.

'sid

Last edited by itsid; 11 Nov 2006 at 01:09.
Reply With Quote
  #63  
Old 11 Nov 2006, 02:38
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Real name: Mj Bain
Thanks Itsid! thanks a lot for your effort!
__________________
____________
BossLady
Reply With Quote
  #64  
Old 11 Nov 2006, 07:36
ociosos's Avatar
ociosos ociosos is offline
 
Join Date: Jun 2006
Post

PLEASE READ THE UPDATE FIRST AT THE END OF THIS POST...

OK I FIX THE REFRESHHHHHHHHHHHHHHHHHHH THING AFTER CLICKING ON THANK YOU.....

I DON'T KNOW IF ITS RIGHT TO MODIFY SOMEBODY ELSE HACK...

BUT..... I DID IT WITH ALL MY RESPECT.

:bunny::bunny:OK HERE ARE THE INSTRUCTIONS....:bunny::bunny:

First i don't want to get credits for this codes, the people who created deserve all the credits.
This 2 hacks are one of the bests!! around here... make sure to give them the right appreciation.
First go to the ADMINCP ==> Styles & Templates ==> Search in Templates
look for post_thanks_button LET'S EDIT IT...

---------------------------------------------------------------------------
BEFORE DOING ANY MODIFICATION I JUST WANT YOU TO KNOW THE I WILL NOT BE RESPONSIBLE FOR ANY WRONG MOD...
OK LET'S CONTINUE...

make sure that you copy and paste in a txt and save it, just to keep a backup of the post_thanks_button in case S. H.
---------------------------------------------------------------------------

in the post_thanks_button template find:
<if condition="$vboptions[disable_ajax] != 2"> onclick="post_thanks_give_$post[postid](); return false;"</if>
erase the action> ; return false <just that nothing else..

---- THIS IS THE UPDATED TEXT----

now add the following action after the post_thanks_give_$post[postid]();

history.go();
dont forget to leave a space right after post_thanks_give_$post[postid](); then put the history.go();

it should look like this:

<if condition="$vboptions[disable_ajax] != 2"> onclick="post_thanks_give_$post[postid](); history.go();"</if>
AND THAT'S IT CLICK ON SAVE AND TRY IT...
PLZ COMMENT THIS LITTLE MOD...

---------------------------------------------------------------------------
IF YOU NEED A SPANISH VERSION I CAN HELP JUST MAIL ME
SI NECESITAS UNA AYUDA EN ESPANOL MANDAME UN EMAIL
---------------------------------------------------------------------------

itsid IF YOU THINK THIS IS THE WRONG PLACE TO PUT THIS.... PLZ LET ME KNOW I ERASE THE MESSAGE...

AND THANK YOU FOR ALL YOUR HELP...

2 OF THE GREATEST HACKS!!! TOGETHER...!!!!!!!!!!!!!!

IF YOU FIND SOME WORDS NOT WRITTEN RIGHT, IS BCZ SPANISH IS MY FIRST LANGUAGE...
I DID MY BEST TO KEEP IT UNDERSTANDABLE...

GOOD LUCK!!!
------------------------------------------------------------------------
to visit the "THANK YOU" HACK follow this link:
http://www.vbulletin.org/forum/showt...35#post1114635


-------------------------------------------------------------------------------
FIRST BUG
-------------------------------------------------------------------------------
THIS WORKS ONLY ON MOZILLA FIREFOX BROWSER
ON THE EXPLORER AND OPERA DON'T WORK IT JUST GIVE ME A MESSAGE SAYING
"THAT YOU ALREADY SAID THANK YOU"

SORRY WORKING ON IT TO MAKE IT WORK IN OTHERS
-------------------------------------------------------------------------------

-------------------------------------------------------------------------------
UPDATE
-------------------------------------------------------------------------------
OK FIX IT AGAIN FOR THE BROWSER EXPLORER MOZILLA & OPERA WORKS GREAT
SEE THE UPDATED TEXT

Last edited by ociosos; 11 Nov 2006 at 14:59.
Reply With Quote
  #65  
Old 11 Nov 2006, 08:07
loloČ loloČ is offline
 
Join Date: Jun 2005
yes it's great ^^ thanks for this fix
Reply With Quote
  #66  
Old 11 Nov 2006, 14:23
ociosos's Avatar
ociosos ociosos is offline
 
Join Date: Jun 2006
Post

Originally Posted by loloČ
yes it's great ^^ thanks for this fix
I UPDATE THE INFORMATION...

PLZ READ BACK MY POST I FOUND SOME BUGS BUT THEY WHERE FIX
THANK YOU
Reply With Quote
  #67  
Old 11 Nov 2006, 16:11
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Real name: Mj Bain
will that work with just replying to the thread?
__________________
____________
BossLady
Reply With Quote
  #68  
Old 11 Nov 2006, 16:14
loloČ loloČ is offline
 
Join Date: Jun 2005
Originally Posted by ociosos
I UPDATE THE INFORMATION...

PLZ READ BACK MY POST I FOUND SOME BUGS BUT THEY WHERE FIX
THANK YOU
I have one bug with your news modification
She saiy i'have all ready say thanks :S after push thanks button

for me the first solution works great on ff and ie but not the second :s

Last edited by loloČ; 11 Nov 2006 at 16:33.
Reply With Quote
  #69  
Old 11 Nov 2006, 17:02
itsid itsid is offline
 
Join Date: Oct 2006
hi ociosos,
as I said above I don't like editing other buttons at all
this way for example you deaktivate the ajaxstuff from the post_thanks_hack EVERYWHERE even if there is no hidden content at all.
But there stays a lot of Javascript in the html source which is unnecessary now.

I do not like that, sorry.

Well: You may leave your post where it is, no problem.
But please no support for that template-edit in this thread!
Use PN or build another thread

'sid
Reply With Quote
  #70  
Old 11 Nov 2006, 17:14
ociosos's Avatar
ociosos ociosos is offline
 
Join Date: Jun 2006
Post

Originally Posted by itsid
hi ociosos,
as I said above I don't like editing other buttons at all
this way for example you deaktivate the ajaxstuff from the post_thanks_hack EVERYWHERE even if there is no hidden content at all.
But there stays a lot of Javascript in the html source which is unnecessary now.

I do not like that, sorry.

Well: You may leave your post where it is, no problem.
But please no support for that template-edit in this thread!
Use PN or build another thread

'sid
ok no problem thank you for everything you are great...

well searching arround i found this...

there is a new hack that use the convination of this hack and the other one plus some extra stuffs

here is the link you can take a look around to get new ideas think so?

vS-Hide Hack Resurrection i dont try it jet but it look pretty good
http://www.vbulletin.org/forum/showthread.php?t=123527
Reply With Quote
  #71  
Old 12 Nov 2006, 03:26
Nair654 Nair654 is offline
 
Join Date: Nov 2006
this going to be awasome once i get it done on my forum
Reply With Quote
  #72  
Old 12 Nov 2006, 14:10
Ronak's Avatar
Ronak Ronak is offline
 
Join Date: Sep 2006
wud u mind creating a 21px button ?
Reply With Quote
  #73  
Old 12 Nov 2006, 17:46
sorry01's Avatar
sorry01 sorry01 is offline
 
Join Date: Mar 2006
Works great for me in 3.6.3 very good job sid tanks again
Reply With Quote
  #74  
Old 13 Nov 2006, 00:38
itsid itsid is offline
 
Join Date: Oct 2006
thanks sorry01, I couldn't test with 3.6.3 so this is helpful

Hi Ronak, I'm not very good in iconifying.. but if you want, use the one below.

So, having you updated to the ajax issue:

I've build up a javascript that's able to read even multiple posts and spits them to predefined containers,
because ajax is only able to send and get ONLY ONE at a time, this really is nothing you really want, multiple sql querys, multiple php-calls, multiple TimeOutCalls (to fetch correct state) and extremly blown up script itself. (at this time twice as large as last version and growing)

So, right now I try to build an acp-option to activate this only if you know
what you are doing to your server with that, and this means loss of performance and of course to reduce sql queries to the absolute minimum.
And if possible to reduce the script itself to get smaller to save every ressource you (and I) have!
If there is one important thing, then it's performance

Now I have to find out what to optimize, what to drop, what to tweak again and of course all the debbuging that's possible

BUT:
Still I am unable to promise a working ajax-version of this one,
but I will post what I've done as soon as I surrender or succeed

cheers
'sid
Attached Images
File Type: gif ed-hide.gif (172 Bytes, 845 views)
Reply With Quote
  #75  
Old 13 Nov 2006, 18:32
ociosos's Avatar
ociosos ociosos is offline
 
Join Date: Jun 2006
ITSID:

it is working PERFECT on 3.6.3 :P
nice work!!!
can not download the attached file to check it out...
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 16:29.

Layout Options | Width: Wide Color: