vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   BB Code Enhancements - TW7S - [ Information - Tip - Note - Warning ] BBCode (https://vborg.vbsupport.ru/showthread.php?t=235328)

LifesGreatestGift 02-07-2010 10:00 PM

TW7S - [ Information - Tip - Note - Warning ] BBCode
 
1 Attachment(s)
** images removed since the links expired **


Installation
  • Upload files
  • Add custom BBCodes
  • Edit Template (CSS)

Step 1) Go to AdminCP>Custom BB Codes>Add New BB Code>
Step 2) Add the following and save

----------------------------------------
Title Information
BB Code Tag Name info
Replacement
Code:

<div style="margin: 5px 5px;"> <div style="padding-left: 25px; padding-right: 25px;"> <div style=" -moz-border-radius-bottomleft:10px; -moz-border-radius-bottomright:10px; -moz-border-radius-topleft:10px; -moz-border-radius-topright:10px; background:#defee3 none repeat scroll 0 0; border:1px solid #28c25a; margin:5px 10px 0;"> <div style="padding: 0pt 5px; background: #28c25a none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; -moz-border-radius-topleft:6px; -moz-border-radius-topright:6px; "> <font color="#defee3"> <b> <em>Information</em> </b> </font> </div> <table width="100%" border="0"> <tbody> <tr> <td width="5%"> </td> <td width="90%">{param}</td> <td width="5%"> <img alt="" src="./images/TW7S/infonotetipwarn/info.png"/> </td> </tr> </tbody> </table> </div> </div> </div>

Example [info]Hello[/info]

Description Makes information boxes

Use {option} No

Button Image (Optional)
Code:

images/TW7S/infonotetipwarn/info.gif

Remove Tag If Empty Yes

Disable BB Code Within This BB Code No

Disable Smilies Within This BB Code No

Disable Word Wrapping Within This BB Code No
----------------------------------------

----------------------------------------
Title Note
BB Code Tag Name note
Replacement
Code:

<div style="margin: 5px 5px;"> <div style="padding-left: 25px; padding-right: 25px;"> <div style=" -moz-border-radius-bottomleft:10px; -moz-border-radius-bottomright:10px; -moz-border-radius-topleft:10px; -moz-border-radius-topright:10px; background:#e8f3ff none repeat scroll 0 0; border:1px solid #42a1de; margin:5px 10px 0;"> <div style="padding: 0pt 5px; background: #42a1de none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; -moz-border-radius-topleft:6px; -moz-border-radius-topright:6px; "> <font color="#e8f3ff"> <b> <em>NOTE</em> </b> </font> </div> <table width="100%" border="0"> <tbody> <tr> <td width="5%"> </td> <td width="90%">{param}</td> <td width="5%"> <img alt="" src="./images/TW7S/infonotetipwarn/note.png"/> </td> </tr> </tbody> </table> </div> </div> </div>

Example [note]Hello[/note]

Description Makes Note boxes

Use {option} No

Button Image (Optional)
Code:

images/TW7S/infonotetipwarn/note.gif

Remove Tag If Empty Yes

Disable BB Code Within This BB Code No

Disable Smilies Within This BB Code No

Disable Word Wrapping Within This BB Code No
----------------------------------------

----------------------------------------
Title Tip
BB Code Tag Name tip
Replacement
Code:

<div style="margin: 5px 5px;"> <div style="padding-left: 25px; padding-right: 25px;"> <div style=" -moz-border-radius-bottomleft:10px; -moz-border-radius-bottomright:10px; -moz-border-radius-topleft:10px; -moz-border-radius-topright:10px; background:#ffffcc none repeat scroll 0 0; border:1px solid #d5b900; margin:5px 10px 0;"> <div style="padding: 0pt 5px; background: rgb(213, 185, 0) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; -moz-border-radius-topleft:6px; -moz-border-radius-topright:6px; "> <font color="#ffffcc"> <b> <em>Tip</em> </b> </font> </div> <table width="100%" border="0"> <tbody> <tr> <td width="5%"> </td> <td width="90%">{param}</td> <td width="5%"> <img alt="" src="./images/TW7S/infonotetipwarn/tip.png"/> </td> </tr> </tbody> </table> </div> </div> </div>

Example [tip]Hello[/tip]

Description Makes Tip boxes

Use {option} No

Button Image (Optional)
Code:

images/TW7S/infonotetipwarn/tip.gif

Remove Tag If Empty Yes

Disable BB Code Within This BB Code No

Disable Smilies Within This BB Code No

Disable Word Wrapping Within This BB Code No
----------------------------------------

----------------------------------------
Title Warning
BB Code Tag Name warning
Replacement
Code:

<div style="margin: 5px 5px;"> <div style="padding-left: 25px; padding-right: 25px;"> <div style=" -moz-border-radius-bottomleft:10px; -moz-border-radius-bottomright:10px; -moz-border-radius-topleft:10px; -moz-border-radius-topright:10px; background:#fff2f4 none repeat scroll 0 0; border:1px solid #be0000; margin:5px 10px 0;"> <div style="padding: 0pt 5px; background: #be0000 none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; -moz-border-radius-topleft:6px; -moz-border-radius-topright:6px; "> <font color="#fff2f4"> <b> <em>WARNING</em> </b> </font> </div> <table width="100%" border="0"> <tbody> <tr> <td width="5%"> </td> <td width="90%">{param}</td> <td width="5%"> <img alt="" src="./images/TW7S/infonotetipwarn/warn.png"/> </td> </tr> </tbody> </table> </div> </div> </div>

Example [warning]Hello[/warning]

Description Makes Warning boxes

Use {option} No

Button Image (Optional)
Code:

images/TW7S/infonotetipwarn/warn.gif

Remove Tag If Empty Yes

Disable BB Code Within This BB Code No

Disable Smilies Within This BB Code No

Disable Word Wrapping Within This BB Code No
----------------------------------------

Step 3)
Open Template CSS Templates>vbulletin.css

Find:
Code:

.restore td {
        /* Borders and padding to make the table readable. */
        border: {vb:stylevar restore};
        padding: {vb:stylevar restore_padding};
}


Replace with:
Code:

.restore td {
        /* Borders and padding to make the table readable. */
       
        padding: {vb:stylevar restore_padding};
}



Enjoy! :)

Demo http://thewindows7site.com/forum/thr...l=1#post141134

Will only support members who mark mod as installed.

Changelog
1.00 Initial Release
1.2 Solved issues regarding spacing and links

nextslit 02-08-2010 05:33 PM

First one !
Great job , thank you : )

vb4newb 02-08-2010 06:05 PM

Thanks, why does mine have black line border inside the image?

Okay you added step 3 , thanks.

LifesGreatestGift 02-08-2010 06:08 PM

Quote:

Originally Posted by vb4newb (Post 1977640)
Thanks, why does mine have black line border inside the image?

You must perform the template edit I posted in Step 3) ;)

*Click Install

cory_booth 02-08-2010 06:13 PM

Look a lot like:
https://vborg.vbsupport.ru/showthread.php?t=232468

I ain't sayin - just sayin.

LifesGreatestGift 02-08-2010 06:16 PM

Quote:

Originally Posted by cory_booth (Post 1977647)
Look a lot like:
https://vborg.vbsupport.ru/showthread.php?t=232468

I ain't sayin - just sayin.

My mod was inspired by that mod. I have redesigned it, and made it look nicer. (IMO)

Neptun 02-08-2010 06:34 PM

that looks really great - is there a possibilty that only some usergroups can use this ?! for example - admins, super mods ?!

Charlie98902 02-08-2010 08:06 PM

Can we have a tweak to only allow mods/super mods and admins to see and use this?

Cableguy69 02-08-2010 09:08 PM

These are great, I wonder if you might know how to make these behave like [code] tags so I can create an .nfo option same as the [code] tags but with the nice table backgrounds ect. Or do you know were I can edit the existing code tags to have the borders ect.

iguano 02-09-2010 04:24 PM

Quote:

