PDA

View Full Version : New Posting Features - [hide] hack incl post thank you "addon"


Pages : [1] 2 3 4

itsid
11-05-2006, 10:00 PM
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 :D
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 :D

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" (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=130887)

Shazz
11-06-2006, 01:45 AM
Looks very nice :)

SCRIPT3R
11-06-2006, 02:11 AM
did you get permission to use all the copied code?

lolo?
11-06-2006, 05:42 AM
thanks i try it :)
there is a small bug if have more one tag hide in the post the hide start on firts tagg and close after the last tagg

shadowevil
11-06-2006, 06:52 AM
great mod ... i like it .... *installed*

Hornstar
11-06-2006, 10:21 AM
Thanks for this.

BlueEyesOnly
11-06-2006, 04:28 PM
hi,

ich finde dein hidehack ist sehr gut gelöst, ist dabei auch der hide auch versteckt wenn man das archiv benutzt?

eine andere frage, ich sehe du hast einen bedankomat im forum, ist der auch nach dem gleichem schema wie der hide von dir?

ich hätte da sehr starkes intresse! (melde mich nochmal per pm)

nedemail
11-06-2006, 04:57 PM
Thank you for this hack

itsid
11-06-2006, 05:28 PM
Hi there,
Gear, I've read some thousand lines of code of various hacks and "original" phps, getting me some ideas, possible hooks, workarounds and array-calls, I cannot say that you wont find a line in this code that isn't in any other hack or php.
But it wasn't my intention to just copy.. so give me a hint what code you're talking about and I'll replace that or get permissions ;)

lolo?, yeah I know :( I'll try to fix that

blueeyes, hidden content ist completly visible in archive (as meantioned above) my Bedankomat is exactly the one linked in first post (just made me some new templates)

'sid

ps andreas of vh-g.com gave some useful tipps i'll try these days, so update is more than posssible ;)

Frapegliko
11-06-2006, 06:26 PM
thank u. nice mod

Greek76
11-06-2006, 07:07 PM
I was under the impression thank you hack was not needed in order for this hack to work. I recieved a database error:


Invalid SQL:
SELECT userid FROM post_thanks WHERE postid='165' AND userid='1';

MySQL Error : Table 'hellenic_GRealm.post_thanks' doesn't exist
Error Number : 1146

Uploaded all the files, and edited the correct files...

itsid
11-06-2006, 08:09 PM
In fact you will have to disable the setting in acp ( Users who thanked )
then there is no database query for post_thanks table.

'sid

Ronak
11-07-2006, 01:40 AM
Instructions wud help a bit :D

itsid
11-07-2006, 02:09 AM
well v020 comes with some very small instruction set on how to install this one.
And the rest of it is pretty much self-explanatory ;)

But if you have any question, feel free to ask :D

'sid

Shazz
11-07-2006, 02:13 AM
The screen shots look very nice, seems like a good quality hack :)

Ronak
11-07-2006, 02:32 AM
i am getting this error

No code has to be inserted here. :(

on my test forums :)

Makaveli105
11-07-2006, 05:37 AM
Very nice, once it is made so you don't have to refresh after replying to see the content, this will be the perfect hide hack :)

Good job! :D

lolo?
11-07-2006, 08:31 AM
i am getting this error

No code has to be inserted here. :(

on my test forums :)

http://vbtest.chitchatters.in
update the cache i have the sme probleme and after update cache of post no probl?me

ombossman
11-07-2006, 09:38 AM
where this panel idont fin my cp

https://vborg.vbsupport.ru/attachment.php?attachmentid=55556&d=1162783551

itsid
11-07-2006, 10:44 AM
vbbulletin options -> posts: vb code [hide]

'sid

Greek76
11-07-2006, 12:48 PM
Its in German???? Also how are you to disable thank you hack if its not installed on the forum to begin with?

Ronak
11-07-2006, 02:12 PM
update the cache i have the sme probleme and after update cache of post no probl?me
still same problem ..showing same error

itsid
11-07-2006, 02:18 PM
ronak, Go to ACP -> own vb codes, edit the hide-tag and replace the line from the replacement-box with {param}
click save and you're done :D

greek, yes it's in german if you don't install the english-language file.
to disble you may disable the hack in the product-management completely or in it's vb options settingsgroup

'sid

Ronak
11-07-2006, 02:30 PM
Also When U do full reply..(not quick reply) it show the post :(

itsid
11-07-2006, 04:55 PM
Uuups

please create a xml file with the following content (notepad will do)

<?xml version="1.0" encoding="ISO-8859-1"?>

<plugins>
<plugin active="1" executionorder="126" product="sids_hide">
<title>newreply review</title>
<hookname>newreply_form_reviewbit</hookname>
<phpcode><![CDATA[$reviewmessage =preg_replace('/\\[hide\\](.*)\\[\/hide\\]/si', $vbphrase[sid_hide_has_hidden], $reviewmessage);]]></phpcode>
</plugin>
</plugins>


And import that via plugin-manager (plugin, NOT product)

Next version will have that included!

'sid

Dermo-MIO
11-07-2006, 05:15 PM
dude i instaleld this but dont know where to upload the english xml thingy as you say dont create a new language but thats the only option it offers you. i have installed the main xml one but when i hit the "thanks" button or reply it still says the german for you need to hit the thanks etc

can you help me ?

vivamexico55
11-07-2006, 07:21 PM
This is awesome!

Do you will use AJAX so a page reload is not needed?

Greek76
11-07-2006, 08:09 PM
How to get it to show in English and were to upload the file?

Dermo-MIO
11-07-2006, 08:35 PM
i spoke too soon nobody can see the links all usergroups have permission to see it, and yea the ebglish bit maybe u can make a new version that is english cause u dont explain very well how to uplaod the other english bit. this hack looks amazing it just doesnt work for me. im more then happy to let u check my acp if that can help thanks

itsid
11-07-2006, 09:22 PM
Dermo,
i'm a bit curious about you language settings, that you are unable to import the langfile to the existing (let's say english) phrase-set
If you really do not have that small dropdownbox in the Phrasemanagement
please go ahead and open both files (the lang.xml and the product.xml) with any texteditor and just copy the phrases from the lang.xml into the product.xml replacing the existing ones (you will recognize them for sure!)
see in attachement ;) (import and OVERWRITE)

mexico, well I'm trying to figure out on how to directly show up hidden content without reload, may take just another while :)

Greek, if you have the same issues dermo has, just use the attached xml as product overwriting the existing that one is english by birth ;)

'sid

ps it has the previous mentioned plugin included

Ronak
11-08-2006, 05:50 AM
Awesome !!! its working now :D Clicked Install ;) looking out for more major upgrades in this hack ;) :p

i suppose u shud release 0.30 :) with that NEW REPLY thing fixed :)

itsid
11-08-2006, 11:47 AM
I'm working on that "reload issue"
this will be 0.3. I guess :D

'sid

lolo?
11-08-2006, 04:47 PM
I'm working on that "reload issue"
this will be 0.3. I guess :D

'sid
great ;)
do you think fix the probl?me for the first tag and last tag?
great jobs thanks

itsid
11-08-2006, 05:28 PM
well lolo, I'm trying to, having this one in mind for quite a while, I'll do my very best to find (someone with) a solution :D

I was just asking abe to let me use one of his arrays, that i could get rid of one of my sql-querys (this way it'll use less resources hopefully).

I'm not the fastest guy around, so give me just some days to improve this one ;)

cheers
'sid

lolo?
11-08-2006, 05:44 PM
well lolo, I'm trying to, having this one in mind for quite a while, I'll do my very best to find (someone with) a solution :D

I was just asking abe to let me use one of his arrays, that i could get rid of one of my sql-querys (this way it'll use less resources hopefully).

I'm not the fastest guy around, so give me just some days to improve this one ;)

cheers
'sid
No Probleme take the time you need ;)

I have make a change in one module andreas' hint 2

$pagetext = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/si', "[Hidden text can't be quoted]", $pagetext) ;
this is the result 55689

itsid
11-08-2006, 08:58 PM
nice idea ;)
I'll go and build the phrases then :D

The more I read in the sources the more I find to do it another way...

let's see how fast my brain can run tonight ;)

'sid

ociosos
11-09-2006, 12:32 AM
GREAT JOB...

WILL LOVE TO GET THE LAST VERSION WHEN YOUR DONE...

IF YOU FIX IT TO SHOW THE HIDE COMMENTS WITHOUT REFRESHING WILL BE THE ONE OF THE BEST HACKS FOR VBULLETIN....

IM ALSO NOMINATE YOU FOR Mod o.t. Month

Makaveli105
11-09-2006, 12:36 AM
^^ Yea me too, I can't wait!

itsid
11-09-2006, 12:40 AM
thanks alot,
i just made some more improvements on handling "thanks" with it..(not online be patient)
but: I got into a fight with Ajax today.. IT WON :(
But it mustn't... I just need rather some days than some hours :D

current song: Peter Gabriel - don't give up

Will let you know soon

Cheers
'sid

Ronak
11-09-2006, 12:48 AM
This hack is on the way to become MOTM ;) :D

Shazz
11-09-2006, 12:52 AM
This hack is on the way to become MOTM ;) :D
I guess it could go against iproarcade :)

AMG021
11-09-2006, 02:31 AM
dude let me tell you something YOUR GOOOD!!! thanks At last hide hack is free again :D

Shazz
11-09-2006, 02:37 AM
I wonder why psnonic vision hasen't posted yet in this thread..

tekstylez
11-09-2006, 02:48 AM
edit:

not showing hidden for guests...

Lonely Heart
11-09-2006, 03:17 AM
Wonderful ;)

need to fix:

* after reply or click on Thank You, STILL (This post contains hidden content) on Topic Review.

* after reply or click on Thank You, STILL can't quoted ( Empty where the hidden content) Or in lolo? Code (Hidden text can't be quoted)


:D Thanx for this useful hack and it'll be M.o.t.M cuz we got your back :D

ociosos
11-09-2006, 10:47 AM
one question.... how can i make it work on the CMPS....

when i show a preview of a thread in the CMPS it shows the hidden content...

:(

quick solution for now...

I just add some (enters) lol under a picture to bring the hidden conten down lol

great hacks anyways thank you!!!

Ronak
11-09-2006, 11:25 AM
i am using another button :p not the button given :D

ociosos
11-09-2006, 11:43 AM
i am using another button :p not the button given :D

yeah i did the same bcz it is a spanish community lol

;)

but i have to tell the to the stupid people who dont read just download things
that if they dont click thanks or reply to the thread, they would'nt be able to see the hidden links lol....

so i took the images out and left a text explaning what to do to see the hidden text so they quit asking me that the post is bad and some stupid thinks that lecherss do lol

:hurt:


i'm also translate this hack to spanish... but i dont know how to export it from my board, if somebody tell me how, i include it in a zip for the spanish users who need it...

itsid
11-09-2006, 12:59 PM
Wonderful ;)
need to fix:
* after reply or click on Thank You, STILL (This post contains hidden content) on Topic Review.
* after reply or click on Thank You, STILL can't quoted ( Empty where the hidden content) Or in lolo? Code (Hidden text can't be quoted)
:D Thanx for this useful hack and it'll be M.o.t.M cuz we got your back :D

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

Dermo-MIO
11-09-2006, 01:42 PM
Sid thanks for the update but sadly it deosnt work in 6.3 it caused a error on my forum so i disabled it thanks tough i really hope you can get around the problems

lolo?
11-09-2006, 02:05 PM
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 ^^

itsid
11-09-2006, 02:19 PM
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 :D

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

lolo?
11-09-2006, 02:44 PM
Did you think it's possible to reduce sql request ?

Dermo-MIO
11-09-2006, 03:01 PM
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/showthread.php?p=242230
Referrer : http://murderinc-online.com/usforum/search.php?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

Ronak
11-09-2006, 03:11 PM
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
$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 :D
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 :D ??

ociosos
11-09-2006, 03:33 PM
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... :p

ADDING THIS TO THE THANK BUTTON?



<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

Ronak
11-09-2006, 03:41 PM
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... :p

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

gr8 idea

quote

What abt a button ??? on reply boxes showing HIDE tag ;) ??

MissKalunji
11-09-2006, 08:16 PM
Working Perfectly!

Great work! Without file edits amazing!

Thanks!

/me clicks install

now all i wish thsi had is the "hide attachement"

FatalBreeze
11-10-2006, 03:55 PM
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.', 'some text', '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', '');;

lolo?
11-10-2006, 06:46 PM
you have already a tagg hide in your forum delte this bbcode and after reinstall this product ;)

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:

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:
https://vborg.vbsupport.ru/showthread.php?p=1114635#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
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
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
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

Nair654
11-12-2006, 01:26 AM
this going to be awasome once i get it done on my forum

Ronak
11-12-2006, 12:10 PM
wud u mind creating a 21px button :D ?

sorry01
11-12-2006, 03:46 PM
Works great for me in 3.6.3 very good job sid tanks again

itsid
11-12-2006, 10:38 PM
thanks sorry01, I couldn't test with 3.6.3 so this is helpful :D

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

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

ociosos
11-13-2006, 04:32 PM
ITSID:

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

wurstsuppe
11-13-2006, 06:23 PM
Thanks very much !

Great work

itsid
11-13-2006, 08:50 PM
gern geschehen wurstsuppe ;)

ociosos, rightclick save as ;) the image is unmodified by vbulletin so it's not clickable for download but simply fully shown :D

'sid

Greek76
11-14-2006, 08:41 AM
Cant get this to work. I reuploaded the product.xml in english. I uploaded the images to my forum/images. I go to phrase manage to import this as you stated: import via acp phrasemanager DONOT create new language
hide_bbcode-language-en.xml
I dont see a way to import a phrase file. I dont get this. Also if I want to use this file hide_bbcode-language-en-images.xml I uploaded into my xml folder. I see nothing happening. How do I get this to work. I see the it in the options on my acp set it accordingly so what next?

lolo?
11-14-2006, 09:26 AM
you don't create a new language but select english our other and import de xml file ;)

iran.gs
11-14-2006, 10:45 AM
Installed how ever where are the icons for me and members to use if they decided to use this ?????? not everyone knows we offer this hack.
So i must have installed it wrong or we are missing something !!!!!! and i used it this code
[hide] it worked fine and than l logged in as someone ealse i used my thank botton how ever i had to refresh the page in order to see it !!!!!!
same with reply page needs to be refreshed :(

so we got 2 problems refreshing the page and no icons for this hacks for ppl to see and use.....

itsid
11-14-2006, 12:59 PM
Hi iran.gs
The missing Icon is not missing it's not featured ;)
I've made one a page ago, so if you want, go back one page rightclick&save it ,
and put it in (own vb codes -> edit [hide] and there you'll see)
("problem" one solved ;))

Second problem is mentioned in first post, and on every single page..
I'm trying to ajaxify this thing so that no reload is necessary.
but in fact even this is not a problem but just a missing ajax-ability...

Greek, if you have installed the english xml you don't have to install a language set at all (not if you don't want to have the images shown but the simple textstrings)

'sid

Greek76
11-15-2006, 12:06 AM
I got the hide hack to work which is wonderful and thanks for such a great mod. My question is how do I get the thank you images to show on the forum?

itsid
11-16-2006, 12:49 AM
Sorry... what images?
the small white ones belong to the post_thank_you hack announced in first post ;)
the others (bigger and blue) are shown by the language set (marked as img_) you have problems to install :D

So if you want to have the small ones, install the post_thank_you hack,
and if you're talking about the blue-ones do as lolo? told you to do :D

cheers
'sid

PS No great steps made so far... on ajax

RFViet
11-16-2006, 02:26 PM
if users reply or thank, they'll have to reload the page to see hidden content

Will it be fixed in the future ??? Or we have to live with it ?

Ronak
11-16-2006, 03:23 PM
Cant get this to work. I reuploaded the product.xml in english. I uploaded the images to my forum/images. I go to phrase manage to import this as you stated:
I dont see a way to import a phrase file. I dont get this. Also if I want to use this file hide_bbcode-language-en-images.xml I uploaded into my xml folder. I see nothing happening. How do I get this to work. I see the it in the options on my acp set it accordingly so what next?
U have to upload it via AdminCP

hide_bbcode-language-en.xml file ...AdminCP-->Languages & Phrases-->Download & upload Phrases ->> Upload

DO OVERWRITE !!

wud be done ;)

Ronak
11-16-2006, 03:25 PM
U can use this file too :cool: :cool:

AHMUDEM
11-16-2006, 07:51 PM
help me
i want you picture hide gif put my forum.


http://img91.imageshack.us/img91/2483/resim1rs2.jpg


help me
i want you picture hide gif put my forum. :(

Shazz
11-16-2006, 08:40 PM
U can use this file too :cool: :cool:

I think this image is copyrighted..

MissKalunji
11-16-2006, 10:09 PM
I think this image is copyrighted..

Yep By almighty Psionic vision

ga2000gt
11-17-2006, 12:56 AM
hi itsid, i'm having problems with this hack (https://vborg.vbsupport.ru/showthread.php?t=99520&highlight=improved+thread+preview), the preview is not working when i enable the hide product :S
how could i fix that?
thnx

Shazz
11-17-2006, 12:56 AM
Great hack

itsid
11-17-2006, 01:34 AM
First, to let me start from the end again ...
to all:
Never ever flame to any coder within this thread!
If you donot like what psionic offers: Don't use it!
I didn't like his hide-hack, so I build my own,
I love his Adv.Ed.Options so I use it and respect him.

So please: stay off of this thread if you only intend to disrespect any other person!

Now I'm feeling better ;)

okay, what's next?

ga2000gt, You don't see hidden content in forumdisplay even if you thanked or replied? Is that what you're saying?
That's the way it works, because to simply hide the content is about 100lines less code, that's why hidden content is only available where it needs to be shown (showthread, showpost, printthread).
No preview is intended :D
same thing for newthread/newreply; you know what you're intending to hide whilst typing I guess, and because of the unfamous bunch of messie code wysiwyg produces once in a while it's easier to just not parse hide in any editor :D

MissKalunji, Shazz Ronak:
Yes the picture belongs to the hide-hack from psionic vision, to do ME a favour, please do not use this one for my hack, thanks alot

Ahmudem,
you will find that editor-image some pages ago (post#74 of this thread) you can set that in acp under "own vb codes" edit (hide-tag) you will see once you're there :D

RFViet, yes this WILL be fixed in the future.
I've just finished a very crappy code that makes the ajax-calls to refresh the posts you need to have refreshed, once I cleaned up that mess and did some improvements on handling (MSIE wont do at this very moment) and added an option in acp to disable ajax functionality for hide-hack I will update the first post with the new version.
BUT: This still needs some time, I don't like you to have my lousy crap on your forums, that's why I do my best to fix issues before you install :D
I'm sure you understand ;)

'sid

MissKalunji
11-17-2006, 03:26 AM
First, to let me start from the end again ...
to all:
Never ever flame to any coder within this thread!
If you donot like what psionic offers: Don't use it!
I didn't like his hide-hack, so I build my own,
I love his Adv.Ed.Options so I use it and respect him.

So please: stay off of this thread if you only intend to disrespect any other person!

Now I'm feeling better ;)

okay, what's next?

ga2000gt, You don't see hidden content in forumdisplay even if you thanked or replied? Is that what you're saying?
That's the way it works, because to simply hide the content is about 100lines less code, that's why hidden content is only available where it needs to be shown (showthread, showpost, printthread).
No preview is intended :D
same thing for newthread/newreply; you know what you're intending to hide whilst typing I guess, and because of the unfamous bunch of messie code wysiwyg produces once in a while it's easier to just not parse hide in any editor :D

MissKalunji, Shazz Ronak:
Yes the picture belongs to the hide-hack from psionic vision, to do ME a favour, please do not use this one for my hack, thanks alot

Ahmudem,
you will find that editor-image some pages ago (post#74 of this thread) you can set that in acp under "own vb codes" edit (hide-tag) you will see once you're there :D

RFViet, yes this WILL be fixed in the future.
I've just finished a very crappy code that makes the ajax-calls to refresh the posts you need to have refreshed, once I cleaned up that mess and did some improvements on handling (MSIE wont do at this very moment) and added an option in acp to disable ajax functionality for hide-hack I will update the first post with the new version.
BUT: This still needs some time, I don't like you to have my lousy crap on your forums, that's why I do my best to fix issues before you install :D
I'm sure you understand ;)

'sid


Dont worry im not using it! Just stating that it belonged to someone else

and good work man just what i needed something that hides but doesnt add too many queries

Ronak
11-17-2006, 05:16 AM
I think this image is copyrighted..
its not copyrighted !!

hide hack was first developed in IPB -- where this image was built so this aint copyrighted ;)

MissKalunji
11-17-2006, 10:13 AM
its not copyrighted !!

hide hack was first developed in IPB -- where this image was built so this aint copyrighted ;)

oh ok it just looked like the one mr psionic vision uses wouldnt want n e one to get a heart attack over that ;)

Thanks for specifying!

RFViet
11-17-2006, 07:38 PM
RFViet, yes this WILL be fixed in the future.
I've just finished a very crappy code that makes the ajax-calls to refresh the posts you need to have refreshed, once I cleaned up that mess and did some improvements on handling (MSIE wont do at this very moment) and added an option in acp to disable ajax functionality for hide-hack I will update the first post with the new version.
BUT: This still needs some time, I don't like you to have my lousy crap on your forums, that's why I do my best to fix issues before you install :D
I'm sure you understand ;)

'sid

I like this hack because it's simple installation. I'll wait for that fix :banana:

Shazz
11-17-2006, 08:51 PM
its not copyrighted !!

hide hack was first developed in IPB -- where this image was built so this aint copyrighted ;)

Do you have proof of this?
I swear Ive been contacted by Vision scripts about this

itsid
11-17-2006, 11:21 PM
earlier than I thought..

check out the ajax version of this hack

Have fun ;)

cheers
'sid

ps Open for any suggestions for sure

MissKalunji
11-17-2006, 11:35 PM
Do you have proof of this?
I swear Ive been contacted by Vision scripts about this

i seen it on millionnnnnnnnnnnnnnns of invision board's site.....been there from before this even existed for vb But who cares :) i found one right here works the same!

MissKalunji
11-17-2006, 11:35 PM
earlier than I thought..

check out the ajax version of this hack

Have fun ;)

cheers
'sid

ps Open for any suggestions for sure


sweet thanks!

akanevsky
11-17-2006, 11:45 PM
oh ok it just looked like the one mr psionic vision uses wouldnt want n e one to get a heart attack over that ;)

Thanks for specifying!

You have already been asked multiple times to refrain from attacking others and attempting to initiate flood wars. Since you did not stop, I have reported a number of your posts to vBulletin.org administration so that they may take appropriate disciplinary course of action.

i seen it on millionnnnnnnnnnnnnnns of invision board's site.....been there from before this even existed for vb But who cares i found one right here works the same!

With all due respect... The definition of proof is "factual evidence"; words that are not supported by references are not factual evidence and therefore not a valid proof.

vBStyles.com owns the copyright to the mentioned picture, and their permission is required for non-private use of the image. Just to prevent any further flood, I have received such permission in return for certain favors, and that is how I am using the image in my own hack.

MissKalunji
11-18-2006, 12:29 AM
earlier than I thought..

check out the ajax version of this hack

Have fun ;)

cheers
'sid

ps Open for any suggestions for sure

NO error But i still have to refresh the page To get it to show :-/

MissKalunji
11-18-2006, 12:30 AM
i take it back


Database error in vBulletin 3.6.0:

Invalid SQL:
INSERT INTO bbcode VALUES (NULL, 'hide', '{param}', 'some text', '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', '');;

MySQL Error : Duplicate entry 'hide-0' for key 2
Error Number : 1062
Date : Friday, November 17th 2006 @ 09:32:05 PM
Script : http://www.dancehallareaz.com/xxxxx/plugin.php?do=productimport
Referrer : http://www.dancehallareaz.com/xxxxx/plugin.php?do=productadd
IP Address : xx.xxx.xxx.xx
Username : MissKalunji
Classname : vb_database

itsid
11-18-2006, 01:19 AM
Oh MissKalunji,
my fault, I've forgotten to tell :
You have to UNINSTALL the previous version of this hack, otherwise vbulletin tries to overwrite the bbcode setting what will cause this error.

SORRY!

Uninstall sid_hide_hack (any version) and reinstall again.
After that, go to settings panel and activate AJAX (deactivated by default)
load any thread containing hidden content
and test again.

'sid

Paul M
11-18-2006, 01:44 AM
I strongly suggest that some members take their problems with other members away from vb.org, otherwise irritated administrators/moderators may start deleting posts and suspending posting rights. Support threads are for support, not personal comments about others.

MissKalunji
11-18-2006, 01:59 AM
Oh MissKalunji,
my fault, I've forgotten to tell :
You have to UNINSTALL the previous version of this hack, otherwise vbulletin tries to overwrite the bbcode setting what will cause this error.

SORRY!

Uninstall sid_hide_hack (any version) and reinstall again.
After that, go to settings panel and activate AJAX (deactivated by default)
load any thread containing hidden content
and test again.

'sid

Ok thanks :)

MissKalunji
11-18-2006, 02:11 AM
ok it creates a javascript errors in IE and it doesnt work :-/

Line : 1
Char : 1
error : object expected
code : 0

lolo?
11-18-2006, 02:46 AM
very good job work's fine thanks sid i applose this

MissKalunji
11-18-2006, 02:47 AM
it works for you?

Shazz
11-18-2006, 02:53 AM
it works for you?

Your using vB version 3.6.0
Would there be any problems here? -.-

lolo?
11-18-2006, 02:58 AM
yes works for me in3.6.3 :)

MissKalunji
11-18-2006, 04:16 AM
Your using vB version 3.6.0
Would there be any problems here? -.-

maybe thats why u guys running 3.6.3?

Shazz
11-18-2006, 04:45 AM
maybe thats why u guys running 3.6.3?

Isen't this supposlingly made for 3.6.2+?

