iron77
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: Contact Form 7] File Upload Input not HTML 5 validIf you just want to change the value of size field there’s a parameter you can add in the back-end which will allow you to change size attribute:
[file* file-123 1x]
This one will set size=1, 5x would be size=5 and so on.
(Edited – sorry – this solution won’t help if you want to completely get ridy of the attributes).
Forum: Plugins
In reply to: WP Minify is Broken After Server Movetonykwon, that’s a great help, thanks!
Forum: Hacks
In reply to: index of current widget in sidebarYou can hook into ‘dynamic_sidebar’ action, which runs every time before widget is being viewed in front-end. It can be for example just a function with an incrementing global variable (if you don’t hate them too much :)).
Assuming there might be more than one sidebar, you’ll also need to reset the counter. You can possibly use ‘sidebars_widgets’ action hook for that.
Forum: Requests and Feedback
In reply to: Please move the edit_category_form hookagree
Forum: Fixing WordPress
In reply to: Who is my web host?Marcus, how you access the website? What is the www address?
Btw, dont wanna troll but this topic really doesnt belong to “wp advanced” section, mods you should move it when you got a sec, it’s making a trash here. No offence Marcus 🙂
Forum: Fixing WordPress
In reply to: Need a page navigation barhey
check out the menubar plugin http://wordpress.org/extend/plugins/menubar/Forum: Plugins
In reply to: Too Many Plugins? (500 Internal Errorif “NextGen won’t produce thumbnails due to a 500 internal error” maybe you have GD library off on your server? you can ask your hosting company.
Forum: Plugins
In reply to: Any Suggestions On Locating This Hacked Viagra Link?By the way, you might want to check the way spamlink appeared on your site and cut it off. Most common possibilities are XSS attack by some ‘hole’ in your plugins possibly, by your wordpress admin account or ftp account. I’d personally change wp-admin and ftp passwords after that. If you want to investigate for an XSS attacks you can search access logs on the server.
Forum: Plugins
In reply to: Need a Specific PluginBy the way vtxyzzy, your code should work fine since at least WP 2.2 and even some versions back I believe ;).
Forum: Plugins
In reply to: [Plugin: Contact Form 7] Feature Request – add onclick actionMaybe you can just add that behaviour by an unobstructive JavaScript call which won’t require any changes in plugin core. Should be easy to setup with jQuery.
Forum: Plugins
In reply to: [Plugin: Breadcrumb NavXT] fatal errorTry to give some more info, where this error acutally happens, your PHP version?
Forum: Plugins
In reply to: [Plugin: Breadcrumb NavXT] outside of wordpressI’d say the quickest way would be to do it just by custom page tempalate. If it’s gonna be used only at this particular page, then the shortcode is not necessarily needed I think?
Forum: Plugins
In reply to: [Plugin: Classy wp_list_pages] .last class bug when item has childrenHi guys, soz for my long absence here, I’ll try to help you on this from now on 🙂
Let me show you some test results which I made on the lastest 1.3.2 version of the plugin (running on latest WordPress 2.9.1).
And before that just quickly consider how wp_list_pages might be called. In exmaple:
wp_list_pages('child_of=123&title_li=');
The thing is “title_li=” parameter, which can be set empty (and it a common use at many plugins) or have a value. The main diffrence is, when you put someting there, there’s a “root” [li][ul]..[/ul][/li] around the output itself, and if it’s empty you just get 1st lvl LIs straight. I don’t know if you considered both options but I obverved slightly diffrent bevahiour of your filters when its empty and not.Example 1.
I’m calling wp_list_pages this way:
wp_list_pages('child_of='.$top_page.'&title_li=&echo=0');
..so NO root [li][ul]..[/ul][/li].
Preety simple exmaple, with not much elements, have a look: http://nbm.im/2010-01-18_2107.png
Here’s the same thing with “title_li= ” (set to space)
http://nbm.im/2010-01-18_2127.pngExample 2.
Menu with some more items:
title_li off http://nbm.im/2010-01-18_2132.png
title_li on: http://nbm.im/2010-01-18_2143.pngExmaple 3.
Same as previous, but with an additional without-children page at the end:
title_li off: http://nbm.im/2010-01-18_2153.png
title_li on: http://nbm.im/2010-01-18_2201.pngIf you like to throw un-filtered version of my examples through some kind of regex testing software (my friend was always praised “RegexBuddy”), here’s the wp_list_pages outputs of all examples when plugin turned off
http://nbm.im/classy_list_pages_examples/Just subscribed to this topic so I’ll try to keep in touch – pls tell me if you need any testing etc 🙂
ThxForum: Your WordPress
In reply to: Getting actual page ID after calling the loopAlright, I’ve already found one solution for this problem. I made sth like this in the plugin area:
function nbm_global_page_id() { static $runBefore, $thisID; if (!$runBefore) { $runBefore = true; global $post; $thisID = $post->ID; } else return $thisID; } add_action('wp_head','nbm_global_page_id');as u see it puts page ID to the static variable inside the function when its called the first time (at wp_head) and at all next calls it returns stored there page ID. Please give me your thoughts, what u think about this solution?
Forum: Your WordPress
In reply to: Getting actual page ID after calling the loopThx for the reply. This one looks live an obv idea, unfortunately it don’t resolves the problem :/. The issue is, that the loop is called at sidebar widget. So I need to create this ‘$this-page-id’ variable somewhere earlier. Then if I make it in the one file i.e. header.php and want to call in the other i.e. footer.php, it seems WordPress don’t see it at footer.php. I tried sth like ‘global $this-page-id’ at footer.php but still with no results. Have any idea how to resolve it?