PDA

View Full Version : Show Thread Enhancements - MARCO1 BBCODE Hide Tags [ hide] [/ hide]


Pages : [1] 2

MARCO1
02-08-2010, 10:00 PM
MARCO1 BBCODE Hide Tags
vB4.x.x
By
Marco Mamdouh

Please Note that : I'm keeping update my products and codes without any money simply support me in vb.org to continue this work

Support Me!
Mark As Installed (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=235384) - Nominate For MOTM (https://vborg.vbsupport.ru/vborg_miscactions.php?do=nominate&threadid=235384&type=1)
What's this ?
This Mod Hide X Area in the threads By Using HIDE BBCODE Tags With Powerful control via AdminCp with very nice button in your editor to automatically enter Hide tags when you click on it, More info and pictures in Attachments.

Features :
Compatible with All vBulletin 4 Versions.
No conflict with any other Mods to hide links.
Full Control via vBulletin Admincp.
Auto Template And Core Functions Edit.
Can Control the Hide message from Admincp.
Admin Can see hidden content without reply.
Moderators Can see hidden content without reply.
Super Moderators Can see hidden content without reply.
Thread Author Can see hidden content without reply.
Usergroups permissions : If you have any additional usergroup like VIP To See hidden content without reply.
Excluding X Forum To BBCODE Hide : You can disable the Mod in any sub-forum via Admincp.
Full Optimized to make your forum very fast when you using it
0 Query Which Make the forum fast because there is no DB Query In This Mod Coding.Installation :
Upload images folder in your forum root directory.
Import the .xml file from your AdminCp.

Require 1 Template edit :
In editor_toolbar_on template find :
<vb:if condition="!$show['basicbbcodeonly']">Add Above :
<img src="images/buttons/hide.gif" class="imagebutton" id="{vb:raw editorid}_cmd_wrap0_hide" width="20" height="20" alt="Insert Hide Tags" />
Screenshots & Download :
In Attachments.

If you want more Hide Images ?
TimberFloorAu (https://vborg.vbsupport.ru/member.php?u=252664) Has Made very very very Good images in this post : https://vborg.vbsupport.ru/showpost.php?p=1978906&postcount=49
PSD Images : https://vborg.vbsupport.ru/showpost.php?p=1978951&postcount=52
Many thanks to him for his time.


Translations :
You can translate this Mod and publish it in your forum however you can't do that without take permissions from Me via PM's
This Mod Is Also Available in Arabic Thanks to DR.Osama : https://vborg.vbsupport.ru/showpost.php?p=1978736&postcount=42
English Version in Attachments.

BUGS :
Warning: Cannot use a scalar value as an array in [path]\includes\class_postbit.php(314) : eval()'d code on line 186Fix : Check this post, https://vborg.vbsupport.ru/showpost.php?p=2188101&postcount=280
I'm sorry But I really don't have much time to update any of my free mods at this time.

DON'T FORGET TO SUPPORT ME :)

barroca
02-09-2010, 11:01 AM
Great Marco!

To be perfect consider integrate with post thanks ;)

Thank you again!

War.Frog
02-09-2010, 11:39 AM
This looks very interesting. So is the purpose behind this simply to force replies in threads?

dacho
02-09-2010, 11:46 AM
Looks great thanks Marco

gsmlover4u
02-09-2010, 01:07 PM
working fine thanks Marco

Kolbi
02-09-2010, 03:42 PM
Thank you!!!

But a version without replying would be needed, too :)

MARCO1
02-09-2010, 03:57 PM
Thank you!!!

But a version without replying would be needed, too :)

Sorry, I'm not completely understand your idea, Can you explain more ?

mitch84
02-09-2010, 04:34 PM
Hi, this hack will work in next release with hack button thank? thx

ZuFett
02-09-2010, 04:37 PM
It is possible to dont show the hidden Text in the CMS - last forum posts (widget)?
If i logged out, i can see the hide-content over the widget :(

Magz
02-09-2010, 04:39 PM
Nice Mod, I'm testing as a way of posting quizzes, they post their answer, and immediately see how well they did..

Thanks ;)

vexvegaz
02-09-2010, 04:43 PM
works great marco as always.

ps. can u please add a "thanks" before being able to view content?

thanks again marco.

MARCO1
02-09-2010, 04:43 PM
Hi, this hack wii work in next release with hack button thank? thx

Yes, I have added this idea in my notes and be sure it will included in the next build version.

It is possible to dont show the hidden Text in the CMS - last forum posts (widget)?
If i logged out, i can see the hide-content over the widget :(

I think it will working in CMS as well, I didn't have the suite so I coding for the forum and then try to get the code working to CMS but without try it, That's the problem :)

MARCO1
02-09-2010, 04:44 PM
works great marco as always.

ps. can u please add a "thanks" before being able to view content?

thanks again marco.

Yes, Check this post : https://vborg.vbsupport.ru/showpost.php?p=1978415&postcount=12

vexvegaz
02-09-2010, 04:47 PM
marco where is your donate link? im using so many of your mods i feel compelled to give a lil something back. thanks again

MARCO1
02-09-2010, 04:49 PM
marco where is your donate link? im using so many of your mods i feel compelled to give a lil something back. thanks again

PM Me for more info.

Kolbi
02-09-2010, 04:55 PM
Sorry, I'm not completely understand your idea, Can you explain more ?

I would like to have another option that registered always can see the hiden content and guest only can?t see it.

MARCO1
02-09-2010, 05:03 PM
I would like to have another option that registered always can see the hiden content and guest only can?t see it.

Oh Man, Why I coded the Usergroups permissions ? That's to allow X group and disallow X group.
Simply Add 2 in the usergroups permissions in my product settings :)

Let me know if you faced any problem and don't forget to Mark as installed since you are using it :p

vexvegaz
02-09-2010, 05:04 PM
I would like to have another option that registered always can see the hiden content and guest only can?t see it.

admincp > settings > options > MARCO1 Hide BBCODE Settings

add the usergroup ID of your registered users that you like to be able to view at all times.

MARCO1
02-09-2010, 05:05 PM
admincp > settings > options > MARCO1 Hide BBCODE Settings

add the usergroup ID of your registered users that you like to be able to view at all times.

That's Correct.

Kolbi
02-09-2010, 05:37 PM
:D you?re right :D

Kolbi
02-09-2010, 05:39 PM
A small issue, remove hides.gif from folder images/buttons/

MARCO1
02-09-2010, 06:10 PM
A small issue, remove hides.gif from folder images/buttons/

Good eyes :D, You are right, Updated.

saadessa
02-09-2010, 06:49 PM
thank you Marco for this great hack

cbiweb
02-09-2010, 07:40 PM
You did a great job! Can you make it so the hide icon appears in Quick Reply too?

angelimnot
02-09-2010, 07:53 PM
You are awesome Thank you Marco!!!!!!!!

MARCO1
02-09-2010, 08:35 PM
You did a great job! Can you make it so the hide icon appears in Quick Reply too?

Sure I can, Just make the same template edits steps but in showthread_quickreply Template And It should work :)

MARCO1
02-09-2010, 08:35 PM
You are awesome Thank you Marco!!!!!!!!

Thanks, Hope you like it!

TimberFloorAu
02-09-2010, 08:42 PM
Prey tell me , Marco . What does this do ?

< may be a tad stooopid

MARCO1
02-09-2010, 08:50 PM
Prey tell me , Marco . What does this do ?

< may be a tad stooopid

Hi Steve,

With This Mod you can Hide any thing you want to members or for any other usergroup and they can see it after reply, Also you can allow X Usergroup they allow to see the hidden content like Admin, Moderators....etc, Simply that's hide any thing between the HIDE tags and there is a button in your editor to wrap the selected area with the HIDE Tags Automatically.

Let me know if you have any other questions.

War.Frog
02-09-2010, 08:57 PM
Other than quizzes, what other things are people here using this for? Thanks!

MARCO1
02-09-2010, 08:59 PM
Other than quizzes, what other things are people here using this for? Thanks!

You can use this Mod in any thing you want just think what you want if you can hide X Area or X Post from a thread ? If I have a download link and I want to hide it before reply And I want to Allow X Usergroup to see this content what I will do with all these options ? Check it out :)

TimberFloorAu
02-09-2010, 09:01 PM
Brilliant !! LOVE IT

Created Image for you.

Happy to create more

War.Frog
02-09-2010, 09:02 PM
You can use this Mod in any thing you want just think what you want if you can hide X Area or X Post from a thread ? If I have a download link and I want to hide it before reply And I want to Allow X Usergroup to see this content what I will do with all these options ? Check it out :)

Awesome. Thanks Marco! One question...does the actual content appear when QUOTED (but before posting), or only after posting?

TimberFloorAu
02-09-2010, 09:02 PM
AHHHH only issue.

When user clicks REPLY. Before they type a reply

If they scroll down, they can look at the POST and the answer is shown !!

Bugger

War.Frog
02-09-2010, 09:03 PM
AHHHH only issue.

When user clicks REPLY. Before they type a reply

If they scroll down, they can look at the POST and the answer is shown !!

Bugger

Exactly what I was wondering!

MARCO1
02-09-2010, 09:04 PM
Brilliant !! LOVE IT

Created Image for you.

Happy to create more

That's my pleasure, If you can do another one with you need to reply to see the hidden content because I want a new modern Image for this Mod since we are using the Most newest coding vB4 :D

TimberFloorAu
02-09-2010, 09:08 PM
Will happily do some later, off to do a survey. BBS :) ( few hours )

Is it possible to please make the content hidden WHEN user is replying .

MARCO1
02-09-2010, 09:32 PM
Will happily do some later, off to do a survey. BBS :) ( few hours )

Is it possible to please make the content hidden WHEN user is replying .

I would you to give me more info about that, I doesn't see this issue in my tests forum, Screenshots also will be great.

MarioRe
02-09-2010, 10:21 PM
First off thx for this amazing mod it works great.

MARCO1
02-09-2010, 10:32 PM
First off thx for this amazing mod it works great.
You are welcome :)

balkanboy
02-09-2010, 11:15 PM
also when editing post it doesnt show the key just wondering what do i need to edit for it to show.

cbiweb
02-10-2010, 01:33 AM
You did a great job! Can you make it so the hide icon appears in Quick Reply too?Sure I can, Just make the same template edits steps but in showthread_quickreply Template And It should work :)
Worked perfectly! Thanks!

TimberFloorAu
02-10-2010, 02:38 AM
Lets say 1st poster uses the bbcode [hide] tags

Example: a question ( quiz type )

The next person that replies, clicks reply, and this is what they see ( see image ) the content within the hide tag is shown in the fist post.

TimberFloorAu
02-10-2010, 03:05 AM
Some simple images and PSD

lolo?
02-10-2010, 04:48 AM
tag for futur use :)

TimberFloorAu
02-10-2010, 05:43 AM
One of our Administrators, and another of our mods has reported this error:

I get...
"Warning: Cannot use a scalar value as an array in [path]/includes/class_postbit.php(314) : eval()'d code on line 622"

and...
"Unable to add cookies, header already sent.
File: /home/****/public_html/forum/includes/class_core.php
Line: 4522"

These are warnings they get when accessing these threads.

Any suggestions please

TimberFloorAu
02-10-2010, 05:45 AM
Add me to that aswell, just visited the thread and same issue.

TimberFloorAu
02-10-2010, 06:20 AM
Web 2 style.

PSD available of People Icon Messages, if reqd

210665
02-10-2010, 07:12 AM
Hello
when I press the button it does nothing, so I have to write a thank post with, or have I made a mistake.
Can not program the way the one who clicks on the button hidden Inhlat is visible. Would save a lot of pointless posts
Thanks
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Hallo
wenn ich auf den Button dr?cke tut er nichts , also muss ich einen post schreiben mit danke, oder habe ich da was falsch gemacht.
Kann man den nicht so programmieren, das wen man Button anklickt der versteckte Inhlat sichtbar wird. W?rde sehr viele sinnlose Posts ersparen
Danke

lolo?
02-10-2010, 07:28 AM
Web 2 style.

PSD available of People Icon Messages, if reqd

Very nice could you send me the psd ?? thanks :)

TimberFloorAu
02-10-2010, 07:44 AM
psd

lolo?
02-10-2010, 09:03 AM
thanks a lot for your psd :)

MARCO1
02-10-2010, 09:57 AM
One of our Administrators, and another of our mods has reported this error:

I get...
"Warning: Cannot use a scalar value as an array in [path]/includes/class_postbit.php(314) : eval()'d code on line 622"

and...
"Unable to add cookies, header already sent.
File: /home/****/public_html/forum/includes/class_core.php
Line: 4522"

These are warnings they get when accessing these threads.

Any suggestions please

You have a problem in this plug-in : MARCO1 BBCODE Hide Functions (M), If you can send to me PM With Admin member to troubleshoot.

MARCO1
02-10-2010, 10:12 AM
Hello
when I press the button it does nothing, so I have to write a thank post with, or have I made a mistake.
Can not program the way the one who clicks on the button hidden Inhlat is visible. Would save a lot of pointless posts
Thanks
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Hallo
wenn ich auf den Button dr?cke tut er nichts , also muss ich einen post schreiben mit danke, oder habe ich da was falsch gemacht.
Kann man den nicht so programmieren, das wen man Button anklickt der versteckte Inhlat sichtbar wird. W?rde sehr viele sinnlose Posts ersparen
Danke

Sorry can you explain more ? I can't understand your question correctly.

MARCO1
02-10-2010, 10:13 AM
psd

Great work, First post updated and the package updated.

pablete
02-10-2010, 11:52 AM
Thanks for the mod, it works well. Just one question or issue:

If I create a text to be hidden, I can see it and it appears as color shading, would be nice addition to that carried on top of that a text box showing that the post is hidden text or can it be?

evildon
02-10-2010, 12:27 PM
The one i really waited for a long time..

Really thanks for releasing it..

Waiting for to implement this with the THANKS hack..

Thanks

MARCO1
02-10-2010, 12:27 PM
Thanks for the mod, it works well. Just one question or issue:

If I create a text to be hidden, I can see it and it appears as color shading, would be nice addition to that carried on top of that a text box showing that the post is hidden text or can it be?

You want to change the box that's have the hidden content ?

evildon
02-10-2010, 12:36 PM
Hi

Got one problem..
I Have installed the hack and got it working.
But now i cant see this in my quick edit posts of my already posted thread and also not shown in the quick reply box.

Hope to get a solution..

Thanks

MARCO1
02-10-2010, 12:40 PM
Hi

Got one problem..
I Have installed the hack and got it working.
But now i cant see this in my quick edit posts of my already posted thread and also not shown in the quick reply box.

Hope to get a solution..

Thanks

Are you want to button on quick edit and quick reply ? it's not a problem I didn't add this in Mod that's an optional as you like and I liked it to be in new threads only however you can do it in quick reply just make the same template edits steps in "showthread_quickreply" template and it should work :)

cicciotto
02-10-2010, 12:47 PM
version vbulletin 4.0:
https://vborg.vbsupport.ru/external/2010/02/60.jpg
:(

cbiweb
02-10-2010, 12:50 PM
Hi

Got one problem..
I Have installed the hack and got it working.
But now i cant see this in my quick edit posts of my already posted thread and also not shown in the quick reply box.

Hope to get a solution..

Thanks
This was already mentioned in this thread, but I see Marco answered so that's good. Maybe try the "Search This Mod" link at the top left to avoid multiple posts on the same issue? :) (Searching the term 'quick reply' helped me find my post (https://vborg.vbsupport.ru/showpost.php?p=1978630&postcount=26) where I first asked ;) )

210665
02-10-2010, 01:23 PM
I installed their product.
Now have to get a THANK YOU post to write the hidden content as a user to see Reg.

I would like to simply press a button thanks to the next edit is located and then the contribution is a male or einfacxh pushes the button when the post is hidden (a possibility) would be
That would save a lot of posts in the forum thanks.
I hope they now understand what I meant.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxx

Ich habe ihr Produkt installiert.
Jetzt muss man einen DANKE Post schreiben um den versteckten Inhalt als Reg. User zu sehen.

Ich hätte gerne das man einfach auf einen Danke Button drückt der sich neben Bearbeiten befindet und dann wird der Beitrag sichtbar, oder mann drückt einfacxh auf den Button wo der Beitrag versteckt ist ( wäre auch eine Möglichkeit )
Das würde sehr viele Danke Beiträge im Forum ersparen.
Ich hoffe sie verstehen jetzt was ich meinte.

Kolbi
02-10-2010, 01:39 PM
I think he said that he will create a new version with integrated thank you option

xxxxxxxxxxx

Soweit ich wei?, arbeitet er schon daran, den Thank You Hack zu integrieren :)

evildon
02-10-2010, 01:42 PM
Thanks..
It really helped me..

MARCO1
02-10-2010, 01:43 PM
version vbulletin 4.0:
https://vborg.vbsupport.ru/external/2010/02/60.jpg
:(

I don't try it on vb4.0 this Mod coded in vb4.0.1

MARCO1
02-10-2010, 04:55 PM
Thanks..
It really helped me..

You are welcome.

pablete
02-10-2010, 05:05 PM
You want to change the box that's have the hidden content ?

but to change the box, would that it could be shown in what is shown within the box is hidden content ...

It would also be interesting in future updates that could be hidden to limit what certain users with x-post.

Thank's

MARCO1
02-10-2010, 06:47 PM
but to change the box, would that it could be shown in what is shown within the box is hidden content ...

It would also be interesting in future updates that could be hidden to limit what certain users with x-post.

Thank's

You can't change the box, However What you want to edit in the box ? So I will included it in my next version.

pablete
02-10-2010, 06:57 PM
Well, was just leaving on the top of the box a notice indicating that the content was hidden or a small icon like a key or padlock, to be seen more clearly that content is hidden.

Thank's

TimberFloorAu
02-10-2010, 07:13 PM
version vbulletin 4.0:
https://vborg.vbsupport.ru/external/2010/02/60.jpg
:(

We have exactly the same issue.

Can you list what mods you have, we may have corresponding MOD that is causing the issue.

STe

MARCO1
02-10-2010, 08:26 PM
Well, was just leaving on the top of the box a notice indicating that the content was hidden or a small icon like a key or padlock, to be seen more clearly that content is hidden.

Thank's

OK, Thanks for your suggest.

Juggernaut
02-10-2010, 08:29 PM
Great MOD, is there a way to make box reveal hidden content with a click instead
of refreshing the page? :)

MARCO1
02-10-2010, 09:37 PM
i installed this mod

working very good
and i translated it to Arabic

https://vborg.vbsupport.ru/showpost.php?p=1978736&postcount=42

thanxx MARCO

Hello Osama,

Many thanks for your hard work, First post updated.

MARCO1
02-10-2010, 09:41 PM
Great MOD, is there a way to make box reveal hidden content with a click instead
of refreshing the page? :)

Yes in the next version.

Juggernaut
02-10-2010, 10:09 PM
Thanks, anyways this is a great MOD. :D

TimberFloorAu
02-10-2010, 10:13 PM
We have diabled all modifications, and refreshed page cache. Still have the issue Marco.

Will keep digging away.

MARCO1
02-10-2010, 10:29 PM
We have diabled all modifications, and refreshed page cache. Still have the issue Marco.

Will keep digging away.

So it may from vb4.0 can you try it on 4.0.1 ? Also in these vbulletin version you should upgrade to the latest version all the time because these version included many many many bug fixes remember that's the second build version so it may have a huge bugs, I Sure it will works perfectly with 4.0.1, And I will check the vb4.0 class_postbit.php coding when I have free time But I recommended to upgrade to 4.0.1.

TimberFloorAu
02-10-2010, 10:47 PM
We are on vb 4.0.1

Kolbi
02-11-2010, 04:41 PM
I have a little suggestion can you please add the version check (https://vborg.vbsupport.ru/announcement.php?f=245&a=40) to your hack?

MARCO1
02-11-2010, 05:51 PM
I have a little suggestion can you please add the version check (https://vborg.vbsupport.ru/announcement.php?f=245&a=40) to your hack?

OK, Are you want it in the normal way (Check it manual from vb.org) Or Make PHP File to auto detect the new Mod version here without viewing vb.org (I have made this idea in MARCO1 Hide All) :)

ARP
02-11-2010, 10:56 PM
Yay, You are from the best vBulletin Coders.

What I can do for you ? I have send to you PM Because I want to send to you 100-200 $ this weekend :)

Rated 5 Stars , Installed And Nominated Is there any other thing I can do for you :D

Extra PC
02-12-2010, 07:44 AM
perfect marco

Kolbi
02-12-2010, 02:24 PM
OK, Are you want it in the normal way (Check it manual from vb.org) Or Make PHP File to auto detect the new Mod version here without viewing vb.org (I have made this idea in MARCO1 Hide All) :)

You can add the versio check into your mod without any php code or so on:
<versioncheckurl><![CDATA[https://vborg.vbsupport.ru/misc.php?do=productcheck&pid=kolbi3]]></versioncheckurl>
for example...

MARCO1
02-12-2010, 02:37 PM
You can add the versio check into your mod without any php code or so on:
<versioncheckurl><![CDATA[https://vborg.vbsupport.ru/misc.php?do=productcheck&pid=kolbi3]]></versioncheckurl>
for example...

Yes I Know that but it's the normal way, I'll make it some more fashion with external file to auto check your version and alert you when new version is released :up:

Kolbi
02-12-2010, 02:52 PM
Okay :)

But it would be nice to have the other option, too. Because I?m using this hack:
http://www.vbulletin-germany.org/showthread.php?t=121
And this hack need the versioncheckurl :)

MARCO1
02-12-2010, 03:30 PM
Okay :)

But it would be nice to have the other option, too. Because I?m using this hack:
http://www.vbulletin-germany.org/showthread.php?t=121
And this hack need the versioncheckurl :)

Aha, So with this Mod you will not need the external file it's just the normal way is enough, That's nice. I will update the thread tomorrow.

fly
02-12-2010, 03:50 PM
Two things:

1. I get this error when this product is enabled
Warning: Cannot use a scalar value as an array in [path]/includes/class_postbit.php(314) : eval()'d code on line 244

2. EDIT: n/m. I'm dumb

edit: Whoa, this seems to really mess with my quick reply (I'm using your advanced quick reply). Buttons and colors are all outside of their boxes.

TimberFloorAu
02-12-2010, 04:02 PM
Hey FLYPAPER what did you do to fix the error?

fly
02-12-2010, 04:17 PM
Hey FLYPAPER what did you do to fix the error?

I didn't fix it. I had a second issue that turned out being something I was doing wrong.

TimberFloorAu
02-12-2010, 04:36 PM
care to share, as some of us have that exact same issue

lisak
02-13-2010, 11:27 AM
can you tell me how to hide inside [ CODE ] bbcode

MARCO1
02-13-2010, 12:36 PM
can you tell me how to hide inside [ CODE ] bbcode

This Mod doesn't hide in CODE tags, However I will coding new Mod to hide links in CODE Tags.

Kolbi
02-13-2010, 02:23 PM
Exactly :)

Thank you...

lisak
02-13-2010, 02:36 PM
This Mod doesn't hide in CODE tags, However I will coding new Mod to hide links in CODE Tags.

Thanks Marco

210665
02-13-2010, 08:52 PM
Warnung: Cannot use a scalar value as an array in [path]/includes/class_postbit.php(314) : eval()'d code (Zeile 346)

