vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   [RELEASE vB2.0] Code Buttons and Clickable Smilies (major update) (https://vborg.vbsupport.ru/showthread.php?t=10830)

Kier 03-08-2001 07:04 PM

1 Attachment(s)
Latest version: 1.4 / 12th March 2001

http://kier.3dfrontier.com/vbhacks/vbcode.gif

This major rewrite of my original vbcode buttons hack now supports two code-entering modes, allowing complex nesting of vBcode tags, a limited number of clickable smilies on the posting page and a smiley overflow popup window.

Version 1.2 updates:
New replacement functions for array.push() and array.pop(), which are unsupported in IE versions less than 5.5. Everything should work properly in IE4.0, IE5.0 now. Also added a simple inline help/prompt system.
Version 1.4 updates:
Enhanced mode no longer allows multiple open tags of the same type ({b}{b}{b}xxxxx) etc).
Templateized the whole system for easier addition of more fonts/colours/sizes etc.
Moved all text-prompts to a separate vbcode_language.js file for easy modification for non-english boards
Updated documentation to fix spellchecker problems
Various cosmetic changes, mainly to prevent Nutscrape from messing it up...

Full documentation / installation / upgrade instructions are available here
A basic demo can be seen here.

The templates and code for the hack are attached to this post.

Please post comments, suggestions and questions in this thread.

03-08-2001 09:20 PM

Awsome, really really awsome hack. It just looks plain beautiful. The 404 thing i was talking about is nothing. It was just a bad server.

03-08-2001 09:22 PM

Aah, glad it works for you :)

03-08-2001 10:39 PM

wow, you did that smileys change already!!! you are a complete star. Thanks so much going to install this today.

03-08-2001 10:42 PM

p.s. before i go for this, are there any changes that result from the change to beta3 i just installed?

03-08-2001 10:44 PM

I'm just looking at the Beta3 code right now, but as far as I can see, there are no changes required to this hack for vB2.0b3 compatability :)

[edit]I've just finished upgrading, and the installation instructions for vb2.0beta2 require no modifications for beta3 installation.[/edit]

03-08-2001 11:36 PM

Ok what happened to me:

i) i could only find one place to change the code inside the private template?

ii) one of the template changes required you to add the name=vbcode as the form had apparently not been named. Perhaps add this to instructions

iii) the "enhanced mode" just gives me a javascript error

iv) when i tried to reply to a private message i just get "array". I don't know if this is because of the the vb beta 3 upgrade or because of the hack or beacuse i could not find the second place to edit the tempalte.

Thanks for a great hack getting these few things fixed would be wicked :)

03-08-2001 11:55 PM

i) i could only find one place to change the code inside the private template?

Sorry, that was an error in the documentation. It's calendar.php that requires the double replacement, not private.php

ii) one of the template changes required you to add the name=vbcode as the form had apparently not been named. Perhaps add this to instructions

Done

iii) the "enhanced mode" just gives me a javascript error

That's wierd... I can't reproduce that at all, and I've tested with IE5, IE5.5, NS4.6 and NS6.0... have you got a link to a page where I can see this happening?

iv) when i tried to reply to a private message i just get "array". I don't know if this is because of the the vb beta 3 upgrade or because of the hack or beacuse i could not find the second place to edit the tempalte.

Likewise, I can't reproduce that either. A link would help in the diagnosis.

03-09-2001 12:01 AM

<a href="http://ascifi.com/forums/newreply.php?action=newreply&threadid=2987" target="_blank">http://ascifi.com/forums/newreply.ph...&threadid=2987</a>

is a place to try but you would have to register don't worry if you don't have time at the mo.

The smileys are also not coming in with reply but i think this is probably me not installing it properly. I am not sure how i could have done the "array" thing or the javascript error though.

03-09-2001 12:08 AM

Quote:

Originally posted by chrispadfield

The smileys are also not coming in with reply

Yeah that was me, fixed it. Not sure about the others though?


All times are GMT. The time now is 03:47 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.01047 seconds
  • Memory Usage 1,738KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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