itsid
11-18-2006, 09:10 AM
MissKalunji please edit the template sid_hide_noaccess
what looks like this:
<if condition="$vboptions[disable_ajax] != 2 AND $vboptions[sid_hide_ajax_on] == 1">
<script type="text/javascript">
window.clearInterval(hide_aktiv);
var hide_aktiv = window.setInterval("findposts(fetch_object('posts'),'$hide_call')", 3000);
</script>
</if>
<div id="horst_fieldset"><fieldset>
<legend><span class="highlight">$vbphrase[sid_hide_post_hide]</span></legend>
$hide_img
</fieldset></div>
into this (maybe that'll do better on IE)
<if condition="$vboptions[disable_ajax] != 2 AND $vboptions[sid_hide_ajax_on] == 1">
<script type="text/javascript">
if (hide_aktiv){
window.clearInterval(hide_aktiv);
}
var hide_aktiv = window.setInterval("findposts(fetch_object('posts'),'$hide_call')", 3000);
</script>
</if>
<div id="hide_fieldset"><fieldset>
<legend><span class="highlight">$vbphrase[sid_hide_post_hide]</span></legend>
$hide_img
</fieldset></div>
My IE just doesn't do anything if it doesn't find the object that was referred to, maybe you've another javascriptengine than me (SUN 1.4.something) :D

'sid

ps lol the fieldset has still the ajax-test-id ... just cosmetics, no issues

Dermo-MIO
11-18-2006, 01:12 PM
hey sid im still getting an error when i go to view a thread with your hack installed. i have uninstalled the previous version like you siad but it still gives me this error can you help me?

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='25450';

MySQL Error : Unknown table 'post' in where clause
Error Number : 1109
Date : Saturday, November 18th 2006 @ 04:12:12 PM
Script : http://murderinc-online.com/usforum/t25450-111806-111806-ja-rule-life-camp-press-conference-plus-more.html
Referrer : http://murderinc-online.com/usforum/f26-the-inc-news-and-rumours.html
IP Address : 89.100.9.238
Username : Dermo
Classname : vb_database

itsid
11-18-2006, 02:12 PM
Uh Dermio.. No I have no idea at this very moment.
this sql query seems to be from the -has posted- if condition that has to be in three plugins, but why you cannot access the post-table is a book of seven seals right now.
Maybe the database layout was changed too in 3.6.3 but I don't know.

I'm wondering about the vBulletinpost, is your tableprefix vBulletin? (no underline at the end??)

Well do me a favour and go to your (service or something) ->table repair option in acp (no need to repair anything, just take a look what the table is called actually) there you will find all names of tables in your database.
please let me know, maybe I'll find a solution for you then.

'sid

[EDIT]
So, I've asked a friend of mine to see what sql-scheme says, that's
$schema['CREATE']['query']['post'] = "
CREATE TABLE " . TABLE_PREFIX . "post (
postid INT UNSIGNED NOT NULL AUTO_INCREMENT,
.........
visible SMALLINT NOT NULL DEFAULT '0',
.........
FULLTEXT KEY title (title, pagetext)
) $enginetype=MyISAM
";

AS you can see you have to have the post-table AND the post.visible too
I still don't understand what causes this error, maybe just an error with your table-prefix,
please check table-prefix settings first :D
[EoE]

MissKalunji
11-18-2006, 05:51 PM
MissKalunji please edit the template sid_hide_noaccess
what looks like this:
<if condition="$vboptions[disable_ajax] != 2 AND $vboptions[sid_hide_ajax_on] == 1">
<script type="text/javascript">
window.clearInterval(hide_aktiv);
var hide_aktiv = window.setInterval("findposts(fetch_object('posts'),'$hide_call')", 3000);
</script>
</if>
<div id="horst_fieldset"><fieldset>
<legend><span class="highlight">$vbphrase[sid_hide_post_hide]</span></legend>
$hide_img
</fieldset></div>
into this (maybe that'll do better on IE)
<if condition="$vboptions[disable_ajax] != 2 AND $vboptions[sid_hide_ajax_on] == 1">
<script type="text/javascript">
if (hide_aktiv){
window.clearInterval(hide_aktiv);
}
var hide_aktiv = window.setInterval("findposts(fetch_object('posts'),'$hide_call')", 3000);
</script>
</if>
<div id="hide_fieldset"><fieldset>
<legend><span class="highlight">$vbphrase[sid_hide_post_hide]</span></legend>
$hide_img
</fieldset></div>
My IE just doesn't do anything if it doesn't find the object that was referred to, maybe you've another javascriptengine than me (SUN 1.4.something) :D

'sid

ps lol the fieldset has still the ajax-test-id ... just cosmetics, no issues

ok javascript error done
but i still have to refresh.... :-/

MissKalunji
11-18-2006, 05:52 PM
Isen't this supposlingly made for 3.6.2+?

doubt theres a big difference between the two really..!?!?

Shazz
11-18-2006, 05:56 PM
doubt theres a big difference between the two really..!?!?

Well ususally it dosen't matter if your using a higher vB version for a lower module
But if its the other way around im not quite sure -.-

MissKalunji
11-18-2006, 05:58 PM
oh i never seen any difference

it works for all of you? i've tried it in firefox and doesnt seem to work i'll have to check on IE

itsid
11-18-2006, 11:14 PM
I've checked the javascript multiple times misskalunji,
before releasing this version and after you said you've got errors to handle...
well, on my system tested (nowhere else) and i can't find any error not even any "nonworking" condition but to have an disabled ajax in the acp.
Well, please check as described:
activate ajax for your board in acp and activate ajax for this hack too
then find any hidden content that you CANNOT see by default (if you're an administrator or mod or hack is disabled in that forum or something)
to check wait for the page loaded completely (even better wait some seconds more ;))
then reply to the thread or click the thanks button.
(you will have to wait then for servers reply to that request, first hidden content is updated first then second (if visible) and so on.)
maybe this will take upto another five seconds (if you have large posts to be updated)
If you still don't see any hidden content without page reload, this javascript wont work with your javascript-engine installed (please let me know which one that is)
Or: you don't have javascripts enabled, but then you will have no ajax throughout the vbulletin page...

'sid

MissKalunji
11-18-2006, 11:33 PM
Is this supposed to work on Quick reply? or only on Post reply?

itsid
11-18-2006, 11:39 PM
quickreply; post-reply will need no ajax at all, because it reloads the entire page itself.

hopefully you have checked the (show hide on reply) radiobutton, otherwise you will see nothing for sure ;)

MissKalunji
11-19-2006, 12:07 AM
yeah i did :( it doesnt like me ah well! i'll live with it that way :) Thanks for ur help

itsid
11-19-2006, 12:36 AM
I'm sorry MissKalunji...
I have no idea why this wont do on vb3.6.0
maybe just the fetch_object function is working in a different way or is called a different name, I cannot check that out :(

But to be sure not to have unnecessary and notworking requests send to your forum, please be sure to deactivate AJAX in this hacks settings dialog,
just to erase that javascriptstuff from being loaded into users browsers.
(first ask some other user to test for you on a different system, maybe it's just because of your js engine (still an option))

'sid

Shazz
11-19-2006, 12:38 AM
yeah i did :( it doesnt like me ah well! i'll live with it that way :) Thanks for ur help

Or....
Another option to upgrade :)

MissKalunji
11-19-2006, 12:53 AM
I'm sorry MissKalunji...
I have no idea why this wont do on vb3.6.0
maybe just the fetch_object function is working in a different way or is called a different name, I cannot check that out :(

But to be sure not to have unnecessary and notworking requests send to your forum, please be sure to deactivate AJAX in this hacks settings dialog,
just to erase that javascriptstuff from being loaded into users browsers.
(first ask some other user to test for you on a different system, maybe it's just because of your js engine (still an option))

'sid

Or....
Another option to upgrade :)


I'll see maybe :P thanks for all ur help keep u updated

Genjuro-Sensei
11-19-2006, 10:39 AM
Hello,

When installing this hack in vB 3.6.3 a got this error (even by deactivating AJAX or not) when clicking to view a thread:
Database error in vBulletin 3.6.3:

Invalid SQL:
SELECT COUNT(postid) AS count FROM vb_post WHERE userid='2' AND post.visible = 1 AND threadid='837';

MySQL Error : Unknown column 'post.visible' in 'where clause'
Error Number : 1054
Date : Sunday, November 19th 2006 @ 01:36:56 PM
Script : http://xxxxxxxxx/showthread.php?t=837
Referrer : http://xxxxxxxxx/forumdisplay.php?f=27
IP Address : xxxxxxxxxxxxx
Username : Genjuro-Sensei
Classname : vb_database

Any suggestions ?
Thx a lot !!

itsid
11-19-2006, 02:34 PM
well, in the unaltered database of vb 3.6.3 there has to be the column post.visible , that's the item that handles softdeleted posts (userdeleted but visible to mods and admins)
I cannot say where the problem comes from, maybe another hack that removes or alters this column (nerver heard of such, but that doesn't mean anything)

Dermio had/has almost the same problem a page ago, so I verified the existance of this table and column.
Same friend of mine (who gave me the sql-layout) installed this hack in his very clean 3.6.3 testboard and it worked without any errors.
Again, I have to say sorry, but I have no idea what's causing your problems :(

hang on a sec, i'll try to im my friend to find some hint in vb3.6.3
[EDIT]
So.. that's fast isn't it ?
there are 59 hits, searching for "post.visible" within the original vb 3.6.3 files.
for example this one:

file (functions_forumdisplay.php)
$mythreads = $vbulletin->db->query_read_slave("
SELECT COUNT(*) AS count, threadid, MAX(dateline) AS lastpost
FROM " . TABLE_PREFIX . "post AS post
WHERE post.userid = " . $vbulletin->userinfo['userid'] . " AND
post.visible = 1 AND
post.threadid IN (0$ids)
GROUP BY threadid
");
So, I'm sure that's somewhere else to search the error but the missing column :D
maybe we run different versions of MySQL and/or php.

Just to try:
Open the xml file with an appropate Editor (notepad++ ultraedit or even a simple wordpad) something with numbered lines best.
Edit Line 173 : find post.visible replace with visible
same in line 272 and 341.
save and try again.

I can't promise that this will help, but I assume
do not edit the way mentioned if you do not have THIS ERROR

'sid

ga2000gt
11-19-2006, 05:25 PM
ga2000gt, You don't see hidden content in forumdisplay even if you thanked or replied? Is that what you're saying?
That's the way it works, because to simply hide the content is about 100lines less code, that's why hidden content is only available where it needs to be shown (showthread, showpost, printthread).
No preview is intended
same thing for newthread/newreply; you know what you're intending to hide whilst typing I guess, and because of the unfamous bunch of messie code wysiwyg produces once in a while it's easier to just not parse hide in any editor


no, when i hide the content i can't see the preview, and when i do not hide, i can't see the preview neither :S
so.. the problem is when the hack is enabled, i can't see the preview, but when i disable your hack, i can see it

Dermo-MIO
11-19-2006, 05:46 PM
well, in the unaltered database of vb 3.6.3 there has to be the column post.visible , that's the item that handles softdeleted posts (userdeleted but visible to mods and admins)
I cannot say where the problem comes from, maybe another hack that removes or alters this column (nerver heard of such, but that doesn't mean anything)

Dermio had/has almost the same problem a page ago, so I verified the existance of this table and column.
Same friend of mine (who gave me the sql-layout) installed this hack in his very clean 3.6.3 testboard and it worked without any errors.
Again, I have to say sorry, but I have no idea what's causing your problems :(

hang on a sec, i'll try to im my friend to find some hint in vb3.6.3
[EDIT]
So.. that's fast isn't it ?
there are 59 hits, searching for "post.visible" within the original vb 3.6.3 files.
for example this one:

file (functions_forumdisplay.php)
$mythreads = $vbulletin->db->query_read_slave("
SELECT COUNT(*) AS count, threadid, MAX(dateline) AS lastpost
FROM " . TABLE_PREFIX . "post AS post
WHERE post.userid = " . $vbulletin->userinfo['userid'] . " AND
post.visible = 1 AND
post.threadid IN (0$ids)
GROUP BY threadid
");
So, I'm sure that's somewhere else to search the error but the missing column :D
maybe we run different versions of MySQL and/or php.

Just to try:
Open the xml file with an appropate Editor (notepad++ ultraedit or even a simple wordpad) something with numbered lines best.
Edit Line 173 : find post.visible replace with visible
same in line 272 and 341.
save and try again.

I can't promise that this will help, but I assume
do not edit the way mentioned if you do not have THIS ERROR

'sid

thankyou sid i did those changes and it now works thankyou so much, you do not know how much hassle iv gone through to get a hide code that works. i will donate you money in the first week in december as i get paid monthly. im very greatfull to you. :cool:

Genjuro-Sensei
11-19-2006, 07:46 PM
well, in the unaltered database of vb 3.6.3 there has to be the column post.visible , that's the item that handles softdeleted posts (userdeleted but visible to mods and admins)
I cannot say where the problem comes from, maybe another hack that removes or alters this column (nerver heard of such, but that doesn't mean anything)

Dermio had/has almost the same problem a page ago, so I verified the existance of this table and column.
Same friend of mine (who gave me the sql-layout) installed this hack in his very clean 3.6.3 testboard and it worked without any errors.
Again, I have to say sorry, but I have no idea what's causing your problems :(

hang on a sec, i'll try to im my friend to find some hint in vb3.6.3
[EDIT]
So.. that's fast isn't it ?
there are 59 hits, searching for "post.visible" within the original vb 3.6.3 files.
for example this one:

file (functions_forumdisplay.php)
$mythreads = $vbulletin->db->query_read_slave("
SELECT COUNT(*) AS count, threadid, MAX(dateline) AS lastpost
FROM " . TABLE_PREFIX . "post AS post
WHERE post.userid = " . $vbulletin->userinfo['userid'] . " AND
post.visible = 1 AND
post.threadid IN (0$ids)
GROUP BY threadid
");
So, I'm sure that's somewhere else to search the error but the missing column :D
maybe we run different versions of MySQL and/or php.

Just to try:
Open the xml file with an appropate Editor (notepad++ ultraedit or even a simple wordpad) something with numbered lines best.
Edit Line 173 : find post.visible replace with visible
same in line 272 and 341.
save and try again.

I can't promise that this will help, but I assume
do not edit the way mentioned if you do not have THIS ERROR

'sid
Thank you very mutch, it solved the problem ^^
Thanks to you !! really !!

itsid
11-19-2006, 10:13 PM
Dermio-MIO, Genjuro-Sensei, you're welcome ;)
good to have you back in the "in working condition"-list :D

ga2000gt, I'm sorry what "preview" exactly are you talking about?
(what php is shown, what was you doing that moment, do you have any screenshot and/or errormessage?)

'sid

ga2000gt
11-19-2006, 10:36 PM
the thread preview, i'm using this hack (https://vborg.vbsupport.ru/showthread.php?t=99520&highlight=improved+thread+preview) and it doesn't work when the hide hack is enabled.

itsid
11-19-2006, 10:50 PM
Well, preview text is altered by one of my plugins to prevent users seeing the hidden content in forumdisplay.
But it's altered (only hidden content replaced by "This post contains hidden content") so there should be something in this box though.
what hack is this (link?) or: what hook does that hack uses, is it $thread['preview'] that is visible there, what execution-order do you have?

Maybe I will find a way to help you out

'sid

ga2000gt
11-20-2006, 12:54 AM
the name of the hack is 'Improved Thread Preview' (https://vborg.vbsupport.ru/showthread.php?t=99520&highlight=improved+thread+preview), yes, it's the link i put above.
is only one plugin, then there are a few templeta changes and two js files.
hook location is 'threadbit_process'
i don't know how to check the 'execution-order', if you tell, i'll do it =P
here is the plugin code, maybe it helps...


if ($ignore["$thread[postuserid]"])
{
$thread['preview'] = '';
}
else if (isset($thread['preview']) AND $vbulletin->options['threadpreview'] > 0)
{
$thread['preview'] = strip_quotes($thread['preview']);
$thread['preview'] = htmlspecialchars_uni(fetch_trimmed_title(strip_bbc ode($thread['preview'], false, true), $vbulletin->options['threadpreview']));
//tc
$thread['preview'] = preg_replace("/\n/\n","<br />",$thread['preview']);
$thread['preview'] = str_replace("\r\n","<br />",$thread['preview']);
$thread['preview'] = str_replace("\n","<br />",$thread['preview']);
$thread['preview'] = str_replace("\r","<br />",$thread['preview']);
$thread['preview'] = str_replace("--","- - ",$thread['preview']);
//tc
}

emmanuel132
11-20-2006, 04:36 AM
theres a problem when i install this and go to my site and make a new post and put this [hide] hack on it keeps saying database error and it wont let me post

itsid
11-20-2006, 11:07 AM
ga2000gt, go to plugin management in your acp, there find the plugin Andreas hint 3 click on edit and see the executionorder 126
go back and edit the plugin Improved Thread Preview 1.5 change it's executionorder to something higher than 126, or change the executionorder of "Andreas hint 3" to let's say 4 :D
If this still wont help, you can deactivate this plugin alone to see your threadpreview again, but keep in mind:
then you will have all hidden content in the preview.

emmanuel, some more information would be great,
what vbulletin version? what exact errormessage is showing?

'sid

ga2000gt
11-21-2006, 01:08 AM
i changed the executionorder of Improved Thread Preview 1.5 to 127, is working fine now =)
thnx a lot!! : D

yoyoyoyo
11-24-2006, 06:43 PM
will this work with 3.5.X?

edit: nope

Been Told
11-24-2006, 09:46 PM
Great hack, works perfectly! :D

Greek76
11-25-2006, 01:04 AM
I just noticed that when you rebuild the post cache system all the code dissapears off the forum so you have to edit and save. Only then it will reappear. Has anyone else experienced this problem?

akanevsky
11-25-2006, 01:23 AM
I just noticed that when you rebuild the post cache system all the code dissapears off the forum so you have to edit and save. Only then it will reappear. Has anyone else experienced this problem?

If this uses post cache, then what is visible to one user may not be necessarily hidden from another *even if it should*.

itsid
11-25-2006, 09:34 AM
Well psionic, you're right, but it doesn't use postcache ;)

You'll only find the hide-bbtags in postparsed ;)

Greek,
"all the code dissapears" is somewhat global, and if it's ALL the code (all b, img, i and whatevertags) why do you think this problem is due to this hack?
this hack doesn't use the postcache system, it has to be parsed every single pageload.

'sid

Greek76
11-25-2006, 04:42 PM
Well psionic, you're right, but it doesn't use postcache ;)

You'll only find the hide-bbtags in postparsed ;)

Greek,
"all the code dissapears" is somewhat global, and if it's ALL the code (all b, img, i and whatevertags) why do you think this problem is due to this hack?
this hack doesn't use the postcache system, it has to be parsed every single pageload.

'sid


Im pretty convinced that is the problem I did it once then I got pms that the code was gone. I went clicked edit the code was their but it was not showing until I clicked save. Just to be sure I went I did post cache again and saw the same thing happen. Did it a third time which was today and the same thing happen. So yes its affecting this hack... The easiest way to show you if you think Im lying is to come on my forum and Ill do the post cache while you are their. You can see the code before I do it and I after I do it....

bigM
11-25-2006, 07:27 PM
Thanks a lot! This is great hack!

itsid
11-25-2006, 09:53 PM
Greek slowly.. I never said, that you were lying (why should I)
I just don't understand your problem not even yet..

You'd clerared postcache and what code was gone then? only the parsing from the hide tag (what seems to be somewhat very unusual because it is not stored in postparsed table) or all the other html of all other tags and only hide tags are parsed or is none of the text parsed at all and all bbcodes are simply shown as such?
for example, you'd best take a screenshot (simply push the print-button on your keyboard and then paste to any imageeditor)

And I still don't understand why you think this relys on my hack and not on any other or any setting you've made in vb itself, or even a bug or something.
I've tried to reproduce your error and cleared my postcache, and as soon as i reload my page all bbcodes are perfectly show up in full html incl. the hide-hack. (reload.. not resave) :(
Do me a favour and fully uninstall (not only disable) my hide hack and clear postcache again to see what's happening, and if there is any difference then (well except unparsed hide-tags of course) let me know.
Otherwise please try the same with every installed hack, to see what hack is causing this error and ask the one who is responsible.
If you have uninstalled every hack and still have this error, please ask at vbulletin.com ;)

I'm sorry Greek, but I still don't believe that this error you have is due to my hack.

'sid

ps Jau bigM ich hab mir auch M?he gegeben, danke ;)
auf vbh.com gibt es den i.? auf deutsch ;)

iran.gs
11-26-2006, 12:43 AM
this no longer works after upgrade to 3.64

itsid
11-26-2006, 02:16 PM
I've just upgraded the testboard to 3.6.4 hack still works for me...
Any other experience with this on 3.6.4 ?

'sid

unitedpunjab
11-27-2006, 03:41 PM
i get this error
XML Error: not well-formed (invalid token) at Line 8

itsid
11-27-2006, 04:02 PM
Uups.
Sorry please replace line 8 with:
<versioncheckurl><![CDATA[https://vborg.vbsupport.ru/misc.php?do=checkversion&t=130887]]></versioncheckurl>

I will fix that in the archive within the next few minutes

thanks

'sid

[edit] Done

lolo?
11-27-2006, 04:11 PM
excellent works fine and many query very good job 'sid

unitedpunjab
11-27-2006, 04:28 PM
ok i installed the product,import the language,uploaded the images
but its not working.
with /HIDE],[hide] tags or w/o any tags.
what did i miss ?

itsid
11-27-2006, 05:26 PM
first check hide hack options in acp.
maybe it's just deactivated in your testforum (forumid 2 or 11)

and keep in mind, that you have to submit your test, preview is unavailable!

'sid

Dermo-MIO
11-28-2006, 04:33 PM
hey sid if i upgrade to your new version will i need to do the changes i did wit the last version do u think/know ?

itsid
11-28-2006, 04:56 PM
The post.visible issue?
Nope you don't need to change, this is already changed in this version.

'sid

Dermo-MIO
11-28-2006, 06:55 PM
thanks sid appreciate ur support

soulface
11-30-2006, 03:05 PM
hide_bbcode-images-english.xml file is missing the English folder...

itsid
11-30-2006, 04:35 PM
I'm sorry...
I shouldn't work at night, I think ;)

Well, I can't add it to the first post anymore (limited to ten files... have to update whole zip.. tomorrow)

So take it from here

'sid

SaN-DeeP
11-30-2006, 07:32 PM
Why does Database error appears everytime I revist a thread without replying or hitting thank you button ??

Morever, I am unable to view the thank you button where is it ?

itsid
11-30-2006, 09:44 PM
Well you've ENABLED the "thank you" option, that's why the hacks asks for a non existing table in the database.
(you're db error should ask for post_thanks table)
disable this option in ACP to get rid of this error.

Or even better: install the post_thanks hack (announced in first post, you should have read) that way you will also find the thank-you-button you've asked for ;)

'sid

SaN-DeeP
12-01-2006, 03:26 AM
Or even better: install the post_thanks hack (announced in first post, you should have read) that way you will also find the thank-you-button you've asked forah got it, I got confused with title of post, assumed this hack includes hide hack + thank you hack.

Thanks for clarifying, I will additionaly install Thank You addon :)

HS2005
12-02-2006, 11:12 AM
Finally someone who has put more energy into the hide hack,
Great Features yeah respect:)
But i have 2 questions.

1. How do you set the images instead of the text (maybe nood question)

2. Can you make one for 3.5.x? (able with the thank you hack from 3.5.x)
You coul also say: update then yeah but my forum has many mods that are customized by people it would take weeks to recover al that and i have to warn all those people again.
So if you could make on i would be very happy

And again, Nicely Done;)

Terminatoronly
12-02-2006, 11:18 AM
hi thanks for ur hack but i have a problem i have done all of the things in the read me file but the pictures still didnt appear when i hide the post why is this and please tell me how can i fix it?

TTG
12-02-2006, 05:41 PM
import via acp Phrase-Manager but NOT as a new language!
english/hide_bbcode-images-english.xml

This is not possible in 3.6.4 .. how can one get the images to show ?

Greek76
12-02-2006, 06:33 PM
Is it possible to make the text say ( You must post a reply in order to view hidden content)? I think my users get confused with the original text.

Adam21
12-03-2006, 01:03 AM
Error:Invalid file specified

winpro19
12-03-2006, 01:51 AM
First of all let me say GREAAT HACK KEEP IT UP!
But I'm confused. My images aren't showing up..I uploaded them in /images directory. They're not showing up..

Also, what do I use to hide stuff. ...[hide] or is there something like [hide-reply] or [hide-thankyou] as well?
Help asap!
Thanks

itsid
12-03-2006, 03:39 AM
Starting from the end again ;)...

winpro,
upload images AND import the xml from post #159 (I've somehow forgotten to put it in the zip, I'll update asap [what's monday i think])
Use [hide] nothing else will work, how to show up hidden content is adminchoice ONLY.

Adam21,
Error: Invalid Question asked ;)

Greek76,
sure it is, just go to your Phrasemanagement in ACP and edit the phrases to your needs ;)

TTG,
of course it is possible to upgrade existing language in 3.6.4 (just choose english from the dropdown) that's all (as shown on the pic-install-image)
And yes im sure i've got 3.6.4 myself ;)

Terminatoronly,
make sure you have uploaded the pictures to yourvbulletinforum.com/images/
and not in any subfolder well at least if your not having yoursite.com/yourforum/ then it sure has to be in yousite.com/yourforum/images ;)

HS2005,
1.use the language xml in post #159 to change phrases from Text to imagetag
(I'll update the main xml sometime containing images or phrases choosable from acp to avoid this issues ;) )

2.Sorry I don't think so, I don't have any 3.5.x vBulletin and I don't have no clue what's been changed ..
Maybe I'll find som hints in the forums, and if it's obvious enough I'll try, but really: without any testforum I don't think it'll be what it should :D

So, have a nice weekend you all

'sid

[EDIT]
uups, forgot somebody... hope you reload ;)

winpro19
12-03-2006, 04:41 AM
Hey
Wow that's a lot of typing itsid...thanks for all questions
But yea, when I try to upload the .xml (import product) from post 159 I get error "Invalid File Specified"
Any ideas?

itsid
12-03-2006, 06:14 AM
Well, because it is a language file and no product nor plugin.
So import that via Phrasemanager not productmanager ;)

