Hi... I readed some posts around resolving the installation problems (now both gallery2 and wpg2 3 works good), but I have some questions:
1) I have to put your grid widget inside another widget for xhtml+css reasons.
Ho can I do that?
Is there a:
$object = new wpg2_grid();
echo $object;
or something similar?
2) I want to do a PAGE with the "last published photos" like the widgets you did.
How can I do that? Can someone give me some code?
3) I need to link albums with pages in wordpress like I did before with the wordpress gallery plugin "nextgen gallery", that is really simpler that gallery2 and wpg2 but have a VERY NICE function to "link a page to a gallery".
The function, simply insert a [album=1] string into the page and creates it if it don't exist.
I need to do the same thing to handle MYSELF the page structure inside my wordpress website.
How can I do? Is there a "[album=1]" thing?
Posts: 1378
Hiya Nokao,
1. I am not sure if you can put widgets inside other widgets however you should be able to wrap a div etc around the sidebar grid widget if that is required..
2. You can use a Gallery2 plugin called Dynamic Albums which will generate say for example a recent updates page
3. I am not really that familiar with Nextgen Gallery, can you please describe exactly what this feature did, if you navigate to a page, it took you to a album?
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo
Posts: 7
Hi ozgreg.
And thank you for the answers you gave in other posts, they helped me to install gallery2.
1) My widgets don't do anything, they just use other wordpress code (like wp_list_pages()) to get links and other outputs, but I want to use them for xhtml+css reasons... as you already said, I want to put a <div> around a widget (only one) so I need to include someway your code inside mine.
There MUST be a way... to call a widget from an anywere place of a wordpress theme...
2) Thank you, I will try it ASAP.
3) Yes, putting a "[album=1]" in a page, NextGen gallery is able to show an album instead of that string (the number is of course the ID of the album).
I think that is a really nice system to integrate a gallery inside wordpress...
Actually WPG2 seems more a "integrate wordpress into gallery2 plugin" than a "integrate a gallery inside wordpress"... or maybe I haven't still understood what g2 can do...
My problem actually is that I have a "NextGen button" in the "write page" exactly where a "G2Image button" should be.
Javescript of G2 IS in the page, but I miss the link/button to open the popup.
4) Also, I used a "typical installation" of g2... and it's really heavy.
Can you please say to me of what a "wordpress installation" can be composed of?
My idea, is to use Gallery2 as a backend for my images (it's really complex and well done, compliments) but to use wordpress as a frontend.
Posts: 1378
I suspect the NextGen Button is blocking the inserting of the G2Image button. If you quickly turn off the nextgen plugin you should be able to test this and verify if this correct..
As for point 3, yes you can certainly Create a Wordpress Page, Add an Album and create a link like that.. We have no code to create "pages" like this on the fly, we have one special Gallery2 Output Page and from that page you can certainly directly navigate to an album). This page allows us to output Gallery2 Content.
Nextgen Gallery is basically a simple photo cataloguer for Wordpress, it is not designed as a standalone application. The role of WPG2 is to extending Wordpress to be able to select and link your Gallery2 content so it appears directly into your Wordpress Environment, Gallery2 is always the engine where the content is stored and manipulated, thus Wordpress is not a plugin, Gallery2 is a plugin of Wordpress..
I agree the typical Gallery2 installation is heavy, this is actually being addressed in Gallery2 2.3. One of the largest overheads is the number of language files which will no longer be required in Gallery2 2.3. For me I only use Gallery2 as my photo engine and it is Wordpress that sits as my publicly facing blog. The power of WPG2 is you would not really know that you are navigating to a different photo navigation it looks like it is all within Wordpress..
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo
Posts: 7
Hi, and thanks again for the answer.
Yes, I tryed to turn off nextgen (of course) but the button is already here... I also tryed to remove it phisycally from the server but I suspect it changed my wordpress "backend" files.
Can you help me a little to set up WPG2 like your website? This for me is a good example of integration... not a "www.mysite.com/V/bad_php_addresses.php?other-stuff" but a "www.mysite.com/photos/ourwedding".
That's my target.
Gallery2 & WPG2 are good for me for two reasons:
1) the G2_File that will allow me to handle in a wonderful way images in every post (I'm impressed by the demo) and I need to resolve that damn button problem to use that.
2) The possibility to integrate my blog with a really well-done gallery.
NextGEN is really simple, but it misses some things... I don't have time to improve it's code for now, so I want to try G2 for a little.
For example G2 can import picasa xml (and I need the comments I have inside the xml) and other useful things.
Posts: 1378
The integration is pretty simple some of the already optimise Wordpress Themes can be found Here the lack of G2image button is a concern. I seen a few threads in this forum about the missing button. Can I suggest you have a read, also try a Control F5 in the Wordpress Write Tab as sometimes the Javascript within Tinymce needs a forced refresh to load..
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo
Posts: 7
OMG... I looked one theme finding what I was fearing...
So there is not a real inclusion of Gallery2 in wordpress, it have to be done with themes full of gallery2 php code.
Honestly, I thought there was something better, a LOT of wordpress plugins allow the writer to write something like:
%%WP_CONTACT_FORM%%
And just swap the string with an output that the plugin is able to parse, understand, and change with it's content.
Instead of loosing weeks to implement into MY theme that kind of "integration"... maybe it's better if I spend some time to contact Alex Rabe of NextGen Gallery that does excatly what I need (except for the "last inserted image" function), and help him to improve the plugin.
Infact, with NextGen Gallery you can just write:
[album=1] and see an entire album in a wordpress page, plus the extra text you can easily use.
That is the kind of integration I'm looking for...
I will try one of the themes you showed me but I think I'm not going to use them on my website.
Posts: 492
You can achieve most of the "integrated" look by editing the Gallery2 theme's CSS files, without having to mess with the PHP code (actually smarty code, but very similar). By editing CSS to get the same colors, fonts, etc, you can achieve a very integrated look. The only time you have to mess with the smarty code is if you want to move the actual G2 elements around the page.
I haven't used NextGen Gallery, but it does look like a great basic gallery solution for WordPress. One of the long-term advantage of using Gallery2 instead is that it doesn't lock you into WordPress. From a developers point of view, WordPress is a terrible program run by a dictator who does not take input from the developers. Eventually, another blog software will rise and overtake WordPress as the leading package. (Habari is up and coming and looks promising, although still very basic. It is being developed by a wide community, including several disgruntled WordPress developers.) I use WordPress now and will for some time to come, because from a user's point of view, it's the best basic blog software. But for a more complex site, like a large organization, something like Joomla is better as a CMS.
My point is that if you want to switch to something like Joomla or Habari in the future, if all of you images/movies/etc are stored in Gallery2, you're not locked into WordPress. (Or at least, you'll be able to switch without reloading all of your photos into a new gallery solution within the new CMS.)
Not a sales push for WPG2. We do this as a hobby and don't get any advantage from marketshare. We also realize that setting up WP/G2/WPG2 is not simple if you want a truly integrated customized theme. But if you want the power that comes from the combination, the ability is there. We've tried to make the glue between the two main programs (WPG2) as easy to use as possible, so that you can focus on customizing WP and G2.
Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website
Posts: 7
Thank you for your answer.
Yes, I read about your point of view in other posts... and I completely understand it...
However for me, the situation is different.
For me wordpress is a definitive blogging platform solution, and what maybe will change is Gallery2.
Maybe I'm wrong, but I don't run a commercial website and people don't bookmark my website's pages/galleries, they just click and navigate them, so if I will change platform in the future they will probably neither recognize it. They will just click on the same buttons that will (MAYBE) open different locations of the same website.
What I was trying to say is that I found just... better... a plugin that allow a person to insert images, or complete galleries, devolving to the blogging platform (and so to the gallery plugin) the work of "translating" that into images.
I found it also FASTER... other than more politically correct.
However, my intention wasn't to open a discussion about what you should do cause you can do what you want with your software ;)
My advice is, if you can, to implement the plugin in a "move the widget inside the sidebar" and "activate the plugin" work mode, instead of "use that theme" way.
Actually, I'm unable to use gallery2 cause I have an entirely-developed wordpress theme to change to do that, and doing that isn't WORST if one day I will change either blogging platform OR gallery?
P.S. wich forum software are you using? It's really nice...
Posts: 7
Coming back to my problem (I'd like to test gallery2 more before doing my choice):
I removed completely NextGen gallery (now the link in the "write section" is disappeared) but I still have no G2_File icon in the bar.
I have that JS functions in the page:
g2_toolbar
g2_open
But there is no icon/button/link after the "show advanced toolbar" button.
I'm using wordpress 2.3.1.
What can I do? All the tests in the WPG2 page are "passed".
NextGen gallery's installation is more straight-forward ;)
Posts: 492
The g2_toolbar and g2_open functions are for putting the "WPG2" button into the "Code" tab. Please try clicking on the "Code" tab, and see if the WPG2 button is there. If it is, make sure it's working. If it's there and working, then we've narrowed it down to a TinyMCE problem (the editor for the "Visual" tab).
When in the Visual tab, have you tried reloading/refreshing your browser? Any time you make a change that affects TinyMCE, you have to force a reload of the page to force a reload of the javascript.
If you have already tried the forced reload/refresh, can you load up Firebug and see if you're the Write Posts page is loading wordpress/wp-content/plugins/wpg2/g2image/editor_plugin.js.
Finally, if all of that is working, can you make me a temporary admin account so that I can poke around? You can PM me the username and password.
Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website
Posts: 7
I have firebug... can you explain me better what I have to do? (I never used it for JS)
About the account, is ok for you if I give you an account that can enter only the "write" section?
Posts: 492
(This is over-simplified. You probably don't need this much detail, but for other users reading this later, here are the details.)
For Firebug, click on the green check mark in the lower right hand part of the Firefox window. This will open the Firebug panel.
To check if a particular script is loaded, click on "Script" in the left hand panel. You'll see something like "Inspect | jquery.js" in the line above the "Console HTML CSS Script DOM Net" tabs. Click on the down arrow next to the script name. This will open a context menu of all the scripts loaded. You can select different scripts to examine in the window by clicking on one.
The same concept works for CSS sheets.
Yes, for now, access to the write page is probably enough.
Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website
Posts: 1378
I think you are getting a few facts mixed up here.. If you look at the codebase of the WPG2 plugin you will see a series of API functions that reach into Gallery2 and directly pull content out, as I said, Gallery2 is the image engine we extend Wordpress to be able to reach into Gallery2 to get access to those images and to provide a way to wrap Gallery2 output within a wordpress page however Gallery is still responsible for generating the content of that page..
Capt Kirk has wrapped up our thoughts on Wordpress as a platform, I cannot see a long term path with Wordpress unless some pretty fundamental changes are made.
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo