![]() |
Well if this next build of mine still has issues for you, then I would probably have to see your code to know for sure.
|
Strangely enough, I still have this problem if I disable my mod and just use the standard About Me. The problem seems to be that when the bbcode_parse_start hook is called, class_bbcode.pl, the $bbfoo variables are undefined because of these lines:
PHP Code:
PHP Code:
I'm puzzled how this could be working for anybody, unless I somehow have an older version of the code? -- hugh |
Because $forumid is set to 'ces_profile', yes you are correct that $dofoo all default to false. However, the permissions for 'ces_profile' are cached before entering $bbcode->parse, so the CES Permissions skips the entire $dofoo = ($checkugp AND $dofoo) branch (see function ces_permissions_customfields to verify).
PHP Code:
PHP Code:
|
Which would be OK, if these lines:
PHP Code:
So the code after that is looking for the wrong cached permissions, not finding them, and executing the wrong branch (the stuff that AND's with the $bbfoo's). EIDT ... changing that 'if' to this seems to fix it. PHP Code:
-- hugh |
Ah thank you. Fixed in next build.
|
No problem. I really like this mod, and I want to make my AboutMe stuff "CES Permissions aware", so I look forward to the next build. If you'd like me to do some pre-release testing, PM me and I'll give you my email.
-- hugh |
This looks great. However, as you have to enable html for all forums - the posting rules will show html 'on' for usergroups that don't have permission to post html. Anyway around this, save hiding posting rules?
|
There is a plugin in the product that should take care of the posting rules. Is this just speculation of yours or can you confirm that the posting rules are not updated?
|
A number of plugins had to be added in order to circumvent the default VM restrictions, and I believe I had to break the "bb-code X is not allowed" error system, but I have made the VM system flexible so that individual BB-Codes can be disabled and simply won't parse (or appear in the editor).
@ cheesegrits, I made some small changes to the forumrules plugin since I sent you the test version. |
Okay, for the users who experience a blank page on member.php, this has been confirmed to be a result of running PHP 4 when there is a call to a function that didn't exist until PHP 5. Until the next update, you can fix this issue by adding the following code under the header of the includes/ces_permissions.php file:
PHP Code:
|
I can confirm that, but I'll double check on my test board.
(just to clarify Admin - post html on, forum post html on - HTML is Allowed Message Other Test Group post html off, forum post html on - HTML is Allowed Message As I say, I shall test this again in around 12 hours time, so semi-confirmed.) |
Quote:
|
Okay, after double checking, I have the hack, similar to vb.org, of posting rules under editor. The default posting rules updates, but this doesn't.
So, something that is not your problem ^^ I think I might disable posting rules under editor anyways. |
What hack are you using? I was thinking of making a Posting Rules hack for VMs, Project Tools, PMs, etc.
|
I was using this one, but I've decided to disable it for now for aesthetic reasons and put my smilies below the editor instead (by same coder)
|
Works awsome but i want add About me seperate then everything else. some what like hypeto.com how they have about me in a seperate table i tried coding something like that so this is my code:
<div class="tborder" id="link_bar"> <ul class="thead list_no_decoration floatcontainer"> About Me </ul> </div> <div class="tborder" id="activity_info"> <div class="alt2 smallfont"> $userinfo[field15] </div> </div> That worked but html isn't working. I tried putting an image in html and it showed exactly what i put in the box. But if i don't put it separate it works. So somthing liek the hypto.com about me Box. with html ENABLED is all i need. Thanks, sorry for my english |
1. Make a template called 'custom_about_me' that contains the code you posted above except replace $userinfo[field15] with $profilefield[value]
2. Create a plugin at member_customfields with execute order 10. PHP Code:
This may require some tweaking on your behalf to get working, but I have faith :rolleyes: |
Thincom your new version is great and works like a charm! :)
I only found 1 thing: the IMG tag in visitor messages still doesnt work after posting and appears as link. |
Quote:
PHP Code:
PHP Code:
|
You're the best thincom! :)
Me and my forum members will love you for this :) Thanks thanks thanks !! :) http://cs1121.vkontakte.ru/u2211389/...x_f657d575.jpg |
That image is freaky.
|
Allow me a little question: Everything seems to work fine now, so whats next? :)
If you have some free time now left and don't know what to do with it, then I would have some great new ideas I think for new projects perhaps if you are interested, some of them are also supported by a bit money. You can let me know about your time with a quick pm if you want. :) |
Quote:
Usernotes work. Profile fields in the postbits for PMs don't parse. Custom Permissions for PMs are ignored, except on preview. ... |
Ah okay, didn't see it sorry:
Visitor Messages: The following errors occurred when this message was submitted 1. BB code yt is not allowed. Were you going to add the possibility of using custom bb-code to the visitor messages? |
Tell me more about this yt BB-Code. Is it created by a plugin? Have you added it to the BB-Code Manager in the AdminCP?
As a general rule, all plugin BB-Codes should also be added to the BB-Code Manager, so that proper editor toolbar buttons can be generated. In the case of permissions that modify the tag list (such as VMs), it is important that all custom tags be accessible by append_custom_tags(). Since I cannot reproduce your issue, this is the only thing I can think of at the moment, unless you forgot to check allow overwrite when upgrading the product. I also have yet to test Announcements or signatures, but according to the current code I doubt sigs should have any issues. I also noticed that forum rules for everything other than posts are incorrect. |
yt is a custom bb-code by me, and I got a lot other custom bb-codes too, always I get this error message. As far as I can see, all vb standard bb-codes works well.
Quote:
Okay, maybe I got 1 hint: My custom bb-codes are embedding flash-objects (swf). Perhaps there's a rule somewhere in VB left to disallow flash in VM's ? |
Check to make sure that the plugin at hook location visitor_messagebit_display_start called "VM Rebuild Tags" exists and is enabled.
|
Quote:
Should it be here: ?? Code:
Product : CES Parser Permissions |
You are missing a number of plugins. It appears that your current version is 2.0.1. Please re-install the product for 2.0.2 and be sure to check "Allow Overwrite."
|
Quote:
I'm irritated in the way, that my custom bb-code (yt) or other bb-codes works in the "about me" block without problems, and yes in forumpostings too. Something still wont let me allow to use it in VM's. I really have no clue. All standard bb-codes works in visitor messages (+ IMG), only custom bb not. Edit: It has nothing to do with embedding flash-objects with bb-code, but another hint: Could it be the Project-Tools? ( bitfield_ces_parser_perms.xml.new ) .. Did you update it too in your 2.0.2 version? |
The only things that were updated in the 2.0.2 version were the product-xml file and includes/ces_permissions.php. It's likely that your php file is correct, otherwise you would be receiving fatal errors. I have tested some custom bb-codes in VMs myself without problems, so this is frustrating for the both of us.
Please PM me with a link to a profile with this issue. |
One question before installing this really interesting hack :
Are BB-codes parsed for social groups messages in 3.7 ? If no : It would be a great addition ;) |
Technically they should be, since they utilize the same hooks as Visitor Messages in a member's profile.
|
Quote:
- Parsing all BB code in social groups is ok (except IMG) - In blog (vbulletin addon) no more parsing at all :( - Signature in pm seems also not parsed I don't take a lot of time too test it in deep. Guess I'm just going to wait for next release. Great idea anyway and I really hope you could finish it :up: Sincerely, |
Quote:
- Unfortunately I do not own a blog license so I can't support it. There are hooks in this mod so users can add their own plugins to make vBlog work. - I don't even know how to enable signatures in PMs. Is this functionality added by a mod? |
Quote:
Side note : I understand that providing feedback is really important for you in order to improve your hack but I have to be honest and I'm sorry to tell you that I made just a quick test without looking closer at your code and without testing on all pages. Sorry again to not help you more, have no time for the moment. |
Where is the option to enable this? I can't find it in Private Messaging Options.
|
You need to add a note in the readme and the first post that this requires PHP 5.1.0 or higher. At least one function that you call (htmspecialchars_decode) requires that version or higher.
edit------------------- Adding this code at the beginning of the ces_permissions.php file allows it to work on earlier versions of PHP: Code:
if (!function_exists("htmlspecialchars_decode")) { |
Quote:
|
Quote:
Quote:
|
All times are GMT. The time now is 12:25 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|