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

Reply
 
Thread Tools
Rcodes or how to insert Html thanks to specific tags - beta2 Details »»
Rcodes or how to insert Html thanks to specific tags - beta2
Version: 1.00, by Akex Akex is offline
Developer Last Online: Jan 2008 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 08-26-2004 Last Update: Never Installs: 3
Is in Beta Stage  
No support by the author.

Beta 2 News :

- Not necessary to use { } anymore. If you want to use them, then you must insert them in the tag definition
- Options added. Defined in the code replacement with {*number} and then replaced in post when viewing it. See the description and teh screenshots for more details.
- Html preview of the rcode when processign post preview
- Keep in mind that if you want to put an url as parameter you MUST untick the parse url option when writting the post.

--------------------------------------------------------------------------



Description :
-------------

This hack allows you to insert somes tags in post which will be then replaced by html output.


How to use it
-------------

- Fill the tag field when adding a new tag. e.g. {test} or test or whatever else.
- Add some options in the code replacement. Options are definied by this way : {*number} e.g. {*1} {*2} ...
- The first option must be {*1} aso ... if the first option is not {*1} then the script will correct it and
order all the other options.
- When writting a post you can insert a rcode tag : if you defined a {htaccess} tag, then put
{htaccess}(options seperated by ,), if it's htaccess (without { } ) then put htaccess(options separated by ,).



Well I will give an exemple :


title : table
tag : table
replacement : <table><tr><td>{*1}</td><td>{*2}</td></tr></table>


In the post I will put : table(option1, option2)
then when viewing the thread this code will be replaced by this : <table><tr><td>option1</td><td>option2</td></tr></table> directly parsed when viewing so no html code will be visible.

Note that you can use in your html replacement code, css classes from your board (alt1, alt2, tcat ... )

Then you can imagine, it will be easy to insert in post some forms, html outputs ...

Well, see the screenshots for more details


Copyright

This script was built by Akex
This hack is NOT to be re-distributed in any way or placed on a website for download without permission.
All copyright notes in the script files must remain unchanged.


NB : for beta purposes, instructions are in a text files, I will do an automatic installation script for next time.


Instructions


Query : 1
Phrases : 13
Files to modify : 4
Files to add : 1


Beta 2 today

Show Your Support

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

Comments
  #12  
Old 08-28-2004, 07:35 AM
HiDeo's Avatar
HiDeo HiDeo is offline
 
Join Date: Oct 2003
Posts: 306
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice idea Milorad !
Reply With Quote
  #13  
Old 08-28-2004, 09:12 AM
Akex Akex is offline
 
Join Date: Jul 2003
Location: France
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Milorad
This is something I've been really looking forward to.

Is it capable of working without the { } ? -- if so, I could kiss you

I wanted something which would allow me to replace certain keywords with links. Like the name of my board, the name of my forums, or other affiliated sites.

So when someone types, say... vBulletin it could link to vbulletin.com
For the moment, you need to put the { }. Well, I will put an option to choose for each tag if you want to use them.

For the future releases :

- rcode using permissions by usergroup
- preview of the html code in admincp (well, basically a link which will open a popup with a preview in order to verify the html code is correct ).
- a single selection menu in the WYSIWYG editor to quick add rcodes

...
Reply With Quote
  #14  
Old 08-28-2004, 09:27 AM
Fargo's Avatar
Fargo Fargo is offline
 
Join Date: Jan 2004
Location: North Dakota
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wow, this is really great! I currently use bbcodes for a few things where this would be a logical replacement to (such as formatted horizontal rules).

One thing I would really love to see extended on this mod is the use of additional parameters. Allowing multiple parameters would allow one to build things like tables with dynamic headings as well as content. It could also extend the possibility of having multiple input form submissions w/default values or what-not (similar to your htaccess shown in one of the screenshots).

The possibilities are endless & would allow safe introduction of HTML into your boards!
Reply With Quote
  #15  
Old 08-28-2004, 09:31 AM
Akex Akex is offline
 
Join Date: Jul 2003
Location: France
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ria.enigma
wow, this is really great! I currently use bbcodes for a few things where this would be a logical replacement to (such as formatted horizontal rules).

One thing I would really love to see extended on this mod is the use of additional parameters. Allowing multiple parameters would allow one to build things like tables with dynamic headings as well as content. It could also extend the possibility of having multiple input form submissions w/default values or what-not (similar to your htaccess shown in one of the screenshots).

The possibilities are endless & would allow safe introduction of HTML into your boards!
Well it's a good idea but don't forget there is only one tag , no closing tag at all, so it's a bit more difficult to insert parameters. Well, I will see. If I put a closing tag, then it would be useless as bbcode could do the same

Your idea will be a problem if it's possible to not use the { }. Well, I will think about it, maybe there is a possibility .
Reply With Quote
  #16  
Old 08-28-2004, 09:45 AM
Fargo's Avatar
Fargo Fargo is offline
 
Join Date: Jan 2004
Location: North Dakota
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

totally understandable, Akex. While I wasnt necessairly thinking about end tags, what I was seeing in my mind would be something like {parm1="value";parm2="value";parm=3="value";etc... } and then these param keywords would be variables within the html.

Either way, this is a great hack and has a lot of potential for use
Reply With Quote
  #17  
Old 08-28-2004, 09:49 AM
Akex Akex is offline
 
Join Date: Jul 2003
Location: France
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ria.enigma
totally understandable, Akex. While I wasnt necessairly thinking about end tags, what I was seeing in my mind would be something like {parm1="value";parm2="value";parm=3="value";etc... } and then these param keywords would be variables within the html.

Either way, this is a great hack and has a lot of potential for use
I have an idea for parameters . I will give it a try.

Maybe something like functions : {tag(parameters ...)} or tag(parameters ...)
Reply With Quote
  #18  
Old 08-28-2004, 09:50 AM
Fargo's Avatar
Fargo Fargo is offline
 
Join Date: Jan 2004
Location: North Dakota
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sweet! thank you, sir
Reply With Quote
  #19  
Old 08-28-2004, 10:13 AM
HiDeo's Avatar
HiDeo HiDeo is offline
 
Join Date: Oct 2003
Posts: 306
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good idea akex

Good luck
Reply With Quote
  #20  
Old 08-28-2004, 02:43 PM
Milorad Milorad is offline
 
Join Date: Mar 2003
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Akex
Your idea will be a problem if it's possible to not use the { }. Well, I will think about it, maybe there is a possibility .
Akex, thanks for including the option not to use the { } -- perhaps you should only allow params when { } is enabled. Seems logical.

This will be amazingly useful for my board which will have a heavy article content. Thank you so much.
Reply With Quote
  #21  
Old 08-28-2004, 04:00 PM
Akex Akex is offline
 
Join Date: Jul 2003
Location: France
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well I removed the extra brackets so it works with anything. I will advice in the next version installation file to put the extra brackets in the tag itself in order to not replace anything ^^.
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 03:01 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04842 seconds
  • Memory Usage 2,313KB
  • Queries Executed 25 (?)
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
  • (4)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
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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