Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by VirtueTech VirtueTech is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 12-18-2001 Last Update: Never Installs: 0
 
No support by the author.

Hello,

Can someone please let me know how I can disallow the use of the SIZE vb tags in my forums signatures.

Any information would be helpful.

Thans.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 12-18-2001, 02:03 AM
-.valkyre's Avatar
-.valkyre -.valkyre is offline
 
Join Date: Oct 2001
Location: California
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I may come across as an idiot here, but..

Remove the [SIZE] vBCode.

Or try this: In individual vbCodes click on edit and click NO on the option part.
Reply With Quote
  #3  
Old 12-18-2001, 02:41 AM
VirtueTech VirtueTech is offline
 
Join Date: Oct 2001
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where would I edit ...in what script...to have it say if the SIZE tags option is greater than 2 to make the option equal 2

I just want to eliminate the large fonts and I want to change the current posts on the forums large fonts to size 2.

What script do I edit?
Reply With Quote
  #4  
Old 12-18-2001, 02:46 AM
bira's Avatar
bira bira is offline
 
Join Date: Nov 2001
Posts: 387
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think there are two ways you could do it, VT:

1) to strip it off all signatures, including existing ones, open admin/functions.php and find:

Code:
$post[signature]=bbcodeparse($post[signature],0,$allowsmilies);
Before that add:

Code:
$post[signature] = preg_replace("/(\[)(size)(=)(['\"]?)([0-9]*)(\])(.*)(\[\/size)(\])/siU", "\\7", $post[signature]);

2) to strip it off all newly added or edited sigs, open members.php AND register.php and find in both:

Code:
  $signature=censortext($signature);
Before or after it, add:

Code:
$signature =  preg_replace("/(\[)(size)(=)(['\"]?)([0-9]*)(\])(.*)(\[\/size)(\])/siU", "\\7", $signature);
Cheers,

Bira
Reply With Quote
  #5  
Old 12-18-2001, 03:03 AM
VirtueTech VirtueTech is offline
 
Join Date: Oct 2001
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How would I set that code so that it allows SIZE=1 but nothing higher than 2

So like:
If SIZE>=2 then SIZE=2

Thanks Bira
Reply With Quote
  #6  
Old 12-18-2001, 04:16 AM
bira's Avatar
bira bira is offline
 
Join Date: Nov 2001
Posts: 387
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm stuck on that one

I thought it would be something like

Code:
$signature = preg_replace("/(\[)(size)(=)(['\"]?)([0-9]*)(\])/siU", "[size=".iif('\\5'==1, 1, 2)."]", $signature);
But the expression '\\5'==1 always returns false, even when it is 1. \\5 is correct. Don't know why it won't work. regexp is so bloody hard. Maybe someone more advanced than me can say what would be the right way.
Reply With Quote
  #7  
Old 02-01-2002, 06:11 PM
heidit's Avatar
heidit heidit is offline
 
Join Date: Jan 2002
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Erm, I may be completely offbase, and I've never explained a "hack" before (I mostly just read them, then ask my tech people if they can do them) but yesterday I actually changed the sizes in our sigs.

All I did was go into postbit_signature in the postbit templates and replace what was there with this:

<smallfont>__________________<br>
$post[signature]</smallfont>

Did I mess something up? It seems to work nicely - all our sigs are tiny now.
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 08:33 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.03830 seconds
  • Memory Usage 2,259KB
  • Queries Executed 22 (?)
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
  • (5)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete