Icethrill
Forum Replies Created
-
Any help or information how I can do it? An reference?
Found this code, googling.
AuthUserFile /dev/null AuthGroupFile /dev/null AuthName "Example Access Control" AuthType Basic <LIMIT GET> order deny,allow deny from all allow from xx.xx.xx.xx </LIMIT>
Is there a good way to modify this to suit my needs? What this code does is anyone who isnt from xx.xx.xx.xx is denied access to wp-admin folder. But I want that for the whole site.
Forum: Fixing WordPress
In reply to: How do you attach an image to a post?Never mind got the hang of it now… didn’t think it was getting attached automatically.
Forum: Fixing WordPress
In reply to: Text all centered in IE, but normal in Firefox and ChromeYou got textalign: center; in your CSS when IE is running. In your CSS-file put this in:
.PostContent p{ text-align: left !important; }
This will force all p paragraphs in your content to be aligned to the left. But the bust way to do this is to add that bit of code into a IE7 and under conditional stylesheet. But it should work if you just add that bit of code to the normal CSS-file also.
Forum: Fixing WordPress
In reply to: How do I force a reset on WordPress URL and Blogg URL?This question pops up a few times every day. That setting should be hidden or come with a warning in big red letters or something. In any case, the quickets way is to put the setting back in your database:
Thanks, didnt really think about jumping into phpmyadmin! Resolved!
Forum: Fixing WordPress
In reply to: Need to seperate Authors(each author is a category) with a semicolonforeach((get_the_category()) as $childcat) { if (cat_is_ancestor_of(65, $childcat)) { $author[] = '<a href="' . get_category_link( $childcat->cat_ID ) . '" rel="' . $childcat->category_description . '">' . $childcat->cat_name . '</a>'; } } $postfooter .= implode(", ", $author);
Solved it and sorry about my bad english before.
Edit: Thanks for the answer, above. Though I remembered the implode function which made it very easy for me.
Forum: Fixing WordPress
In reply to: Need to seperate Authors(each author is a category) with a semicolonOh sorry I meant colon, my mother langauge aint english. My bad…
I meant here:
foreach((get_the_category()) as $childcat) { if (cat_is_ancestor_of(65, $childcat)) { $postfooter .= '<a href="' . get_category_link( $childcat->cat_ID ) . '" rel="' . $childcat->category_description . '">' . $childcat->cat_name . '</a>'; $postfooter .= ', '; } }if($authors) $postfooter .= '<br />';
Forum: Fixing WordPress
In reply to: Disabling comments on certain postsThis was easier than I thought…
$cat = get_category_by_path(get_query_var('category_name'),false); $cat2 = $cat->cat_ID; $cat1 = 54; $ancestor_to_cat = cat_is_ancestor_of( $cat1, $cat2 );
Then put an if-case before the comments loop in single.php. If anyone else had the same problem as me.
$cat1 = category relatives ID you want to test against
$cat2 = the category that is connected to the post$ancestor_to_cat = either true or false. A boolean value.
if(!$ancestor_to_cat){ ?> <?php thematic_comments_template(); ?> <?php } ?>
This is the thematic-themes single.php. So just wrap the if case around the whole comments in any single.php and it should work just fine.
thanks will give it a look
Forum: Fixing WordPress
In reply to: How to display Author Bio under each postSounds your in need of this: the_author_meta
I myself havent tried it out, but it sounds alot of what you described.
Though I have no clues of any plugin, but it seems not so farfetched that one would exist.
No I have not considered that, how I want it to be is that when you are on Page X for example. The special searchfield is gonna show up, that is just gonna search through ONE category.
Forum: Fixing WordPress
In reply to: wp_list_pages() not excluding grandchild pagesIt was a plugin that was interferring, called exclude categories. Disabled it now, and it works alright again!
Forum: Fixing WordPress
In reply to: Issues after transfering blogFor anyone else with a similiar problem, this solved it for me:
define( 'CONCATENATE_SCRIPTS', false );
Add this to your config.php, might also need to add:
@ini_set("memory_limit","50M");
Forum: Fixing WordPress
In reply to: Using custom fields to show a specific timeOh, totally missed that! Thanks its working alright now.
Forum: Fixing WordPress
In reply to: Is this a good usage of custom fields?Must say your solution saved me lots and lots of time! Thanks yet again!
Forum: Fixing WordPress
In reply to: Is this a good usage of custom fields?think it’s a really good use for custom fields. and it will work for events providing you enter/store dates in the format `yyyy-mm-dd’ so that you compare them directly. I’ve written custom templates for event listings that use this approach and they seem to work just fine.
Wow thanks for the quick answer! Will take a look at it right away!