[MOD] Advanced BBCode Box 5.0.0a-6

This forum contains member submitted mods and hacks for IntegraMOD/IM Portal versions

*please read the "Read Me" post*

Moderator: Integra Moderator

Re: [MOD] Advanced BBCode Box 5.0.0a-4

PostAuthor: Tom_S » Tue May 23, 2006 12:27 pm

Now ya tell me! <img>
Last edited by Tom_S on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
<img>

Tom_S
Integra Supporter
Integra Supporter
 
Posts: 62
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 8:23 am
Cash on hand: 0.00

PostAuthor: Jason Sanborn » Tue May 23, 2006 12:43 pm

It's in the docs folder of the ZIP file. ;)
Last edited by Jason Sanborn on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http][img=left]http://images.cbreview.net/banners/cloney2.gif[/img]
Comic Book Review: Comics, Role Playing and More[/url]
User avatar
Jason Sanborn
Sr Integra Member
Sr Integra Member
 
Posts: 436
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Jason Sanborn » Tue May 23, 2006 2:46 pm

The bbcode_box.js file has been updated again. Michaelo has added functionality to the img button wizard for centering an image on a line. I have updated that to work with the img and siteimg tags. Basically, it wraps the img tag with an align=center tag through the wizard.

You can download the updated JS File from the bbcode_box.zip file in the first post.
Last edited by Jason Sanborn on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http][img=left]http://images.cbreview.net/banners/cloney2.gif[/img]
Comic Book Review: Comics, Role Playing and More[/url]
User avatar
Jason Sanborn
Sr Integra Member
Sr Integra Member
 
Posts: 436
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Jason Sanborn » Tue May 23, 2006 8:48 pm

A minor bug was found and fixed in the Gotopost Wizard. Download the updated bbcode_box.js file from the first post to correct the bug.
Last edited by Jason Sanborn on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http][img=left]http://images.cbreview.net/banners/cloney2.gif[/img]
Comic Book Review: Comics, Role Playing and More[/url]
User avatar
Jason Sanborn
Sr Integra Member
Sr Integra Member
 
Posts: 436
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Skywalker » Wed May 24, 2006 12:48 am

"Jason Sanborn";p="7078" wrote:A minor bug was found and fixed in the Gotopost Wizard. Download the updated bbcode_box.js file from the first post to correct the bug.


could you maybe post this and the image fix here?
i've added more than 10 extra bbcodes so i cannot replace the js file, but iff you post the fixes here i can replace the codes.
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

PostAuthor: Dr. Bantham » Wed May 24, 2006 2:02 am

"Skywalker";p="7094" wrote:i've added more than 10 extra bbcodes so i cannot replace the js file, but iff you post the fixes here i can replace the codes.
Could you share these additions with the rest of us as well? They might be of interest and could same us all time and patience. Thanks!
Last edited by Dr. Bantham on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Dr. Bantham
Integra Member
Integra Member
 
Posts: 152
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 6:25 pm
Cash on hand: 0.00

PostAuthor: Skywalker » Wed May 24, 2006 2:23 am

"Dr. Bantham";p="7100" wrote:
"Skywalker";p="7094" wrote:i've added more than 10 extra bbcodes so i cannot replace the js file, but iff you post the fixes here i can replace the codes.
Could you share these additions with the rest of us as well? They might be of interest and could same us all time and patience. Thanks!

i don't have install instructions of them for advanced bbcode box i've just downloaded al the bbcodes i could find on phpbb.com and phpbbhacks.com and added them to my board if you look at the bbcode js file its easy to create the code for them so its just as discribed in the original install instructions (the bbcode.php changes and the rest you edit in bbcode.js and the templates.
its so easy that i don't need to write install instructions.
also you can look at the tutorial Jason Sanborn wrote
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

PostAuthor: Jason Sanborn » Wed May 24, 2006 7:59 am

<img> My apologies. I didn't even think of people who would have modified the JS file. In the future I'll include the JS edits as well.

Here are the latest changes. Unfortunately, I don't have the exact FIND portion in all situations, but it should be fairly straightforward to find.

FIND: img_help = "Insert image:

REPLACE ENTIRE LINE:
Code: Select all
img_help = "Insert image]http://image path[/img] [siteimg(=left|right|center)]AlbumImage#[/siteimg]";


FIND:
Code: Select all
                            ToAdd = "[gotopost="+Prompt1;                             if (Prompt2 != "")                             {                                 ToAdd += ",";                             }  

REPLACE]                             ToAdd = "[gotopost="+Prompt1;                             if (Prompt1 && Prompt2)                             {                                 ToAdd += ",";                             }[/code]
FIND: function BBCimg() {
REPLACE ENTIRE FUNCTION:
Code: Select all
function BBCimg() {     var ToAdd = "";     var imgType = "img";     var Result1 = 0;       var confirmSiteimg = confirm("Do you want to display a site image?nnSite images will display an image thumbnail fromnthe image gallery, linked to the larger image.nnCancel will link to an external image.");       while (Result1 == 0)     {         var Prompt1 = "";         if (confirmSiteimg)         {             Prompt1 = showPrompt("Enter the gallery image number","",1,"You didn't enter the image number.",/^[d]+$/,"Only numbers are allowed.");             imgType = "siteimg"         }         else         {             Prompt1 = showPrompt("Enter the image URL","http]["+imgType+"]"+Prompt1+"[/"+imgType+"][/align:14mnwniz]";                     }                     else                     {                         ToAdd = "["+imgType;                         if (Prompt2 != '')                         {                             ToAdd += "="+Prompt2.toLowerCase();                         }                         ToAdd += "]"+Prompt1+"[/"+imgType+"]";                     }                       Result2 = 1;                 }             }             Result1 = 1;         }     }     PostWrite(ToAdd);}

