Darrell Schauss
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Doc Type problemsThis line should have a slash before /Scripts. Otherwise it will try to load the javascript relative underneath where it doesn’t exist. As you can see when accessing the URI in the error you posted.
<script src="/Scripts/AC_RunActiveContent.js" type="text/javascript"></script>Forum: Fixing WordPress
In reply to: RSS feed question.In WordPress..
Settings > Reading
For each article in a feed, show
+ Full text
+ SummaryForum: Fixing WordPress
In reply to: How come I never get an answer about WP’s awful editor?TinyMCE Advanced, using tables is horrible. I have to hit backspace to delete invisible spaces (text cursor doesnt move to delete any visible space) before saving or I get extra spacing. If I even open the page and change any portion I have to remember to tediously click that area and hit backspace.
Forum: Fixing WordPress
In reply to: Code needs fixing, not able to protect images from being copiedYou could block rightclick only on the imgs with jquery (youre already loading it anyways).
Into your header.php before <body>
This will cause nothing to happen when right clicking just an image, but normal behavior if rightclick elsewhere. I personally wouldn’t put the popup message into it. It might scare people away with the usuability, or someone my feel like their being accused of theft when they just wanted to open a link in a new tab or go back instead of browser back button.<script type="text/javascript"> var $j = jQuery.noConflict(); $j(document).ready(function() { $j("img").bind("contextmenu", function(e) { return false; }); }); </script>Forum: Fixing WordPress
In reply to: Code needs fixing, not able to protect images from being copiedIf you are inserting images through media library make sure they don’t have a link defined to them. Or the plugin you are using for images may have an option to not link to the image.
Maybe only upload image sizes as big as they need to be in the page. Still not super compressed, for good quality. But since its easy to bypass rightclick, etc at least they wont get a 2000px or something size image. If you need to show your awesome detail choose a select few and crop the area.
(no photograph website experience =])
Forum: Fixing WordPress
In reply to: If conditional for a directory or when on /blogThis will check for /blog/ anywhere in URL, but chances are you will only have /blog/ in URL when at the blog.
/ defines start and end of the pattern to match so the / in blog are escaped \/
<?php if(preg_match("/\/blog\//",$_SERVER['REQUEST_URI'])){ //if /blog/ is anywhere in the URL.. }else{ //if /blog/ is not in URL } ?>Forum: Fixing WordPress
In reply to: Coding for multiple custom sidebars (elseif)The numbers in array() are comma seperated list of category IDs you want the sidebar to show up in.
<?php $cat_id = get_query_var('cat'); if(in_array($cat_id,array("10","11","12"))){ //show sidebar code } if(in_array($cat_id,array("15","16","17"))){ //show sidebar code } ?>Forum: Fixing WordPress
In reply to: The Permalink LenghtYea but get_the_title() instead inside the substr
Forum: Fixing WordPress
In reply to: Integrating wordpress with a pre-existing websiteI put a new directory under domain like /news (domain.com/news/) then put wordpress into that. Keeps the wordpress mod_rewrite and files seperate from the rest of my site. Easier to setup.
Forum: Fixing WordPress
In reply to: The Permalink LenghtUsing the alternative
get_permalink()so it doesn’t echo right away, then you can manipulate it. 20 being the amount of chars you want to display of the URL.<a href="<?php the_permalink(); ?>"><?php echo substr(get_permalink(),0,20); ?>...</a>Forum: Fixing WordPress
In reply to: URL doesn’t changeCan you post the URL.
Forum: Fixing WordPress
In reply to: No space between category and reactionsIf you break it apart like this you can arrange each piece that is
<?php function(); ?>and put br tags or whatever you need between.<div class="cat"> Categorie: <?php the_category(', '); ?> <?php the_tags(__('Tags: '), ', ', ' | '); ?> <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?> <?php edit_post_link(__('Edit'), ' | '); ?> </div>Forum: Fixing WordPress
In reply to: having trouble with linksThe link has
http//so it looks like another directory path. Instead it should behttp://with colon.Forum: Plugins
In reply to: [Plugin: WordPress Admin Bar] Scroll down when list is too longA quick fix though not too pretty.
File: wordpress-admin-bar.php
Line 426: addstyle='height:200px;overflow:scroll;'into the<ul>or put
.wpabar-menupop ul{height:200px;overflow:scroll;}into whatever theme color you are using.Adjust height to your liking.
To apply just to one of the drop downs so they all don’t look ugly, do the css change.
For Settings:
.wpabar-menu_options-general-php ul{height:200px;overflow:scroll;}
Or Tools:
.wpabar-menu_tools-php ul{height:200px;overflow:scroll;}
Etc.Forum: Fixing WordPress
In reply to: Posts not loading in Internet Explorer but show fine in FirefoxIt has something to do with all the
[if gte mso 9]stuff after your line with the post date. It might be part of a plugin you are using.Change this last part
--> <!--[endif]-->
to
<![endif]-->