Continued WPG2 support on github
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
arirea
Joined: 2008-03-09
Posts: 20 |
![]() |
Thank you for this. The only reason that prevents me from migrating my gallery2 site to gallery3 is this plugin - I make extensive use of <wpg2> tags in blog posts. Is there any hope that this plugin will be ported to gallery3 (and the <wpg2> still maintained)? or... do you recommend an alternate strategy/plugin that would make a migration to gallery3 possible? |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
Why? I just released a "display only" G3 plugin for WP <- No user mapping/logging, no user/admin functionality <- No external embed API I also created a ckeditor plugin out of G2Image ;) -s |
|
arirea
Joined: 2008-03-09
Posts: 20 |
![]() |
Cool Question (for the future, that is): will the new plugin support the same <wpg2> tag in blog posts? I also saw your post RE ckeditor/G2Image - I can't say I understand what that means, but I can ask |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
Quote:
Question (for the future, that is): will the new plugin support the same <wpg2> tag in blog posts? I have no plans to change anything major. Quote:
but I can ask There may be a WPG2 update, only to address those 2 concerns listed above - but there will be no porting to G3 as G3 is a totally different application w/ nothing in common w/ G2 && G3 has no external API. -s |
|
bladerelic
Joined: 2012-11-11
Posts: 2 |
![]() |
how can we get our hands on the experimental template you are using? |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
bladerelic wrote:
how can we get our hands on the experimental template you are using? Are you referring to the G2 theme on my demo? -s |
|
bladerelic
Joined: 2012-11-11
Posts: 2 |
![]() |
yes sir. i love the way it looks |
|
pgxperetz
![]()
Joined: 2012-11-13
Posts: 3 |
![]() |
Quote:
Also G2Image no longer functions w/ the default WYSIWYG editor in WP, so i updated it to work w/ ckeditor Please do! I have the CKEditor plugin working and it's wonderful to have a working visual editor again (I banged my head against a wall for 2-3 hours before finding the text quoted above), but I would love to have G2Image working and the "insert image" button in the visual editor working again. You've already helped so much just by keeping this plugin alive, but please forgive my greed when I ask: How can I get G2Image working with CKEditor and WPG2? |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
G2Image for CKEditor In WP -s |
|
pgxperetz
![]()
Joined: 2012-11-13
Posts: 3 |
![]() |
Your post and the comment underneath it gave me the info (and files) I needed to get it working. Thank you SO much! |
|
pgxperetz
![]()
Joined: 2012-11-13
Posts: 3 |
![]() |
suprsidr wrote:
G2Image for CKEditor In WP CKEditor 4.0 changed how plugins are added to the WordPress toolbar. I was able to get the G2Image icon shortcut back into the toolbar, but when I click it, the image selector is stuck in a small frame (so I have to scroll down to see even the second row of images). EDIT: And, more importantly, the Insert button has disappeared. Have you gotten G2Image to play nice with CKEditor 4.0 yet? |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
I just upgraded to 4.0 last night and did not find it difficult to configure. BTW adding G2Image: // G2Image plugin config.extraPlugins += (config.extraPlugins ? ',G2Image' : 'G2Image' ); CKEDITOR.plugins.addExternal('G2Image', ckeditorSettings.pluginPath + 'plugins/G2Image/'); in the toolbargroup { name: 'insert', items: ['G2Image'] },
-s |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
turns out its on their end. <div style="width: 100%;" class="cke_dialog_ui_vbox cke_dialog_page_contents" id="cke_85_uiElement" role="tabpanel" aria-labelledby="cke_iframe_86" name="iframe" aria-hidden="false"></div> this element has no height. .cke_dialog_page_contents { height: 100% !important; }
-s |
|
Hardtana
![]()
Joined: 2007-05-16
Posts: 45 |
![]() |
Seeing this topic is a huge relief - thank you for having decided this. I was wondering if it would be possible to work with you on templates at any point, to make everything a tiny bit more simple or responsive? I would gladly volunteer for this, after almost six years of using the plugin. My website is now responsive and this is the only part of it that does not function in such fashion. I figured out that many people would be interested. As for the person who wondered about the BBCode - it still works, it's just that you have to grab your album's ID manually. If you still need it, I can guide you through it or make a tutorial with pictures. http://invisible-movement.net <-- gallery powered by Gallery2 and WPG2 |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
When you refer to templates are you referring to G2 theme templates? -s |
|
Hardtana
![]()
Joined: 2007-05-16
Posts: 45 |
![]() |
The general integration of G2 and WordPress, via WPG2. If I knew what to do, I would definitely want to contribute something. http://invisible-movement.net <-- gallery powered by Gallery2 and WPG2 |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
You'd have to be more specific. -s |
|
genbian
Joined: 2009-02-05
Posts: 14 |
![]() |
Great, I just updated an installation and ran into some things that needed taking care of some source code. if( substr( $rule['substitution'], 0, strlen( $wpDirectory ) ) == $wpDirectory ) $newrules[$wpg2rewriterule] = substr( $rule['substitution'], strlen( $wpDirectory ) ); else $newrules[$wpg2rewriterule] = $rule['substitution']; to get some cases of url-rewrite working: see http://gallery.menalto.com/node/80236 2. In some(perhaps all) non English Wordpress Versions newer then 2.? (at least Wordpress 3.5 German) the standard visual editor of Wordpress (TinyMCE) does not show the wpg2-photo-button. And furthermore it shows, in the editor windows, instead of the <wpg>-tags with numbers only the numbers without the surrounding <wpg2>464</wpg2>-tags. See: http://codex.gallery2.org/Integration_talk:WPG2 genbian |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
Thanks for the update. I'll make the suggested changes and commit. I have some other depreciated WP functions to update as well. -s |
|
genbian
Joined: 2009-02-05
Posts: 14 |
![]() |
Unfortunately I have to revoke that the g2image button is there with wpg 3.0.7 and a German WP 3.5 using the stock editor. But that was not enough. Now I'm not sure in what state my wpg2 installation is... I edited so many files... tinyMCE.addI18n({en:{ g2image:{
I installed the Wordpress plugin "TinyMCE Advanced 3.5.8"... perhaps I'll figure out how they integrate additional buttons to the visual editor. I read that tinyMCE changed some methods (like addToLang vs addI18n) perhaps there are other ones too. genbian |
|
genbian
Joined: 2009-02-05
Posts: 14 |
![]() |
Well, Let's see what tomorrow brings. (Perhaps a reinstall?) bye |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
Quote:
"CKEditor for WordPress" 4.0 was a little different - I just upgraded to it the other day /* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * Documentation: * http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html */ CKEDITOR.editorConfig = function(config) { // The minimum editor width, in pixels, when resizing it with the resize handle. config.resize_minWidth = 450; // Protect PHP code tags (<?...?>) so CKEditor will not break them when // switching from Source to WYSIWYG. config.protectedSource.push(/<\?[\s\S]*?\?>/g); // Define toolbars, you can remove or add buttons. // List of all buttons is here: http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.toolbar_Full // WordPress basic toolbar config.toolbar_WordpressBasic = [ { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ], items: [ 'Bold', 'Italic', 'Strike', '-', 'RemoveFormat' ] }, { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ], items: [ 'Blockquote', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight'] }, { name: 'links', items: [ 'Link', 'Unlink' ] }, { name: 'insert', items: [ 'Image','G2Image', 'SpecialChar' ] } ]; // The equivalent of "WordpressFull" toolbar, defined in a way that makes adding buttons from plugins easier. config.toolbarGroups = [ { name: 'document', groups: [ 'mode', 'document', 'doctools' ] }, { name: 'clipboard', groups: [ 'clipboard', 'undo' ] }, { name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ] }, // { name: 'forms' }, '/', { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align' ] }, { name: 'links' }, { name: 'insert', items: ['G2Image'] }, { name: 'wordpress' }, '/', { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] }, { name: 'styles' }, { name: 'colors' }, { name: 'tools' }, { name: 'about' } ]; // Remove buttons in "WordpressFull" toolbar config.WordpressFull_removeButtons = 'Save,NewPage,Preview,Print,Templates,CreateDiv,PageBreak,Subscript,Superscript,Styles'; //IE: remove border of image when is as a link config.extraCss = "a img { border: 0px\\9; }"; // mediaembed plugin // config.extraPlugins += (config.extraPlugins ? ',mediaembed' : 'mediaembed' ); // CKEDITOR.plugins.addExternal('mediaembed', ckeditorSettings.pluginPath + 'plugins/mediaembed/'); // G2Image plugin config.extraPlugins += (config.extraPlugins ? ',G2Image' : 'G2Image' ); CKEDITOR.plugins.addExternal('G2Image', ckeditorSettings.pluginPath + 'plugins/G2Image/'); };
-s |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
Oh, and I don't care about TinyMCE -s |
|
genbian
Joined: 2009-02-05
Posts: 14 |
![]() |
Many thanks for your awesome help suprsidr! I'll describe my setup here for the next time I (or s.o. else) set s.th. up like this: Plugins for Wordpress: Plugins for "CKEditor for WordPress": I'm using WP Sentry for a private blog, so only people logged into the blog can view (certain/most) posts. Because of that I only want those people to see the pictures in my gallery installation, so WPG2 is used to embed the gallery into the blog and to authenticate the users. Yours P.S.: the size of the gallery2 image chooser can also be fixed in the /wp-content/plugins/ckeditor-for-wordpress/ckeditor/ckeditor.js |
|