I apologize for the confusion, but future modifications will be posted as well.
Last edited by Jason Sanborn on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http][img=left]http://images.cbreview.net/banners/cloney2.gif[/img]
Comic Book Review: Comics, Role Playing and More[/url]
User avatar
Jason Sanborn
Sr Integra Member
Sr Integra Member
 
Posts: 436
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Skywalker » Wed May 24, 2006 8:38 am

"Jason Sanborn";p="7144" wrote::oops: My apologies. I didn't even think of people who would have modified the JS file. In the future I'll include the JS edits as well.

I apologize for the confusion, but future modifications will be posted as well.


no problem mate :mrgreen:

i think i have proberly all the bbcodes available on my board exept the youtube video and the other bbcodes of that kind :grin:
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

PostAuthor: Skywalker » Wed May 24, 2006 8:51 am

"Jason Sanborn";p="7144" wrote:FIND:
Code: Select all
                        ToAdd = "[gotopost="+Prompt1;                             if (Prompt2 != "")                             {                                 ToAdd += ",";                             }  


my code is
Code: Select all
                                                ToAdd = "[gotopost="+Prompt1;                         if (Prompt2 != "" )                             {                                 ToAdd += ","+Prompt2;                             }
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

PostAuthor: Jason Sanborn » Wed May 24, 2006 8:54 am

That is the section to change. As I said, it might not be exact. I was going by memory. <img>
Last edited by Jason Sanborn on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http][img=left]http://images.cbreview.net/banners/cloney2.gif[/img]
Comic Book Review: Comics, Role Playing and More[/url]
User avatar
Jason Sanborn
Sr Integra Member
Sr Integra Member
 
Posts: 436
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Skywalker » Wed May 24, 2006 8:58 am

"Jason Sanborn";p="7159" wrote:That is the section to change. As I said, it might not be exact. I was going by memory. <img>


ok just posted this to be sure i do not make mistakes
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

PostAuthor: sanji » Wed May 24, 2006 8:59 pm

First of all - and even if already everyone said so - I'd like to say that this mod is really great. It makes posting of more complex messages much easier. A great addition to IM.

Even more fantastic would be the possibility to control which buttons are displayed from the ACP. But this might be a little difficult to implement.

Therefore, I wonder if there was a simple way to remove some of the buttons for normal users, but leave them for example for moderators or administrators. The function does not need to be blocked for normal users, but if the icone itself would not be displayed, that would be enough.

Is that possible (I mean, not too difficult)?

Thanks,

sanji
Last edited by sanji on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[img]http://www.secret-japan.com/forum/images/banners/fuji%20secret-japan%2088x31.gif[/img] [url=http]Secret Japan[/url] : discover Japan off the beaten tracks

sanji
Sr Integra Member
Sr Integra Member
 
Posts: 291
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 12, 2006 9:18 pm
Cash on hand: 0.00

PostAuthor: Jason Sanborn » Wed May 24, 2006 9:06 pm

"sanji";p="7220" wrote:Even more fantastic would be the possibility to control which buttons are displayed from the ACP. But this might be a little difficult to implement.

It is something I have in mind, but would a complete rewrite. As you said, it would be quite difficult to implement, but I'm hoping I'll be able to start it after this one is working properly. <img>

"sanji";p="7220" wrote:Therefore, I wonder if there was a simple way to remove some of the buttons for normal users, but leave them for example for moderators or administrators. The function does not need to be blocked for normal users, but if the icone itself would not be displayed, that would be enough.

Is that possible (I mean, not too difficult)?

Yes and no. Removing buttons from the box is simple, as you simply need to edit the TPL files to remove whatever buttons you don't want. They are generally contained in their own table cell, so you need only to delete the cell.

Editing the bbcode.tpl and bbcode.php files to prevent the tags from working completely can be a little more complex, as you would need to find the codes you want to remove and comment them out (preferred) or delete them completely. Don't forget to make backups of your files in case something goes wrong and you need to revert back to a working version.
Last edited by Jason Sanborn on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http][img=left]http://images.cbreview.net/banners/cloney2.gif[/img]
Comic Book Review: Comics, Role Playing and More[/url]
User avatar
Jason Sanborn
Sr Integra Member
Sr Integra Member
 
Posts: 436
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Jason Sanborn » Wed May 24, 2006 9:12 pm

Ugh. I need to get to bed, I'm misreading your post. <img>

I don't know if you can make it so that only Mods/Admins can see certain buttons. If there is a switch for that, you could simply encase the cells containing the buttons with the appropriate switches.
Last edited by Jason Sanborn on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http][img=left]http://images.cbreview.net/banners/cloney2.gif[/img]
Comic Book Review: Comics, Role Playing and More[/url]
User avatar
Jason Sanborn
Sr Integra Member
Sr Integra Member
 
Posts: 436
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PreviousNext

Return to Mods/Hacks

Who is online

Registered users: Bing [Bot], Unspecified Bot