Bekomme diese Fehlermeldung nach dem ich dieses Produkt installiert habe und danach einen Beitrag im Forum schreibe. So wie ich es mal sehe bekommen das aber nicht alle zu sehen, denn mein CO Admin bekommt diese Meldung auch wenn er einen Beitrag schreibt und ich sehe ihn nicht.
Unter Plugins Verwalten habe ich folgende Plugins:
MARCO1 Hide BBCODE Functions postbit_display_complete
MARCO1 Hide BBCODE Functions (M) postbit_display_complete
MARCO1 Print Pages Hide BBCODE Functions printthread_post
Wenn ich MARCO1 Hide BBCODE Functions (M) ( Plugin ) abschalte ist auch die Fehlermeldung nicht mehr vorhanden.

Bitte um eine L?sung dieses Problems
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx

Installed get this error message after I have this product, and then write your review in the forum. The way I see to get the views but not everyone can see, because my CO Admin receives this message even if he writes a post and I do not see him.
Under Manage plugins I have the following plugins:
MARCO1 Hide BBCODE Functions postbit_display_complete
MARCO1 Hide BBCODE Functions (M) postbit_display_complete
MARCO1 Print Pages BBCODE Hide printthread_post Functions
If I turn off MARCO1 Hide BBCODE Functions (M) (plugin), the error is no longer available.

Please find a solution to this problem

MARCO1
02-13-2010, 09:02 PM
There is nothing wrong in the code that's may a conflict with Mod you are installed in your forum because that's only 3 from more than 200 forum installed the Mod have this error.

210665
02-13-2010, 09:30 PM
The problem occurs when the user groups, see the link may not like ( 5,6,7,18,19,26,32,22,) and then another comment.

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxx

Das Problem tritt bei den Benutzergruppen auf die den Link sehen dürfen (5,6,7,18,19,26,32,22,) und dann noch einen Kommentar abgeben.

MARCO1
02-13-2010, 09:33 PM
The problem occurs when the user groups, see the link may not like ( 5,6,7,18,19,26,32,22,) and then another comment.

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxx

Das Problem tritt bei den Benutzergruppen auf die den Link sehen d?rfen (5,6,7,18,19,26,32,22,) und dann noch einen Kommentar abgeben.

As I understand from your reply, If you remove the usergroups ID's the problem is disappear ?

fly
02-13-2010, 09:37 PM
FWIW, my users did not see the error. Only I did, as an admin.

210665
02-13-2010, 09:42 PM
Yes
Here the problem is if I enter no ID, I have no problem.
I Simply enter an id 6 to write a reply, I get the error message.
The error message is only visible to ID 6.

The same error is here already questioned.
https://vborg.vbsupport.ru/showpost.php?p=1980870&postcount=91

Usergroups Permissions
What's the Usergroups that's can view the hidden content without reply ?
Separate with ","
By Default I allow Moderators, Admins and Super Moderators to see hidden content without reply
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxx

Ja
Hier ist das Problem wenn ich hier keine ID eingebe habe ich kein Problem.
Gebe ich hier eine id 6 ein und schreibe eine Antwort bekomme ich die Fehlermeldung.
Die Fehlermeldung ist aber nur f?r ID 6 sichtbar.

Der gleiche Fehler wird auch hier schon einmal hinterfragt.
https://vborg.vbsupport.ru/showpost.php?p=1980870&postcount=91

TimberFloorAu
02-14-2010, 01:42 AM
Okey Dokey. Thanks Marco. for sorting our issues out on our board.

Suggestions.

Can we have a QUIZ version of this MOD.

Where at a specific time, the thread starter can reveal the answer. Ok sounds a bit weird but.... at the moment we would like to use for asking and posing riddles, and conundrums.

When a replier clicks reply, they can see the answer. Perhaps link it to a prefix switch. So that the HIDE contents become visible when an admin or mod changes the threads prefix.

Would be awesome if you could integrate this feature

cavebox
02-14-2010, 06:23 AM
Hi Marco,

Nice mod.

I've got one question.
Is it possible when a user replied to havee an image that the content is unhidden?

MARCO1
02-14-2010, 09:15 AM
Hi Marco,

Nice mod.

I've got one question.
Is it possible when a user replied to havee an image that the content is unhidden?

In the unhidden box, You want to add image on it ?

MARCO1
02-14-2010, 09:18 AM
Okey Dokey. Thanks Marco. for sorting our issues out on our board.

Suggestions.

Can we have a QUIZ version of this MOD.

Where at a specific time, the thread starter can reveal the answer. Ok sounds a bit weird but.... at the moment we would like to use for asking and posing riddles, and conundrums.

When a replier clicks reply, they can see the answer. Perhaps link it to a prefix switch. So that the HIDE contents become visible when an admin or mod changes the threads prefix.

Would be awesome if you could integrate this feature

I'm really really very very busy on my paid Mods, However I'll code this Mod for you :)

TimberFloorAu
02-14-2010, 09:20 AM
I'm really really very very busy on my paid Mods, However I'll code this Mod for you :)


Will happily pay, but may be a week or two lol. Other commitments at the moment, its cool Mate you concentrate on your bread and butter mods :) I can wait

Scout24
02-14-2010, 09:25 AM
Hello a Question when I put something in hide and someone give a repost.
Than after save this repost the hide goes not open.
He opens after refresh the site?

Is this normal?

MARCO1
02-14-2010, 09:30 AM
Hello a Question when I put something in hide and someone give a repost.
Than after save this repost the hide goes not open.
He opens after refresh the site?

Is this normal?

Yes, He need to refresh the page to take the effect, In the next version it's will be auto refresh or using AJAX :)

Scout24
02-14-2010, 09:33 AM
Thanks for the answer I will wheat for the new version

Pro-eSports.com
02-14-2010, 12:19 PM
Is it possible to only allow administrators or other specified usergroups to use this BBcode?
Also is there a way to only allow this BBcode in specified forums?

cavebox
02-14-2010, 02:24 PM
In the unhidden box, You want to add image on it ?

Yes that is correct

MARCO1
02-14-2010, 03:33 PM
Is it possible to only allow administrators or other specified usergroups to use this BBcode?
Also is there a way to only allow this BBcode in specified forums?

That's already in the Mod, Go to MARCO1 BBCODE Settings and then Add the forum ID's that's you want to exclude it from hide BBCODE.

Pro-eSports.com
02-14-2010, 05:03 PM
That's already in the Mod, Go to MARCO1 BBCODE Settings and then Add the forum ID's that's you want to exclude it from hide BBCODE.

Thanks for the help. :)

pablete
02-14-2010, 08:13 PM
Hi Marco,

Nice mod.

I've got one question.
Is it possible when a user replied to havee an image that the content is unhidden?

I think that is the same that previous days ago i comment you.
an imagen in the box that show the content is hidden. a way of see more easy the box

MARCO1
02-14-2010, 08:47 PM
I think that is the same that previous days ago i comment you.
an imagen in the box that show the content is hidden. a way of see more easy the box

OK, That's already in my notes :)

iyama
02-15-2010, 08:44 AM
Installed and find some errors.

Warning: Cannot use a scalar value as an array in [path]\includes\class_postbit.php(314) : eval()'d code on line 186

If i disable the hide there are no errors any more.
Using vb4.01

MARCO1
02-15-2010, 09:05 AM
Installed and find some errors.

Warning: Cannot use a scalar value as an array in [path]\includes\class_postbit.php(314) : eval()'d code on line 186

If i disable the hide there are no errors any more.
Using vb4.01

Go to vbulletin options > MARCO1 BBCODE Hide settings > Usergroups permissions > Delete all the ID's and add 0.

Then the problem show disappear. this fix is included to the next version.

Bob_R
02-17-2010, 11:41 AM
Does a user have to literally sign up and then post to view thread

or

just sign up to become registered?

MARCO1
02-17-2010, 12:58 PM
Does a user have to literally sign up and then post to view thread

or

just sign up to become registered?
No, Post reply to the the hidden area you have selected it, That's will not hidden anything without your permissions :D

Pro-eSports.com
02-17-2010, 07:32 PM
Where do I have to upload the "Hidden Content" picture?

MARCO1
02-17-2010, 07:46 PM
Where do I have to upload the "Hidden Content" picture?
In any path you want and add the path of the new picture on MARCO1 Hide BBCODE Settings :), There is an option to control that then you are free to edit the path and the image as you like.

Pro-eSports.com
02-17-2010, 09:17 PM
Thanks. I noticed that when you post a reply you still don't see the content. You have to refresh the page again. Can this be changed? I want that it shows the content after the reply is posted, no extra refresh.

MARCO1
02-19-2010, 12:33 PM
Thanks. I noticed that when you post a reply you still don't see the content. You have to refresh the page again. Can this be changed? I want that it shows the content after the reply is posted, no extra refresh.
That's in the next version.

jet rex
02-21-2010, 06:52 AM
so, this update can`t working in 3.8.4 ? ;(

MARCO1
02-21-2010, 09:05 AM
so, this update can`t working in 3.8.4 ? ;(
This forum is for vBulletin 4 Mods, you need to search on 3.x Mods.

DNDJ
02-22-2010, 03:10 PM
working fine thanks

iyama
02-23-2010, 04:50 AM
so, this update can`t working in 3.8.4 ? ;(
See the magic toolbox, works perfect on vb 3.8 https://vborg.vbsupport.ru/showthread.php?t=199014&highlight=toolbox

Scout24
02-23-2010, 11:58 AM
Hello, when people use the quote reply the link is open?
How can I close this. And is there a option they need not refresh?

Thanks for the answer

pablete
02-23-2010, 06:47 PM
If you read this thread.... you will see that the autor o coder of this mod said that opcion will be in the next update.........:rolleyes:

Scout24
02-24-2010, 06:15 AM
That's great shall I say

motorola
02-24-2010, 04:49 PM
Installed. Thanks man :)

MARCO1
02-25-2010, 09:50 PM
Thanks guys.

Thr33
02-26-2010, 09:39 PM
hey dude, slight problem...

https://vborg.vbsupport.ru/external/2010/02/8.jpg

It shows the hidden content when you hover over the thread... :s

MARCO1
02-26-2010, 10:13 PM
hey dude, slight problem...

https://vborg.vbsupport.ru/external/2010/02/8.jpg

It shows the hidden content when you hover over the thread... :s
OK, I'll fix that in the next version.

pizzaservice
02-28-2010, 02:35 AM
Could you make this Addon fit to the AXAJ Thanks Plugin, so that when you Thank, you can see the hidden content after that?

MARCO1
02-28-2010, 03:23 AM
Could you make this Addon fit to the AXAJ Thanks Plugin, so that when you Thank, you can see the hidden content after that?

Yes, That's also included in the next version.

Thr33
02-28-2010, 03:17 PM
ive managed to remove the hover preview that shows the link, now the next thing (im hoping you can remove in the update) is when a member is on the page he/she can read the source and find the link in the > meta title and meta description... now i dont no how to remove them so could you please look into that aswell?

MARCO1
02-28-2010, 04:50 PM
ive managed to remove the hover preview that shows the link, now the next thing (im hoping you can remove in the update) is when a member is on the page he/she can read the source and find the link in the > meta title and meta description... now i dont no how to remove them so could you please look into that aswell?

Sorry I can't completely understand your question, Can you explain more ?

balkanboy
02-28-2010, 10:51 PM
hrmm iv noticed once you do a quick reply they need to fresh the whole page to view the hidden content.....any chance to avoid the habit of refreshing the page? also a way to work with the post thank you hack...?

210665
03-01-2010, 12:15 PM
Hello
From what we can reckon with the new update where even the thank button to click there is to see contributions that would need this very urgent because it) with the answer (thank you everything is just too unwieldy.
Have a contribution which has 20 times thanks has been written and then comes the next post.
This function should not be provided to you simply thanked with a button it would be nice if you could announce it, because then I have to think about something else.
Thanks

Are you doing here really a good job

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx

Hallo
Ab wann können wir damit rechnen mit dem neuen Update wo auch auch das danke Button zu klicken vorhanden ist um Beiträge zu sehen, würde dies sehr dringend benötigen da es mit dem antworten ( Danke ) einfach alles zu unübersichtlich wird.
Habe einen Beitrag wo schon 20 mal Danke geschrieben worden ist und dann folgt der nächste Beitrag.
Sollte diese Funktion nicht mehr vorgesehen sein das man sich einfach mit einem Button bedankt wäre es nett wenn ihr es bekanntgeben könntet, denn dann muss ich mir was anderes überlegen.
Danke

Ihr macht hier wirklich einen guten job

Thr33
03-01-2010, 02:28 PM
Marco what i mean is if a registered user were to open a page where they see the "reply to see hidden content" image then can simply 'view page source' (CTRL + ALT + U) and in the head of the page it show the hidden content in the META title and META description :(

tech4c
03-02-2010, 11:01 AM
Many thanks,

Could you please, in the next version, :)

fix it with the archives ?

e.g archive/index.php/t-000.html

Also, we need add this CODE With Blog and CMS

Any idea ?

Regards,

kalisekj
03-03-2010, 01:10 PM
Thanks Marco for all your hard work on releasing this hack. It is a great addition to a forum especially movie forums where we can hide the links from leecher sites forcing them to register or reply to get our links. I see you are going to add the Thanks Button to reveal hidden text. This is great for on my adult related sites I much rather have them hit thanks than have 2000 replies on 1 thread. Any idea on the time frame for your next release?

CEO254
03-09-2010, 08:45 AM
Any word of when this will be compatible with the "Thank You" hack?

mitch84
03-09-2010, 10:03 AM
Any word of when this will be compatible with the "Thank You" hack?

normaly with the next release:)

iyama
03-12-2010, 03:15 PM
Also, we need add this CODE With Blog and CMS
compatible with the "Thank You" hack

+1

vitrag24
03-15-2010, 10:02 PM
any intgration with thanks (https://vborg.vbsupport.ru/showthread.php?t=231666&highlight=hide)to unhide mod? such mod available or in this mod itself such function is therE?

Also appriciate if spoiler button to unhide optioln is also there after clicking on thanks..

quangnhut
03-16-2010, 01:05 PM
I love this mod but it's will better if you make it un hide after thanks function :D and more condition for un hide post such as user have 10 post can see this content :)

dacho
03-18-2010, 07:50 AM
Marco
How can we define usergroups with the ability to use content hiding?
For example - only usergroups 5,6,7 .... Be able to use hide content

darsalles
03-22-2010, 05:38 PM
when's the next version going to be released :D?

Manoel J?nior
03-23-2010, 10:54 PM
The HIDE is not working on the answers quickly. He only effective when it updates the page with F5.

Have any idea how to solve?

firefoxextreme
03-31-2010, 02:50 AM
Do you know the query to search and replace [code]with[Hide] in all posts?

Also how can I prevent members from viewing page source as link is exposed in page source?

BTW thanks, clicked installed

iyama
04-06-2010, 10:32 AM
Also, we need add this CODE With Blog and CMS
compatible with the "Thank You" hack

+1

Any update about this issue?

angelimnot
04-06-2010, 07:34 PM
Can you make an option for this mod to where it doesn't show the hidden code when you reply?

meissenation
04-07-2010, 10:12 PM
Is there any way to use this for SIGNATURE settings? For example, I have my personal cell phone number in my signature. I'm starting to get mildly paranoid so I'd like to use the tags around my cell phone but after installing I noticed that it doesn't parse signatures. Any way to make it parse sigs?

dhemitz
04-10-2010, 02:12 AM
Hi MARCO1

I'm install the plugin, but i have error...


Warning: Cannot use a scalar value as an array in [path]/includes/class_postbit.php(314) : eval()'d code on line 115



Thanks for help..

eak
04-10-2010, 08:53 AM
Could you make a mod that not allow member see the real image size before reply

If member not reply he will see only a thumbnail 100x100 pixel (Can not click to image for expand)

If member reply he will see a real image size

Ps. If you can do this mod

please for 4.0.x and 3.8.4

Thank you

MARCO1
04-10-2010, 01:44 PM
Hi MARCO1

I'm install the plugin, but i have error...



Thanks for help..
Check this post : https://vborg.vbsupport.ru/showpost.php?p=1982754&postcount=120

dhemitz
04-10-2010, 11:19 PM
Thanks... MARCO1

turntablefood
04-11-2010, 08:22 PM
anyone got a better tutorial on how to install this??

vicelover
04-13-2010, 03:34 AM
Hi, MARCO1

There is a glitch in this mod and MARCO1 Hide All , user must refresh the page after reply, then they can see the hidden content or link.

So, how to automatically fresh after reply without click F5 or refresh button.

Best Regards.

MARCO1
04-13-2010, 03:16 PM
As I said before this version without AJAX, The next version will include JS or AJAX

vicelover
04-14-2010, 01:39 AM
As I said before this version without AJAX, The next version will include JS or AJAX
Thanks.

It seems the hide code doesn't work in Blog Entries. Hope you can add this feature in next version.

Best Regards.

baderandsonsco
04-20-2010, 07:56 PM
First off, thanks for the mod. Exactly what I need.

But, I can't get it to work. Made the template edit, installed the .xml file.
I can get to the options in Control Panel. The Hide button displays on the reply toolbar.
I click on the reply button and it adds the hide tags. But when I log off and login as a different user the reply just shows the hide tags with the text I typed in between.

What am I doing wrong? Running 4.0.3

Skele
04-20-2010, 08:19 PM
Thank you.. installed.. but the hide button is not active when i try to create new thread

twista46
04-22-2010, 11:44 AM
When was the new version?

baderandsonsco
04-23-2010, 02:46 PM
Resolved my issue above. Had disable plugins hook in the config.php. My bad. Works great!!!

Now a new question, and this may be for a different forum...

Is there any way to automatically add the hide tags when starting a reply? I'm trying to avoid the step of having to click the button. My users are not computer savvy and will forget to click the button. We are trying to make it as simple as possible. Having the tags in there and they just have to start typing would be awesome. Let me know if it's possible...

We are John Deere dealerships that are using this to play a "trade in game". The salesman post pictures and description of a possible trade in and the other salesman post their estimate on what we should give for it and retail value. All replies must be hidden so they can't just copy what another salesman has posted. Make sense?

sopier
04-28-2010, 04:16 PM
thanks for the nice tweak...

Faizan
05-01-2010, 02:46 PM
Hidden content is not showing without page reload in vb 4.0.2 . I also Enabled the Ajax functionality

TimberFloorAu
05-07-2010, 03:33 AM
Zip PSD as requested.

MadK
05-07-2010, 04:01 AM
Zip PSD as requested.

Thanks again, but do you have the PSD for hide5?

fly
05-09-2010, 04:33 PM
Anyone found a way to hide this in the archives as well?

umang26
05-09-2010, 04:49 PM
Thanks for this mod. I have an issue with this plugin. When I enable it, I see errors on threads.

Warning: Cannot use a scalar value as an array in [path]/includes/class_postbit.php(314) : eval()'d code on line 86

How do I fix this?

MrKramer
05-10-2010, 07:24 AM
Good mod :up:

2 questions:
- Can i change [hidden] to something else?
for example trough the xml file?
or is that not possible

- Can this be intergrated in another BBCode?
for example [code], so that all the text in [code] are now hidden.

i will use this if any of these 2 options works. :) (tagged for now)

Linos-1
05-10-2010, 09:04 PM
Thank you

exturkey
05-12-2010, 08:21 PM
Database error in vBulletin 4.0.2:

Invalid SQL:
SELECT userid from post where threadid='51778' AND userid=1;

MySQL Error : Table 'data_board.post' doesn't exist
Error Number : 1146
Request Date : Wednesday, May 12th 2010 @ 10:08:42 PM
Error Date : Wednesday, May 12th 2010 @ 10:08:42 PM
Script : http://www.site.com/showthread.php?51778-BMW-ETK-v3.0.2010-MULTiLANGUAGE-iSO
Referrer : http://www.site.com/forumdisplay.php?280-Drivers
IP Address : 78.187.122.133
Username : AleXe
Classname : vB_Database
MySQL Version : 5.0.90-community-log



prtefix is not working my prefix "s" database spost :S palse help!

robbiefritz
05-12-2010, 10:48 PM
Beautiful! Can this be integrated so that it displays the hidden portion after a Thanks?

MadK
05-14-2010, 01:38 AM
How to make it so that links do not get parsed? Thanks.

cloferba
05-20-2010, 02:47 PM
Thanks for this mod. I have an issue with this plugin. When I enable it, I see errors on threads.



How do I fix this?

same error but in line 217

Warning: Cannot use a scalar value as an array in [path]/includes/class_postbit.php(314) : eval()'d code on line 217

this is caused by this mod..

4.0.3

bbjoe
05-20-2010, 04:48 PM
hey marco i installed this mod since i chnaged to vb 4.0 but its been giving me a problem and it was today when i sorted it out, everytime i enable the hack i get this error Warning: Cannot use a scalar value as an array in [path]/includes/class_postbit.php(314) : eval()'d code on line 86 any idea on how to fix it?

My version is 4.0.3 same problem as the one on top of this :s

MARCO1
05-23-2010, 07:31 AM
hey marco i installed this mod since i chnaged to vb 4.0 but its been giving me a problem and it was today when i sorted it out, everytime i enable the hack i get this error Warning: Cannot use a scalar value as an array in [path]/includes/class_postbit.php(314) : eval()'d code on line 86 any idea on how to fix it?

My version is 4.0.3 same problem as the one on top of this :s

Check this post : https://vborg.vbsupport.ru/showpost.php?p=1982754&postcount=120

sticky
05-24-2010, 11:32 AM
Would it be possible to tie this to prefixes?

For example, if a thread uses a certain prefix the posts in it automatically use the [hide] tag?

MadK
05-24-2010, 11:34 AM
How to make it so that links do not get parsed? Thanks.

Hmph?

cloferba
05-24-2010, 06:01 PM
Check this post : https://vborg.vbsupport.ru/showpost.php?p=1982754&postcount=120

thanks! solved! :D

bbjoe
05-24-2010, 09:32 PM
thanks a lot marco, waiting on the next update :D

calvinnguyen
06-14-2010, 05:13 PM
Check this post : https://vborg.vbsupport.ru/showpost.php?p=1982754&postcount=120

It didn't work for me.
I Still got this error message on view showthread.php

"Warning: Cannot use a scalar value as an array in [path]/includes/class_postbit.php(314) : eval()'d code on line 293"

Bouncer222
06-15-2010, 03:54 PM
I just have a quick question...

Let's say I hide a piece of content from a post from ALL unregistered/not logged in users. So basically if a user is not logged in, it won't show it, otherwise it will.

When a search engine bot comes to my forums and sees the post/thread, will the bot see the content that is supposed to be hidden?

I want to use this mod so that certain content won't get indexed on search engine.

HopPho
06-17-2010, 12:08 AM
where do I find editor_toolbar_on to edit the template? is it in the admin area?

Jhax
06-17-2010, 08:22 AM
When a search engine bot comes to my forums and sees the post/thread, will the bot see the content that is supposed to be hidden?

I want to use this mod so that certain content won't get indexed on search engine.

Right!
how the bot can index the contents if they are hidden?

lickalotapus
06-18-2010, 02:20 AM
where do I find editor_toolbar_on to edit the template? is it in the admin area?

Admin CP > styles and templates > style manager > pick the template > drop down 'edit templates' > editor templates > editor_toolbar_on

Marco,

Great hack downloaded and working as described. I have two questions:

1. Can I make it so the text is not visible when replying to the post? Basically I only want designated user groups to be able to see the data.
2. How do I change the word 'HIDE' to something more sexy...

Thanks in advance,

bbjoe
06-29-2010, 11:50 PM
hey marco, great work, its runing fine on my board with 4.0.3, but today i installed it on another board with 4.0.4 and when the ppl answer only get this %1$s
any idea on how to fix it, i have my board closed since i hide must of my content, thanks for the help

FatalBreeze
07-01-2010, 07:26 AM
Thanks Marco!
Will it also display the text in a hidden format in forumdisplay when you point the mouse on a threadbit and there's an alt with preview text? Or can you search the hidden text in search.php?

toto1
07-01-2010, 06:27 PM
you could have a BBcode like this for vb3.8?

I used this mod with VB4 but are now due back in VB3 and I could use.

Thanks ...

dcuellar
07-03-2010, 03:22 PM
any way to make this work with vbcredits II? Id like to have people pay an x amount of credits in order to view the content within. X should be determined by the thread starter who is posting the link.

angelimnot
07-04-2010, 09:01 PM
Hi MARCO1

I'm install the plugin, but i have error...



Thanks for help..

I am still getting this error as well.. any fix for it?

Yellow Slider
07-05-2010, 03:08 PM
Thanks, but you can see the hidden content when you quote the post, in the archive, in the print version, etc.

angelimnot
07-06-2010, 08:42 AM
Yea I'm having the same issue.. I was hoping he would make a fix for it so it wouldn't do that.

demonfatal
07-06-2010, 09:43 AM
+1 Please a fix is needed MARCO1...

JayCat
07-09-2010, 06:05 AM
Great modification,

Really looking forward to a fix for the scalar error.

Yellow Slider
07-09-2010, 11:45 AM
it's not really hiding anything, you can see the hidden content when floating with the mouse over the thread url, when quoting the post, in the archive, print version etc' it's kind of useless.

angelimnot
07-10-2010, 10:55 AM
Those are the things we wanted fixed yellow.. that and it pops up a scalar error.. when I asked marco what the fix for it was.. he told me to erase all the user groups and put 0 that would fix it.. but then whats the point of using the mod if everyone can see everything? I am in need for a fix for this mod.. or someone to make one that works right

demonfatal
07-15-2010, 10:13 AM
MARCO1 an update is needed PLEASE, nothing is really hidden...

Yellow Slider
07-15-2010, 06:50 PM
he isn't going to update anything, too bad.

iyama
07-16-2010, 06:52 AM
I think Marco is to busy with his girlfriend to hide :p

Marco can you give your users a update about this all please?

Danny M
07-17-2010, 10:47 PM
Can this hack also work by instead of a user replying to a thread, they can just click the 'thanks' button to see the post content?

Blooded
07-18-2010, 05:48 AM
Can you please update this mod? :(

NAVAMUEL
07-18-2010, 05:04 PM
please update this mod

xtremecoders
07-18-2010, 06:49 PM
PROBLEM FIXED !!!!!!

Its an array function Syntax Problem and was easy to fix it....

all you have to do is to find and replace inside the script all in_array function with the correct syntax.

Marco uses syntax like ... in_array($vbulletin->userinfo['usergroupid'],$MARCO1_NoHideUSG) , which is wrong and lead to array corruption.

The Correct is in_array($vbulletin->userinfo['usergroupid'],array(MARCO1_NoHideUSG))

Steps :

1: Open the Product MARCO1 BBCODE Hide vB4.xml using an editor like wordpad
2: Edit -> Select all & Delete
3: Paste the next Script.

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

<product productid="marco1_hidebbcode" active="1">
<title>MARCO1 Hide BBCODE</title>
<description>Hide X Area From your threads With BBCODES</description>
<version>2.0</version>
<url />
<versioncheckurl />
<dependencies>
</dependencies>
<codes>
</codes>
<templates>
</templates>
<stylevardfns>
</stylevardfns>
<stylevars>
</stylevars>
<plugins>
<plugin active="1" executionorder="126">
<title>MARCO1 Hide BBCODE Functions</title>
<hookname>postbit_display_complete</hookname>
<phpcode><![CDATA[if ($_REQUEST['do'] == 'whatever'){
global $vbulletin, $vboptions, $bbuserinfo, $db, $threadid, $postid;
$bbuserinfo = $this->registry->userinfo;
$postid = $_REQUEST['p'];
$hide_call = $_REQUEST['all'];
$hide_read = false;
$hide_replied = '';
$hide_thanked = '';

$hide_replied = $db->query("SELECT COUNT(postid) AS count FROM ". TABLE_PREFIX . "post WHERE userid='$bbuserinfo[userid]' AND visible = 1 AND threadid='$post[threadid]'");
$myreplies = 0;
if($db->num_rows($hide_replied)){
while ($h_post = $db->fetch_array($hide_replied)){
$myreplies += $h_post['count'];
}
$myreplies = vb_number_format($myreplies);
}
if($myreplies > 0){
$hide_read = true;
}

if(!$bbuserinfo[userid]){
$hide_read = false;
}
if( $hide_read == true){
$hide_post = $db->query_first("SELECT pagetext as 'message' FROM ". TABLE_PREFIX ."post WHERE postid='$postid'");
$hide_string = "#\[hide\](.*)\[\/hide\]#siU";
require_once(DIR . '/includes/class_bbcode.php');
$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$hide_post['message'] = $parser->do_parse($hide_post['message'],true);
if(preg_match_all($hide_string, $hide_post['message'], $hide_match)) {
for($i=0; $i<count($hide_match[0]); $i++) {
$hide_replace[$i] ="<fieldset>".$hide_match[1][$i]."</fieldset>";
$hide_post['message']= str_replace($hide_match[0][$i],$hide_replace[$i],$hide_post['message']);
}
}
}
$ajax_on = true;
$output = $hide_post['message'];
echo "$output";
exit;
}]]></phpcode>
</plugin>
<plugin active="1" executionorder="126">
<title>MARCO1 Hide BBCODE Functions (M)</title>
<hookname>postbit_display_complete</hookname>
<phpcode><![CDATA[if ($this->registry->options['MARCO1_BBHideon'] == '1' AND stristr($post['message'],'[hide]')){
global $vbulletin, $vboptions, $bbuserinfo, $db, $threadid, $hide_call, $postid;
$bbuserinfo = $this->registry->userinfo;
$post = $this->post;
$hide_read = false;

$hide_replied = '';


$hide_stop = 0;
if (!empty($this->registry->options['MARCO1_HideForumID'])){
$MARCO1_Forum_NOHIDE = explode(" ",$this->registry->options['MARCO1_HideForumID']);
if(in_array($thread['forumid'], array(MARCO1_Forum_NOHIDE))){
$post['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', '\\1', $post['message']);
$hide_stop = 1;
}
}
if($post['userid'] == $bbuserinfo['userid'] AND $hide_stop == 0){
$post['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', '<fieldset>\\1</fieldset>', $post['message']);
$hide_stop = 1;
}
if ($hide_stop != 1){
if ($this->registry->options['sid_hide_showadmin'] AND $bbuserinfo[usergroupid]==6){
$hide_read = true;
}elseif ($this->registry->options['sid_hide_showmod'] AND can_moderate($thread['forumid'])){
$hide_read = true;
}
$MARCO1_NoHideUSG = split(',',$vbulletin->options['MARCO1_NoHideUSG']);
if ($vbulletin->options['MARCO1_BBHideon'] AND in_array($vbulletin->userinfo['usergroupid'], array(MARCO1_NoHideUSG))){
$hide_read = true;
}
}

$hide_img_set = $hide_img_set + 2 ;
$hide_replied = $db->query("SELECT COUNT(postid) AS count FROM ". TABLE_PREFIX . "post WHERE userid='$bbuserinfo[userid]' AND visible = 1 AND threadid='$post[threadid]'");
$myreplies = 0;
if($db->num_rows($hide_replied)){
while ($h_post = $db->fetch_array($hide_replied)){
$myreplies += $h_post['count'];
}
$myreplies = vb_number_format($myreplies);
}
if($myreplies > 0){
$hide_read['userid'] = true;
}

if (!$hide_call){
$hide_call =$post['postid'];
} else {
$hide_call .=",".$post['postid'];
}

if(!$bbuserinfo[userid]){
$hide_read = false;
}
if ($hide_read == true){
$post['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', '<fieldset>\\1</fieldset>', $post['message']);
} else {

$hide_fetch = $vbulletin->options['MARCO1_HIDEMESSAGE'];

$post['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', $hide_fetch, $post['message']);
}
}]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>MARCO1 Print Pages Hide BBCODE Functions</title>
<hookname>printthread_post</hookname>
<phpcode><![CDATA[if($vbulletin->options['MARCO1_BBHideon']AND stristr($post['message'],'[hide]')){
global $vbulletin, $vboptions, $bbuserinfo, $db;
$bbuserinfo = $vbulletin->userinfo;
$hide_read = false;
$hide_stop = 0;
$hide_img_set = 0;
if (!empty($vbulletin->options['MARCO1_HideForumID'])){
$MARCO1_hide_forum_stop = explode(" ",$vbulletin->options['MARCO1_HideForumID']);
if(in_array($threadinfo['forumid'], array(MARCO1_hide_forum_stop))){
$post['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', '\\1', $post['message']);
$hide_stop = 1;
}
}
if($post['userid'] == $bbuserinfo['userid'] AND $hide_stop == 0){
$post['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', '\\1', $post['message']);
$hide_stop = 1;
}
if ($hide_stop != 1){

$MARCO1_NoHideUSG = split(',',$vbulletin->options['MARCO1_NoHideUSG']);
if ($vbulletin->options['MARCO1_BBHideon'] AND in_array($vbulletin->userinfo['usergroupid'], array(MARCO1_NoHideUSG))){
$hide_read = true;
}


$hide_img_set = $hide_img_set + 2 ;
$hide_replied = $db->query("SELECT COUNT(postid) AS count FROM ". TABLE_PREFIX . "post WHERE userid='$bbuserinfo[userid]' AND visible = 1 AND threadid='$post[threadid]'");
$myreplies = 0;
if($db->num_rows($hide_replied)){
while ($h_post = $db->fetch_array($hide_replied)){
$myreplies += $h_post['count'];
}
$myreplies = vb_number_format($myreplies);
}
if($myreplies > 0){
$hide_read['userid'] = true;
}


if(!$bbuserinfo[userid]){
$hide_read = false;
}

$hide_img = $vbulletin->options[MARCO1_HIDEMESSAGE];

if($hide_read == true){
$post['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', '\\1', $post['message']);
} else {
$post['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', $hide_img, $post['message']);
}
}
}]]></phpcode>
</plugin>
</plugins>
<phrases>
<phrasetype name="vBulletin Settings" fieldname="vbsettings">
<phrase name="setting_MARCO1_BBHideon_desc" date="1265211380" username="MARCO1" version="1.1"><![CDATA[Choose yes if you want to enable Hide BBCODE]]></phrase>
<phrase name="setting_MARCO1_BBHideon_title" date="1265211380" username="MARCO1" version="1.1"><![CDATA[Enable MARCO1 Hide BBCODE ?]]></phrase>
<phrase name="setting_MARCO1_HIDEMESSAGE_desc" date="1265211504" username="MARCO1" version="1.1"><![CDATA[That's the Hide content message that's will appear when you hide something using the Mod.]]></phrase>
<phrase name="setting_MARCO1_HIDEMESSAGE_title" date="1265211504" username="MARCO1" version="1.1"><![CDATA[What's the Hide Message ?]]></phrase>
<phrase name="setting_MARCO1_HideForumID_desc" date="1265675231" username="MARCO1" version="1.1"><![CDATA[Add Forum ID's of forums that you will not need to use BBCODE Hide Content on it.]]></phrase>
<phrase name="setting_MARCO1_HideForumID_title" date="1265675231" username="MARCO1" version="1.1"><![CDATA[Excluding Forum of BBCODE Hide]]></phrase>
<phrase name="setting_MARCO1_NoHideUSG_desc" date="1265677222" username="MARCO1" version="1.1"><![CDATA[<p>What's the Usergroups that's can view the hidden content without reply ?<br>
<strong>Separate with ","</strong><br>
<strong>By Default I allow Moderators, Admins and Super Moderators to see
hidden content without reply</strong></p>]]></phrase>
<phrase name="setting_MARCO1_NoHideUSG_title" date="1265677222" username="MARCO1" version="1.1"><![CDATA[Usergroups Permissions]]></phrase>
<phrase name="settinggroup_MARCO1_HIDEBBCODE_SETTINGS" date="1265211320" username="MARCO1" version="1.1"><![CDATA[MARCO1 Hide BBCODE Settings]]></phrase>
</phrasetype>
</phrases>
<options>
<settinggroup name="MARCO1_HIDEBBCODE_SETTINGS" displayorder="65535">
<setting varname="MARCO1_BBHideon" displayorder="10">
<datatype>free</datatype>
<optioncode>yesno</optioncode>
<defaultvalue>1</defaultvalue>
</setting>
<setting varname="MARCO1_HIDEMESSAGE" displayorder="20">
<datatype>free</datatype>
<optioncode>textarea</optioncode>
<defaultvalue><![CDATA[<img src="images/hide.gif">]]></defaultvalue>
</setting>
<setting varname="MARCO1_HideForumID" displayorder="30">
<datatype>free</datatype>
<defaultvalue>0</defaultvalue>
</setting>
<setting varname="MARCO1_NoHideUSG" displayorder="40">
<datatype>free</datatype>
<defaultvalue>5,6,7</defaultvalue>
</setting>
</settinggroup>
</options>
<helptopics>
</helptopics>
<cronentries>
</cronentries>
<faqentries>
</faqentries>
</product>


4: Save the file
5: Upload again the new file using as always vb product manager and install it.

You can see a sample of a working mod HERE (http://www.xtremecoders.org/forums/f78/rtorrent-installation-utility-253/)

Now all working as it should.

Do it and inform me if is OK...

Xtremecoders.org (http://www.xtremecoders.org)

Blooded
07-19-2010, 06:22 AM
PROBLEM FIXED !!!!!!

Its an array function Syntax Problem and was easy to fix it....

all you have to do is to find and replace inside the script all in_array function with the correct syntax.

Marco uses syntax like ... in_array($vbulletin->userinfo['usergroupid'],$MARCO1_NoHideUSG) , which is wrong and lead to array corruption.

The Correct is in_array($vbulletin->userinfo['usergroupid'],array(MARCO1_NoHideUSG))

Steps :

1: Open the Product MARCO1 BBCODE Hide vB4.xml using an editor like wordpad
2: Edit -> Select all & Delete
3: Paste the next Script.



4: Save the file
5: Upload again the new file using as always vb product manager and install it.

You can see a sample of a working mod HERE (http://www.xtremecoders.org/forums/f78/rtorrent-installation-utility-253/)

Now all working as it should.

Do it and inform me if is OK...

Xtremecoders.org (http://www.xtremecoders.org)



works perfect, the only problem with this mod is when someone make a blog the hide dont work same if the put "blog this post" :(

xtremecoders
07-19-2010, 03:26 PM
SORRY for the MISTAKE.

I was wrong and Problem was appears again.

SO, i found the Problem, and ALL is OK now.



PROBLEM FIXED !!!!!!

Its an array function Syntax Problem and was easy to fix it....

all you have to do is to find and replace inside the script all in_array function with the correct syntax.

Marco uses syntax like ... in_array($vbulletin->userinfo['usergroupid'],$MARCO1_NoHideUSG) , which is wrong and lead to array corruption.

The Correct is in_array($vbulletin->userinfo['usergroupid'], $MARCO1_NoHideUSG, true))

Steps :

1: Open the Product MARCO1 BBCODE Hide vB4.xml using an editor like wordpad
2: Edit -> Select all & Delete
3: Paste the next Script.

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

<product productid="marco1_hidebbcode" active="1">
<title>MARCO1 Hide BBCODE</title>
<description>Hide X Area From your threads With BBCODES</description>
<version>2.0</version>
<url />
<versioncheckurl />
<dependencies>
</dependencies>
<codes>
</codes>
<templates>
</templates>
<stylevardfns>
</stylevardfns>
<stylevars>
</stylevars>
<plugins>
<plugin active="1" executionorder="126">
<title>MARCO1 Hide BBCODE Functions</title>
<hookname>postbit_display_complete</hookname>
<phpcode><![CDATA[if ($_REQUEST['do'] == 'whatever'){
global $vbulletin, $vboptions, $bbuserinfo, $db, $threadid, $postid;
$bbuserinfo = $this->registry->userinfo;
$postid = $_REQUEST['p'];
$hide_call = $_REQUEST['all'];
$hide_read = false;
$hide_replied = '';
$hide_thanked = '';

$hide_replied = $db->query("SELECT COUNT(postid) AS count FROM ". TABLE_PREFIX . "post WHERE userid='$bbuserinfo[userid]' AND visible = 1 AND threadid='$post[threadid]'");
$myreplies = 0;
if($db->num_rows($hide_replied)){
while ($h_post = $db->fetch_array($hide_replied)){
$myreplies += $h_post['count'];
}
$myreplies = vb_number_format($myreplies);
}
if($myreplies > 0){
$hide_read = true;
}

if(!$bbuserinfo[userid]){
$hide_read = false;
}
if( $hide_read == true){
$hide_post = $db->query_first("SELECT pagetext as 'message' FROM ". TABLE_PREFIX ."post WHERE postid='$postid'");
$hide_string = "#\[hide\](.*)\[\/hide\]#siU";
require_once(DIR . '/includes/class_bbcode.php');
$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$hide_post['message'] = $parser->do_parse($hide_post['message'],true);
if(preg_match_all($hide_string, $hide_post['message'], $hide_match)) {
for($i=0; $i<count($hide_match[0]); $i++) {
$hide_replace[$i] ="<fieldset>".$hide_match[1][$i]."</fieldset>";
$hide_post['message']= str_replace($hide_match[0][$i],$hide_replace[$i],$hide_post['message']);
}
}
}
$ajax_on = true;
$output = $hide_post['message'];
echo "$output";
exit;
}]]></phpcode>
</plugin>
<plugin active="1" executionorder="126">
<title>MARCO1 Hide BBCODE Functions (M)</title>
<hookname>postbit_display_complete</hookname>
<phpcode><![CDATA[if ($this->registry->options['MARCO1_BBHideon'] == '1' AND stristr($post['message'],'[hide]')){
global $vbulletin, $vboptions, $bbuserinfo, $db, $threadid, $hide_call, $postid;
$bbuserinfo = $this->registry->userinfo;
$post = $this->post;
$hide_read = false;

$hide_replied = '';


$hide_stop = 0;
if (!empty($this->registry->options['MARCO1_HideForumID'])){
$MARCO1_Forum_NOHIDE = explode(" ",$this->registry->options['MARCO1_HideForumID']);
if(in_array($thread['forumid'], $MARCO1_Forum_NOHIDE, true)){
$post['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', '\\1', $post['message']);
$hide_stop = 1;
}
}
if($post['userid'] == $bbuserinfo['userid'] AND $hide_stop == 0){
$post['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', '<fieldset>\\1</fieldset>', $post['message']);
$hide_stop = 1;
}
if ($hide_stop != 1){
if ($this->registry->options['sid_hide_showadmin'] AND $bbuserinfo[usergroupid]==6){
$hide_read = true;
}elseif ($this->registry->options['sid_hide_showmod'] AND can_moderate($thread['forumid'])){
$hide_read = true;
}
$MARCO1_NoHideUSG = split(',',$vbulletin->options['MARCO1_NoHideUSG']);
if ($vbulletin->options['MARCO1_BBHideon'] AND in_array($vbulletin->userinfo['usergroupid'], $MARCO1_NoHideUSG, true)){
$hide_read = true;
}
}

$hide_img_set = $hide_img_set + 2 ;
$hide_replied = $db->query("SELECT COUNT(postid) AS count FROM ". TABLE_PREFIX . "post WHERE userid='$bbuserinfo[userid]' AND visible = 1 AND threadid='$post[threadid]'");
$myreplies = 0;
if($db->num_rows($hide_replied)){
while ($h_post = $db->fetch_array($hide_replied)){
$myreplies += $h_post['count'];
}
$myreplies = vb_number_format($myreplies);
}
if($myreplies > 0){
$hide_read['userid'] = true;
}

if (!$hide_call){
$hide_call =$post['postid'];
} else {
$hide_call .=",".$post['postid'];
}

if(!$bbuserinfo[userid]){
$hide_read = false;
}
if ($hide_read == true){
$post['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', '<fieldset>\\1</fieldset>', $post['message']);
} else {

$hide_fetch = $vbulletin->options['MARCO1_HIDEMESSAGE'];

$post['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', $hide_fetch, $post['message']);
}
}]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>MARCO1 Print Pages Hide BBCODE Functions</title>
<hookname>printthread_post</hookname>
<phpcode><![CDATA[if($vbulletin->options['MARCO1_BBHideon']AND stristr($post['message'],'[hide]')){
global $vbulletin, $vboptions, $bbuserinfo, $db;
$bbuserinfo = $vbulletin->userinfo;
$hide_read = false;
$hide_stop = 0;
$hide_img_set = 0;
if (!empty($vbulletin->options['MARCO1_HideForumID'])){
$MARCO1_hide_forum_stop = explode(" ",$vbulletin->options['MARCO1_HideForumID']);
if(in_array($threadinfo['forumid'], $MARCO1_hide_forum_stop, true)){
$post['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', '\\1', $post['message']);
$hide_stop = 1;
}
}
if($post['userid'] == $bbuserinfo['userid'] AND $hide_stop == 0){
$post['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', '\\1', $post['message']);
$hide_stop = 1;
}
if ($hide_stop != 1){

$MARCO1_NoHideUSG = split(',',$vbulletin->options['MARCO1_NoHideUSG']);
if ($vbulletin->options['MARCO1_BBHideon'] AND in_array($vbulletin->userinfo['usergroupid'], $MARCO1_NoHideUSG, true)){
$hide_read = true;
}


$hide_img_set = $hide_img_set + 2 ;
$hide_replied = $db->query("SELECT COUNT(postid) AS count FROM ". TABLE_PREFIX . "post WHERE userid='$bbuserinfo[userid]' AND visible = 1 AND threadid='$post[threadid]'");
$myreplies = 0;
if($db->num_rows($hide_replied)){
while ($h_post = $db->fetch_array($hide_replied)){
$myreplies += $h_post['count'];
}
$myreplies = vb_number_format($myreplies);
}
if($myreplies > 0){
$hide_read['userid'] = true;
}


if(!$bbuserinfo[userid]){
$hide_read = false;
}

$hide_img = $vbulletin->options[MARCO1_HIDEMESSAGE];

if($hide_read == true){
$post['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', '\\1', $post['message']);
} else {
$post['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', $hide_img, $post['message']);
}
}
}]]></phpcode>
</plugin>
</plugins>
<phrases>
<phrasetype name="vBulletin Settings" fieldname="vbsettings">
<phrase name="setting_MARCO1_BBHideon_desc" date="1265211380" username="MARCO1" version="1.1"><![CDATA[Choose yes if you want to enable Hide BBCODE]]></phrase>
<phrase name="setting_MARCO1_BBHideon_title" date="1265211380" username="MARCO1" version="1.1"><![CDATA[Enable MARCO1 Hide BBCODE ?]]></phrase>
<phrase name="setting_MARCO1_HIDEMESSAGE_desc" date="1265211504" username="MARCO1" version="1.1"><![CDATA[That's the Hide content message that's will appear when you hide something using the Mod.]]></phrase>
<phrase name="setting_MARCO1_HIDEMESSAGE_title" date="1265211504" username="MARCO1" version="1.1"><![CDATA[What's the Hide Message ?]]></phrase>
<phrase name="setting_MARCO1_HideForumID_desc" date="1265675231" username="MARCO1" version="1.1"><![CDATA[Add Forum ID's of forums that you will not need to use BBCODE Hide Content on it.]]></phrase>
<phrase name="setting_MARCO1_HideForumID_title" date="1265675231" username="MARCO1" version="1.1"><![CDATA[Excluding Forum of BBCODE Hide]]></phrase>
<phrase name="setting_MARCO1_NoHideUSG_desc" date="1265677222" username="MARCO1" version="1.1"><![CDATA[<p>What's the Usergroups that's can view the hidden content without reply ?<br>
<strong>Separate with ","</strong><br>
<strong>By Default I allow Moderators, Admins and Super Moderators to see
hidden content without reply</strong></p>]]></phrase>
<phrase name="setting_MARCO1_NoHideUSG_title" date="1265677222" username="MARCO1" version="1.1"><![CDATA[Usergroups Permissions]]></phrase>
<phrase name="settinggroup_MARCO1_HIDEBBCODE_SETTINGS" date="1265211320" username="MARCO1" version="1.1"><![CDATA[MARCO1 Hide BBCODE Settings]]></phrase>
</phrasetype>
</phrases>
<options>
<settinggroup name="MARCO1_HIDEBBCODE_SETTINGS" displayorder="65535">
<setting varname="MARCO1_BBHideon" displayorder="10">
<datatype>free</datatype>
<optioncode>yesno</optioncode>
<defaultvalue>1</defaultvalue>
</setting>
<setting varname="MARCO1_HIDEMESSAGE" displayorder="20">
<datatype>free</datatype>
<optioncode>textarea</optioncode>
<defaultvalue><![CDATA[<img src="images/hide.gif">]]></defaultvalue>
</setting>
<setting varname="MARCO1_HideForumID" displayorder="30">
<datatype>free</datatype>
<defaultvalue>0</defaultvalue>
</setting>
<setting varname="MARCO1_NoHideUSG" displayorder="40">
<datatype>free</datatype>
<defaultvalue>5,6,7</defaultvalue>
</setting>
</settinggroup>
</options>
<helptopics>
</helptopics>
<cronentries>
</cronentries>
<faqentries>
</faqentries>
</product>


4: Save the file
5: Upload again the new file using as always vb product manager and install it.

You can see a sample of a working mod HERE (http://www.xtremecoders.org/forums/f78/rtorrent-installation-utility-253/)

Now all working as it should.

Do it and inform me if is OK...

Xtremecoders.org (http://www.xtremecoders.org)

Blooded
07-19-2010, 06:29 PM
now is not working correctly, when you reply with quote you see the hide, the first code works great for me with no errors :S

xtremecoders
07-19-2010, 07:50 PM
now is not working correctly, when you reply with quote you see the hide, the first code works great for me with no errors :S

On first code you have no Errors but Usergroups ID is not working.
All usergroups have to REPLY to UNHIDE.

For me the 2nd code is Working Great so far.

Blooded
07-19-2010, 08:10 PM
maybe its just me but when i click reply with quote i see the hide and the same when i see the review of the thread :s

fly
07-19-2010, 08:10 PM
On first code you have no Errors but Usergroups ID is not working.
All usergroups have to REPLY to UNHIDE.

For me the 2nd code is Working Great so far.

Does this "fix" also hide it in the archive?

xtremecoders
07-19-2010, 09:18 PM
Does this "fix" also hide it in the archive?

This fix ONLY the Warning: Cannot use a scalar value as an array in [path]/includes/class_postbit.php(314) : eval()'d code on line xxx

Scout24
07-19-2010, 09:28 PM
Does this "fix" also hide it in the archive?

Nope, You must refresh the browser to for unhide.
:mad:

Karabaja
07-26-2010, 11:53 PM
It is working fine here as in not showing if quoted and not showing on print page.
It would be nice to have the content hidden in the archives as well though.
I had to disable Simple view of threads in archive options.

I am actually using it as a substitute for hide links from guests hack. So I've added a custom bb code which wraps the link in Marcos hide tags and adds some styling and disables automatic links parsing.
So maybe that helps some of you when it comes it showing up in quoted replies and on print page.

Bohra
08-01-2010, 01:51 PM
well this mod needs an ajax update feature too

Bohra
08-06-2010, 04:37 AM
is there a way to disable working of hide hack in some forums

demonfatal
08-06-2010, 08:58 AM
maybe its just me but when i click reply with quote i see the hide and the same when i see the review of the thread :s

Same for me, when I click "reply with quote" i see the hide...
Please someone have a fix for that??

metalguy639
09-03-2010, 02:33 AM
SORRY for the MISTAKE.

I was wrong and Problem was appears again.

SO, i found the Problem, and ALL is OK now.



PROBLEM FIXED !!!!!!

Its an array function Syntax Problem and was easy to fix it....

all you have to do is to find and replace inside the script all in_array function with the correct syntax.

Marco uses syntax like ... in_array($vbulletin->userinfo['usergroupid'],$MARCO1_NoHideUSG) , which is wrong and lead to array corruption.

The Correct is in_array($vbulletin->userinfo['usergroupid'], $MARCO1_NoHideUSG, true))

Steps :

1: Open the Product MARCO1 BBCODE Hide vB4.xml using an editor like wordpad
2: Edit -> Select all & Delete
3: Paste the next Script.

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

<product productid="marco1_hidebbcode" active="1">
<title>MARCO1 Hide BBCODE</title>
<description>Hide X Area From your threads With BBCODES</description>
<version>2.0</version>
<url />
<versioncheckurl />
<dependencies>
</dependencies>
<codes>
</codes>
<templates>
</templates>
<stylevardfns>
</stylevardfns>
<stylevars>
</stylevars>
<plugins>
<plugin active="1" executionorder="126">
<title>MARCO1 Hide BBCODE Functions</title>
<hookname>postbit_display_complete</hookname>
<phpcode><![CDATA[if ($_REQUEST['do'] == 'whatever'){
global $vbulletin, $vboptions, $bbuserinfo, $db, $threadid, $postid;
$bbuserinfo = $this->registry->userinfo;
$postid = $_REQUEST['p'];
$hide_call = $_REQUEST['all'];
$hide_read = false;
$hide_replied = '';
$hide_thanked = '';

$hide_replied = $db->query("SELECT COUNT(postid) AS count FROM ". TABLE_PREFIX . "post WHERE userid='$bbuserinfo[userid]' AND visible = 1 AND threadid='$post[threadid]'");
$myreplies = 0;
if($db->num_rows($hide_replied)){
while ($h_post = $db->fetch_array($hide_replied)){
$myreplies += $h_post['count'];
}
$myreplies = vb_number_format($myreplies);
}
if($myreplies > 0){
$hide_read = true;
}

if(!$bbuserinfo[userid]){
$hide_read = false;
}
if( $hide_read == true){
$hide_post = $db->query_first("SELECT pagetext as 'message' FROM ". TABLE_PREFIX ."post WHERE postid='$postid'");
$hide_string = "#\[hide\](.*)\[\/hide\]#siU";
require_once(DIR . '/includes/class_bbcode.php');
$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$hide_post['message'] = $parser->do_parse($hide_post['message'],true);
if(preg_match_all($hide_string, $hide_post['message'], $hide_match)) {
for($i=0; $i<count($hide_match[0]); $i++) {
$hide_replace[$i] ="<fieldset>".$hide_match[1][$i]."</fieldset>";
$hide_post['message']= str_replace($hide_match[0][$i],$hide_replace[$i],$hide_post['message']);
}
}
}
$ajax_on = true;
$output = $hide_post['message'];
echo "$output";
exit;
}]]></phpcode>
</plugin>
<plugin active="1" executionorder="126">
<title>MARCO1 Hide BBCODE Functions (M)</title>
<hookname>postbit_display_complete</hookname>
<phpcode><![CDATA[if ($this->registry->options['MARCO1_BBHideon'] == '1' AND stristr($post['message'],'[hide]')){
global $vbulletin, $vboptions, $bbuserinfo, $db, $threadid, $hide_call, $postid;
$bbuserinfo = $this->registry->userinfo;
$post = $this->post;
$hide_read = false;

$hide_replied = '';


$hide_stop = 0;
if (!empty($this->registry->options['MARCO1_HideForumID'])){
$MARCO1_Forum_NOHIDE = explode(" ",$this->registry->options['MARCO1_HideForumID']);
if(in_array($thread['forumid'], $MARCO1_Forum_NOHIDE, true)){
$post['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', '\\1', $post['message']);
$hide_stop = 1;
}
}
if($post['userid'] == $bbuserinfo['userid'] AND $hide_stop == 0){
$post['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', '<fieldset>\\1</fieldset>', $post['message']);
$hide_stop = 1;
}
if ($hide_stop != 1){
if ($this->registry->options['sid_hide_showadmin'] AND $bbuserinfo[usergroupid]==6){
$hide_read = true;
}elseif ($this->registry->options['sid_hide_showmod'] AND can_moderate($thread['forumid'])){
$hide_read = true;
}
$MARCO1_NoHideUSG = split(',',$vbulletin->options['MARCO1_NoHideUSG']);
if ($vbulletin->options['MARCO1_BBHideon'] AND in_array($vbulletin->userinfo['usergroupid'], $MARCO1_NoHideUSG, true)){
$hide_read = true;
}
}

$hide_img_set = $hide_img_set + 2 ;
$hide_replied = $db->query("SELECT COUNT(postid) AS count FROM ". TABLE_PREFIX . "post WHERE userid='$bbuserinfo[userid]' AND visible = 1 AND threadid='$post[threadid]'");
$myreplies = 0;
if($db->num_rows($hide_replied)){
while ($h_post = $db->fetch_array($hide_replied)){
$myreplies += $h_post['count'];
}
$myreplies = vb_number_format($myreplies);
}
if($myreplies > 0){
$hide_read['userid'] = true;
}

if (!$hide_call){
$hide_call =$post['postid'];
} else {
$hide_call .=",".$post['postid'];
}

if(!$bbuserinfo[userid]){
$hide_read = false;
}
if ($hide_read == true){
$post['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', '<fieldset>\\1</fieldset>', $post['message']);
} else {

$hide_fetch = $vbulletin->options['MARCO1_HIDEMESSAGE'];

$post['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', $hide_fetch, $post['message']);
}
}]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>MARCO1 Print Pages Hide BBCODE Functions</title>
<hookname>printthread_post</hookname>
<phpcode><![CDATA[if($vbulletin->options['MARCO1_BBHideon']AND stristr($post['message'],'[hide]')){
global $vbulletin, $vboptions, $bbuserinfo, $db;
$bbuserinfo = $vbulletin->userinfo;
$hide_read = false;
$hide_stop = 0;
$hide_img_set = 0;
if (!empty($vbulletin->options['MARCO1_HideForumID'])){
$MARCO1_hide_forum_stop = explode(" ",$vbulletin->options['MARCO1_HideForumID']);
if(in_array($threadinfo['forumid'], $MARCO1_hide_forum_stop, true)){
$post['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', '\\1', $post['message']);
$hide_stop = 1;
}
}
if($post['userid'] == $bbuserinfo['userid'] AND $hide_stop == 0){
$post['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', '\\1', $post['message']);
$hide_stop = 1;
}
if ($hide_stop != 1){

$MARCO1_NoHideUSG = split(',',$vbulletin->options['MARCO1_NoHideUSG']);
if ($vbulletin->options['MARCO1_BBHideon'] AND in_array($vbulletin->userinfo['usergroupid'], $MARCO1_NoHideUSG, true)){
$hide_read = true;
}


$hide_img_set = $hide_img_set + 2 ;
$hide_replied = $db->query("SELECT COUNT(postid) AS count FROM ". TABLE_PREFIX . "post WHERE userid='$bbuserinfo[userid]' AND visible = 1 AND threadid='$post[threadid]'");
$myreplies = 0;
if($db->num_rows($hide_replied)){
while ($h_post = $db->fetch_array($hide_replied)){
$myreplies += $h_post['count'];
}
$myreplies = vb_number_format($myreplies);
}
if($myreplies > 0){
$hide_read['userid'] = true;
}


if(!$bbuserinfo[userid]){
$hide_read = false;
}

$hide_img = $vbulletin->options[MARCO1_HIDEMESSAGE];

if($hide_read == true){
$post['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', '\\1', $post['message']);
} else {
$post['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', $hide_img, $post['message']);
}
}
}]]></phpcode>
</plugin>
</plugins>
<phrases>
<phrasetype name="vBulletin Settings" fieldname="vbsettings">
<phrase name="setting_MARCO1_BBHideon_desc" date="1265211380" username="MARCO1" version="1.1"><![CDATA[Choose yes if you want to enable Hide BBCODE]]></phrase>
<phrase name="setting_MARCO1_BBHideon_title" date="1265211380" username="MARCO1" version="1.1"><![CDATA[Enable MARCO1 Hide BBCODE ?]]></phrase>
<phrase name="setting_MARCO1_HIDEMESSAGE_desc" date="1265211504" username="MARCO1" version="1.1"><![CDATA[That's the Hide content message that's will appear when you hide something using the Mod.]]></phrase>
<phrase name="setting_MARCO1_HIDEMESSAGE_title" date="1265211504" username="MARCO1" version="1.1"><![CDATA[What's the Hide Message ?]]></phrase>
<phrase name="setting_MARCO1_HideForumID_desc" date="1265675231" username="MARCO1" version="1.1"><![CDATA[Add Forum ID's of forums that you will not need to use BBCODE Hide Content on it.]]></phrase>
<phrase name="setting_MARCO1_HideForumID_title" date="1265675231" username="MARCO1" version="1.1"><![CDATA[Excluding Forum of BBCODE Hide]]></phrase>
<phrase name="setting_MARCO1_NoHideUSG_desc" date="1265677222" username="MARCO1" version="1.1"><![CDATA[<p>What's the Usergroups that's can view the hidden content without reply ?<br>
<strong>Separate with ","</strong><br>
<strong>By Default I allow Moderators, Admins and Super Moderators to see
hidden content without reply</strong></p>]]></phrase>
<phrase name="setting_MARCO1_NoHideUSG_title" date="1265677222" username="MARCO1" version="1.1"><![CDATA[Usergroups Permissions]]></phrase>
<phrase name="settinggroup_MARCO1_HIDEBBCODE_SETTINGS" date="1265211320" username="MARCO1" version="1.1"><![CDATA[MARCO1 Hide BBCODE Settings]]></phrase>
</phrasetype>
</phrases>
<options>
<settinggroup name="MARCO1_HIDEBBCODE_SETTINGS" displayorder="65535">
<setting varname="MARCO1_BBHideon" displayorder="10">
<datatype>free</datatype>
<optioncode>yesno</optioncode>
<defaultvalue>1</defaultvalue>
</setting>
<setting varname="MARCO1_HIDEMESSAGE" displayorder="20">
<datatype>free</datatype>
<optioncode>textarea</optioncode>
<defaultvalue><![CDATA[<img src="images/hide.gif">]]></defaultvalue>
</setting>
<setting varname="MARCO1_HideForumID" displayorder="30">
<datatype>free</datatype>
<defaultvalue>0</defaultvalue>
</setting>
<setting varname="MARCO1_NoHideUSG" displayorder="40">
<datatype>free</datatype>
<defaultvalue>5,6,7</defaultvalue>
</setting>
</settinggroup>
</options>
<helptopics>
</helptopics>
<cronentries>
</cronentries>
<faqentries>
</faqentries>
</product>


4: Save the file
5: Upload again the new file using as always vb product manager and install it.

You can see a sample of a working mod HERE (http://www.xtremecoders.org/forums/f78/rtorrent-installation-utility-253/)

Now all working as it should.

Do it and inform me if is OK...

Xtremecoders.org (http://www.xtremecoders.org)




Did this now all the tags are unhidden! Help. We had changed the tags to a different word instead of hide before this "fix". Is there a way to get all the hidden content hidden again, there are thousands of threads!

angelimnot
09-03-2010, 10:05 PM
Even after the "fix" we are still getting Warning: Cannot use a scalar value as an array in [path]/includes/class_postbit.php(321) : eval()'d code on line 151

Marco???? Any suggestions? Your add 0 thing doesn't work..and you seem to be ignoring everyone.. you wanted us all to vote for your mods but you don't seem to care about answering questions for those of us that did.. really kinda sad.

emreDZ
09-05-2010, 11:15 AM
Can we integrate this mod with thanks mod? So that users will be able to see the hidden content when they click on thanks button..

iyama
09-19-2010, 05:59 AM
On select page-info the hide text is be seeing.
So why hide if members are look behind the page? :(

Maybe marco must go to update his mods before whe click to vote.

iyama
09-23-2010, 01:29 PM
I have take the re-writed version from vbteam and now i have a good hide solution. ;)

angelimnot
09-23-2010, 11:17 PM
I have take the re-writed version from vbteam and now i have a good hide solution. ;)

What rewrited version?

angelimnot
09-26-2010, 03:29 AM
OK.... here is what we have noticed about this issue... maybe it will help those of you who have a clue about how to fix things ... actually fix it...


1. This error is directly tied into the "hidden" information.. in threads/posts where there is no hidden information this error does not show.

2. This error shows up after *someone* trys to post more than one reply to the thread with the "hidden" information.

3. If this thread with the "hidden" information gets to page 2.. there is no more error....

4. If someone click's "quote" on a thread with 'hidden" information, the "hidden" information is there for them to see.

5. "hidden" information is no longer "hidden" at all when quoted in a blog

6. Once a user gets the scalar error.. the chance of them getting to see the thread with the "hidden" content in it is very slim.. most of the time.. it gives the error on an error page..and they can no longer view the thread at all... sometimes the error shows at the top of the screen and causes the page to load very very very slowly.

I hope this helps!!! Please someone help us fix this!! I've sent a message to Marco asking him to please help us.. or at least tell us he doesn't have a clue what is going wrong.. if he answers.. I will let you all know.

If someone has a working fix to this issue.. and will fix it.. but decides they have to be paid for it.. please contact me at angel@eraps.net and I will discuss reasonable pricing for the fix of the mod.. with some custom things added for my site only.

cloferba
09-29-2010, 01:06 PM
i get this error at the top of the forum:

Warning: Cannot use a scalar value as an array in [path]/includes/class_postbit.php(321) : eval()'d code on line 247

Kolbi
09-29-2010, 06:33 PM
I?m getting a similar failure message:

Warnung: Cannot use a scalar value as an array in [path]/includes/class_postbit.php(321) : eval()'d code (Zeile 294)

please fix...

sunnylikbeckham
10-01-2010, 06:15 PM
hey i want to replace image with some text
how can i do that

MonsterDK
10-04-2010, 09:03 PM
When going to 'What's New' tab, users are able to mouse over the posts and see what is stored behind the hide tags... is there anyway to secure all this up in a future release or have I don't something wrong?

iyama
10-05-2010, 03:15 PM
When going to 'What's New' tab, users are able to mouse over the posts and see what is stored behind the hide tags... is there anyway to secure all this up in a future release or have I don't something wrong?

There is at this moment no 100% working hidden links mod.
It seems that de coders are sleeping or on a long holiday :rolleyes:

SoltanWorld
11-05-2010, 11:12 AM
I want to mark groups to view hidden content but when i enter user groups to view hidden contents without replying to the thread. I got

Warning: Cannot use a scalar value as an array in [path]/includes/class_postbit.php(331) : eval()'d code on line 222

error and i want u to update ur mod immediately.

Kolbi
11-05-2010, 01:28 PM
Nobody has a quick fix for this?

Have the issue on my board, too.

derdiedastim
11-06-2010, 11:09 PM
Need also a fix...

derdiedastim
11-07-2010, 10:29 AM
I fixed it.

You have to replace
$hide_read['userid'] = true;
with
$hide_read = true;
in the plugins "MARCO1 Hide BBCODE Functions (M)" and "MARCO1 Print Pages Hide BBCODE Functions"

In German:
http://tims-stube.de/article/fehler-mit-marco1-bbcode-hide-tags

Kolbi
11-07-2010, 02:45 PM
Thank you :)

//
Dankesch?n!!

SoltanWorld
11-08-2010, 05:54 PM
I fixed it.

You have to replace
$hide_read['userid'] = true;
with
$hide_read = true;
in the plugins "MARCO1 Hide BBCODE Functions (M)" and "MARCO1 Print Pages Hide BBCODE Functions"

In German:
http://tims-stube.de/article/fehler-mit-marco1-bbcode-hide-tags

Thanks alot

iyama
11-09-2010, 09:34 AM
Like this?

}
if($myreplies > 0){
$hide_read = true;
}

dcuellar
11-13-2010, 04:07 PM
Can we add the feature which allows users to only see content after paying x amount of vbcredits?

derdiedastim
11-14-2010, 02:23 PM
Like this?

}
if($myreplies > 0){
$hide_read = true;
}


yes, thats right. In both plugins

barakuda
11-16-2010, 12:19 PM
tahnk you and installed

doopz
11-18-2010, 09:18 AM
Would it be possible to have this mod, but remove the whole reply function?
I only want our moderators to be able to view content, and thus hide the content from our normal users.

I tried setting the 'true' to 'false' inside the code but it still was viewable after the reply.

Am willing to pay for this, as far as I know it's only a matter of _removing_ some code instead of adding.

andreamarucci
11-18-2010, 02:06 PM
Look promising but I've a question. I would like to use this mod not to hide some parts of the post untile the reader reply to the thread but based on usergroup permission.

To be more clear I would like that the members becoming from a specified usergroup can see the hidden text without replying but the unregistered members and the members from others usergroup cannot see it in any case.

Is this possible?

iyama
11-23-2010, 05:50 AM
15 Feb 2010, 12:05

MARCO1;
Then the problem show disappear. this fix is included to the next version.


MARCO1
Coder
Last Activity: Yesterday 19:02

Question: Marco why are you not replying to answers or give a update about this mod?

FReeSTER
11-24-2010, 09:31 PM
Well I got it to work almost perfect in vb4.0.8 p2 but I have the problem that users have to refresh browser for they can see hidden content which sucks and is a pain in the a$$.

Hay Marco can you fix that please

PrivateFTA
11-26-2010, 08:57 PM
very good if you join with thanks button

Silous
11-28-2010, 08:40 AM
I would like to use this mod but I am concerned that "hidden content" may be visible via the Page Source. Is this an issue?

Thanks

FReeSTER
11-28-2010, 05:23 PM
I get this error

Warning: Cannot use a scalar value as an array in [path]/includes/class_postbit.php(331) : eval()'d code on line 131

For some reason this mod is interfering with MARCO1 Image Re-sizer With HIGHSLIDE

How can I fix this?

shahin531
11-30-2010, 06:45 PM
I get this error

Warning: Cannot use a scalar value as an array in [path]/includes/class_postbit.php(331) : eval()'d code on line 131

For some reason this mod is interfering with MARCO1 Image Re-sizer With HIGHSLIDE

How can I fix this?


I have received the same error

How can I fix this?

:confused: