ludvig87
Forum Replies Created
-
Forum: Plugins
In reply to: Plug hack?Replace the code you already have with this one:
function comment_plugger($show = 1, $limit = 0, $sep = ', ', $none = ' none') {
global $wpdb, $tablecomments, $id;
$cid = ($show) ? ($id - 1) : $id;
$request = "SELECT DISTINCT comment_author_url, comment_author FROM $tablecomments";
$request .= " WHERE comment_post_ID='$cid' AND comment_author <> '' AND comment_author_url <> ''";
$request .= ' ORDER BY comment_author ASC';
$request .= ($limit > 0) ? "LIMIT $limit" : '';
$commenters = $wpdb->get_results($request);
if ($commenters) {
$output = '';
foreach ($commenters as $commenter) {
if (!empty($commenter->comment_author_url)) {
$output[] = 'comment_author_url.'" title="'.$commenter->comment_author.'">'.$commenter->comment_author.'';
}
}
}
if (is_array($output)) {
echo implode($sep, $output);
} else {
echo $none;
}
}
It works…. Im using it.. Though I have problems now…Forum: Plugins
In reply to: 3-4 last postI want the index file to link to the posts on the news page. but I get a: Fatal error: Call to undefined function: get_recent_posts() in /web/www/frac/users/jondt/index.php on line 3, when I add the code…
It works if I add the code on the news page..
Is there any way I can modify the code so that it picks up the posts from the news.php page instead?Forum: Installing WordPress
In reply to: What is this error??Dont worry.. Ive found the error..
ive put the include for the header before the wp-blog.header code…
It should be after…Forum: Installing WordPress
In reply to: What is this error??I have just upgraded my wp this morning and have tried to modify my index.php file…
Now I get this errorWarning: Invalid argument supplied for foreach() in /customers/deep-within.dk/deep-within.dk/httpd.www/index.php on line 8
Line 8 in my index is this:
<?php foreach ($posts as $post) { start_wp(); ?>
My entire index looks like this:
<?php include(“header.php”) ?>
<?php /* Don’t remove this line, it calls the WP function files ! */
$blog=1;
require_once(“wp-blog-header.php”);
?><meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ />
<!– // loop start –>
<?php foreach ($posts as $post) { start_wp(); ?>
<?php the_date(“d.m.y”,”<b>”,”</b>”); ?>
<?php the_content(); ?><?php link_pages(“
Pages: “,”
“,”number”) ?>
posted by <?php the_author() ?> @ “><?php the_time() ?>
<?php comments_popup_link(“comments ?”, “1 comment”, “% comments”) ?>
<?php include (“wp-comments.php”); ?>
<?php } ?>
<? include(“footer.php”) ?>
Have I edited out too much code???:Forum: Plugins
In reply to: 3-4 last postIt isn’t hard to upgrade from .072 to 1.0 – is it??
Is there many of the code files that need to be changed???Forum: Plugins
In reply to: 3-4 last postI do not have the “my hack” from false to true in my controlsystem..
I’ve checked.. I don’t…
I run with WP 0.72
Is that why I can’t find the “my hack” thing?Forum: Fixing WordPress
In reply to: Data format not on every postthanx…
did a search but couldn’t find a post that helped me… That link wasnt included…Forum: Plugins
In reply to: Dodo’s PLugger hackSOrry. I just jumped over 1 step.. Sorry… Dont need help ??
Forum: Plugins
In reply to: Dodo’s PLugger hackMine gives this error:
Fatal error: Call to undefined function: comment_plugger() in /customers/deep-within.dk/deep-within.dk/httpd.www/index.php on line 11
It is the code, that is there…… on the line 11….
What Ive done wrong??Forum: Everything else WordPress
In reply to: Show php codes with phpsThanks. Ill try out both…
Forum: Plugins
In reply to: codergurl’s hacksI am talking about the previous comments hack.
Forum: Plugins
In reply to: codergurl’s hacksIve added the code in my index file, but the comments dont show up.
Ive copied the code and insert it as I should, but what am I doing wrong???Forum: Installing WordPress
In reply to: “fatal error” on wp-installThe reason is maybe, that you have 2 / in the link..
To get it to work, i think you should use just 1 /Forum: Themes and Templates
In reply to: Only latest blog in tableThis is my entire index code.. Can anyone see what Im doing wrong`?
<?php include (“header.php”); ?>
<?php /* Don’t remove these lines, they call the b2 function files ! */
$blog = 1;
require_once(‘blog.header.php’);
require_once($abspath.’wp-links/links.php’);
// not on by default: require_once($abspath.’wp-links/links.weblogs.com.php’);
?>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ />
<meta name=”generator” content=”WordPress .72″ /> <!– leave this for stats –>
<?php get_archives(‘monthly’, ”, ‘link’); ?>
<?php // comments_popup_script(); // off by default ?>
<table bgcolor=”FFFFFF”><tr><td>
<CENTER>
<font size=”2″ color=”000000″>
<?php if ($posts) { foreach ($posts as $post) { start_b2(); ?>
<?php the_date(”,”,”); ?>
” rel=”bookmark” title=”Permanent Link: <?php the_title(); ?>”>
</font></STRONG>
</center> </TD>
</tr></TABLE>
<?php the_content(); ?>
<table bgcolor=”FFFFFF”><tr><td>
<CENTER> <font size=”1″ color=”#000000″><?php the_author() ?>
@
<?php the_time() ?>
<?php link_pages(‘
Pages: ‘, ‘
‘, ‘number’); ?>
<?php comments_popup_link(‘0 Is Unpredictable ‘, ‘1 Is Unpredictable’, ‘% Is Unpredictable’); ?>
<?php include($abspath . ‘b2comments.php’); ?>
</font></center> </TD>
</tr></TABLE>
<?php } } // end foreach, end if any posts ?>
<?php include (‘footer.php’); ?>Forum: Themes and Templates
In reply to: Only latest blog in tableAnyone know how to fix it??