yyeric
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: [Plugin: Add to Any: Share/Bookmark/Email Button] New servicescould you also add Plurk if it is at all possible?
Thanks heapsG’Day Tom,
I have a search function for NGG. It is entirely tag-based. In a input box, you enter some keywords (can be anything) and it looks for match with your wp_ngg_tags table and list matched tags.
If you are a heavy NextGen Gallery user, you probably will sooner or later realise that there are too many tags in tag cloud. Of course, you may limit the number of tags showing, but I don’t want to eliminate any.
I will write something up which simulates 2 level of tags when displaying the tag clouds.
Example.
MLB
MLB-Boston
MLB-Seattle
MLB-Chihcagothe 3 teams will show under MLB as a parent tag.
Don’t know how it will go, but this is something I need and will do my best to try to get it up and running.
Cheers, just some thoughts.
Eric
For those who might be interested. I wrote up a little SQL to bring back “Related Tags” after you are viewing [tags=Whatever] via $_REQUEST[“tags”]
To get a feel of what it is like. Please click through to Canberra Pictorial Image Library. Select on any of the tags listed in the page. Or click directly here on one of the tags: AIS Basketball.
It brings back all the “other” tags which were embedded with “all” images listed in the page.
I will write up a quick tutorial very soon.
Cheers,
Eric
G’Day guys,
It’s all for a better NextGen Gallery to come! Thanks Alex for all the development work.
By the way, if you want tag cloud to be listed in alphabetical order
$results = $wpdb->get_results('SELECT name, slug FROM wp_ngg_tags ORDER by name');tommo77funk you have got some great photography works out there!
will do.G’Day, Is there a demo on your site that we can have a look?
Eric
Thanks mate, will go through the code.
Cheers,
Forum: Fixing WordPress
In reply to: Gallery and Paypalin WP, I think the best combo for online image selling type of thing would be NextGen Gallery and NextGen Gallery Buy Now function from WP E-Commerce.
The 2nd plug-in is a commercial plug-in for $10 USD. I think it’s worth the money, even though it is a very simple code to incorporate this function.
I have it on my site running an image library. Link here.
Forum: Plugins
In reply to: NextGen – Buy Now ButtonsIt’s pretty easy to mod the NextGen Gallery Buy Now plug-in to make it come up as a shopping cart first, instead of going straight to “Buy Now” which means people can only purcahse one thing at a time.
Check this from my site . I also added a “View Cart” function with a bit f mod based on the commercial plug-in from WP E-Commerce’s author.
Cheers,
Eric
Forum: Everything else WordPress
In reply to: Stock picture agency WP nextgen-gallery paymentsG’Day,
This is by no mean a photo agency, but I have a small image library using WP E-Commerce and NextGen Gallery.
Hi Guys,
I have just worked out a simple way to search tags, via the SQL-generated tag cloud. It’s just a couple of SQL queries.
I will work out now to do multiple tag selection via tickboxes. Something like generating [tags=MBL, Boston, 2008, WSC] via multiple-tickboxes selection.
But, ya, it would be great if Alex would be able to implement a tag cloud which works with the WP tag system.
Cheers,
Eric
Put together something to assist perhaps someone wanted to use tag cloud for NGG.
updated the php in 1st post, to make it more “tag cloud”-like..
<?php global $wpdb; $results =$wpdb->get_results( ' SELECT tagid as tagID , count( tagid ) as tagCount , taggs.name as tagName, taggs.slug as tagSlug ' . ' FROM wp_ngg_pic2tags picstags , wp_ngg_tags taggs ' . ' where taggs.id = picstags.tagid ' . ' group BY tagid '); foreach ($results as $row) { echo "<span style=\"font-size:". (1.6*(log((20000*($row->tagCount)))))."px;\"><a href=\"http://www.canberrapictorial.com.au/image?tags=".$row->tagSlug."\">".$row->tagName."</a></span>"; echo " | "; } ?>it’s dumb, but any thoughts as to how it make the cloud not blown up of proportion if it gets too big in numbers?
Example here http://www.canberrapictorial.com.au/library
I have come up with
- auto generate all tags from ngg database
- auto generate images by tags
First, you need to create 2 posts. One for generating all the tags, and one for displaying the images.
Let’s begin.
Below code loops through NGG’s tag database table to extract all tags onto a post. It creates a link for each of the tags generated. Obviously you need to change the address to make it yours. “image” is a category in my WP.
<? global $wpdb; $results = $wpdb->get_results('SELECT name, slug FROM wp_ngg_tags'); foreach ($results as $row) { echo "<a href=http://www.canberrapictorial.com.au/image?tags="; echo $row->slug; echo ">"; echo $row->name; echo "</a> | "; } ?>Second, create another post with below PHP
<?php if ($_REQUEST["tags"] <> "") { echo $_REQUEST["tags"]; echo "[tags="; echo $_REQUEST["tags"]; echo "]"; } else echo "no images found via this tag"; ?>Then you are good to go!.
Have fun.