Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
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
  #2  
Old 06-11-2005, 03:54 AM
nexialys
Guest
 
Posts: n/a
Default

funny hack.. good one !
Reply With Quote
  #3  
Old 06-11-2005, 04:47 AM
Scooterpig Scooterpig is offline
 
Join Date: Feb 2005
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very cool..hehe..
Reply With Quote
  #4  
Old 06-12-2005, 03:17 AM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice one! hehe thanks.
Reply With Quote
  #5  
Old 06-14-2005, 06:18 PM
SHANE-D-PAIN's Avatar
SHANE-D-PAIN SHANE-D-PAIN is offline
 
Join Date: Sep 2003
Location: Sheffield, Uk
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Simple and nice, well done!
Reply With Quote
  #6  
Old 06-15-2005, 04:22 AM
Dream's Avatar
Dream Dream is offline
 
Join Date: Oct 2001
Posts: 2,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*bump* new ones

glad you liked it
Reply With Quote
  #7  
Old 06-17-2005, 06:45 PM
SHANE-D-PAIN's Avatar
SHANE-D-PAIN SHANE-D-PAIN is offline
 
Join Date: Sep 2003
Location: Sheffield, Uk
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will we be seeing anymore bbcodes from you???

If you release more then i could design the buttons for you so people can have them in there WSIWYG editor.
Reply With Quote
  #8  
Old 06-17-2005, 06:50 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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"
Reply With Quote
  #9  
Old 06-17-2005, 07:48 PM
Dream's Avatar
Dream Dream is offline
 
Join Date: Oct 2001
Posts: 2,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SHANE-D-PAIN
Will we be seeing anymore bbcodes from you???

If you release more then i could design the buttons for you so people can have them in there WSIWYG editor.
dunno, it depends wheter I have more ideas. be my guest to do some images tho

yoyo, I didn't know where to post this, a moderator can move it anywhere.
Reply With Quote
  #10  
Old 06-17-2005, 11:00 PM
Dream's Avatar
Dream Dream is offline
 
Join Date: Oct 2001
Posts: 2,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A bbcodes discussion forum could be useful. I thought there wasnt many topics on bbcodes, but I found a couple in the "general modification discussions" one. Gonna suggest they create one in the suggestions forum.
Reply With Quote
Reply

Thread Tools

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 10:43 AM.


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.08932 seconds
  • Memory Usage 2,290KB
  • Queries Executed 23 (?)
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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (10)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