Forum Replies Created

Viewing 11 replies - 31 through 41 (of 41 total)
  • Thread Starter darkan9el

    (@darkan9el)

    Cheers, thanks for the help.

    I had a similar issue, sounds like you only did a partial update.

    I unzipped the 3.5 update zip file, selected all the files in the 3.5 update wordpress folder; this unzipped as “WordPress 2” because I already had a WordPress folder.

    I used Filezilla FTP to open my site and dragged all the files over to my root folder; the one where you see:

    • ..
    • blogs
    • tmp
    • wp-admin
    • wpcontent

    etc etc…

    waited until it all copied over, waited another 10 mins to let anything finish then typed my address and boom it all came back up.

    The only issue I now have is the pale yellow notification bar at the top telling me I had a failed update “please attempt the update again now” how do I remove it as I’m on 3.5 and everything is running fine.

    I was just looking at this spam killer, and reading through a few posts. Todd you really are a helpful guy and you obviously know your stuff. I wondered if the OP hasn’t just gone back to the Theme creators and asked them for help as they would surely be able to sort this issue out.

    I think most people think themes are easy to make but these things take time and considering security is a primary concern, being newish to wordpress and PHP; reading up like a madman possessed, it would be nice to have a security rating on themes < copyright that Idea ?? Although I doubt that will happen unless it kind of becomes a promotional pointer.

    eresseracam, have you tried looking at the code and css using the firebug add-on in firefox.
    I’ve just looked at your page and the css puts out a computed height of 14632.9px

    What is a computed style? a computed style is the value a CSS property will have when the browser needs to calculate the value based on a percentage or a value relative to another value. For example, if you specify a div to have a width of 50% and it contains an element that inherits its width from the div, then that element will have a computed value.

    The fact this player isn’t really designed to fit into a 190px sidebar is significant and it just won’t look good. You seriously need to widen your site width; it will look better, try making it 900px wide instead of approx 740px.

    Thanks EnigmaWeb, by all means use it as an example of your player. Update to 1.4 fixed the player above the text/content issue, Once again thank you for fixing it quickly.

    Thread Starter darkan9el

    (@darkan9el)

    Ah I see, thanks for explaining, I did ogg as well anyway, using 192kbps for good sound /filesize. I used MediaHuman Audio Converter which isn’t bad and its pretty simple too.

    Once again thanks for taking the time to reply, much appreciated.

    Same issue here but great support from EnigmaWeb, thanks for all the work and support you supply. The player is just so cool, I hope you develop it more.

    Got mine looking like this: https://www.mansfieldmalevoicechoir.com/mmvc/albums/in-harmony/

    Thread Starter darkan9el

    (@darkan9el)

    Just want to add a few source pages and a few tips on the php editing to get it to show properly. Hopefully I’ll get to do a video on how to do this and upload to my youtube account.

    Ok, I’ve already mentioned a few source pages where I got a better understanding and here is one more: Theme_Development – Template_Files_List I read this to understand what I was looking at when I opened the theme folder and in my case the Phototouch theme from Themify.
    In the end I choose the index.php file to base the client-portal.php file on. I should mention here I use Mac so a few keystrokes will be different for Windows users but I’ll put in the Windows alternative too, the windows keystrokes are in brackets.
    I opened index.php from my FTP client (Filezilla) by logging into my sites FTP area and right clicking on the index.php file and choosing View/edit, I pressed CMD+A for Mac or (CTRL+A) for Windows to select all of the php code, then CMD+C (CTRL+C) to copy the php code. Next I opened a text editor, I use BBedit which is excellent; a great alternative for Windows is Notepad++. I created a new text file using File > New and pasted the php code I’d copied earlier into this file.

    Ok adding the code.
    The top of the code we have just pasted looks like this…

    <?php get_header(); ?>
    
    <?php if(is_front_page() & !is_paged()){ get_template_part( 'includes/slider'); } ?>
    
    <?php
    /////////////////////////////////////////////
    // Setup Default Variables
    /////////////////////////////////////////////
    ?>

    You need to put in a few lines to push the code down to make some space to insert the template name code, when done it should look like this…

    <?php
    /*inserted code so wp admin is aware of this new template*/
    
    /*
    Template Name: client-portal
    */
    
    /*end of inserted code*/
    ?>
    
    <?php get_header(); ?>
    
    <?php if(is_front_page() & !is_paged()){ get_template_part( 'includes/slider'); } ?>
    
    <?php
    /////////////////////////////////////////////
    // Setup Default Variables
    /////////////////////////////////////////////
    ?>

    The next bit of code you need to add gets inserted lower down the page, so in my case I scrolled down to…

    /////////////////////////////////////////////
    		// Default query categories
    		/////////////////////////////////////////////
    		?>
    		<?php $query_cats = themify_get('setting-default_query_cats'); ?>
    		<?php if(($query_cats !="") && !is_search()): ?>
    			<?php query_posts($query_string . '&cat='.$query_cats); ?>
    		<?php endif; ?>
    
    		<?php
    		/////////////////////////////////////////////
    		// Loop
    		/////////////////////////////////////////////
    		?>
    		<?php if (have_posts()) : ?>
    
    			<!-- loops-wrapper -->
    			<div class="loops-wrapper <?php echo $post_layout; ?>">
    
    				<?php while (have_posts()) : the_post(); ?>
    
    					<?php if(is_search()): ?>
    						<?php get_template_part( 'includes/loop' , 'search'); ?>
    					<?php else: ?>
    						<?php get_template_part( 'includes/loop' , 'index'); ?>
    					<?php endif; ?>
    
    				<?php endwhile; ?>
    
    			</div>
    			<!-- /loops-wrapper -->
    
    			<?php get_template_part( 'includes/pagination'); ?>

    tzeldin88 said look for the loop: if (have posts()): ?> this almost worked for me but had the page a bit messed up because the title of the page was below the content, the content being a bit of lipsum text, not really what I wanted. After trying a few different positions I got the title above the lipsum text by pasting it just below: <?php get_template_part( ‘includes/pagination’); ?>
    so the code now looks like this…

    /////////////////////////////////////////////
    		// Default query categories
    		/////////////////////////////////////////////
    		?>
    		<?php $query_cats = themify_get('setting-default_query_cats'); ?>
    		<?php if(($query_cats !="") && !is_search()): ?>
    			<?php query_posts($query_string . '&cat='.$query_cats); ?>
    		<?php endif; ?>
    
    		<?php
    		/////////////////////////////////////////////
    		// Loop
    		/////////////////////////////////////////////
    		?>
    		<?php if (have_posts()) : ?>
    
    			<!-- loops-wrapper -->
    			<div class="loops-wrapper <?php echo $post_layout; ?>">
    
    				<?php while (have_posts()) : the_post(); ?>
    
    					<?php if(is_search()): ?>
    						<?php get_template_part( 'includes/loop' , 'search'); ?>
    					<?php else: ?>
    						<?php get_template_part( 'includes/loop' , 'index'); ?>
    					<?php endif; ?>
    
    				<?php endwhile; ?>
    
    			</div>
    			<!-- /loops-wrapper -->
    
    			<?php get_template_part( 'includes/pagination'); ?>
    
    <?php
    
    /* Inserted php code for client area */
    
    global $current_user;
    get_currentuserinfo();
    $page = get_page_by_title($current_user->user_login);
    _e($page->post_content);
    
    /* end of inserted code for client area */
    
    ?>

    This works pretty much exactly as tzeldin88 intended. I can post the complete client-portal.php code if asked for.

    Thread Starter darkan9el

    (@darkan9el)

    Found this page on Codex Creating_Your_Own_Page_Templates its well written and easy to understand, hopefully it will help others trying to create a simple client area.

    This pretty much answers my questions and helps me to understand custom template creation, template page placement. the comment and template name plus a whole lot more. Now I can start to experiment and learn.

    Thread Starter darkan9el

    (@darkan9el)

    I’ve solved one problem

    I don’t see a Template dropdown when creating a page to be able to choose client-portal or any template.

    This is shown when using Quick Edit in the Pages section.

    • So you would login to your dashboard at https://www.{yourdomainname}.com/wp-admin
    • In Dashboard on the left of the screen, you see a sidebar menu and on the sidebar menu you should see “Pages”, you can either mouse over pages and choose “All Pages” or just click on Pages.
    • In the main panel you should now see a list of your pages and when you mouseover a page in the main panel it will show you a few options like Edit | Quick edit | Trash | View
    • Click on “Quick edit” and you will see multiple settings appear including the section “Template” with default template set. If there is more than one template you can click on the small black triangle to choose a different template.
    Thread Starter darkan9el

    (@darkan9el)

    I would have thought the creation of a custom template file to be a generic process independent of the theme, I mentioned the theme for informational purposes. The process for the simple client area is ok but omits a lot of basic information and its this I want to clarify.

    In the original howto post tzeldin88 doesn’t mention the theme used so I can’t set this up following their instructions verbatim. I’ll PM tzeldin88 and find out what theme he was talking about so I can at least understand what they were looking at and using.

    In the meantime I’ll pop over to themify and ask how to make a custom page and post it here.

Viewing 11 replies - 31 through 41 (of 41 total)