Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools
scratch here and frame bbcodes / plus strike, anchor and goanchor Details »»
scratch here and frame bbcodes / plus strike, anchor and goanchor
Version: 1.00, by Dream Dream is offline
Developer Last Online: Sep 2010 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 06-10-2005 Last Update: Never Installs: 8
Re-useable Code  
No support by the author.

This is a pretty simple html for a bbcode to make text and background the same color, so that a user must highlight it to see.

Add a new bbcode from the admin cp:


Title: Scratch here
Tag: scratch
Replacement:
Code:
<fieldset class="fieldset">
			<legend>Scratch here</legend>
			<table cellpadding="0" cellspacing="3" border="0">
			<tr>
				<td>
		 		<div style="text-color: #000000;background-color: #000000">{param}</div>
				<td>
			<tr>
			</table>
		</fieldset>
Example: [scratch]hidden text[/scratch]
Description: Hidden text that must be selected to see.
Use {option}: no


Save it, and add another:


Title: Scratch here
Tag: scratch
Replacement:
Code:
<fieldset class="fieldset">
			<legend>{option}</legend>
			<table cellpadding="0" cellspacing="3" border="0">
			<tr>
				<td>
		 		<div style="text-color: #000000;background-color: #000000">{param}</div>
				<td>
			<tr>
			</table>
		</fieldset>
Example: [scratch=Title]hidden text[/scratch]
Description: Hidden text that must be selected to see, with optional title.
Use {option}: yes


Now you have [scratch] and [scratch=frame title] to use anywhere in the post.

The [frame] tag uses the same "fieldset" vB uses in alot of places, without the title. Its just some cool formatting members can use instead of quote.


Title: Frame
Tag: frame
Replacement:
Code:
<fieldset class="fieldset">
			<table cellpadding="0" cellspacing="3" border="0">
			<tr>
				<td>
					<div>{param}</div>
				<td>
			<tr>
			</table>
		</fieldset>
Example: [frame]text[/frame]
Description: Wraps text into a quote-like frame.
Use {option}: no


They are pretty simple, hope you enjoy.


================================================== =


Came along a few other ideas, to not create another thread Ill put them with these.

Strike is a line through the text. Got the idea from this thread in vbulletin.com.


Title: Strike
Tag: strike
Replacement:
Code:
<div style="text-decoration: line-through">{param}</div>
Example: [strike]text[/strike]
Description: Strikes the text.
Use {option}: no


Anchor is for leaving an href anchor somewhere in the post, that you can go using the [goanchor]anchor[/goanchor] code.


Title: Anchor
Tag: anchor
Replacement:
Code:
<a name="{param}"></a>&lt;
Example: [anchor]name[/anchor]
Description: Sets an anchor in the text.
Use {option}: no


You can choose the marker for the anchor:


Title: Anchor
Tag: anchor
Replacement:
Code:
<a name="{param}"></a>{option}
Example: [anchor=-]name[/anchor]
Description: Sets an anchor in the text, using optional marker.
Use {option}: yes


The [goanchor] code:


Title: Go to anchor
Tag: goanchor
Replacement:
Code:
<a href="#{option}">{param}</a>
Example: [goanchor=name]text[/goanchor]
Description: Moves the page to an anchor.
Use {option}: yes


They may seem a little weird, but are useful in some cases.

Show Your Support

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

Comments
  #12  
Old 06-20-2005, 04:25 PM
deathemperor's Avatar
deathemperor deathemperor is offline
 
Join Date: Jul 2003
Location: HOL
Posts: 1,270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by yoyoyoyo
these are cool, but they do not fit the definiton of a hack or even a mini-mod. This should probably be moved to "General Modification Discussion"
no it's Modification hints and tips, the best place

nice work, Dream.
Reply With Quote
  #13  
Old 10-05-2005, 05:25 PM
Parker Clack Parker Clack is offline
 
Join Date: Oct 2001
Posts: 351
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dream:

I noticed with 3.5 that the url hyperlink in the text editor doesn't do anything more than put in the url.

Instead of [ url="http://www.yourplace.com" ] title [ /url] it puts in [ url="http://www.yourplace.com ] http://www.yourplace.com [ /url] with no popup window for the title to be put in.

It works fine on this version of vBulletin's text editor. Any ideas?

Thanks for the bbcodes.

Parker
Reply With Quote
  #14  
Old 10-05-2005, 10:52 PM
Dream's Avatar
Dream Dream is offline
 
Join Date: Oct 2001
Posts: 2,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I added this bbcodes in this mod for 3.5, but im not sure I changed anything...

https://vborg.vbsupport.ru/showthrea...threadid=91435
Reply With Quote
 


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 06:45 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.05634 seconds
  • Memory Usage 2,232KB
  • Queries Executed 18 (?)
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
  • (7)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (4)postbit_onlinestatus
  • (4)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