f00bar
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Permalink Structures@b4db0y if you go to Settings and General you will see two boxes which contain the URLs for your blog. Check to see what is there – if the “www” is included that is where it will always redirect.
Forum: Fixing WordPress
In reply to: printf() [function.printf] warning on searchThis is a SQL problem. It’s because it uses the % sign in a different way. The only way to search for a literal “%” is to double it. I.e. search for %% instead and it will return any comment containing %.
Hope this helps if you didn’t already figure it out.
Forum: Requests and Feedback
In reply to: User RegistratiomWould this be a kind of IP address banning system? Because, otherwise I can’t really see a feasible way of judging if this is the same person. Unless of course he/she is stupid enough to register with exactly the same details every time ??
Forum: Fixing WordPress
In reply to: Is it possible to set the height of the Text/HTML editor in admin?Actually – just another thing, is it possible to set it so the Kitchen Sink is on by default?
Forum: Fixing WordPress
In reply to: Is it possible to set the height of the Text/HTML editor in admin?Thank you ?? I feel a bit silly for not actually thinking of that before …
Forum: Plugins
In reply to: Filter posts in listNot quite sure if anyone figured this out, as it was posted 6 months ago but I would suggest the following (even though perhaps a little hacky):
if(!strpos($_SERVER["REQUEST_URI"],"wp-admin")){ add_filter('the_posts','my_function'); }
What this is saying is, if the URL doesn’t contain the standard “wp-admin” part, apply the filter. Otherwise, it won’t filter them. I assume this is what you need? Obviously if you want it filtered on admin but not front end, remove the “!” just before the “strpos”.
Forum: Everything else WordPress
In reply to: Domain name provider suggestions pleaseBy the way – I saw from your profile that you are looking to help out as a contributor or moderator for a WordPress site? Well, I’m helping set up a music-related blog/site (features downloadable content for donations) and it would be useful to have someone help out with the coding and updates, if you’re interested? The address is morgansmusic.co.uk although it’s still in very early stages. But, check it out and let me know what you think.
Michael
Forum: Everything else WordPress
In reply to: Domain name provider suggestions pleaseI’ve used a site called domaingod.com in the past, they provide free domains/renewals/transfers and very good hosting plans. In my opinion, they’re very good, customer service is great and it’s not a big corporate company so the service is very bespoke. I would give them a try at least.
Forum: Plugins
In reply to: Creating two sections for Posts in admin areaI did actually do some playing about with the code and managed to create a top level admin menu which will redirect to the add-new.php page but appends a query string to set visibility of certain meta boxes and titles.
For example I needed to be able to add News Articles. So I put in the following function in my functions.php file (in my theme folder):
function add_news_menu(){ add_menu_page( 'Articles', 'Articles', 'administrator', 'news', 'newsbox'); }
and the function “newsbox” that is run when the menu is clicked:
function newsbox(){ $str="<script type=\"text/javascript\">document.location.href='post-new.php?features=no&title=article';</script>"; echo $str; }
This simply redirects to a new post page but with the query string which sets the title to “Add New Article” and turns off the Product Features panel.
This is what I have done so far. I intend doing some database manipulation to force categories too, in order to filter the edit.php listing.
Let me know your progress, too!
Forum: Fixing WordPress
In reply to: Force a post to “create” itself when clicking Add New?Thanks for the response.
After some testing, I programmed this:
$(function(){ if($("#title").val()==""){ $("#normal-sortables").hide(); } $("#title").keyup( function(){ if($("#title").val()!=""){ $("#normal-sortables").fadeIn("slow"); } }); });
On entering the add new post page. This would hide all extra boxes until the user put some content into the title box. If the user deleted the title after, the boxes would disappear again ??
Forum: Fixing WordPress
In reply to: How to add a search to a custom page in admin?Thanks, I will take a look at that now ??
Forum: Plugins
In reply to: E-Commerce “Cart”I don’t know if you ever found out how to do this, but the css files are in the plugin directory, so as long as you are up on your CSS, it should be easy enough to edit style.css and change what you need.
Forum: Plugins
In reply to: e-commerce plugin?Have you found anything yet? If not, have you tried looking into the Instinct WP-E-commerce plugin? https://www.instinct.co.nz/e-commerce/
Allows you to set stock levels, which may be what you need?
Forum: Everything else WordPress
In reply to: Difference between bloginfo() and get_bloginfo()?So, technically, it’s better to use bloginfo() when placing links/urls on the page as you don’t need to write echo…I see. Thanks for clearing that up!
Forum: Fixing WordPress
In reply to: Post pageLooks like your post page does work? Could you let me know exactly which page is not loading?