'sid

TTG
12-03-2006, 11:20 AM
Anyone got the images to show in 3.6.4 ?
I'd be interested to know how you did it.

Great hack BTW itsid

Greek76
12-03-2006, 12:22 PM
I dont see the test in any of them. Which one should I be looking for to edit?

itsid
12-03-2006, 11:30 PM
Greek76,
open up phrasemanagement -> search for phrases and type: sid_hide (search for phrasename)
you will be shown 13 Phrases in GLOBAL phrases.
these are shown up your forum (all others are from the admin control panel )
edit the ones called sid_hide_img_xxx to edit the text (or images) shown up in showthread.php
or the ones named sid_hide_txt_xxx to edit the phrases shown up in printthread.php.

TTG,
exactly as in any 3.6.2 ;)
Upload the images (en_hide_xxx.gif) to forumroot/images/ (no subdirectory)
import the xml attached to post#159 via Phrasemanager to your language (do not create new language) and make sure you've checkmarked "ignore version"
and then, if hack is enabled and not disabled in the specific forum it'll show up the images :D

'sid

PS please everybody, if you use the hack, mark it as installed, thank you

TTG
12-04-2006, 12:00 AM
thanks itsid .. finally got it to work :)

Terminatoronly
12-04-2006, 07:07 AM
hi,
plz will you help me i want to add a button for the hide i mean a bbcode shown in the tools like this (bold) that when member press on it it will add text i want to add a tool for the hide button so please well u tell me how to do this???????????????

