The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
if() vBCode - Private Post Text Hack Details »» | |||||||||||||||||||||||||
Important News: This hack is now out of beta testing and is now in alpha.
What this hack does, is add a if() vB Code where you can enter formulas that if true, the user will be able to see the private text in the post, if it shows up false, its hidden from the users sight. This hack doesnt use any queries at all. Also the if() vB Code also supports other vB Codes inside of it. The formulas can contain both functions and varibles such as $bbuerinfo[userid] or strtolower(), you can add a list of allowed functions to it and all others functions that arent allowed are removed from the code to prevent security issues. All security issues and exploits have now been fixed. This hack has settings where you can allow all users to use it or just allow admins to use it. Theres also a setting that you can change to allow admins to see all the private text in posts even if they normaly cant see it. The code part of the vB Code ( if(code) ) uses the same syntax as php script, so if you wanna check if a varible equals something, you must use == instead of =, also all varibles from $bbuserinfo also have there own varible, what i mean by this is that $bbuserinfo[username] is also $bbusername and $bbuserinfo[posts] is also $bbposts, with these specail varibles, it is optional to add a $ in front of it, so $bbusername and bbusername will both work. Also theres a feature where admins can see the forumula that was used next to the text "Private Text:", it is shown is (code used here), other members will just see "Private Text:". Examples of the If() vB Code: [if($bbuserid>0)]Thank you for joining![/if] [if(bbuserid>0)]Thank you for joining![/if] [if($bbusername=="Admin")]Whats up?[/if] [if(bbusername=="Admin")]Whats up?[/if] [if($ourtimenow>=$post[dateline]+((7*24)*60*60))]Text To Display 1 week from this post[/if] [if(bbuserid>0 and bbposts>100)]Keep up the posting [/if] [if(bbusergroupid==6 or bbusergroupid==7)]Important Text[/if] Important: New Update as of March 16th I recoded the doif function and fixed it up and added editable options for and also a bug that Nuclion encountered: Admin Only Admin can read all private text Allowable functions that you can use Certain accounts that can see all the private texts Admins allowed to use all php functions https://vborg.vbsupport.ru/showthrea...167#post367167 The text below already contains the fix. Important: New Update as of February 8th I fixed a bug, that when you search your forums, the if() tag shows even if you cant view it. https://vborg.vbsupport.ru/showthrea...808#post351808 The text below already contains the fix. Also I hope you enjoy the hack, If you have any problems, ideas, or just feedback, feel free to post. Screenshots: Heres a screenshot of a test post I did with the if() vB Code, the user who made the post can see all the private text in the post by default. https://vborg.vbsupport.ru/attachmen...&postid=350154 (Note: The private text table can esily be edited in the "privatetext_style" style in headinclude after the hack is installed: Heres a screen shot of the same post but after I logged out, so this is what the guest would see. https://vborg.vbsupport.ru/attachmen...&postid=350155 I only have one request if you install this hack, please click Install, Thank You. Show Your Support
|
Comments |
#52
|
|||
|
|||
Its been a while, but I fixed the bug that Nuclion had and also added a few more options to it, I also updated the text file with the fix, Ill also post the code below so you dont have to redownload the text. Just replace your old doif function with:
PHP Code:
|
#53
|
||||
|
||||
Great Slynderdale, i hope it is fixed now
I saw this line: $users_view_all = array('1'); //Users that can view all the text What does this mean? Is 1 = all users can view and 0 is only the reciever can see it?? |
#54
|
|||
|
|||
Quote:
The array of userid's that can view all the private text's on the forum, in case you only want to see all the text instead of all the admins. |
#55
|
||||
|
||||
i found a problem....
when i use quote than i can see anything if the rule set someone can see...so how to solve that?? thankz |
#56
|
|||
|
|||
Slynderdale - just looking at the installation for this hack. In the first part it asks yiou to find some text in functions.php, but then doesn't seem to suggest to modify / replace anything, it just asks to find something else.
Can you confirm please. Thx. |
#57
|
|||
|
|||
Quote:
|
#58
|
|||
|
|||
Sorry about that, fixed.
|
#59
|
|||
|
|||
I was testing this:
[if($ourtimenow>=$post[dateline]+((7*24)*60*60))]Text To Display 1 week from this post[/if] that makes the showthread.php for that post just a white page. how would i also enable this for only supermods, admins and mod? and just not users? |
#60
|
|||
|
|||
Thanks a lot for making this hack! Works very good! I can see a lot of work went into it and I give mad props to ya!
It was exactly what I was looking for. It's almost 100% secure. Only flaw I can find in it is the fact that if a member who should not be able to see the stuff was to click on "Reply to Thread" They could see all of the info... even the admin portion showing the code. They just need to scroll down to look at the previous threads under the reply box. Not a big deal though... that feature can be easily shut off (which I'm shutting mine off now.) Thanx a lot! |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|