PDA

View Full Version : Please help me to add warning bbcode?


whyiteasy
01-29-2011, 01:19 AM
Please guide me to adding custom warning BBcode code in my forum with only mod and admin permission.

I mean only mod and admin can use the warning BBcode.

Thanks..!!

i want exactly like this
Screenshot below

whyiteasy
01-29-2011, 05:15 PM
no one here ?

Xencored
01-29-2011, 05:19 PM
no one here ?

https://vborg.vbsupport.ru/showthread.php?t=218640

whyiteasy
01-29-2011, 05:27 PM
https://vborg.vbsupport.ru/showthread.php?t=218640


bro this is totally different from the screenshot above..
I want exactly like this.

http://www.vbulletin.com/forum/misc.php?do=bbcode#warning

only i need the Replacement code..

Thanks

your24hourstore
01-29-2011, 06:50 PM
well the bbcode is easy its the mod control only that's going to be hard

whyiteasy
01-29-2011, 09:24 PM
well the bbcode is easy its the mod control only that's going to be hard

what do you mean ?
i don't understand.

add new bbcode option in ACP

Lynne
01-29-2011, 09:44 PM
For the replacement code (taken from their page source):
<div style="border: 1px solid rgb(255, 0, 0); color: rgb(0, 0, 0); background-color: rgb(245, 255, 255); padding: 5px;" class="contentnote"><span style="color: rgb(255, 0, 0); background: none repeat scroll 0% 0% transparent; font-weight: bold;">Warning:</span> {param}</div>

whyiteasy
01-29-2011, 10:30 PM
For the replacement code (taken from their page source):
<div style="border: 1px solid rgb(255, 0, 0); color: rgb(0, 0, 0); background-color: rgb(245, 255, 255); padding: 5px;" class="contentnote"><span style="color: rgb(255, 0, 0); background: none repeat scroll 0% 0% transparent; font-weight: bold;">Warning:</span> {param}</div>

Thank you very much Lynne...
You are really helpful

your24hourstore
01-30-2011, 03:30 PM
Please guide me to adding custom warning BBcode code in my forum with only mod and admin permission.

I mean only mod and admin can use the warning BBcode.

Thanks..!!

i want exactly like this
Screenshot below

how does that allow mod only to use the bbcode lynne?
I dont get it. seems like everyone will be able to use it

your24hourstore
01-30-2011, 03:41 PM
yep the bbcode is correct but, it doesn't stop anyone from using it I think they wanted permissions added somehow to allow only mods and admins to use this bbcode and as you see it allows all

Lynne
01-30-2011, 03:45 PM
how does that allow mod only to use the bbcode lynne?
I dont get it. seems like everyone will be able to use it
He said he wanted exactly like the screen shot, so I posted exactly what was in the screenshot. He's gonna need some mod to make it only mod/admin specific.

your24hourstore
01-30-2011, 03:52 PM
He said he wanted exactly like the screen shot, so I posted exactly what was in the screenshot. He's gonna need some mod to make it only mod/admin specific.

your the bomb lynne, I'm not aware of any mods in here that will do what they want. thanks , at least they have the bbcode now anyway, i would suggest that they just dont use the option to show it, then make it a phrase only the mods and admin know what it is like warning blah blah blah then people wont be able to use it , would be secret until someone tells user like below example

Example: warning blah blah blah..!!
Description: -Empty-
Use Option: No
Button Image: No
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

Lynne
01-30-2011, 04:02 PM
Users will easily figure it out just by quoting. I'd just write a plugin that makes it so the bbcode doesn't get implemented unless a mod/admin uses it. So, it would just show the bbcode if someone else tried to use it. Or, actually just remove all the code if it's not a mod/admin. A couple of ways you can do it.

your24hourstore
01-30-2011, 04:37 PM
Users will easily figure it out just by quoting. I'd just write a plugin that makes it so the bbcode doesn't get implemented unless a mod/admin uses it. So, it would just show the bbcode if someone else tried to use it. Or, actually just remove all the code if it's not a mod/admin. A couple of ways you can do it.
where would the hook location be lynne?

Lynne
01-30-2011, 05:10 PM
I haven't looked into it at all. you'd need a few - one for processing when using the ajax Quick Reply, and others for using the Post Reply and also the New Thread.

g0dfather1984
01-30-2011, 05:39 PM
If I may, this will work with one minor correction:

https://vborg.vbsupport.ru/showthread.php?t=122942

I have tested it out on admin permission then as a regular member.

This being the minor correction:

https://vborg.vbsupport.ru/showpost.php?p=2144591&postcount=306

your24hourstore
01-30-2011, 07:03 PM
If I may, this will work with one minor correction:

https://vborg.vbsupport.ru/showthread.php?t=122942

I have tested it out on admin permission then as a regular member.

This being the minor correction:

https://vborg.vbsupport.ru/showpost.php?p=2144591&postcount=306
so if you run the old mod for 3.8 and just edit the plugin it will work ?

g0dfather1984
01-30-2011, 07:08 PM
so if you run the old mod for 3.8 and just edit the plugin it will work ?

It does for me. I am using the BB Code being talked about in this thread and was looking for a way to make it only for staff as well, when I came across this.

I tried the whole [ warning ] as a regular member and it came out just as that.