matstillo
Forum Replies Created
-
Having the same problem with the NexGen thumbnail being added, not the full size.
Any one able to help out?
Forum: Plugins
In reply to: Help needed using Magic Fields 'Related Type'Yes, that works to return the post ID, but I want the post title instead.
Forum: Plugins
In reply to: NextGen Gallery – add a class to the image thumbnails@hyperdude, not sure if you have solved this yet. I haven’t been in the forum for a bit, shame it doesn’t notify you of replies.
Since posting this, NextGen now supports template files which you can store in your own theme folder in a folder called ‘nggallery’, I think. You can then duplicate gallery.php from the plugin ‘view’ folder & make any changes you want. The plugin will always check in your theme folder for any template files before it goes to it’s own.
It’s a lovely way of doing it that I wish more plugins would use.
With opacify, you can just pop the opacify.js script in your theme folder & call it from your header.php, along with jquery.js. You can now add class=”opacify” to the image in your templates to get it to work.
Hope this helps!
Forum: Fixing WordPress
In reply to: [Plugin: WP e-Commerce] ProblemsThank you webalchemist for sounding off exactly how I feel! I’m in the same boat of buying Gold Cart but still wasting HOURS trying to just get standard functions to work. With WP 2.8.4 & wp ecommerce 3.7.4, I cannot get any themes to work, my admin in dashboard is shot to pieces & my whole site is running at a total crawl.
By downgrading to 3.7.1, I can run themes, but then my dashboard admin completely falls apart. The css div nesting in 3.7.1 is making me want to throw up. Oh yeah, and my site is still running so slow its a joke.
This has so much potential, I want to use it, but just keep hitting total dead ends.
Scratch that, it doesn’t work at all!
Just realised that it just generates the gallery within the sidebar when you click on the sidebar link.
Back to the drawing board!
Just a quick update, I have managed to shorten my alternate method a little, by using the album shortcode in the sidebar phpcode widget, using:
<?php echo do_shortcode('[album id=1 template=customtemplate]'); ?>
I have then created the custom album view template, as originally described. This is working, but still not too elegant.
Any better options?
Forum: Fixing WordPress
In reply to: Can’t access WP-Admin – blank white screenNice work The AME Network, that was exactly what was causing this problem for me!
Forum: Fixing WordPress
In reply to: Error when upgrading to WP2.8I’m also confirming that using sbruners replacement .txt for the http.php file has fixed it for me.
I wasn’t getting the error from the lastfm plugin itself. It was in fact a modified verion – lastfm spotify for wordpress, which I think is based on the same plugin anyway. The developer of that modified plugin might not know about the problem yet.
Still, thanks all, especially sbruner who fixed it for me!
Forum: Plugins
In reply to: NextGen Gallery – add a class to the image thumbnailsThat works fine now, thanks a million for the assistance.
As I mentioned earlier, althoug I’m really pleased it works, I was hoping to avoid changing core files for the plugin. Now that I have, how will this affect any future plugin upgrades? I guess I will just have to make the changes again as gallery.php will be overwritten?
I have made a note of what I have done & where, & will just have to try to remember to redo things when I ok any upgrades! What sort of systems do people have for this sort of thing?
Thanks once again!
Forum: Plugins
In reply to: NextGen Gallery – add a class to the image thumbnailsExcellent news! Thanks very much for pointing me in the right directions!
I’ll go give it a try now
Forum: Installing WordPress
In reply to: WordPress Native iPhone AppI get the same, whole site goes down. The phone does pick up straight away that there is a problem with the XML-RPC service, but I’m guessing that it is fairly important to keep the site running as well!
Forum: Fixing WordPress
In reply to: Can you format your blogroll links according to their rating?Just can’t stop commenting on my own posts to add updates, is that bad practice?!
I’m thinking that I should have replaced the list item like this instead? It works like I have it, but looking further, is this better syntax?
$my_links = str_replace('<li>', '<li class=\"\">', $my_links);
Forum: Fixing WordPress
In reply to: Can you format your blogroll links according to their rating?I can’t stop playing with this now I’ve started to figure it out a bit!
I have been trying some basic stuff with str_replace, to get used to what I am doing. I have come up with the following:
<?php $my_links = wp_list_bookmarks('category=87&orderby=rating&show_rating=1&echo=0'); $my_links = str_replace("<li>", "<li class=''>", $my_links); echo $my_links; ?>
which is now adding the class selector to the list item. I am now looking at how to get the pattern to look for the rating number. From googling a little, I think I might be looking at regular expressions? I’m guessing that I would then need to start looking at preg_replace again!
Any help very welcome!
Forum: Fixing WordPress
In reply to: Can you format your blogroll links according to their rating?Thanks again! I think the penny is starting to drop. At first I was a little unsure of what $my_links was referring to, but now I see that what you have suggested to me is exactly what I saw in the other tutorial I came across. His code ended up looking like:
<?php $categories = wp_list_categories('echo=0'); $categories = preg_replace('/title=\"(.*?)\"/','',$categories); echo $categories; ?>
So, (please bear with me, as I really don’t know remotely enough about PHP to know what I am doing!) I am guessing I would be looking at something like:
<?php $my_links = wp_list_bookmarks('orderby=rating&show_rating=1&echo=0'); $my_links = preg_replace('HELP!','HELP!',$my_links); echo $my_links; ?>
I have read up quickly on str_replace & preg_replace & it looks like preg_replace is what I would need to be looking at. I understand I’m trying to run before i walk now with my level of PHP skills. I can grasp roughly what I need to be doing but just don’t have the fundamentals to avoid basic cockups!
As the string is generating:
<li><a href="linkaddress">linktitle</a>ratingnumber</li>
I can see that somehow I am going to have to use a pattern match to pull out the ratingnumber from the string & then re-insert it into a span class? Or could I just use preg_replace to add a class to the list item? It just gets quite complex for me to figure out what I need to find/replace as well as come up with the correct syntax for preg_replace. Out of my depth really!
I don’t really have the time to spend before I launch the new site to crack this myself, as I need to go and do my homework when I get some time. Thanks for taking the time to point me in the right direction!
If any PHP good Samaritan who could reel this off in a few seconds feels like finishing up this one for me, I PROMISE I’ll go & do my homework & learn to do it myself for next time?!
Thanks once again esmi for all the help!
Forum: Fixing WordPress
In reply to: Can you format your blogroll links according to their rating?screwed up that last post, I’ll try again:
OK, I’m probably going to reveal just how little I know about php here, but I gave that a go & while i can get the bookmarks list to display the ratings with show_rating=1, but they are just created as display text outside the bookmark link. If I include echo=0, then it just removes the whole list.
I have just read the following article on a different subject, where someone wants to remove a title attribute from a category list:
https://bavotasan.com/tutorials/remove-the-title-attribute-from-wordpress-category-and-page-lists/
He has created a function to do this. Could the same approach be used to ADD the rating to the list item tag for each bookmark, as a class selector?
I don’t fully understand how he is doing this & I think I would be guessing or trying a ‘keep trying options till it works’ approach, on what could be a dead end anyway. Does it look as though this is a possible solution? If so, I will persevere a bit more!
Thanks!