Originally Posted by Charlie98902 (Post 1977744)
Can we have a tweak to only allow mods/super mods and admins to see and use this?

Yes i'd like this too

COL NIL SATIS 02-09-2010 07:15 PM

reserved,this looks very cool

vbkavir 02-09-2010 08:40 PM

Thank you
how to install for3.8?

Charlie98902 02-10-2010 01:08 AM

What I mean is to only allow mods and up to be able to use it and see the bbcode but when used all can see this. Not sure if I was clear the last time I asked if it is possible and another member seems to want this feature too.

ti07shadow 02-10-2010 02:58 AM

Quote:

Originally Posted by cory_booth (Post 1977647)
Look a lot like:
https://vborg.vbsupport.ru/showthread.php?t=232468

I ain't sayin - just sayin.

Yea it does look alot like mine. Oh dang I didnt click "Re-Use" when making the settings for my modfication thread..
(However it loks like its all "your" code and not a reuse of mine, just a basic copy of the idea. so w/e lol)

Please throw me a bone next time guys if your gonna make a(n) "inspired" version, thankyou.

p.s. looks good :)

TheSupportForum 02-10-2010 04:51 AM

please can you add one for download section with a nice button please

ryacine 02-10-2010 05:40 AM

Really, it is a superb set of BB codes. But I join the mates that want these to be exclusively used by mods/admins. How can this be done?
Anyways, thank you very much for these, great great job.

ti07shadow 02-11-2010 02:43 AM

well a way of doing this I would imagine is edit the file that does the bbc and whatnot, and make it so if use is not of a specific user group, then dont include the tags and just continue the text itself.. I dont dont know much about vb's coding to be able to do this sry.

mitch84 02-11-2010 05:21 AM

Quote:

Originally Posted by ryacine (Post 1978896)
Really, it is a superb set of BB codes. But I join the mates that want these to be exclusively used by mods/admins. How can this be done?
Anyways, thank you very much for these, great great job.

I agree with you, this bbcodes are only for admins or modos i think

Neptun 02-11-2010 08:50 AM

i hope the coder will help us soon with this point that only admins or supermods can use this

ti07shadow 02-11-2010 04:24 PM

the issue is, you have the make a mod entirley its own. There was a mod in vb 3.7 that was for custom bbc permissions for usergroups, it seems to work for 4.0, other than the random error thats displayed in the user group editor. You can find this mod in my 3.7 alert bbc thread.

heres the link to the advanced bbc permissions mod. if you can get passed that 1 error in the usergroupd editor where you edit the permissions it should work 100% on vb4

https://vborg.vbsupport.ru/showthrea...de+Permissions

maimaitinhban 02-11-2010 11:38 PM

http://maimaitinhban.com/upanh/image...iovxsla7fc.jpg
problem with Internet Explore 8

Charlie98902 02-12-2010 12:46 PM

This is a posting bbcode yours isn't so how is it an issue?

Charlie98902 02-12-2010 01:54 PM

I need to do 2 things to tweak this to my likings and I hope there is someone here to be able to post the coding to do so.

1. Instead of going from the left to the far right of the post body need to have it stop shortly after the the end of the posting.

2. How to move the gif images from the right to be on the left?

Thanks for the help if anyone posts how to.

Rob F 02-12-2010 06:16 PM

Tagged for now.

Like the others, would love for this to be set so that only Admin/Mods could use it. Would make it an exceptional tool to have then :)

Charlie98902 02-13-2010 02:18 AM

Quote:

Originally Posted by ti07shadow (Post 1980089)
the issue is, you have the make a mod entirley its own. There was a mod in vb 3.7 that was for custom bbc permissions for usergroups, it seems to work for 4.0, other than the random error thats displayed in the user group editor. You can find this mod in my 3.7 alert bbc thread.

heres the link to the advanced bbc permissions mod. if you can get passed that 1 error in the usergroupd editor where you edit the permissions it should work 100% on vb4

https://vborg.vbsupport.ru/showthrea...de+Permissions

Quote:

Originally Posted by Rob F (Post 1980951)
Tagged for now.

