greymullet
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Yet another problem with including PHPI tried it and still no luck. Any other suggestios would be really helpful.
What I need is code that will repeat the HTML down the page but change those two variables. Any alternative method would be appreciated. The most important thing is that it works which, sadly, this isn’t doing at the moment. My original code, and all of the variations on it, are just making the server send a blank page. Not even any of the non PHP stuff is getting through, the page just comes out completely blank.
Forum: Fixing WordPress
In reply to: Yet another problem with including PHPThanks, I’ll try cutting out the commas to start with. If that doesn’t work then I’ll try mdawaffe’s suggestion.
With mdawaffe’s code will the:
<div class=”widetopbox”></div>
<div class=”textbox”>
<img src=”sunthb.jpg” class=”alignleft” />
<div class=”setinfo”><h3><?php echo $Party ?></h3><br/>
<?php echo $Date ?>
</div>
<div class=”newset”></div>
</div>
<div class=”widebottombox”></div>repeat as many times as there are rows inthe array?
Forum: Fixing WordPress
In reply to: Yet another problem with including PHPRight, I’ve found the code. Sorry about making this 2 posts, but I had to find the code and my computer was sounding like it could crash at any minute. I didn’t want to lose what I’d just typed.
If anyone wants to have a look through this and point out anything that I might be doing wrong I’d very much appreciate it. The code’s intended to display the HTML code as many times as there are rows in the array, with the values from the array filled in. When I tried to use this hard-coded into a template the page wouldn’t even display. The source of what I got when I tried accessing it was just “<html><body></body></html>”. Any help would be great.
<?php
$Photoset = array(
“Party 1” => “Smarch 2003”,
“Party 2 => “Smarch 2004”,
);foreach ($Photoset as $Party => $Date){
echo
<div class=”widetopbox”></div><div class=”textbox”>
<img src=”sunthb.jpg” class=”alignleft” />
<div class=”setinfo”><h3>$Party</h3><br/>
$Date
</div>
<div class=”newset”></div>
</div>
<div class=”widebottombox”></div>;
}?>
Forum: Fixing WordPress
In reply to: Yet another problem with including PHPThanks very much ??
I probably didn’t explain that too well. When I said about uploading the code, I meant a template file containing the PHP code. All of the PHP I talked about had been hardcoded. That at leat explains why the ‘Hello World’ ran without the plugin enabled.
Now I just need to find out what’s wrong with the piece of PHP code that I wrote over the weekend.
I’ll put it in the next post for clarity’s sake:
Forum: Fixing WordPress
In reply to: Directories – but differentIn fact it was less mupltiple blogs, more that I wanted to tie the rest of my site in with my blog. So I need the WordPress files in my root folder, but would still like my blog to be at https://www.my.domain/blog/
Forum: Fixing WordPress
In reply to: Directories – but differentTried doing that, switxhing it I mean, and some errors came up when I tried to load the index.php page. Might have been due the differences between Kubrick and standard 1.3, which I why I mentioned that I was using Kubrick.
I want my wordpress files in the root folder so that I can have multiple blogs in seperate sub-folders. Might just be easiest to have a copy of the files in every sub-folder, but it would be ideal if I could just have the WP files in the root folder and then refer to that from the sub-folders; that way I could make changes to all of them simultaneously and easily.
Forum: Fixing WordPress
In reply to: Where’s the comment loop?LOL, I am an idiot sometimes.
Thanks, I’ve found where it goes now.
Forum: Fixing WordPress
In reply to: Where’s the comment loop?I’ve been trying to enable gravatars ( https://www.gravatar.com/implement.php#section_2_2 ) in my weblog. I’m meant to put the tag inside the comment loop, but, to be honest, I’m not entirely clear what/where to find the comment loop. I’ve been through my index.php file, but I can’t find anything that seems to be related to comments. Can anyone point me in the right direction?
I’m using Kubrick, in case that makes any difference.
Forum: Fixing WordPress
In reply to: CategoriesThanks. First thing that I tried was editing the post, but I couldn’t see the checkboxes. Now that I look again I can see them clearly. I was on a different computer at the time though, running with a lower screen resolution. All that I can think was that it was something as simple as the checkboxes being off the edge of the screen.
Whoops
I’ve been having trouble with spam from them ever since the first day of my blog. I just got round it by setting up wordpress so that all posts with the word ‘poker’ have to be moderated.
It’s quick, it’s simple and it seems to have worked.
Forum: Fixing WordPress
In reply to: CategoriesSorry, that first sentence should read “…setting up any categories.”