vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   scratch here and frame bbcodes / plus strike, anchor and goanchor (https://vborg.vbsupport.ru/showthread.php?t=82876)

Dream 06-10-2005 10:00 PM

scratch here and frame bbcodes / plus strike, anchor and goanchor
 
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.

nexialys 06-11-2005 03:54 AM

funny hack.. good one !

Scooterpig 06-11-2005 04:47 AM

Very cool..hehe..:)

yoyoyoyo 06-12-2005 03:17 AM

nice one! hehe thanks.

SHANE-D-PAIN 06-14-2005 06:18 PM

Simple and nice, well done!

Dream 06-15-2005 04:22 AM

*bump* new ones

glad you liked it :)

SHANE-D-PAIN 06-17-2005 06:45 PM

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.

yoyoyoyo 06-17-2005 06:50 PM

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"

Dream 06-17-2005 07:48 PM

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.

Dream 06-17-2005 11:00 PM

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.


All times are GMT. The time now is 11:29 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.01046 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete