Alex Cragg
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Firefox does not seem to use css while IE doeshave you tried changing
<style type="text/css" media="screen"> @import url( http://gomeffect.nl.orion.dnstemplate.com/wp-content/themes/Gom Nieuw/style.css );</style>
to
<link rel="stylesheet" type="text/css" title="Default Style" href="http://gomeffect.nl.orion.dnstemplate.com/wp-content/themes/Gom Nieuw/style.css" media="screen" />that might help, give it a try, if not, then maybe when you edited the style sheet you deleted the closing
*/on the theme details by mistake or something like that?Forum: Everything else WordPress
In reply to: Hacked – Someone has added files to my serverNo I’m not, i have other e-commerce on the same host, but not on this domain. What else could be causing the vulnerability? The details talk of index.php, but my index.php is just the standard wp-blog-header include, nothing else.
You’re right, in my haste to post I didnt realise it was the user agent, not referrer.
Thanks for the speedy reply.
Edit: Ok just seen your edit, not too hot on server configuration. I’m still on php 4, where should I be putting that line?
plus, deleted the folder, nothing happened to my site, so thats a plus!
Forum: Fixing WordPress
In reply to: Why visitors are not able to comment on my blog?go to your admin section, then options, on the general options page untick ‘users must be registered and logged in to comment’.
If that isn’t checked then there is something else wrong!
Maybe if we could see how you are trying to do it at the moment, that might help us figure it out?
Forum: Developing with WordPress
In reply to: Plugin help for a newbie plugin writerwhen you say user then, do you mean not a backend user, but a visitor to your site?
Forum: Developing with WordPress
In reply to: Plugin help for a newbie plugin writerI wrote a quick post listing some resources for writing a plugin, and to save listing them all here again, have a look at http://webdev.mysoutham.com/writing-a-plugin/
Forum: Fixing WordPress
In reply to: Conditional tags on 2.3 when using a static home pagemaybe try using is_page() with the id of the page you have as the static homepage in the brackets?
Forum: Fixing WordPress
In reply to: Admin Photo SectionI think you’re going to have to explain a bit more.
What do you mean by ‘photo choices’?
You say get more on a page, but which page do you mean?
Are you referring to the upload box?Forum: Plugins
In reply to: Membership Paymentshave a look at http://www.instinct.co.nz/blogshop/
It is an e-commerce solution, a free plugin, with a payment for a members module upgrade.
also try http://butlerblog.com/wp-members/
Forum: Fixing WordPress
In reply to: how to change wordpress@mysite.com to something else?I have a plugin that can alter the text sent went people register on your blog, as well as the address the email is sent from. It also allows you to include html in the email.
Check it out!@nickrita – If you change every instance of the address in pluggable.php (its new name) then the reset password will be covered to.
Don’t forget though that editing core files isn’t advisable as on upgrade the data is overwritten, and if you make a mistake in the file you edit, you might mess up your blog!
Just to make sure I understand the issue, and from looking at your site.
You click on your portfolio, then the submenu appears. You click on websites, and a list of sites comes up, you click on one of them, but then the submenu disappears, but you still want it there. Is that the problem?
Assuming all your posts listed under ‘website’ are in a ‘website’ category, with an ID of 1, you could use something like
<?php if (is_single())&&(in_category(1)) { echo 'here is my submenu php/html stuff'; } else { echo 'whatever'; } ?>maybe i missed something though, so sorry if that wasnt what you were looking for! 🙂
Forum: Themes and Templates
In reply to: Display 2 different sidebarsForum: Fixing WordPress
In reply to: how to get the post text by functions or by PHP?I went to post this last night, and my laptop ran out of battery, so sorry about that.
First off, let me say thank you! This is the ideal solution to do something that I have been trying to get around for the last few days!
I’m not 100% sure of this, so it might not work, but its something to play with, and i havent tested it.
First of all, i dont think this could work with widgets, so you would have to add php into your sidebar directly.
<?php $my_query = new WP_Query('showposts=5'); while ($my_query->have_posts()) : $my_query->the_post(); $sidebarrecent[] = get_the_ID();?>So, create a new variable in a custom loop: $my_query.
then get this to perform the main wp query on posts, and tell it to show the last 5.
Then start the normal loop structure, but using our custom query.
Set up an array to store the ids of the posts found.Now we can call on this array to show the posts, and then find their respective excerpts.
so for this we just use
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>to output the title and
<?php the_excerpt(); ?>for the excerpt, but where to put it i hear you ask?!Well, for example, if we were using mootools, we would just place this as the title of the link, so we now get this:
<li><a href="<?php the_permalink(); ?>" title="<?php the_excerpt(); ?>"><?php the_title(); ?></a></li>To set up the javascript, its a bit trickier, (and again, this is more than likely missing something!!) as mootools requires a variable and class for each instance of the script, and as its moo, add the domready.
<script type="text/javascript"> window.addEvent('domready', function(){ var Tips<?php foreach ($sidebarrecent as $id) { "'.Tips".$id."'";} ?> = new Tips($$(<?php foreach ($sidebarrecent as $id) { "'.Tips".$id."'";} ?> )); }); </script>Now include the mootools library and you should be good to go.
let me know how far you get.
Forum: Themes and Templates
In reply to: Side By Side ThemeNot a direct answer to your question, but just a suggestion, if both you and your friend can edit posts, what is to stop one of you writing a post, and then the other adding their views on the end, with a new header?
Also, how about using custom fields, that way you could put each persons view in a different value, under a key of your names, say, and then in your single.php, use this to retrieve each of your views, and style them differently? Maybe putting them side by side, that is definitely doable.
I’m sure someone can suggest other, probably easier, ways!
Good luck!
Forum: Plugins
In reply to: Is it possible to make people subscribe to your wordpress to view pages ?have a look here
http://butlerblog.com/wp-members/