Jay
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Images don't move to new urlWell some of them, mainly on the crew page, lacked the “http://” prefix and included a dot after .com, even though I fixed that within chromes editor, I still got no image. But if I put the URL to the image in the address bar I had no problem viewing it directly.
This leads me to believe it’s a permissions issue? Maybe I’m wrong though, but it’s worth a shot. I think the permissions for the /uploads/ directory should be 777, or 666, can’t remember. As for the plugin you installed, velvet blues, thanks for the link lol I really need that 🙂
Happy coding (^.-)
Forum: Fixing WordPress
In reply to: Slider (jQuery?) Broken after Malware RemovalHaving a quick look at your code was nice lol, well seems your jQuery is giving an error. In turn, that’s causing all your jQuery files to error out saying that jQuery is undefined. I would suggest downloading the jQuery 1.7.1 and moving it into the wp-includes/jquery/js/ and rename it to jquery.js
Though I would be sure to download 1.7.1 to prevent any inconsistencies, as that seems to be the version it’s requesting. That will fix the majority of your problems. Oh and don’t forget to backup your site on at least a weekly basis.
Happy coding (^.-)
Forum: Fixing WordPress
In reply to: I am having a problem with a tableLavine, it’s back to basics when it comes to tables eh… lol. Your table has been setup to only accommodate 6 columns, otherwise known as ‘td’.
You are adding an extra column on rows (tr’s) that require the “Free” text. That is causing the browsers to render it incorrectly and push the columns out by one extra. Instead of adding another column, why not add a line break in the day column for each free row? Example:
Instead of
<tr> <td class="free">FREE</td> <td class="day"><a href="http://doublekproductions.com/pdf/063012OakBrookCorvette.pdf">6/30</a></td> <td>Sat</td> <td>Oak Brook</td> <td>4th Annual Corvette Show @ Oak Brook Promenade</td> <td>3041 Butterfield Rd @ Myers Rd</td> <td>10:00am-3pm<br /> </tr>Do this
<tr> <td class="day"><span class="free">FREE</span><br /><br /><a href="http://doublekproductions.com/pdf/063012OakBrookCorvette.pdf">6/30</a></td> <td>Sat</td> <td>Oak Brook</td> <td>4th Annual Corvette Show @ Oak Brook Promenade</td> <td>3041 Butterfield Rd @ Myers Rd</td> <td>10:00am-3pm<br /> </tr>Hope that helps, happy coding (^.-)
Forum: Fixing WordPress
In reply to: How do I change the position of a page title?Moving it around is nothing but css 🙂
Go into the css and do this:
#branding hgroup{text-align:center}
This will center all the elements that can be centered, however, both site-description and site-title elements have a right margin of 270, you’ll have to remove this to get a realistic centering. The caveat to doing so is you may run into the search box if your title gets too large. In case you don’t care, and I’m sure you won’t be changing the title, here’s the css for that.#site-title{margin-right:0} #site-description{0 0 3.65625em 0}Now, you have two choices, you can either append the above code to the end of the style.css in the /twentyeleven/ folder or you can edit the values directly, and save some bytes in your css file, your choice.
Have fun, happy coding (^.-)
Forum: Fixing WordPress
In reply to: How to get sidebar on static front page?The “Static” page you chose by default should be using the default page template, page.php, in your theme directory. If it does not include a sidebar, you must add the code yourself to the PHP file. Ultimately, your home page should be a page style that’s entirely different from the default page file.
Just create a new custom page template in your theme directory, go into the page you selected as your “static” front page, and set the template to your new template. I think I explained that sufficiently lol.
Article on custom page templates
Article on dynamic sidebarsOf course you may or may not need to add additional HTML to make it look proper, but then again, I don’t know your them 🙂
Happy coding (^.-)
Here’s the altered code for 3.3.1 🙂
<?php $catArgs = array( 'taxonomy'=>'job_categories' // post_type isn't a valid argument, no matter how you use it. ); $categories = get_categories('taxonomy=job_categories&post_type=ci_jobs'); ?> <?php foreach ($categories as $category) : ?> <div class="job-cat"><?php echo $category->name; ?></div> <?php $postArgs = array( 'orderby' => 'title', 'order' => 'ASC', 'post_type'=>'ci_jobs', 'cat'=>$category->cat_ID, 'tax_query' => array( array( 'taxonomy' => 'job_categories' ) ) ); query_posts($postArgs) ?> <ul> <?php while(have_posts()): the_post(); ?> <li><a><?php the_title() ?></a></li> <?php endwhile; ?> </ul> <?php endforeach; ?> <?php wp_reset_query();When you said “taxonomy” my general assumption was you have already set a custom “taxonomy” with it’s own tags. However, in-case you were simply talking of the general taxonomy already installed, you can look at the “tags” parameters instead.
Tag Parameters
Taxonomy ParametersHope I’ve been helpful, happy coding 🙂
Forum: Hacks
In reply to: Twenty Ten (Description Tagline)Well it’s no fun if I do it for ya 🙂
All WordPress themes have default files that are required, the one you’re looking for is header.php and it’s located in the themes folder:
%wordpress%/wp-content/themes/twenty-ten/header.php
%wordpress% either being your domain name, or your wordpress folder, which can be renamed to something different of course.
Now just open that file with your favorite text editor, notepad should suffice. Then do a ctrl+f (Find) and search for that block of text above. Once you find it, just replace it with your image of choice, keeping in mind the path relative to the WordPress root directory.
To add an image you’ll need basic HTML knowledge, you can see the “img” tag here.
Also you should note that if the image is in the following directory:
%wordpress%/images/You’ll have no problems with using the img source as that. However, if you’re using a theme, you WILL have to use PHP in the img source.
Use bloginfo for template development
Use WP_PLUGIN_URL/%yourPluginFolder%/ for plugin development.Forum: Hacks
In reply to: Conditional Tag In Excerpt Length Filter?Not a prob, hell even I learned something here, i don’t use that filter much 🙂 Thanks for the info.
Hey thor, would you care to clear your cache and see if that’s the cause? I think your issue may be related to a cached version of the javascript file.
Forum: Hacks
In reply to: Twenty Ten (Description Tagline)Just open your header.php and edit the site-description line, it’s like line 66 I think.
<?php bloginfo( 'description' ); ?>Change it to use your image instead. Though ultimately if you want to change your image on the fly we’re talking about a totally different matter entirely lol.
Forum: Hacks
In reply to: How can I add an new item to an user's record.Gahhhhh no don’t edit core files… make a simple plugin or add it to your theme functions file….
Here’s a good tutorial, only cuz I’m too lazy to go into detail.
http://justintadlock.com/archives/2009/09/10/adding-and-using-custom-user-profile-fieldsForum: Hacks
In reply to: Wrap cancel-comment-reply-link in divYou don’t have to turn it into a div, you can just change the link to a block level element. Or if you want FULL control, just apply a filter to the comment link.
From wp-includes/comment-template.php
function get_cancel_comment_reply_link($text = '') { if ( empty($text) ) $text = __('Click here to cancel reply.'); $style = isset($_GET['replytocom']) ? '' : ' style="display:none;"'; $link = esc_html( remove_query_arg('replytocom') ) . '#respond'; return apply_filters('cancel_comment_reply_link', '<a rel="nofollow" id="cancel-comment-reply-link" href="' . $link . '"' . $style . '>' . $text . '</a>', $link, $text); }Forum: Hacks
In reply to: Conditional Tag In Excerpt Length Filter?suntower firstly remove one of the filters. Secondly, try setting the priority of the filter to 999, for example:
add_filter('excerpt_length', 'new_excerpt_length', 999);Forum: Hacks
In reply to: WP functions in "side" plugin filesFlyer, the only way to do that is include wp-load.php… however, I think it’s best to make your new file and include it in the main, that way you can use WordPress’ functions without loading resources twice.
Example:
<?php /* FILE: mainPluginFile.php */ include('userFile.php'); /* The rest of your code here */ ?><?php /* FILE: userFile.php */ function userData(){ /* Do your code here */ } add_action('init', 'userData'); ?>You might want to also look into the get_currentuserinfo function which you can wrap inside the is_user_logged_in method.
Forum: Fixing WordPress
In reply to: Hacked Websitetvcnet has the best option really. Though I didn’t call my host, I immediately moved to a more secure host and pulled my backup with me. Most hosts provide a “daily” backup option and it’s usually stored above your web directory. Just curious though, who’s the host?