vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   New Posting Features - PNG Editor Buttons (https://vborg.vbsupport.ru/showthread.php?t=165720)

Wayne Luke 12-19-2007 10:00 PM

PNG Editor Buttons
 
As another step forward in usability, here is another simple template edit that uses the FAMFAMFAM Silk Icons for your editor buttons. These icons are in PNG format with alpha transparency so should look good on any background except pure black. Black doesn't work since most of the icons contain a lot of black.


If you have a lot of Internet Explorer 6 users, then you will need to install the following addon as well:
PNG Transparency for Internet Explorer - This will enable Internet Explorer 5.5 and 6.0 to utilize PNG Transparency through DirectX filters. This is not needed for Internet Explorer 7 or higher.



Features
  • PNG icons for Standard and WYSIWYG Editors
  • Cut, Copy and Paste enabled in Editor
  • Extra icons included for additional common BBCodes including superscript, subscript, audio, video, and horizontal rules.
Installation
  1. Upload all images to yourforumpath/images/editor
  2. Merge the style.xml file into each style you want to apply the changes to. This will only work on styles with unedited editor templates. If your editor templates are modified then you will need to revert them to apply this change. To do this follow the steps below.
Merging Styles
  1. Go to Styles & Templates -> Download / UploadStyles.
  2. In the Upload form, browse to the editor_png.xml file
  3. For the Merge Into Style choose the style that these changes should be applied on.
  4. Tell the system to ignore the version number (just in case).
  5. Click Import.
  6. Repeat for each additional style.
The FAMFAMFAM Silk icons are licensed under a Creative Commons Attribution 2.5 License.
Note:
If you install this template modification after upgrading to 3.7.0 RC4 or later, you will need to manually add the security token notification to the three templates. This line of code needs to be added:

Code:

<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
If this is installed before you upgrade to RC4 then vBulletin will automatically add these lines during the upgrade process.

Update:
Updated to 3.7.3 with all code changes between Beta 2 and 3.7.3 applied.

Support:
For support with this template modification, please visit www.rabidbadger.net and post your issues in the Project Tools tracker. Registration is required. All registrations are moderated. To get access as soon as possible, use the same username that you use on this site.

Dan 12-20-2007 05:55 PM

Nice one Wayne :D I'll actually probably use this.

Allan 12-20-2007 05:58 PM

http://www.famfamfam.com/lab/silk/, ythis link don't work.

I like this mod, thanks for your sharing ;)

Barakat 12-20-2007 05:58 PM

wow .....

thanks ........

garala 12-20-2007 05:58 PM

Looks nice Wayne. good job

Dan 12-20-2007 05:59 PM

Quote:

Originally Posted by Allan (Post 1405632)
http://www.famfamfam.com/lab/silk/, ythis link don't work.

I like this mod, thanks for your sharing ;)

Because he used the wrong link =p http://www.famfamfam.com/lab/icons/silk/

Allan 12-20-2007 06:01 PM

Quote:

Originally Posted by Dan (Post 1405637)
Because he used the wrong link =p http://www.famfamfam.com/lab/icons/silk/

Check the link in the thread ;)

Wayne Luke 12-20-2007 06:38 PM

I updated the link in the original post. Sorry.

rizelim 12-20-2007 06:53 PM

Thank you very much !

Elmer 12-21-2007 01:29 AM

Mi editor doesn't show the little square color when you choose a color... Your image shows it but not on my editor... I don't know what could be wrog.
Also your explanation on how to merge the style is wrong...
Quote:

In the Upload form, browse to the monthly_calendar.xml file
it should be editor_png.xml :D

Wayne Luke 12-21-2007 04:03 AM

Could you provide a link to your forum? This should only change the graphics, not mess with any functionality.

Magnumutz 12-21-2007 04:09 AM

Very nice buttons dude, awesome.

C.ooder 12-21-2007 04:24 AM

nice one my dear

thank you very match

Elmer 12-21-2007 06:50 AM

Quote:

Originally Posted by Wayne Luke
Could you provide a link to your forum? This should only change the graphics, not mess with any functionality.

There's no need, I should had expleined it more!

Ok, look at the attachment, the problem is just happening with firefox, and thats because 16x16 are too small so the little color bar gets hidden.

Attachment 73511

Also on firefox the copy, cut and paste doesn't work, so it should be commented or some kind of conditional xP dunno.

serhat_kk 12-21-2007 08:17 AM

works great. thanks

Wayne Luke 12-21-2007 12:16 PM

I'll work on a fix for the line display in Firefox. Cut, Copy and Paste can be turned on in Firefox. Here are the instructions:
http://googlesystem.blogspot.com/200...le-office.html

I'll make that an option and turn this into a proper product. Might take a bit.

BlizzardHQ 12-21-2007 01:01 PM

Hi Wayne,

Any suggestions on where to get a set for a back matted?

/me clicks install

Playa82 12-21-2007 01:49 PM

thanks they great

*installed*

Snake 12-21-2007 02:22 PM

Is this going to look fine on my skin right here?

http://www.metalgearforums.com

MrPHD 12-21-2007 03:27 PM

Installed and nice work.

Wayne Luke 12-21-2007 10:09 PM

Quote:

Originally Posted by BlizzardHQ (Post 1406162)
Hi Wayne,

Any suggestions on where to get a set for a back matted?

You can probably pull icons from any KDE Icon set and get what you need. That is what I used originally. There are a bunch of different styles and colors available at www.kde-look.org. Most of them are GPL or otherwise free-to-use licenses.

Other than that, Shelley_C is making a set of Editor Icons that are very colorful and can probably be matted on black. She might even be able to export them as transparent PNG files. I was going to use them originally but didn't want to have to go to the trouble of getting them matted to my background which is a beige color.

tankaya61 12-22-2007 09:35 AM

installed thank you

can you do this image?

Liquid1ce 12-23-2007 03:23 AM

nice thnx

Mixibiza 12-23-2007 03:27 AM

Nice...

sensimilla 12-23-2007 11:52 AM

I'll use it for sure, thanks alot!

KURTZ 12-25-2007 02:43 PM

superb Wayne!!!!!

* Kurtz clicks INSTALL!

Konstantinos 12-26-2007 12:11 PM

why not using replacement variables instead of this ? also this changed my width of the editor box it make it smaller which i dont like. how to undo or fix?

Wayne Luke 12-26-2007 03:13 PM

Replacement variables are messy for long term use in my opinion. They also add another layer of processing onto template generation.

Not sure what you mean by making it smaller as the overall width is controlled by a stylevar which I didn't change.

gator777 12-29-2007 11:23 AM

Nice hack!

Installed without a hitch, but how would I revert this change should I decided to?

Thanks! :D

Wayne Luke 12-30-2007 01:38 PM

To revert, you should just be able to revert the editor templates that are included using the style manager. There are only three edited templates which are:

editor_toolbar_on
postbit_quickedit
showthread_quickreply

gator777 12-30-2007 05:49 PM

Quote:

Originally Posted by Wayne Luke (Post 1411936)
To revert, you should just be able to revert the editor templates that are included using the style manager. There are only three edited templates which are:

editor_toolbar_on
postbit_quickedit
showthread_quickreply

Thanks Wayne. I truly like this hack. I think you one image though:

misc/progress.png (I just renamed the file from progress.gif to progress.png and it works)

Sarthek 01-06-2008 09:08 AM

Will this work with 3.6.8?

Wayne Luke 01-07-2008 05:19 PM

It works on my 3.6.8 test forum.

Qamdad 01-09-2008 04:45 AM

Great work and more than great but I have on quiestion how to add this tool to the editor toolbar see the image in attachment plz becuase I do not have it in my editor toolbar :confused:

Qamdad 01-09-2008 05:41 AM

error occure when I use editor toolbar the error in disorder or not arrangement like before used also the effect dose not occure to the text see the pic in attachment

Wayne Luke 01-09-2008 12:01 PM

Quote:

Originally Posted by Qamdad (Post 1418172)
Great work and more than great but I have on quiestion how to add this tool to the editor toolbar see the image in attachment plz becuase I do not have it in my editor toolbar :confused:

Those are standard functions if you have the list BBCodes active on your site.

Quote:

Originally Posted by Qamdad (Post 1418186)
error occure when I use editor toolbar the error in disorder or not arrangement like before used also the effect dose not occure to the text see the pic in attachment

This is a cosmetic change it changes nothing about the functionality of the editor. Even the copy, paste, and cut functionality is in the default editor when it ships albeit commented out. If you have problems with the editor functioning then you should post a question at www.vbulletin.com for support.

Qamdad 01-10-2008 02:13 AM

Quote:

Those are standard functions if you have the list BBCodes active on your site.
ok but how can I activate it?

Quote:

This is a cosmetic change it changes nothing about the functionality of the editor. Even the copy, paste, and cut functionality is in the default editor when it ships albeit commented out. If you have problems with the editor functioning then you should post a question at www.vbulletin.com for support.
my editor toolbar work perfect but whaen I added this mod it appeares like in pic above now I uninstall the mod untill I solve this problem!!

DJRavine 01-10-2008 07:58 AM

very nice, very clean...
i love it..
kudoz mate.. keep it up.. ;)

blastup 01-12-2008 11:00 AM

could you make the icons in gif? i dont think it would be a good idea adding extra https://vborg.vbsupport.ru/showthread.php?t=94416 to show transparancy

blastup 01-12-2008 11:01 AM

let me know thanks


All times are GMT. The time now is 02:14 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.01380 seconds
  • Memory Usage 1,818KB
  • 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
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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