and for the images still didnt appear i dont know how to fix it please tell me how?????????!!!!!!!!!!!!

itsid
12-05-2006, 02:05 AM
Sure..
there's a button somewhere in this thread, I think in post #74
just rightclick and download it.
then put in in your images/editor folder and you can add it by simply editing the custom bbCode that you'll find in ACP.
(You'll see yourself if you're there ;))

About the images:
If you did what I told you to, you will have to see the images.
But let me make it easy:
Checklist
1) open ftp-client and browse your forum-root then open images-folder
check if there are the images en_hide_xxx.gif (there will have to be four of them)
--if not UPLOAD images from the english folder of the zip to this directory

2) open your admin control center and got to phrasemanger.
search for phrases containing sid_hide_img in the phrasename
(also there will have to be four of them)
check if you have an html imagetag in the phrase-content <img src="images/en_hide_xxx.gif ...
--if not IMPORT the xml you'll find in post#159 via importphrases as mentioned above

Now reload any thread containing a hide-tagged post (it must be hidden to you, or you'll never see any image for sure)
If it is not hidden:
edit settings of hide tag in acp -> vb-options
deactivate : show to mods, show to admins, show to usergroup, show thanked, show posted
go and check thread again.
revert hide - settings again

'sid

Terminatoronly
12-05-2006, 03:19 PM
ok thanks now the images working :) and everything is working thanks alot :) :D

Terminatoronly
12-06-2006, 03:37 PM
hi again i want to tell you a thing that i have noticed in the hack when i go to vBulletin Options--->Posts: vB Code [hide]--->Ajax funktion---->when i set it as yes after that i have tried this feature by using an test account on my site as a member not as admin to see what this do it gives me database error

and when i disable it, it doesnt shown any error so there is an bug on this feature.

and i want to ask you 1 thing i want when members reply the hidden content to be shown without refreshing the page plz help me with this i want it much because members getting confused not all of them know that they must refresh the page.

stinger2
12-07-2006, 10:04 PM
Sure..
there's a button somewhere in this thread, I think in post #74
just rightclick and download it.
then put in in your images/editor folder and you can add it by simply editing the custom bbCode that you'll find in ACP.
(You'll see yourself if you're there ;))

'sid

the simple install of this hack is just great......could not say no more...just a suggestion since most of us are not so professional with codes

if the button is built in the hack itself...and you can chose image or phrase from the option it will make the hack a real hit success......can you consider that?

itsid
12-08-2006, 09:46 AM
Hi, as you can see, I had much more work than I thought I would..
sorry for letting you wait.

Terminatoronly,
I have no idea why this could happen.
the ajax function uses exactly the same querys the initial showthread-call does.
So if you have a db error it has to be there from the beginning and not in the middle of somewhere
Please check that with deactivated hide-hack options show to admin, show to mod, show to usergroup and
then twice one with option set to hide on reply (only) and again with hide on thank (only) and then let me know which of this two variants will cause the error.
(are you sure you have the thank-you-hack installed?)

stinger2,
well yeah, including the second phraseset to choose wether to show up the images or the text is what I thought of too.
You'll find that in the upcoming version
But you'll not find the implemented editorbutton ;)

That way you can install the hack without uploading anything via ftp,
with an editorbutton set as default it's not, because you'll see that ugly missing image thingy if you didn't upload the button itself.
I don't like that thought :D

'sid

idnpros
12-08-2006, 05:51 PM
I am having a problem
When using the hide tags i get all "hidden" content with this messege "No code has to be inserted here"

What should i do? even replaying i cant see the hidden content

itsid
12-09-2006, 04:30 AM
what version do you use?
upgrade to 3.5 will sure help
(uninstall previous version)

'sid

Terminatoronly
12-09-2006, 07:03 AM
Terminatoronly,
(are you sure you have the thank-you-hack installed?)


no i dont have the thank you hack because i dont want it

Terminatoronly
12-09-2006, 07:06 AM
Ok Thanks Now Its Working :)

RFViet
12-09-2006, 10:24 PM
disable Ajax then my shoutbox won't work !!

itsid
12-09-2006, 10:56 PM
what does the ajax script of my hack has to do with your shoutbox??

You can disable ajax for this hack ONLY.. so I don't understand what you wanted to say

'sid

bigM
12-10-2006, 07:21 PM
First I have to say that's nice work and a great hack, thanks! :)

I'm using this hack with my vB 3.6.4 for maybe 1 or 2 weeks and had no problems with it, but since this morning, nobody is able to see the correct hidden content. You can only see "{param}" as hidden content. I have to edit the thread / post and save it again, to see the correct content.

What could be the problem?

I'm sorry for my English -.-

bigM

itsid
12-10-2006, 09:53 PM
hi M,
schau mal unter "Eigene vB Codes" ob Du beim Eintrag Titel hide
unter "Einzuf?gender Code" genau das :"some text" stehen siehst auf der ?bersichtsseite.
Und sag mir mal was Du heute morgen ge?ndert hast am forum (oder server oder einem anderen hack oder oder)

'sid

ps sorry for the german post, but this way it's easier for me and BigM,
if necessary I'll answer the same question twice ;)

RFViet
12-11-2006, 12:00 AM
what does the ajax script of my hack has to do with your shoutbox??

You can disable ajax for this hack ONLY.. so I don't understand what you wanted to say

'sid

How to disable ajax for this hack only ?? -> never mind I found it
Where can I upload image ??

RFViet
12-11-2006, 02:26 AM
I disable ajax for this hack, but still refresh after press thanks !! any idea how to fix ?? (I'm using vB3.6.4)

itsid
12-11-2006, 02:09 PM
And you've refreshed the showthread manually once, to unload the javascript?
then I have absolutely no idea what refreshes the page...
maybe another hack (shoutbox itself maybe) that's reloading ALL the page content?

'sid

RFViet
12-11-2006, 04:37 PM
And you've refreshed the showthread manually once, to unload the javascript?
then I have absolutely no idea what refreshes the page...
maybe another hack (shoutbox itself maybe) that's reloading ALL the page content?

'sid

If I don't refresh the page manually, then I won't see hidden contents after pressing Thanks button.

Devil Woman
12-11-2006, 08:22 PM
I am having a problem, I added this in a few weeks ago and all was working fine, I have now gone to add a hidden part of a thread and when I do I get this n the hidden part

{param}

this also happens when a reply is posted to see the hidden content.

Any help is appreciated

Thanks.

stinger2
12-11-2006, 09:27 PM
But you'll not find the implemented editorbutton ;)

That way you can install the hack without uploading anything via ftp,
with an editorbutton set as default it's not, because you'll see that ugly missing image thingy if you didn't upload the button itself.
I don't like that thought :D

'sid


you can add enable / disable button.........and i will make the button for you:banana:

itsid
12-11-2006, 10:37 PM
stinger2,
feel free to make any button yu like.
I'm still unsure, cause I don't like editorbuttons at all :D
But maybe I will change the installcode to add the button (chooseable option if possible) if you all want to have the editorbutton.
But keep in mind: it's christmastime and all is terror (or something ;))
So I don't think it'll be added this year ...

Devil Woman,
in fact I don't have no clue at this moment :(
As I told bigM in german, please check that you have showing up "some text" in your "own vB Codes" overview listed as replacement code.
If, it has to work (or it's been overruled by an other hack).
Or: your php or sql was updated or something...
as I said, I have no idea until I'll find a way to reproduce this error in my testboard; sorry.
Let me know about all changes you made just before the error occured, to give me some hint, please.

RFViet,
I don't get it, sorry...
So you disabled this hacks ajax functionality, okay.
After that you have to refresh the page with the hidden content ONCE to unload the ajax-javascript so that it is disabled.
Now posts will not be refreshed by the hack itself.
you can check the page's sourcecode for this line:
unhide.onreadystatechange = ausgeben;
if you find it, javascript is still enabled (and hack still tries to reload the page content) if not, the hacks ajax is fully disabled.
Now, your page is still refreshed after clicking the thanks button?
Yes, that's because of the javascript of the post_thank_you hack. But it only should refresh the content of the Post-thanks-bit (right after the thanked postbit) and nothing else.
If you have problems with the post_thanks hack (i can't think of that but maybe you know better) go and ask Abe1 in the thread you find linked in firstpost.
And yes, if you disable the hide-hacks ajax you'll have to refresh the page manually to see hidden content, what else? No Ajax no automatic refresh...
with ajax you don't need to refresh manually because the hack will do so.
I'm sorry, I don't understand your question/problem...

'sid

stinger2
12-12-2006, 09:44 AM
stinger2,
feel free to make any button yu like.
I'm still unsure, cause I don't like editorbuttons at all :D
But maybe I will change the installcode to add the button (chooseable option if possible) if you all want to have the editorbutton.
But keep in mind: it's christmastime and all is terror (or something ;))
So I don't think it'll be added this year ...
[/I]


you are an angel:cool: ...thank you

itsid
12-12-2006, 02:00 PM
because of the requests I got,
I've made an vB354 xml of this hack.

But it's not tested, didn't had the time
All codes are identical, so it should work...
if you want, give it a try ;)
(I'm not responsible for anything :D)

images and stuff are to be taken from the original zip this is text-xml only!

'sid

RFViet
12-12-2006, 06:20 PM
RFViet,
I don't get it, sorry...
So you disabled this hacks ajax functionality, okay.
After that you have to refresh the page with the hidden content ONCE to unload the ajax-javascript so that it is disabled.
Now posts will not be refreshed by the hack itself.
you can check the page's sourcecode for this line:
unhide.onreadystatechange = ausgeben;
if you find it, javascript is still enabled (and hack still tries to reload the page content) if not, the hacks ajax is fully disabled.
Now, your page is still refreshed after clicking the thanks button?
Yes, that's because of the javascript of the post_thank_you hack. But it only should refresh the content of the Post-thanks-bit (right after the thanked postbit) and nothing else.
If you have problems with the post_thanks hack (i can't think of that but maybe you know better) go and ask Abe1 in the thread you find linked in firstpost.
And yes, if you disable the hide-hacks ajax you'll have to refresh the page manually to see hidden content, what else? No Ajax no automatic refresh...
with ajax you don't need to refresh manually because the hack will do so.
I'm sorry, I don't understand your question/problem...

'sid

Well, I'm confused, you asked to disable ajax for this hack from the instruction to work with thanks button -> In fact, it didn't work on my forum
Enable ajax for this hack -> it works for my forum , I don't know the reason you asked to disable ajax for this hack ??
Anyway , it works perfectly for my forum (vB 3.6.4) -> great hack !!!
The only thing I couldn't make was the image, since I don't see how to import the language as you are . But It's still ok to me
Thanks !!

wi11ie1950
12-12-2006, 08:28 PM
I installed the Hack as per instructions and now i have..

Invalid SQL:
INSERT INTO bbcode(bbcodeid, bbcodetag, bbcodereplacement, bbcodeexample, bbcodeexplanation, twoparams, title, buttonimage) VALUES (NULL, 'hide', '{param}', 'some text', 'With this tag you can hide some text and force members to answer or click the thank you button to see what you\'ve posted.', 0, 'hide', '');;

Anyway to remove it as it doesnt appear in Plugins @ Products or in BBcode in Options. If i try to access any of my forums i get a Database Error.

itsid
12-12-2006, 10:27 PM
RFViet,
i was confused by your first post I can remember (or find)
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:
<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:
<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:
<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:
<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?

itsid
12-15-2006, 03:12 PM
Hi Adam,
"No code has to be inserted here" would be the text that may appear...
But that only if you're running any old version of the hack :D
either change that sentence to {param} (including the tags) in your custom vB Codes settings,
or update to hack v0.3.5* (uninstall previous version first)

'sid

*recommended because of the improvements (less sql queries)

Adam21
12-15-2006, 05:18 PM
Hi Adam,
"No code has to be inserted here" would be the text that may appear...
But that only if you're running any old version of the hack :D
either change that sentence to {param} (including the tags) in your custom vB Codes settings,
or update to hack v0.3.5* (uninstall previous version first)

'sid

*recommended because of the improvements (less sql queries)

Thank you for the fast reply.Works fine now.:)

stinger2
12-16-2006, 01:36 PM
@itsid

it looks great.......just installed it on a test board......thank you for adding the button

just one question
when i click on the hide button i am getting a pop up script saying
Please enter the option for your [HIDE] tag

is this normal ....? and what option should i put there?
and what should i do to remove it.......i only need the hide tag without options?

hint
could not do it with the instructions in the zip file..........your post NO 201 on page 14 was the best guide for it
i would suggest adding your post 201to the instruction ....it made it very easy

stinger2
12-18-2006, 10:25 PM
@itsid
sorry to write again.........but is this pop up appearing to me normal ? or is it a leftover from another hack........it is driving me .......!

itsid
12-18-2006, 11:18 PM
Never seen that before.

Maybe from another Hack...
or a messed up "Custom vB Codes" option
I don't know.

I'll try to find out

'sid

[EDIT]
first make sure, that you have the correct vb Codes settings

Title : hide
Tag : hide
Replacement code : {param}
Example : Some Text
use{option} : NO
Buttonimage : /images/editor/ed-hide.gif (if you want to have the button I made and if it's in the editorbuttonfolder ;))

Maybe settings were replaced by another hide-hack you tried to install (or something)

stinger2
12-19-2006, 10:10 AM
you are absolutly right .my mistake:confused: ..i had the following set to yes


use{option} : YES

i made it NO and every thing is ok.....thanks a lot for your support....i really hope you add this text also to the installation note...plus your explanation in post 201.together ...your hack will be very easy to install:cool:


EDIT
can you please check it out what happens with you if you change the options to yes.........because if that is from another hack....i must remove the bbcode......heheh.and i dont know how to remove it and where to look for ..
thanks again

itsid
12-19-2006, 12:06 PM
well, if set to yes you will surely get the popup (if javascript isn't disabled)

But the hack itself sets the options correctly, so there's no need to say that you have to alter the settings.

I don't know what changed yours, but I think it was you, otherwise you'd have found other entries changed, too.
No worries, that happens (one nightshift to much and all concentration is gone ;))

'sid

stinger2
12-19-2006, 02:41 PM
I don't know what changed yours, but I think it was you,
ofcourse it was me....lol;)

No worries, that happens (one nightshift to much and all concentration is gone ;))

'sid

you are absolutly right.....AGAIN:)

thanks sid....

stinger2
12-20-2006, 09:33 PM
sorry to bother you again

the hack worked great at the begining.but later i found the same error as marotichat

when i go to another post and come back ..i find the contents hidden again...and there is no thanks button because it is already thanked.....

i have pm.ed you with a username and a password...plus a link to a thread where you can see that that user had thanked the post ..yet..the content are still hidden

Hornstar
12-21-2006, 05:49 AM
Great to see you updating this as well, nice work.

itsid
12-21-2006, 08:26 AM
Hi,
thanks stinger, that's truely strange
hack itself works the way it should
(if you see the printthread insteadof showthread) it just shows up as it should
(all hack functions are identical)
So, it has to be some other hack that's interfering.

please try the following:
go to plugin manager and
let me know which installed hacks use this hook:
postbit_display_complete

then edit this plugin of my hack
fetch hide tag
(same hook as mentioned above)
and change the executionOrder.
first, to 6 and if that doesn't help to something higher then the highest executionorder you can find in pluginmanager
(sorry you have to click on edit to see executionOrdner)

let me know
'sid

Bison
12-21-2006, 10:14 AM
I wonder why psnonic vision hasen't posted yet in this thread..

No Comment...

stinger2
12-21-2006, 06:44 PM
hi sid..thanks for the reply and sorry for being late...i was a way the whole day
the hacks using this hook were

hide hack ajax request
fetch hide tag
Thank You Hank
User Name Glow From postbit_display_complete
these were the hacks using this hook

i disabled the glowing user hack

plus ...changed the excution order to 6


same thing.....nothing changed.......

the funny thing ....all my other hacks have the excution order (5)

i mean all of them.....

only your hack had excution order (126)....why ,...i dont know...but i made all of them with excutionorder 6

i also disabled ALL the hacks EXCEPT the thankyou + the hide

same thing happens..........now it became really a puzzel to me

but any way ..nothing changed............hope you can find the solution soon

stinger2
12-21-2006, 07:34 PM
He's probably re-thinking his financial strategy! :D
please do not change this thread to a discussion about another coder.....psionic is one of the finest coders i have seen...and a fine gentleman
his hide hack is more than perfect...the only downside (for me at least) is it needs too much file edites.....which makes it difficult to maintain when combined with all the other hacks during VB upgrades.....

itsid
12-21-2006, 11:54 PM
hi stinger2,
I use alle the hacks you've listed except the username glow thingy
I'll have to triplecheck all codes.

Due to the X-mas issue these days, I will be late with an appropriate answer ;)

Thanks for your remark!
As I said earlier in this thread:
Please do not disrespect any other person in this thread,
no coders, no users simply no one!
I'd love to have this a support-thread only, maybe the one or other offtopic word, but no hatred, no disrespecting, no bad words;
it's Christmastime and all ist (terror, I know... but it should be) love!

'sid


PS just a thought: disable postcaching, maybe this will help (didn't try)
pps: see you soon, have some beautiful days you all

stinger2
12-22-2006, 09:29 PM
disabled post cache.....did not help

hey.....dont worry about it.....have a merry christmas...and enjoy your time .....we can solve this after the holidays.....;)

cya later

itsid
12-26-2006, 01:19 AM
So...
finally back in working condition (almost)

stinger2,
I'm sorry, uninstalled all my hack, and installed all the latest versions of the ones you mentioned "above"... No Way to reproduce your boards behaviour!
I checked all imaginable settings in all different hacks, cached as much as I could, but I could not find any setting, that would lead to this error.
You're not the only one out there, so it has to be a bug somewhere,
I've seen it with my own eyes (browsers), but I simply cannot find or reproduce where it stuck.

The only thing that would make a sense would be a missing userid
so that my last triggerif(!$bbuserinfo[userid]){
$hide_read = false;
}
would refuse to showup hidden content.
You could give that a try by replacing that (in plugin: "choose wether or not to show in printable version") with
if(!$bbuserinfo[userid]){
$post['message'] =$post['message'].'..:H:..';
//$hide_read = false;
}

And if you find ..:H:.. at the very end of a post containing hidden content in printthread.php let me know.

cheers
'sid

stinger2
12-26-2006, 11:03 PM
thanks sid.....how was christmas....i hope you enjoyed it
we did not have any snow this year........rare....but anyway

back to bussines
i made the change in the plugin..in 3 places where this was found..imported it again overwriting the old one.....but nothing changed

i also do not see any ..:H:..at the end of a post containing hidden content in printthread.php

