Forum Replies Created

Viewing 15 replies - 46 through 60 (of 81 total)
  • Hi ok,

    basically were hooking in too early, so the initial action hasn’t been added before we’ve tried to replace it.

    http://codex.wordpress.org/Plugin_API/Action_Reference

    try changing

    add_action('after_setup_theme', 'switch_crumina_social_icons');

    to

    add_action('init', 'switch_crumina_social_icons');
    
    or
    
    add_action('wp_loaded', 'switch_crumina_social_icons');

    Hay,

    Those are PHP errors, the first three are because the code on line x of functions.php is trying to access iterate over an empty array, basically the theme developer hasn’t checked to see if their empty before trying to used them.

    There “Notices” which basically means there is an error here but its not important enough to break the script form functioning, your seeing the messages as you’ve i’ve set WP_DEBUG to true in your wp-config.php or your default php error reporting level it too high in your apache or php.ini config of your server.
    http://php.net/manual/en/function.error-reporting.php

    Your also seeing the final message for the same reason, also from your theme.

    However it’s been added by wordpress, to tell you (the developer) that your theme is trying to uses an out of date function, thats been replaced and at some point in the future will be dropped for wordpress completely which will spectacular break your site if you don’t fix/update your code before it happens.

    All of this points to the fact that you theme is out of date, you should try to see if you can get a updated version from the developer, it looks like a commercial theme so you should contact the place you purchased the theme from to see if theirs an update or if they can provide one.

    Hay,

    I’d use either the XMLRPC or the JSON api.

    http://jetpack.me/support/json-api/
    http://developer.wordpress.com/docs/api/
    http://codex.wordpress.org/XML-RPC_WordPress_API

    your only problem is last time I checked neither actually let you add users, i’ve got round that my adding my own api functions its not to difficult.

    This is some code I wrote a while back (Years) that i used to backend to a flash app, that allowed ppl to register / login /logout and store sessions in the app.

    https://gist.github.com/geraintp/f7dff8a8dba1cdb4c691

    used a secret key to secure my create user function after that it was all based on wp user auth, its not the most secure, but in that case it wasn’t an issue.. last tested on wp 3.4 hope it points you in the right direction.

    Something like this would generate two, arrays/ lists

    $sen = array();
    $rep = array();
    
    $bloglist = wp_get_sites();
    foreach ($bloglist as $blog) {
    
    	//senitors
    	if ( getBlogInfoByBlogId('isSenator', $blog['blog_id'] ) ) {
    
    		$sen[] = array( 'id' => $blog['blog_id'],
    					'domain' => $blog['domain'],
    					  'path' => $blog['path'],
    					   'url' => 'http://'.$blog['domain'].$blog['path'] );
    
    	// reps
    	}else{
    		$rep[] = array( 'id' => $blog['blog_id'],
    					'domain' => $blog['domain'],
    					  'path' => $blog['path'],
    					   'url' => 'http://'.$blog['domain'].$blog['path'] );
    	}
    
    }

    url making some assumptions based on what wp_get_sites() should return and that you’ve got a sub directory multi site install. obviously none of the code’s been tested.

    you can now iterate through each to come up with a list, but… the list will be in blog id order not alphabetical + you still haven’t got any display info in the arrays like tiles or names extra…

    Hmm,

    it could be two things, first of I don’t think wordpress automatically regenerates images (yet its often a feature thats tossed around) so your setting would only be applied to newly upload images.. as thats when wordpress make all the different size images.

    You can ‘edit’ an image and tell it to regenerate the thumbail and im sure there are several plugins that can batch resize your images too.

    secondly it could be that your theme is overloading the default thumbnail side, as as well as being able to define your own image sizes in a theme you can set the size of the default image too.

    @songdogtech:

    Sorry if my comment was miss leading, and I wondered about that too, thats why I checked the docs first.

    But FYI:

    Current versions of WordPress (2.7+) feature one-click updates. You can launch the update by clicking the link in the new version banner (if it’s there) or by going to the Dashboard > Updates screen

    http://codex.wordpress.org/Updating_WordPress

    I did not mention ‘auto’ updating which was a recent addition to the built in update mechanism of wordpress.

    Just trying to help!

    I’ve never used that theme, but all woo themes share a common framework, you need to make sure you’ve set the email address under

    Wootique > theme options > contact page > contact information

    there should be a load of boxes to fill in, including one called ‘Contact Form E-Mail’

    if thats not your issue you’ll have to contact wootheme to see if they can help you, even though wootique is a free theme it states explicitly if you want support then you have to buy one of their commercial themes.
    http://www.woothemes.com/products/wootique/

    argh……………………..why…….

    there are a few hacks you could do…. none are probably worth the hassle. Pretty much anything you can do in .aspx can equally be done in PHP through WordPress.

    THERE WAS A RANT HERE BUT I THOUGHT BETTER OF IT AND DELETED IT

    If you can ever get them both to run on the same server. You could split the site, and run wordpress in a folder (not sure if you can config iis that way) but then you’d have a single .aspx homepage and every other page on your site would be in a sub directory.. last time I had to deal with IIS i think you had to set an entire domain to server one language.

    You could hack your theme add a custom page template, which has an iframe which draws in your special aspx page from a complete different server/web address. down side you’d have to explicitly set the content’s height, you can try and do it dynamically with js but in my experience its tricky to get it to work.

    you could use PHP and curl to ‘scrape’ the content from the .aspx page (elsewhere) and the spit it back out where you want it. would required a fairly high level of php coding which i’m guessing is the point your trying to avoid.

    every way of doing what you what you want makes me think ARGH.. what every you do it will cause you nothing but headaches and problems going forwards not to mention potentially have to duplicated everything, from servers, databases, design, maintenance… etc.etc.

    WordPress is pretty simple to update, you “should” be able to do a straight upgrade.

    That said backup everything before you do it just in case, you shouldn’t have to go thru every version, where did you read that?
    http://codex.wordpress.org/Updating_WordPress

    the built in updater is probably prompting you to install 4.0 ..

    Your main issues if you have any are going to be related to old plugins and themes, relying on functions that may no longer exist in the wordpress code base because they’ve been deprecated or replaced.

    you’ll have to deal with these as they arise hopefully the plugins you use are all still maintained and have been updated as well, so just updating them should fix most of these problems.

    it may be wise to disabled them all before you do the update incase any of them crash spectacularly crash the dashboard stopping you from being able to disable them.

    you cant filter an action..

    you need to remove the action and replace it with your own so something like this…

    <?php 
    
    // Deregister original function and register replacement
    function switch_crumina_social_icons()
    {
    	remove_action('reactor_header_after', 'crumina_social_icons', 2);
    	add_action('reactor_header_after', 'my_crumina_social_icons', 2);
    }
    add_action('after_setup_theme', 'switch_crumina_social_icons');
    
    /* NB. this is tricky but this action need to hook after the function
     * is original registered but before it is executed otherwise it will miss it.
     * 'after_setup_theme' should be about right.
     */
    
    // Replacement function
    function my_crumina_social_icons()
    {
    	# copy original code... here
    	....
    	# change as required.
    }
    
    ?>

    Posts are mostly stored across two table in the db wp_posts and wp_postmeta but their is related content in wp_comments, wp_term_relationships etc… + a single WP post can have multiple entries per post in the posts tables as its how wp supports revisions.

    see
    http://codex.wordpress.org/Database_Description

    Hacking into the db is probably a bad idea. If you want people to contribute to your content you’d be better off looking at letting them do it thought the wordpress ui and using the build in user roles.

    Or install a wiki like Media Wiki. like the way wp.org use it for codex.wordpress.org

    Finally if you really do want to press on building your own ui I’d use the json, or xmlrc api wordpress provides and used for thinks like the ios app, it would be a lot safer than poking the db especially if your not already familiar how WP’s db structure and how WP uses it.

    http://jetpack.me/support/json-api/
    http://developer.wordpress.com/docs/api/
    http://codex.wordpress.org/XML-RPC_WordPress_API

    Hay,

    First off, alway include a link to the actual site.. it makes it a lot easier to see what your talking about.

    1. ?? depends where your hosting your site? wordpress.com charges you an annual fee to include custom css, if the site is ‘self hosted’ you should have complete access to the theme files and you can change whatever including stylesheets.
    – However CSS needs to be specific to the html its targeting so just pasting code from google without understanding it will never work.

    2. Sure you should be able to add a widget that only shows posts from a specific category, if the widget doesn’t let you turn off the description you can hide it with css.

    3. Yes – again you can use CSS to change the size of text, However the way stylesheets work they effect every element with the same combination of tag,id and class you used in the css directive, depending on your theme every title on the page will have the same tag,class and possibly id, so targeting a specific title containing the work booked, isn’t something its designed to do. You need to figure a more obvious/technical way of letting the theme know it needs to do something different in displaying that particular title.

    Something like a

    1. custom field, booked = true, which the theme can look up
    2. i.e. if booked then = add a specific custom class booked, to the title
    3. which your custom css can pick out and effect

    something like

    .booked{
    font-size: 80%;
    }

    but all of this is advanced theme customisation, you’d have to have a understanding of the underling html, css and how to used php to access custom _post _meta and use logic statements like <php? if(){ .... } ?>

    it wouldn’t be for the faint hearted.

    Your welcome 😉

    not a problem, I know what its like to bang your head against a wall because of a typo 🙂

    Ye,

    It sounds like a very specific use case which was why I was dough-fully you’d find anything that fitted your brief.

    I’ve built something similar for a client before, which was a membership application form which they had to fill in / updated every year, which I simply build as a custom page template in the theme and stored the data as usermetadata i.e. i added a load of fields to their user profile. but it was all bespoke code. It didn’t use a plugin,

    I’ve also done a B2B directory where each member had a single directory entry, which was a post of a custom post type. set up similarly to above so i built a custom page template with a form that let them updated/edit their linked post.

    Thats the way i’d approach making the second half of your conundrum

Viewing 15 replies - 46 through 60 (of 81 total)