PDA

View Full Version : New Posting Features - CES [Anything] BB-Code


thincom2000
03-21-2007, 10:00 PM
CES [Anything] BB-Code
Version: 1.1.1

Requires: Advanced BB-Code Permissions (3.0 or higher) (https://vborg.vbsupport.ru/showthread.php?t=122942) - by Abe1

- If you are using Advanced BB-Code Permissions 2.1, you NEED to upgrade to 3.0! Version 2.1 does not create the permissions correctly in 3.6.x.

*** NEWS ***
3/23/2007 - v1.1.0, v1.1.1 released
3/22/2007 - v1.0.0 released

Known Issues:
- none

What It Does:
This can theoretically be an all-purpose BB-Code. This allows you to parse portions of posts as vBulletin templates. For example, you could use <if> conditionals, variables (e.g. $bbuserinfo, $vboptions, $vbphrase), HTML (!).

WARNING:
Because of the potential power of this BB-Code, the Advanced BB-Code Permissions (https://vborg.vbsupport.ru/showthread.php?t=122942) hack is REQUIRED before you install this. Forum members you trust (i.e. Admins and anyone else who can_admin_templates() ) should be the only ones you give permission to use this BB-Code. Make sure you set ALL Usergroups to use Advanced Permissions before installing this.

Mod Features:
- fully automated custom BB-Code install
- uses its own BB-Code handler function
- use <if> conditionals, variables, etc in posted content

Products to Install: 1
Plugins Included: 1
Files to Upload: 0
Files to Edit: 0
New Templates: 0
Template Edits: 0

Live demo: http://www.crackedeggstudios.com/main.php

Examples:
Your username is $bbuserinfo[username].
You are <if condition="!is_member_of($bbuserinfo, 6)">not </if>an admin.
The following does NOT cause an infinite loop:
$post[message]

*** Changelog ***
As of Version 1.1.1:
- updated product dependencies to require newer version

As of Version 1.1.0:
- removed 2 files
- changed hook location
- makes better use of vBulletin stock parser

Subah
03-22-2007, 07:40 PM
Thanks :)

bacanze
03-22-2007, 08:18 PM
Cheers for this, going to install now :)

bchertov
03-23-2007, 04:15 AM
Can you give more code based examples?

bela-meaad
03-23-2007, 07:17 AM
looks nice

thanks

thincom2000
03-24-2007, 01:48 AM
Updated the code structure to be more efficient by changing hook location. Check it out.

Atakan KOC
03-25-2007, 05:47 PM
Thanks....

carmichael1973
05-19-2007, 06:02 AM
Just installed on 3.6.5 and solved so many issues I was having with other hacks. Now that I have a variable to use, I can accomplish what I'm trying to do.

Thanks!

carmichael1973
05-20-2007, 08:35 AM
Just installed on 3.6.5 and solved so many issues I was having with other hacks. Now that I have a variable to use, I can accomplish what I'm trying to do.

Thanks!
Well I guess I spoke too soon. I'm having some parsing issues on pages that contain multiple entries. It will parse the first two fine, but after that it goes south and only parses the first and last.
Let me explain:

If there is only two entries on a page it parses them fine. But when you add more (let's say there are five) it ends up like this:

Newest(5th): Parsed
4th : Not Parsed (just text version of code)
3rd : Not Parsed (just text version of code)
2nd : Not Parsed (just text version of code)
1st : Parsed

Anyone else experienced anything like this?

thincom2000
05-21-2007, 01:15 AM
Strangely enough I am not experiencing this. I will compare the version available here with my current version and get back to you.

We seem to be using the same version of this mod. I'm currently running vBulletin 3.6.7, and there have been some updates to class_bbcode.php since 3.6.5. Maybe there was a bug earlier. Also make sure you are running the latest build of Advanced BB-Code Permissions... this mod says it only requires 3.0, but I am running 4.0 beta, which you can find somewhere in that thread.

If you still experience issues, please clarify your problem. Are all uses of [anything] in the same post? Are they across multiple posts? Are all these posts by the same user / usergroup?

Thanks.

thincom2000
05-22-2007, 02:30 AM
Your post in the other thread for CES Parser Permissions leads me to think that your issue is entirely related to that conflict. Let me know if this issue in fact clears up after you apply the fix mentioned in that thread.

Illustrious
05-25-2007, 06:18 AM
Just wondering, if you have advanced BBCode permissions, do you have to turn them on and disable it? Or is it disabled by default and you have to enable it?

thincom2000
05-26-2007, 11:26 AM
Advanced BB-Code Permissions are disabled for a Usergroup by default. So you need to enable it. I believe new BB-codes are always automatically disabled in the Advanced BB-Code area so you will have to activate it only for the usergroups you want.