Laughinglizard
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Single PostMy understanding of WordPress leads me to believe that this would be slightly difficult in the present form. An entry consists of a bunch of items which include the blog title, URL, comment trackback etc. In order to acheive what you want (if I understand you correctly, you want to simply print out the first entry of a category) you would have to modify the default b2_loop inside of WordPress to generate one entry. I patched together something for you.
Copy and paste the following code into a php file and call it single_entry.php
<?php
$blog = 1;
require_once(‘blog.header.php’);
require_once($abspath.’wp-links/links.php’);
require_once($abspath.’wp-links/links.weblogs.com.php’);
if ($posts) { $post = $posts[1]; start_b2();
the_date(”,'<h2>’,'</h2>’); ?>
<h3 class=”storytitle” id=”post-<?php the_ID(); ?>”>
” rel=”bookmark” title=”Permanent Link: <?php the_title(); ?>”><?php the_title(); ?>
<span class=”meta”>” title=”Category: <?php the_category() ?>”>[<?php the_category() ?>] — <?php the_author() ?> @ <?php the_time() ?></span>
</h3>
<div class=”storycontent”>
<?php the_content(); ?>
</div>
<div class=”feedback”>
<?php link_pages(‘
Pages: ‘, ‘
‘, ‘number’); ?>
<?php comments_popup_link(‘Comments (0)’, ‘Comments (1)’, ‘Comments (%)’); ?>
</div>
<?php include($abspath . ‘b2comments.php’); ?>
<?php } ?>
Now, put this file in your WordPress folder and simply point to it with the right category value. This should spit out the first entry for a single category, in a new webpage. Use the php include tags to put this inside your blog. Hope this helps,
PeaceForum: Themes and Templates
In reply to: Request: Email me copies of your comment spamThat would be incredibly useful! I would start testing my hypothesis on comment spam! 🙂
Forum: Fixing WordPress
In reply to: Archive Questionheh! Cool…and thanks admin for fixing my post! 🙂
Forum: Fixing WordPress
In reply to: Archive QuestionI broke it all! I cant read anything! You could email me, would be better than pulling out our hair here… 🙂
Forum: Requests and Feedback
In reply to: track downloads of uploaded file?I have something like this working on a couple of portals which I wrote. I will have to redo the code to work with WordPress. This might take some time, but if you are willing to be patient, I could give it a shot.
Forum: Requests and Feedback
In reply to: pasting webpagesIf this article on the webpage is from a blog with a newsfeed (RSS, RDF etc) you could use a newsreader and post directly from there. Look at http://wordpress.org/support/index.php?action=vthread&forum=4&topic=883&page=0
Forum: Installing WordPress
In reply to: DQL/DB ErrorsAnon, the database needs to be created by hand before running the wp-install script. The script creates the tables and required columns for you as long the user specified in the DB connection information is correct and the user has rights on the database.
Forum: Fixing WordPress
In reply to: mod_rewrite generating Internal Server errors?Dougal’s comment makes a lot of sense. From your above log file, it looks like .htaccess sees the $ as the end of the RewriteRule . Here is a good guide from apache for mod_rewrite understanding http://www.engelschall.com/pw/apache/rewriteguide/
Forum: Fixing WordPress
In reply to: What on Earth have I done to my site?You must have posted while I was typing my answer! 🙂 No biggie, I was going to say, just delete the original port and it will be forced to download and perform the cleaning again. It also had the wrong download site for SourceForge. You might want to fix that in the future. (http://www.onlamp.com/lpt/a/4111) It also looks like you are using an Alpha build of PHP (pre-alpha port actually) which in my opinion, is simply a very bad idea in a production server unless you are debugging/beta testing PHP itself. I would look into switching back to 4.3.4 port of PHP stable and your array problems should go away. I believe this bug is from the Zend Engine that PHP5 comes with and causes problems in certain apache installations. As of 8:30 this morning, there is no mention of this bug in the developer CVS. I hope I led you somewhat in the right direction.
Forum: Fixing WordPress
In reply to: Editing Archive LinksAllusion is the best person to answer this. But WordPress (and consequently you) will be happier if it is installed inside the pre-determined directory structure. If you move the template (the index.php) outside the main wp directory, things will inadvertently break. I would really like to know your reasons behind wanting to password protect everything behind /wp directory. Is your main site different from the WordPress blog?
Now, to answer your archives link question. Those links are created by appending to the $siteurl variable inside b2template.functions.php When you change this under wp-admin and options, it should change it for the archives links as well.Forum: Requests and Feedback
In reply to: attachments / imagesJaxxx and Sushubh, you could use the photo hack for WordPress from AlexKing.org. It lets you put photographs inside the entry and has a bunch of new features. I find it easier to link to photographs. This makes for easier editing and simpler management. Here is the link to it. http://www.alexking.org/index.php?content=software/b2/photos.php
Forum: Themes and Templates
In reply to: Cool WordPress template!Hmmm…lots of tables, no CSS control, inline style sheets…is this going to be shared? 🙂
Forum: Fixing WordPress
In reply to: Editing Archive LinksI think I understand your question, but I think I think wrong 🙂 The way I understand it, you are asking if your archives path would change accordingly with the change of the main blog folder. If I decide to move my WordPress folder into the root of the website or to any other folder, as long as I change the siteurl settings in the options (and the few other link based settings) WordPress will not care. Everything should work just fine. For example: http://dinki.mine.nu/weblog/ and http://dinki.mine.nu/wordpress/ are 2 different blog folders with slightly different templates and completely different PHP files and such, but they access the same information. Was this your question, and consequently, does the answer work?
Forum: Fixing WordPress
In reply to: Editing Archive Links🙂 I saw this post and was hoping someone would answer it, but I guess I should stop being lazy++. Look for b2template.functions.php in your b2-include. Now, while in there, look for the line
$archive_date_format_over_ride = 0;
Change the 0 to a 1. Now look for:
$text = sprintf(“$s $d”, $month[zeroise($arcresult->month,2)], $arcresult->year);
(line 171 in the unhacked version, inside the function get_archives) and replace with:
$text = sprintf(“%2(backslash)$d.%1(backslash)$.3s”, $month[zeroise($arcresult->month,2)], $arcresult->year);
and Voila…
PS: Please replace (backslash) including the brackets with real backslashes
PeaceForum: Fixing WordPress
In reply to: Is it possible to have 2 wordpresses?This should have been fixed in the latest CVS release. Were you using this or just the SourceForge download?