ment0r
Forum Replies Created
-
Forum: Installing WordPress
In reply to: Simple Image Fix?add to your “style.css”:
#content {
background: url("http-link-to-image") top right no-repeat;
padding-top: [height-of-image]px
}for example:
#content {
background: url("/blog/wp-images/back.jpg") top right no-repeat;
padding-top: 120px
}thats the easiest to me..
– mentorForum: Your WordPress
In reply to: Please check out my blog…looks nice.
small suggestion tho: you have this addictive book / image thing on your sidebar. the text is kinda too close to the image, thus hard to read. i wrote a small piece of CSS which will add more space between image and text. if you would like to try just add this:
.addictiveimgbook,
.addictiveimgmovie {
margin-right: 4px;
}at the very end of you style.css file.
keep it going. nice read.
– mentorForum: Themes and Templates
In reply to: show only current child category (categories)— suggestion for devs —
extend the “child_of” option to be defaulted to current category if is_category.
— end of suggestion —my 2 bytes.
Forum: Themes and Templates
In reply to: show only current child category (categories)i did some research..
there is no official way to get the current category ID. I looked up codex-wiki and tried all present cat-functions. none of them all offered a working option for this. if you not using permalinks, there would be a way by asking for the URL, prefixed by “is_category() {..”
`$cat_id = addslashes(trim($PHP_GET[‘cat’]));
but then again, it’s a nasty hack…
in the codex-wiki they say that the function “the_category_ID()” has been replaced by “get_the_category()”, but what i get of their snippet is only false positives (mixed parent/child cats) .. no idea .. the results of that function are not even close.
i also played around with that function on my own.
no idea what it’s doing. this is really weird..why theres no way to get that cat_id??
i actually thought out some crazy way to manage this, but not under 5-10 lines of code.. cant be ..
Forum: Plugins
In reply to: Google Sitemaps incompatible with Popularity Contestgod. i was already wondering why the hell it’s not counting anything. thanks for the hint. i got sitemaps installed first. so i couldnt notice that effect.
but i cant help you on topic. only confirm that the problem exist. i know a bit on how to code. i will look into it. you could try contact the author.
Forum: Themes and Templates
In reply to: how to remove a kubrickbg.jpg line above the header imagehave a look on the header.php. the links to the images are placed there.
Forum: Fixing WordPress
In reply to: New rules for CSS validation?!about that background/foreground color thing:
Thats a pure notice. The validator cannot know if the css would be valid combined with the structure of document (thus the mentioned items get their (missing) background and color attributes from styled parent items).
in plain css, it looks wrong to the validator. in action (live) it’s all o.k. i think this can be safely ignored.
Edit: you can stop him warning by adding “background-color: transparent;” to all elements named.
Edit2: this idea on how to stop the warnings: its not 100% save.. it depends on how your document is made. also you will loose redundancy. imagine the needed effort if you wanna change colors later… i go for ignoring..
Forum: Fixing WordPress
In reply to: New rules for CSS validation?!true. i was wondering about the validation result of mine too. wants a color everywhere.. thats not smart in my eyes. i dont see the problem why color attributes cant be inherit (as they was?). relative items should normally (as they still do) adopt the background-color property.
Forum: Fixing WordPress
In reply to: New rules for CSS validation?!yes, but cant be bothered to fix, heh. ^^ this gettin outta hand. but i have no problems with any browser, so i’m happy. the -moz stuff is of course a css hack, and hacks are never valid, but if i want my page to look like it does theres no way around.. or maybe is. dunno. im happy with the page actually, but thanks for the input. in some silent moment i will try to fix them all ?? at least the xhtml is valid and that counts most to me. took me some time to make all plugins valid.
Forum: Installing WordPress
In reply to: parse error problem—please any helphi!
i assume that this is the error. everything else looks fine. the list_cats(…) doesn’t finish with a semicolon. try it.
<li>
<h2><?php _e('Categories'); ?></h2>
<ul>
<?php list_cats(0, '', 'name', 'asc', '', 1, 0, 1, 1, 1, 1, 0,'','','','',''); ?>
</ul>
</li>regards, m3nt0r
Forum: Fixing WordPress
In reply to: New rules for CSS validation?!no. never had that. only really weird thing happend to me by playing around wit the doctype. i guess it’s your document type (maybe changed recently?).
did you validate by refer, upload or copy/paste? if some new plugin added inline css to your site it might be that css code and not the theme-css (blix).
a url to your css and preferbly your website would help.
Forum: Fixing WordPress
In reply to: the_permalink on index causes // in linknah, slambert. i didnt add the slash, i removed it. anyways. doesnt look like this was the problem. according to the hint of viper i think the slash is in your permalink structure too. (didnt know you got permalinks active, doh)
presumably the first one in line.
regards, m3nt0r
Forum: Fixing WordPress
In reply to: the_permalink on index causes // in linkGo to WP-Admin > Options > General and remove any trailing slash in the fields: WordPress address (URI) and Blog address (URI)
i had that too. worked for me.
example
somedomain.com/blog/ -> somedomain.com/blog(i didnt put https:// cause i dont want to have a link to the example url)
i think you can follow.
good luckregards, m3nt0r
Forum: Fixing WordPress
In reply to: Create Page with PHP scriptingi think you mean to execute php over the admin “write page” thingie..
there are plugins out who can do that for you, since modifying the template would apply the PHP code to ALL pages and i guess you only want it on a single specific page, created in admin interface.
I am using the plugin RunPHP from NoStatusQuo. With it enabled you can use BBCode-like markup to run php code in that page/post .. etc.
Check it out: https://www.nosq.com/2004/10/runphp-wordpress-plugin/
regards, m3nt0r
Forum: Installing WordPress
In reply to: using freesql.org how do i set up wp-config.phptry “freesql.org”
or try “24.218.236.105”, which is the IPthat www in front of the url might not route directly to the mysql server.