Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter jrstudio

    (@jrstudio)

    Hey,

    thanks for answer, but if I change salt keys, will I be able to login with current passwords?

    Thread Starter jrstudio

    (@jrstudio)

    hmm that’s a bit strange. I tested plugin locally on WP versions 3.5, 3.9.1 and 4.0 and had no problems at all. I even tested it on online server, no problems.

    Maybe you have some problems because of additional plugins. What additional plugins do you use? What WP version do you use?

    I also found that PCLZIP_ERR_BAD_FORMAT could mean that you don’t have enough disk space on your sever, so please check that.

    with regards,
    Ivan

    Thread Starter jrstudio

    (@jrstudio)

    You can delete “original js files” folder from zip and then try to install.

    I am not sure I understand you on your second question, but result is not shown until the current time is passed the date/time of fixture. For ex. if you put the fixture to be on 15.09.2014. 15:00 result will not be shown until then, but the points and everything will update in standings. It’s how the PHPLeague was built, and from current standing point it would be a bit to complicated to go to fix that, and it’s really not that big deal.

    Thread Starter jrstudio

    (@jrstudio)

    Sorry for not answering, I’ve been really busy with exams and everything. Yea, putting it in sidebar of single-download page, because that would be a lot better for my case, because now I have to really re-code that single-download page and that code will not be pretty.

    But never mind, I’ll manage something πŸ™‚

    Thread Starter jrstudio

    (@jrstudio)

    <div class="eightcol">							
    
    								<div class="entry product-content">
    
    									<h2 class="title"><?php the_title(); ?></h2>
    
    									<?php the_post_thumbnail('product-image-large'); ?>
    									<?php the_content('Read the rest of this entry &raquo;'); ?>
    
    								</div><!--end .product-content.entry-->
    
    								<div id="commentsbox">
    									<?php comments_template(); ?>
    								</div><!--end #comments-->
    
    						</div><!--end .eightcol-->
    
    						<div class="fourcol last">
    							<div class="product-meta content">
    
    								<?php if(!edd_has_variable_prices($post->ID)) { ?>
    									<h4 class="single-product-price"><?php edd_price($post->ID); ?></h4>
    								<?php } ?>		
    
    								<?php echo edd_get_purchase_link($post->ID, 'Add to Cart', 'button', 'blue'); ?>
    
    								<div class="product-categories">
    									<?php the_terms( $post->ID, 'download_category', '<span class="product-categories-title">Categories:</span> ', ', ', '' ); ?>
    								</div><!--end product-categories-->
    
    								<div class="product-tags">
    									<?php the_terms( $post->ID, 'download_tag', '<span class="product-tags-title">Tags:</span> ', ', ', '' ); ?>
    								</div><!--end .product-tags-->
    
    							</div><!--end .product-meta-->
    
    							<?php the_widget('edd_cart_widget', 'title=Shopping Cart', $args); ?>
    
    						</div><!--end .fourcol-->

    I don’t have the live version of the site, but here’s the code I’m using. And soon as you’ve said that it should go after the prices, I figured it out that everything is fine. I forgot I’m using additional call for price and purchase button and I’ve put the main one in ‘content’ to display: none. My fault, I’m sorry. Thanks for very fast answer!

    PS. Was wondering if it is maybe possible to call table, for example to display it somewhere outside single-download page?

    Once more thanks, with regards,
    Ivan.

    Forum: Plugins
    In reply to: Accordion help pls?
    Thread Starter jrstudio

    (@jrstudio)

    anyone?

    I could put my own taxonomy but thats not what I rly want.

    Forum: Plugins
    In reply to: Accordion help pls?
    Thread Starter jrstudio

    (@jrstudio)

    oh, here is the code I managed to write on my own

    add_action('init', function(){
    
        $labels = array(
            'name' => _x('accordion', 'post type general name'),
            'singular_name' => _x('Accordion', 'post type singular name'),
            'add_new' => _x('Add New Accordion', 'Accordion'),
            'add_new_item' => __('Add New Accordion'),
            'edit_item' => __('Edit Accordion'),
            'new_item' => __('New Accordion'),
            'all_items' => __('All Accordions'),
            'view_item' => __('View Accordions'),
            'search_items' => __('Search Accordions'),
            'not_found' => __('No Accordion found'),
            'not_found_in_trash' => __('No Accordion found in Trash'),
            'parent_item_colon' => '',
            'menu_name' => 'Accordion'
    
        );
        $args = array(
            'labels' => $labels,
            'public' => true,
            'publicly_queryable' => true,
            'show_ui' => true,
            'show_in_menu' => true,
            'query_var' => true,
            'rewrite' => true,
            'capability_type' => 'post',
            'has_archive' => true,
            'hierarchical' => false,
            'menu_position' => null,
            'supports' => array('title', 'editor', 'thumbnail', 'page-attributes')
        );
        register_post_type('Accordion', $args);
    });
    
    add_shortcode('accordion', function(){
    
        $posts = get_posts(array(
            'numberposts' => 10,
            'orderby' => 'menu_order',
            'order' => 'ASC',
            'post_type' => 'accordion',
        ));
    
        $accordion  = '<div id="accordion" class="accordion">'; ///Open the container
        foreach ( $posts as $post ){
    
            $accordion .= sprintf(('<h2>%1$s</a></h2><div>%2$s</div>'), // Generate the markup for each Question
                $post->post_title,
                wpautop($post->post_content)
            );
        }
    
        $accordion .= '</div>'; //Close the Container
    
        return $accordion; //Return the HTML
    
    });
    Thread Starter jrstudio

    (@jrstudio)

    oh, I know a “bit” of css but did not know about this. Do you think this would be a good method for developing mobile theme?

    Thread Starter jrstudio

    (@jrstudio)

    I’m sorry but I dont understand what you mean :/

    Thread Starter jrstudio

    (@jrstudio)

    Yea this plugin is nice, but its just what I do not want. I dont wanna plugins for this. Do you maybe know any other solution for this?

    I did found tutorial on how to create a nice and simple mobile theme, but again its complete theme. I would like something that’s included in my theme and then when someone with mobile phone or tablet visits it just changes the look of it?

    I think your current theme just supports page links….so if you add new page it will show link in menu.

    but again, if its so, you can make a new custom menu(if there isn’t already one) and insert links in it and then it should show it πŸ™‚

    Hi

    well, thats not so hard is it? Just find style.css inside template folder and find “body”. You’ll see then that it has a defined background

    body {
    background: #FCFBFD url('img/bg-pattern.png') repeat left center;
    color: #B1B1B1;
    font-family: "LatoRegular", Arial, "Helvetica Neue", Helvetica, sans-serif;
    text-rendering: optimizeLegibility;
    }

    delete everything in background and just put #000 which is equalent to black. color is what controls letter color, just change it to #fff (white)

    cheers

    Did you try adding new Menus trough Admin panel?

    Unfortunately what you did, you altered “page.php” file which is used for every new page you make through admin panel. You need to understand that in first place. Page.php is template used for every new Page you make in admin panel, single.php is template used for displaying a single post, index.php of course for front page.
    So the best way is to design your page.php in a way that is okay for every new page you create in Admin panel (ex. About me). It should be similar to index.php. The best way is just to copy everything from index.php and just alter it to suits your needs. Then you can easily write whatever you want, and it will be shown.

    Currently it cant do that, cause you altered it to just show posts, and now every new page you make will be the same, just posts.

    What you need to do is actually easy. You just need to make a new PHP file inside of your theme folder, ex. blog.php, and whats important is this line of code

    <?php
    
    /*
    Template Name: Blog
    */
    
    ?>

    Rest of that file can be the same as your altered page.php which means you can just copy paste it. Then go to Admin panel, Add new page called Blog (or do it for the one you already have). You should now see your custom template name appear under the β€œTemplate” pull-down in the Page Edit screen, as indicated in the pic below by the green arrow.
    picture

    When you have your blog.php up and working correctly, you should redesign page.php (note that once you have blog.php, you can clear your query_posts code from page.php)

    Hi,

    you will need to be more specific about this.

    can you tell me how did you do so the posts are displaying on “Blog” page instead of “Home”? Did you make a new template php file, or did you just switched options in Admin > Settings > Reading?

    PS. I had to google to find out what “exempt” means.

Viewing 15 replies - 1 through 15 (of 15 total)