Like the others, would love for this to be set so that only Admin/Mods could use it. Would make it an exceptional tool to have then :)

The quote above yours will allow that I tested it on 4.0.1 :)

Rob F 02-13-2010 10:13 AM

Thanks Charlie - it was the mention of the 1 user error that had me shy away from trying it out. Having enough fun with 4.0.1 as it is :D

Might try it later on the test site though :)

Supramania 02-13-2010 04:33 PM

Quote:

Originally Posted by Charlie98902 (Post 1977744)
Can we have a tweak to only allow mods/super mods and admins to see and use this?

Quote:

Originally Posted by iguano (Post 1978404)
Yes i'd like this too

+ 2 here for me - I'd like to let my staff and our subject matter experts post using this, but not the general public.

Any ideas on how to make that happen?

Cableguy69 02-13-2010 10:12 PM

You could always leave the button images and manually type the tags obviously it's not fool proof but if you only tell mods and admins about the tags it would make it harder for members to use them, but like I say not impossible.

ryacine 02-14-2010 09:31 AM

Quote:

Originally Posted by ti07shadow (Post 1980089)
the issue is, you have the make a mod entirley its own. There was a mod in vb 3.7 that was for custom bbc permissions for usergroups, it seems to work for 4.0, other than the random error thats displayed in the user group editor. You can find this mod in my 3.7 alert bbc thread.

heres the link to the advanced bbc permissions mod. if you can get passed that 1 error in the usergroupd editor where you edit the permissions it should work 100% on vb4

https://vborg.vbsupport.ru/showthrea...de+Permissions

Awesome, wonderful, superb. It worked for me, no error till now. Let's hope that this mod keeps working for newer versions of VB. Thank you so much for the tip.

Charlie98902 02-14-2010 02:30 PM

Quote:

Originally Posted by Supramania (Post 1981471)
+ 2 here for me - I'd like to let my staff and our subject matter experts post using this, but not the general public.

Any ideas on how to make that happen?

This works - https://vborg.vbsupport.ru/showthrea...de+Permissions

Neptun 02-14-2010 05:52 PM

but errors ?!

can somebody make a full mode with this functions !? ;)

Vaupell 02-14-2010 07:47 PM

Nice these looks great! :D

Charlie98902 02-14-2010 08:19 PM

Quote:

Originally Posted by Neptun (Post 1982307)
but errors ?!

can somebody make a full mode with this functions !? ;)

What errors? I get no errors.

Brew 02-14-2010 11:14 PM

Quote:

Originally Posted by Neptun (Post 1977663)
that looks really great - is there a possibilty that only some usergroups can use this ?! for example - admins, super mods ?!

I would like this ability too :D

Charlie98902 02-15-2010 12:04 AM

Quote:

Originally Posted by Brew (Post 1982543)
I would like this ability too :D

This works - https://vborg.vbsupport.ru/showthrea...de+Permissions

I get no errors using this mod with the one posted here.

ti07shadow 02-15-2010 12:49 AM

There is 1 error that i have noticed in that script for version 4.x.x and it shows in the usergroup permissions page.

Neptun 02-15-2010 08:27 AM

Quote:

Originally Posted by ti07shadow (Post 1982586)
There is 1 error that i have noticed in that script for version 4.x.x and it shows in the usergroup permissions page.

can you fix this ?

zonaenlinea 02-15-2010 12:36 PM

thank installed prefect

synseal 02-15-2010 01:57 PM

Quote:

Originally Posted by Charlie98902 (Post 1982570)
This works - https://vborg.vbsupport.ru/showthrea...de+Permissions

I get no errors using this mod with the one posted here.

Unfortunately it doesn't work with the https://vborg.vbsupport.ru/showthread.php?t=235271

All the shouts show the BBcode even when there usergroup has permission to use them.

Tagged to see if this mod will have usergroup permissions added.

sisterhood 02-15-2010 02:22 PM

Extra Nice!!!!


All times are GMT. The time now is 06:20 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01423 seconds
  • Memory Usage 1,849KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (10)bbcode_code_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete