Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 01-20-2006, 03:58 PM
simalert simalert is offline
 
Join Date: Jan 2006
Location: UK
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarcoH64
Limiting BB-Codes to Usergroups is extremely difficult, and if done correct would add a lot of processing to parsing a post.

Think about the following:
- A BB-code to wich a user don't have permission, is like a non-existant bb-code, ie. just plain text. It should just turn up as plain text.
- BB-Codes are parsed when a post is first time shown (and again if not in post_parsed anymore). This means that parsing the post and evaluating the bb-codes might be done by a member who is in a different usergroup then the original poster. Retrieving the usergroup permissions of the poster might add a lot of processing.
- What if a Staff member edit the original post, and uses a bb-code that only a few usergroups have permission to? Are the permissions of the original poster used when parsing the post? The permissions of that Staff member (what if the original poster edits his post afterwards, can he then suddenly use staff bb-codes)?
..............

Probably 100 more caveats to think of.
Or there's an easier way to handle this.

Instead of handling it as mentioned above, why not just add a check when a post is posted?

vBulletin already supports a minimum character posting rule i.e. if there aren't enough characters in the post it won't let it be posted and instead shows a warning message. I reckon this is the way to tackle it. If the post has a flagged BBCode in it (set in ACP) then it could refuse to post it.

So if someone posted [mod]blah blah blah[/mod] then it would give an error message saying "you aren't permitted to post with that BBCode" or something similar.

That would make more sense, be less resource hungry and shouldn't be as tricky to implement.

Only problem is that I can't do it any takers out there???
Reply With Quote
  #12  
Old 01-28-2006, 07:54 PM
Ben?'s Avatar
Ben? Ben? is offline
 
Join Date: Sep 2005
Location: Remagen, Germany
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm .. is that not the searched hack?
--> https://vborg.vbsupport.ru/showthread.php?t=105160

Please correct if I am wrong ..
Reply With Quote
  #13  
Old 01-28-2006, 08:11 PM
simalert simalert is offline
 
Join Date: Jan 2006
Location: UK
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ben?
Hmm .. is that not the searched hack?
--> https://vborg.vbsupport.ru/showthread.php?t=105160

Please correct if I am wrong ..
No. That hack stops the BBCode being parsed for which ever users you select, it doesn't stop them being able to use certain BBCode tags.

I do have this hack already installed, but it's for a different use and doesn't do any of the above that I was after. I use this hack to stop unregistered users from just visiting the forum and grabbing URLs without registering.
Reply With Quote
  #14  
Old 01-28-2006, 08:13 PM
Ben?'s Avatar
Ben? Ben? is offline
 
Join Date: Sep 2005
Location: Remagen, Germany
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah, okay .. thank you
Reply With Quote
  #15  
Old 04-25-2006, 07:49 PM
Jimandbob Jimandbob is offline
 
Join Date: Apr 2006
Location: Hull
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Darat
We use a table box (via a bbcode) and tell members that they can't use it since it seems no one has been able to (or has the inclination to ) come up with a hack that prevents some usergroups from using some custom bbcodes.

The bbcode we use:

Code:
<table bgcolor=#666699><tr><td bgcolor=#666699><font color=white size=1><b>Posted by {option}:</b></font></td></tr><tr><td bgcolor=white><font color=black size=2>{param}<p></font></td></tr></table>
Could anybody tell me how to use this code or how to insert it please?
Reply With Quote
  #16  
Old 04-26-2006, 04:04 PM
Gaskell's Avatar
Gaskell Gaskell is offline
 
Join Date: Sep 2004
Location: Land of the Prince Bishop
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To the original poster, is this the kind of thing?

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

You can limit who can use it by usergroup using this Modification
Reply With Quote
  #17  
Old 08-13-2006, 01:19 AM
labrocca labrocca is offline
 
Join Date: Jul 2006
Location: Las Vegas
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I use this

Code:
<table width="90%" cellspacing="1" cellpadding="3" border="0" align="center">
	<tr>
       <td style="background-color:#FF0000;" rowspan="2" align="middle" vAlign="center" width="1%">        
<span style="font-weight:bold; font-family:Times New Roman, Verdana; font-size: 32px; color: #FFFF00;" title="">&nbsp;!&nbsp;</span>
      </td>
       <td><span style="color:#FFFF00; line-height:125%; background-color:#FF0000;"><b>This is a moderator message from: {option}</b></span></td>
   </tr>
   <tr>
      <td style="color:#FFFF00; line-height:125%; background-color:#FF0000;">{param}</td>
    </tr> 
</table>
I enable option so that the moderator can also place their name. This is red background with yellow text. Which makes it stand out on ANY Forums. It also uses a large exclamation text font vs an image.
Reply With Quote
  #18  
Old 09-04-2006, 08:01 PM
provedel provedel is offline
 
Join Date: Mar 2005
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by labrocca
I use this

Code:
<table width="90%" cellspacing="1" cellpadding="3" border="0" align="center">
	<tr>
       <td style="background-color:#FF0000;" rowspan="2" align="middle" vAlign="center" width="1%">        
<span style="font-weight:bold; font-family:Times New Roman, Verdana; font-size: 32px; color: #FFFF00;" title="">&nbsp;!&nbsp;</span>
      </td>
       <td><span style="color:#FFFF00; line-height:125%; background-color:#FF0000;"><b>This is a moderator message from: {option}</b></span></td>
   </tr>
   <tr>
      <td style="color:#FFFF00; line-height:125%; background-color:#FF0000;">{param}</td>
    </tr> 
</table>
I enable option so that the moderator can also place their name. This is red background with yellow text. Which makes it stand out on ANY Forums. It also uses a large exclamation text font vs an image.
Can you tell me how to use this code or how to insert it please?

I create a new BBcode, but seens no effect. :hurt:
Reply With Quote
  #19  
Old 10-10-2007, 09:08 PM
powerful_rogue powerful_rogue is offline
 
Join Date: Jan 2007
Location: Kent
Posts: 603
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by labrocca View Post
I use this

Code:
<table width="90%" cellspacing="1" cellpadding="3" border="0" align="center">
	<tr>
       <td style="background-color:#FF0000;" rowspan="2" align="middle" vAlign="center" width="1%">        
<span style="font-weight:bold; font-family:Times New Roman, Verdana; font-size: 32px; color: #FFFF00;" title="">&nbsp;!&nbsp;</span>
      </td>
       <td><span style="color:#FFFF00; line-height:125%; background-color:#FF0000;"><b>This is a moderator message from: {option}</b></span></td>
   </tr>
   <tr>
      <td style="color:#FFFF00; line-height:125%; background-color:#FF0000;">{param}</td>
    </tr> 
</table>
I enable option so that the moderator can also place their name. This is red background with yellow text. Which makes it stand out on ANY Forums. It also uses a large exclamation text font vs an image.
Theres a BB code somewhere which allows you to enter your name eg:

[mod=Powerful_Rogue] No swearing [/mod]

Can anyone point me in the right direction? Ive searched high a low!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:53 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.07191 seconds
  • Memory Usage 2,257KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete