Frumph
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Easel] Remove author and time from pageIt’s a bug that it’s showing up, i’ll fix it and update Easel
for now just add
body.page .post-text { display: none; }to the bottom of the style-default.css file and it will disappear.
EDIT:
..which weirdly enough I can’t reproduce on my sites… .. either way that CSS above will remove it.Newest version of Easel, pages format is defined in the content-page.php file; in the regular content.php file it would call a function from the functions/displaypost.php file.. .. but the content-page.php shouldn’t even have it inside of it… at all. which it doesn’t on my sites.
Is there a flag to enable or disable their usage on the author / search / archive pages if the theme designer doesn’t want them? .. seriously don’t want it on the author pages.
Forum: Themes and Templates
In reply to: Turn a static page into an author archiveokay let’s go a different route and use the pages-<authorname>.php then
let me show you how to do that
This is a common use of the authors link in your posts info:
$post_author = "<span class=\"post-author\">".__('by','easel')." <a href=\"".get_author_posts_url( $authordata->ID, $authordata->user_nicename )."\">".get_the_author()."</a></span>\r\n";basically, creating your own link to the pages in question, using the function get_author_posts_url .. instead of get_author_posts_url you can just create your own markup for the link directing to the correct location.. since $authordata is global for the post
you add global $authordata; to the top of the place where your posts code
then you can use $authordata->user_nicename as the pagename
<a href="/authors/<?php echo $authordata->user_nicename; ?>">sort of thing which will be the link to the page for the author, but you need to adjust your posts section of how it displays the current post author link and modify it so it links to that page in question
Forum: Themes and Templates
In reply to: Turn a static page into an author archivethe: <?php echo $curauth->description; ?> comes from the description each author can set in their userinfo in the wp-admin
Forum: Themes and Templates
In reply to: Turn a static page into an author archivewell, you can customize the author.php to have any loop you want inside of it, posts custom post types or whatever you want, it’s basically a template file…
Which, really would be a heck of a lot simpler. The information you get from each author can be edited in the authors preferences in the wp-admin in the users panel and you can just grab that information directly.
Here is my author.php from my theme: https://github.com/Frumph/easel/blob/master/author.php you could use for reference if you wanted, notice that you can ‘add’ any loop you want to it since it’s just a template, like you would do with the page-author .. but this is a single page that encompasses everyone, don’t really need to add individual ones for each author imo. not to mention clicking their name on links goes to the author pages already so no extra coding…
just a thought.
Forum: Themes and Templates
In reply to: Turn a static page into an author archiveIs there a reason you are not using author.php ? i.e. author pages in your theme and want it as pages instead?
Forum: Themes and Templates
In reply to: Calling WordPress PHP calls breaks templateSo I take it since your style.css file is in /css/style.css which means relative to the root and not inside the theme directory itself you setup some code that looks at that directory as a theme directory?
.. Things are relative ya know, especially paths to template files.
<link rel="stylesheet" href="/css/style.css">If that is off your root installation location and not inside wp-content/themes/leakcraft/ .. I seriously can see why you are having issues.
Your theme needs to be reworked and made proper coding starting at the ground up.
http://codex.wordpress.org/Theme_Development#Anatomy_of_a_Theme
http://leakcraft.com/wp-content/themes/leakcraft/style.css does not exist, which is where the themes section references what theme this is. How did you get appearance -> themes to recognize that it’s a viable theme to use?
Did you change it with ?
http://codex.wordpress.org/Editing_wp-config.php#Moving_themes_folder
Forum: Themes and Templates
In reply to: Calling WordPress PHP calls breaks templatebeyond the fact that $blog_title doesn’t echo out so it’s really just a container at this point..
Weird though, that’s the only php in the header.php file completely..
How is the header.php file being called ? ^ the header.php above is completely against the coding practices for WordPress, just curious that it might be also how you’re calling the header.php
Forum: Themes and Templates
In reply to: Calling WordPress PHP calls breaks templateNeed more context, it could be something in the position you placed the code. For example if you added the <?php in a section that already had <?php marker enabled, it would do that.
Also it depends on the fatal error. If you could give us that fatal error – which can be found on your hostings php error log or on the screen, contact your hosting on setting up an error log if you don’t have one.
Forum: Hacks
In reply to: Random Default Avatar FunctionI know i’m a bit late to the party… but I just snippitted the code I use for inside my Easel theme (sans the options ability) which does what you want…
http://frumph.net/2013/04/19/use-my-custom-default-random-avatars-code-in-any-theme/
Forum: Fixing WordPress
In reply to: Can't install plugins or themes 3.5.1^ that’s actually probably an ‘ownership’ not permission situation, ls (directory view) listing the directory structure and check if the ownership is the same as the rest of the directories in the wp-content folder
More then likely it’s not. Which means that the FTP user itself isn’t setup that the web daemon can read the files from it. The best way to verify this is to actually http://yoururl.com/wp-content/plugins/ease-digital-downloads/ to see if it brings you back an error of some sort or if you have indexes on the listing of the directory contents
Since you’re using a VPS, it probably means you know what you’re doing, just verify that the FTP user you’re using is in the owner’s group of that httpd section, or in the httpd’s group. (if that’s the case of the situation) .. I’ve seen quite a few times that people are putting the files in the wrong section of the directory structure that has the stuff there but not the right one that is being read by the httpd.
Forum: Plugins
In reply to: [Comic Easel] Post Comic ButtonYou could also try position 6 7 8 or 9 .. to see if you can get both up there.
Forum: Plugins
In reply to: [Comic Easel] Post Comic Buttonin the wp-content/themes/comic-easel/ directory
edit the comiceasel.php file, search for:'menu_position' => 5,comment it out by putting two slashes in front of it
// 'menu_position' => 5,So it isn’t read by the system.
That menu position is what places it where it’s at, without it; it will place it below the ‘comments’ section, so whatever plugin is conflicting with it’s position will be able to use that ‘5’ position as it see’s fit. (unfortunately)
http://codex.wordpress.org/Function_Reference/register_post_type
Forum: Plugins
In reply to: [Comic Easel] Not working wellI have a forum that would be great to continue conversations like this on
Forum: Themes and Templates
In reply to: [Easel] garbled summary of post content to site subscribersIt looks to me like you’re saving your post content from some editor like microsoft word.
Then cut and pasting it into the post. This is a no no, because it will save the extra ‘stuff’ to that post.
Edit that post, In your post editor for that post, click on the “html” tab and you will see all of that extra crap there.
The “proper” way to cut and paste from a word document is to copy it into a “text” file first on your computer then from the text file copy and paste it into wordpress.
Or save the file as a .txt file to begin with and not a word document.