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)

MissKalunji 11-10-2006 06:47 PM

/me nominates for mod of the month

itsid 11-10-2006 11:05 PM

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

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

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

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

MissKalunji 11-11-2006 12:38 AM

Thanks Itsid! thanks a lot for your effort!

ociosos 11-11-2006 05:36 AM

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:

Quote:

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

<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]();

Quote:

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:

Quote:

<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:
https://vborg.vbsupport.ru/showthrea...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

lolo? 11-11-2006 06:07 AM

yes it's great ^^ thanks for this fix

ociosos 11-11-2006 12:23 PM

Quote:

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

MissKalunji 11-11-2006 02:11 PM

will that work with just replying to the thread?

lolo? 11-11-2006 02:14 PM

Quote:

Originally Posted by ociosos
I UPDATE THE INFORMATION...

PLZ READ BACK MY POST I FOUND SOME BUGS BUT THEY WHERE FIX
THANK YOU :D

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

itsid 11-11-2006 03:02 PM

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

'sid

ociosos 11-11-2006 03:14 PM

Quote:

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

'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
https://vborg.vbsupport.ru/showthread.php?t=123527


All times are GMT. The time now is 11:50 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.01486 seconds
  • Memory Usage 1,757KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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