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)

03-10-2001 06:11 PM

I pasted it in in after <?php

on the second line that is..

isn't that right ?

03-10-2001 06:14 PM

Guess a developer should pop in..

I will see what I can do about putting this into beta 4. Please let me know when it is considered in a finished state so I can modify it as needed to add CP options. This functionality was on our todo list but we didn't have a chance to get around to it so it is on the 2.1 list but this one looks very nice so we can go ahead and use it.

03-10-2001 06:25 PM

If this is going to be included in beta4 I will do some cleaning-up of the code and check some more browsers.

I will also alter the text-prompts system to use a template, for multi-language capabilities.

I'll post back soon.

03-10-2001 06:27 PM

Quote:

Originally posted by DeathLoad
I pasted it in in after <?php

on the second line that is..

isn't that right ?

Yes, that's right... what version of PHP are you using? As you can see, no one else (has reported) this error, so perhaps it's something wierd with your PHP version?

03-10-2001 06:28 PM

It needs to not break any browsers but it is acceptable if it doesn't work for everyone since it is javascript. I tested it with the webTV browser and had no major problems. I would have templateized it but if you want to go ahead :)

03-10-2001 06:36 PM

Okay, question:

When I am templatizing (new word of the day) the prompts, would you prefer to have one template which contains stuff like
Code:

bold_text = "prompt for bold text";
italic_text = prompt for italic text";
etc...

or to have lots of little templates for each prompt? The only problem I can forsee with having multiple templates is the fact that Javascript will freak if there are linebreaks in there.

I won't be adding the rest of the contents of vbcode.js to templates, as it seems like a huge waste of bandwidth to continually download the same static code for every posting. I'll be leaving that as an external javascript file.

03-10-2001 06:52 PM

We don't like lots of little templates unless it is something we really have to do.

Also I think I will add a user option to enable/disable using the Code Buttons and Clickable Smilies. I do forsee some power users being upset at being forced to view the options on their post entries.

03-10-2001 07:03 PM

Splendid.

In that case, I will templatize it like this:
  • vbcode_prompts
    will contain the javascript prompts that appear in the prompt textbox
  • vbcode_buttons
    will contain the main HTML for the buttons and menus
  • vbcode_fontbits
    will contain the <option> bits for the fonts select
  • vbcode_sizebits
    will contain the <option> bits for the font-size select
  • vbcode_colorbits
    will contain the <option> bits for the font-color select
  • vbcode_smilies
    will contain the table for the posting-page smilies
  • vbcode_smiliebits
    will contain the individial smilies for the posting page
  • vbcode_smilies_getmore
    will contain the button to launch the overflow smilies window
  • popup_smilies
    will contain the HTML for the smilies popup window
  • popup_smiliesbits
    will contain the individual smilies for the popup
Will that be acceptable?

03-10-2001 07:14 PM

That sounds fantastic!
I'm really looking forward to that!

03-10-2001 07:42 PM

Awsome hack!

Mines up @ http://forums.nzgn.net.nz/


All times are GMT. The time now is 08:23 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.01216 seconds
  • Memory Usage 1,734KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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