ludvig87
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Post titles on an additional page – How?any? i don’t know much about mySQL so… Could really use some help…
Forum: Plugins
In reply to: phpGiggle 1.3.0 ReleasedI tried and had a look at the wordpress installation file but it said nothing about what code to put in the index file…So I just deleted the code in index and uploaded it.. Weird, the links still worked…
Is it supposed to be like that??Forum: Plugins
In reply to: phpGiggle 1.3.0 Releasedanyone who knows how to fix it??
Forum: Fixing WordPress
In reply to: Post titles on an additional page – How?After putting the actually code in the index.php it worked…
But just like Karl I would like to have the date thing working as well.. How exactly is the code to look like in order to make it work??
Mine look like this so far:
function get_recent_posts($no_posts = 5, $before = ‘- ‘, $after = ‘
‘, $show_pass_post = false, $skip_posts = 0) {
global $wpdb, $tableposts;
$request = “SELECT ID, post_title FROM $tableposts WHERE post_status = ‘publish’ “;
if(!$show_pass_post) { $request .= “AND post_password =” “; }
$request .= “ORDER BY post_date DESC LIMIT $skip_posts, $no_posts”;
$posts = $wpdb->get_results($request);
$output = ”;
foreach ($posts as $post) {
$post_date = $post->postdate;
$post_title = stripslashes($post->post_title);
$permalink = get_permalink($post->ID);
$output .= $before . ‘‘. $post_date . ” – ” . $post_title . ‘‘ . $after;
}
echo $output;
}
I think I have done like the it is being told in this thread…Forum: Fixing WordPress
In reply to: Post titles on an additional page – How?I have…. Ok, I will try with putting it in index…
Forum: Fixing WordPress
In reply to: Post titles on an additional page – How?Anyone? I really need this to work.. The site won’t be opened before….
Forum: Plugins
In reply to: phpGiggle 1.3.0 Releasedanyone??
Forum: Fixing WordPress
In reply to: Post titles on an additional page – How?I tried to put it in my-hacks.php, enable it in /options-misc.php – Use legacy my-hacks.php file support, but it still are giving me this error:
Fatal error: Call to undefined function: get_recent_posts() in /web/www/frac/users/kristianp/index.php on line 7
What am I doing wrong?Forum: Plugins
In reply to: phpGiggle 1.3.0 ReleasedI get this error on my site after a upload of both wordpress and phpGiggle
Warning: Missing argument 1 for giggle_autolink() in /customers/deep-within.dk/deep-within.dk/httpd.www/wp/phpGiggle/phpgiggle.inc.php on line 35
The code in my index is this:
<?php giggle_autolink(); ?>
It comes after
<?php
/* Don’t remove this line. */
require(‘wp/wp-blog-header.php’);
?>
<? include(“header.php”) ?>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”https://www.w3.org/1999/xhtml”>
<?php //comments_popup_script(); // off by default ?>
<?php wp_head(); ?>
And then afterwards comes all the coding for that site..
Where am I going wrong in the installation?Forum: Fixing WordPress
In reply to: Post titles on an additional page – How?ok then.. thank you for your help.. i will try that..
Forum: Fixing WordPress
In reply to: Post titles on an additional page – How?I used the link to the recent posts one here in this thread…
I’d think most of the hacks for 1.0.2 can be changed to the plugin thingy that comes with 1.2.
What I meant with the plugin, was to just take the code, put it in its own file, upload it in the plugins folder and activate it..Forum: Fixing WordPress
In reply to: Post titles on an additional page – How?In version 1.2 you should be able to do the plugin which I did.. What is the difference between my-hacks.php and the plugin? Should I put it in my-hacks.php?
Forum: Fixing WordPress
In reply to: News.php instead of index.php (v. 1.2)Thank you very much ??
Forum: Fixing WordPress
In reply to: Post titles on an additional page – How?I get this error: Fatal error: Call to undefined function: get_recent_posts() in /web/www/frac/users/kristianp/index.php on line 4 when I use that code…I am using version 1.2..
What can I do to fix that? Soon the site with the blogs will be on news.php instead of index.phpForum: Installing WordPress
In reply to: What is this error??Why can’t wordpress run with the include(“header.php”) BEFORE the wp-blog.header code??
The way it is now, it doesnt make the site able to be validated.. Simply because it has to have the header include as the first code to pick up to find my html/xhtml code….
Is there someway that can be fixed so it can be validated??