oh and i am workring on a test board(identical to the actual) with all plugins disabled except thankyou and hide

itsid
12-27-2006, 07:01 AM
well, exhausting in fact ;) six ceremonys in three days, but had some fun ;)
And yess.. no snow at all, welcome to global warming *gg*

What to say about that, but F***??
One thing I discovered looking at your forum is that the hide tag isn't parsed correctly (see attached image: mine vs yours)
to fix that go to acp "custom vB Codes" and edit {param} to <i>{param}</i> click save, edit back and save again.
Now it should look like mine again ;)
Don't know what scrambled up that one
And, I can see all hidden content at your board without any thanks or reply; is that because of the same error, or is it just an emergency "let's show it all as long as it hides too often"?

Let me know what php and mySql Version you're running, just to start from scratch again.

'sid

stinger2
12-27-2006, 02:25 PM
thanks again sid

Automatically parse links in text is disabled in my board.......i removed it a long time ago...maybe that was the reason??

i made a small detour to the hack....some fine adjustments to bypass the problem temporary

i enabled see the hidden content for all user member groups...except the newly registered......when they reach certain postcount..they dont have to thank to see the hidden content

this way only new members have to click the thankyou..

check it now...i changed the user i gave you to newly registered........

ok now back to the hack

i added the code ...and tested it..same thing...and i removed it...also same thing.....

should I bring.the Automatically parse links in text back and check it out.....??:confused:
EDIT

i disabled this plugin the Automatically parse links in text also but nothing changed......still the same...hmmmm

HS2005
12-27-2006, 03:32 PM
Again thanks for the 3.5.4 version ;)
The images are working 2 now just added some phrases :)
And now i was wondering how you get rid of the fieldset i was seaching and found this:


<div id="hide_fieldset"><fieldset>
<legend><span class="highlight">$vbphrase[sid_hide_post_hide]</span></legend>
$hide_img
</fieldset></div>

Removed it and it did not work hmmz. Do you have a solution for this? thank you it_sid ;)

stinger2
12-27-2006, 07:06 PM
just an update

i installed a clean board in my laptop..and your hack works more than perfect.........

i imported board setting from that new board to the clone board......and nothing happened...same bug....on refresh...everything is closed again

that means it is something related to the settings.......

plus i dont think it is related to any other hack...since all other hacks and plugins are disabled......

to tell you the truth......i dont have a clue.........

itsid
12-27-2006, 10:35 PM
HS2005,
replace the code above with

<div id="hide_fieldset"><span class="highlight">$vbphrase[sid_hide_post_hide] :</span>
$hide_img
<hr /></div>
if you like to,
but having a fieldset or anything that keeps you (as an mod or admin) keep track on what's hidden and what's not to a user is somewhat important (at least it is most of the times ;))
But that only removes the fieldset for hidden images, parsed tags-fieldset is hardcoded to the plugins ;)

stinger2,
wonderful.. a settings-issue (great to know where to look at)
could you export your settings, please?
(delete all security related stuff from the xml right afterwards)
that way I can find the differences to see what setting may be the ugly one :D

'sid

aveon
12-27-2006, 10:54 PM
i have a problem with this hide hack mod my proglem is that i cant get this work on all the threads when i use [hide] code on some threads it works fine but on some of other threads it just hides the message between the [hide] codes i dunno weather i have problem at installing or is it from my version of vb if anyone can help me to put up with this problem ill apparieate it thnx...

itsid
12-28-2006, 12:31 PM
aveon,
it always just hides whats inside the [hide]-tags (see images attached to first post)
that's what the hack is made for. :D

'sid

HS2005
12-28-2006, 01:44 PM
Thanks but maybe i need the hard codes stuff then:P

i added the picture in the attchments :)

itsid
12-28-2006, 04:56 PM
HS2005,
sorry, but I don't think that you should use copyrighted images in my hack :(
You've changed a phrase that you simply shouldn't have changed to an image.

'sid

stinger2
12-28-2006, 05:51 PM
sorry sid......i wanted to say..it is NOT a setting issue...since i imported a clean setting from a clean install...

i will send you my setting.via PM.....and oh BTW...i dont think there is any security issue in the setting......also no info except the contact email

i will check the xml file and send it to you

maybe you get a new idea......

since they are not the setting..nor other hacks...nor other plugins...( by exclusion method)

the only thing i have in mind right now is the templates........maybe one of the template changes is doing that.....however i dont knoe how would it do it....

aveon
12-28-2006, 05:57 PM
aveon,
it always just hides whats inside the [hide]-tags (see images attached to first post)
that's what the hack is made for. :D

'sid

no bro what i ment is that it hides the message u dont see any sign or anythig that says replay to see the links or whatever

aveon
12-28-2006, 06:20 PM
i unintstalled it and when i tried to install it again i get this error


Datenbankfehler in vBulletin 3.6.4:

Invalid SQL:
INSERT INTO bbcode(bbcodeid, bbcodetag, bbcodereplacement, bbcodeexample, bbcodeexplanation, twoparams, title, buttonimage) VALUES (NULL, 'hide', '{param}', 'some text', 'With this tag you can hide some text and force members to answer or click the thank you button to see what you\'ve posted.', 0, 'hide', '');;

MySQL-Fehler : Duplicate entry 'hide-0' for key 2
Fehler-Nr. : 1062
Datum : Thursday, December 28th 2006 @ 09:14:28 PM
Skript : http://www.e-paylas.de/forum/admincp/plugin.php?do=productimport
Referrer : http://www.e-paylas.de/forum/admincp/plugin.php?do=productadd
IP-Adresse : 67.70.150.163
Benutzername : amerikali
Klassenname : vb_database

itsid
12-28-2006, 09:13 PM
tjo, ich w?rd mal meinen: vbhacks-germany, da gibt's den hack und den support auf deutsch ;)
Egal, weiter im Text

Check "vbulletin Optionen"-> "Post: [hide]-hack" and see if you disabled the hack in the forums that didn't show up as what you consider correctly ;)

database errors only occur if you have not uninstalled the hack correctly or installed another [hide]hack.
Open up "Eigene vB Codes" and delete the hide-tag entry (completely)
then uninstall my hide hack and install it again, make sure to click the "?berschreiben" Radiobutton :D

(da die Frage nochmal auftaucht hab ich das mal direkt in englisch gehalten, wenn Du magst nochmal auf deutsch per PN oder eben bei vbh-germany)

'sid

PS und klick mal den install-knopp bitte ;)

itsid
12-28-2006, 11:02 PM
Sorry for doubleposting, don't want to mess things up

stinger2,
the hack does well in printthread.php on your forums,
did you edit anything hardcoded in showthread.php?
I can't imagine any templatecode messing the php code up ;)
Please make sure, that you have the original vB showthread.php uploaded (in ascii mode) also, php v4 is required
if both give that codechange a try:
hook: fetch hide tag
global $vbulletin, $vboptions, $bbuserinfo, $db, $threadid, $hide_call, $postid;
replace by
global $vbulletin, $vboptions, $bbuserinfo, $db, $threadid, $hide_call, $postid, $thank;
the $thank array should be useable without the globaliser ($thank comes from the post_thanks hack in postbit_display_start),
but maybe something's interferrring ....

'sid (clueless)

tankaya61
12-29-2006, 07:36 AM
thank you

Binoy
12-29-2006, 11:25 AM
Installed and it working fine

I just wanted to add the images too--

import via acp Phrase-Manager but NOT as a new language!
english/hide_bbcode-images-english.xml
& upload all en_hide_XXX.gif to /images folder of your forum
(see pic-install-en.jpg)

where can i find this Phrase-Manager

could u please help me out

Binoy
12-29-2006, 02:30 PM
okay forget it.. i found it

sorry

stinger2
12-29-2006, 02:45 PM
hi sid
there is no hardcoding in showthread.php.......just to be sure..i just compared it using ultracompare with an original showthread.php......they are identical

my forum uses php version 4.4.4

i made the suggested codechange in hook: fetch hide tag.......still no success

i also find it funny...why it is working in the printable version..and not working in the normal?


about the template change........i also said i dont know how would that affect the php code....but that was a sarcastic joke..:cool: ...since all hacks extraplugins disabled....and all files in forum root are original since the last upgrade i did to 3.6.4........there is NO hardcode anymore....i want the board to be easily maintained.....only with plugins and template edit's the easier ..the better

thanks again bro

tekstylez
12-29-2006, 03:41 PM
I have the original post thank you hack installed. I have just tried to install your hide hack with no success. DO I have to uninstall the original version first? If I do, will I loose all my current thanks stats?

Where in admincp do I adjust the settings?

HS2005
12-29-2006, 03:52 PM
HS2005,
sorry, but I don't think that you should use copyrighted images in my hack :(
You've changed a phrase that you simply shouldn't have changed to an image.

'sid

uh??? okeey i removed the image :) and set my own then not a copywright.

Only the phrase editting i don't understand it was an only option to show an image i have no clue otherwise.
but do i have to edit something to not set the white fieldset?

itsid
12-29-2006, 09:26 PM
Okay, right from the end again:

HS2005,
Well to use images, you may only edit the phrases marked to contain an image (sid_hide_img_xxx) nothing else!
If you are sure to fully remove all fieldsets,
find strings like this:
<fieldset><legend><span class="highlight">'.$vbphrase[sid_hide_post_show].'</span></legend>\\1</fieldset>'
and only keep the \\1 or replace by anything you like (two occurances),
but be sure on one thing: I will not give support if you fail, or mess up something, you have to know what you're doing.

tekstylez,
you have to keep your post_thanks hack, this hack does NOT contain any copy of Abe1s Hack.
In admincp you'll find a new entry: "Posts: vB Code [hide]" in the vBulletin Options scroll-list that's where you setup the [hide]-hack :D
post_thanks-hack has it's own entry ;)

stinger,
well the code for printthread is slightly different (because there is no post_thanks in printthread) so that codes uses an extra query instead of the array delivered by post_thanks_hack.
That's why I thought it has to be the $thank array....
All other lines are logically identical.

Binoy, perfect ;)
would you mind and click the INSTALLED Button in first-post to get me some very small extra-feedback ;)
(and keep yourself informed about upcoming updates ;))

tankaya,
you're welcome, but please mark hack as installed, too.

'sid

stinger2
12-29-2006, 10:36 PM
just an update

in the clone board in my laptop.....i uninstalled each and every hack and all extra plugins...........then installed the thankyou+hide.....same problem exists...it seems the board dos not remember a post that has been thanked

rgds