Arras theme page comments

Ok so I ran into this while looking at my site after upgrading to wordpress version 2.9 and found that all my comments for pages disappeared but the post comments were fine, So I googled and found that arras theme has a conflict with wordpress v2.9. and this is the issue and wamo-bamo it worked!

Instructions for configuration
GD Star Rating
loading...
GD Star Rating
loading...

FATAL ERROR MEMORY ISSUES WordPress

Ok So I needed to install a new version of wordpress (v2.9) for my site because I wanted to make sure that I my plugin would work right with new wordpress. So I auto install from my host (BTW wicked COOL, couldn’t do that before on my previous site), it does its thing and then says done. I go to check my set to see the new stuff and get this error:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 4864 bytes) in /home4/thomasno/public_html/wp-includes/default-widgets.php on line 613

I had no idea what to do and then I thought maybe a couple of searches through WordPress and Google and maybe I could get somewhere.

I then found this little GEM that fixed everything:

1
ini_set('memory_limit','64M');

You put this in your wp_config.php file at the top right above:


GD Star Rating
loading...
GD Star Rating
loading...

Top 15 wordpress 2.7.1 plugins

There is a lot of “stuff” on my page and I would like to explain a few things:

I have many plugins that I am using on my site and some that I need and some that are not that necessary but are useful in some aspects. So i am going to rate the 15 best plugins that I have found to be useful in my blogging experience. (the majority of these are mainly coding related because I have a lot of code that I’ve made and want on my site)

15)
Akismet 2.2.4  Akismet 2.2.4
» Matt Mullenweg (url)
Akismet checks your comments against the Akismet web service to see if they look like spam or not. You need a WordPress.com API key to use it. You can review the spam it catches under “Comments.” To show off your Akismet stats just put <?php akismet_counter(); ?> in your template. See also: WP Stats plugin.

My Reasoning: I had someone spamming my comment block even with the reCaptcha installed. At one point I had 120 spam comments.

14)
NextGEN Gallery 1.2.1  NextGEN Gallery 1.2.1
» Alex Rabe (url)
A NextGENeration Photo gallery for the Web 2.0.

My Reasoning: Because I have a lot of pictures and I wanted to show my family and friends some things that I have done to the house.

13)
Contact Form 7 1.10.0.1  Contact Form 7 1.10.0.1
» Takayuki Miyoshi (url)
Just another contact form plugin. Simple but flexible.

My Reasoning: I was able to make a contact form and many other random things that I needed to grab information from people. It also has the use of Captcha.

12)
Search Unleashed 0.2.27  Search Unleashed 0.2.27
» John Godley (url)
Advanced search engine that provides full text searching across posts, pages, comments, titles, and URLs. Searches take into account any data added by other plugins, and all search results are contextually highlighted. You can also highlight incoming searches from popular search engines.

My Reasoning: It a great engine to search your site and highlight what is searched.

11)
Google XML Sitemaps 3.1.3  Google XML Sitemaps 3.1.3
» Arne Brachhold (url)
This plugin will generate a sitemaps.org compatible sitemap of your WordPress blog which is supported by Ask.com, Google, MSN Search and YAHOO. Configuration Page

My Reasoning: You have to get you site out there somehow!

10)
FD Feedburner Plugin 1.4  FD Feedburner Plugin 1.4
» John Watson (url)
Redirects all feeds to a Feedburner feed

My Reasoning: It would be top 5 but a lot of the times it fails. But it makes for a really cool feed look.

9)
Whydowork Adsense 1.2  Whydowork Adsense 1.2
» Whydowork (url)
Insert Adsense code in your pages without modifying the template. Show different ads for articles older than 7 days (or as old as you wish).

My Reasoning: Because ads can make you money if you have visitors that click on them.

8)
WP Easy Uploader 1.0.8  WP Easy Uploader 1.0.8
» Chris Jean (url)
Easily upload any type of content without the need for FTP. You can even upload plugin and theme archives and have the files automatically extract into the plugin or theme folder.

My Reasoning: Because when you just don’t want to sign in to your stupid server acct just to upload a picture.

7)
WP-PluginsUsed 1.40  WP-PluginsUsed 1.40
» Lester ‘GaMerZ’ Chan (url)
Display WordPress plugins that you currently have (both active and inactive) onto a post/page.

My Reasoning: Well if it weren’t for the really cool coding plugins and admin plugins this would be top.

6)
WP-reCAPTCHA 2.9.6  WP-reCAPTCHA 2.9.6
» Jorge Peña (url)
Integrates reCAPTCHA anti-spam solutions with wordpress

My Reasoning: What can I say spam sucks so integrate this and no more.

5)
Register Plus 3.5.1  Register Plus 3.5.1
» Skullbit (url)
WordPress 2.5+ ONLY. Enhance your Registration Page. Add Custom Logo, Password Field, Invitation Codes, Disclaimer, Captcha Validation, Email Validation, User Moderation, Profile Fields and more.

My Reasoning: Because you don’t want just anyone to register right?

4)Its a tie between these two:
Woopra 1.4.0.3  Woopra 1.4.0.3
» Elie El Khoury (url)
This plugin adds Woopra’s real-time analytics to any WordPress installation. Simply sign up at Woopra.com, then activate the plugin and configure your site ID in the Woopra settings.

WordPress.com Stats 1.4  WordPress.com Stats 1.4
» Andy Skelton (url)
Tracks views, post/page views, referrers, and clicks. Requires a WordPress.com API key.

My Reasoning: I like both but I beginning to like Woopra much more than the standard one. You can name your vistors with woopra so you don’t need to wonder if that was you looking at your site five fridays ago.

3)
Executable PHP widget 1.1  Executable PHP widget 1.1
» Otto (url)
Like the Text widget, but it will take PHP code as well. Heavily derived from the Text widget code in WordPress.

My Reasoning: Because who wants to write php in the theme files?

2)
SyntaxHighlighter Evolved 2.1.0  SyntaxHighlighter Evolved 2.1.0
» Viper007Bond (url)
Easily post syntax-highlighted code to your site without having to modify the code at all. Uses Alex Gorbatchev’s SyntaxHighlighter v2.0.320 and code by Andrew Ozz of Automattic.

My Reasoning: I love writing code and everything and I am trying to learn more and more, and what better way to teach someone what you know…. THANK YOU SYNTAX HIGHLIGHTER!

1)and last but not least, the most important one for me is:
Wordpress Backup (by BTE) 1.4.5  WordPress Backup (by BTE) 1.4.5
» Blog Traffic Exchange (url)
Backup the upload directory (images), current theme directory, and plugins directory to a zip file. Zip files optionally sent to email. Configuration options are here.

My Reasoning: Because if it wasn’t for this plugin I would have lost all of my data when I upgraded wordpress.

Well I hope this is useful and let me know if you have any other ones that you think ROCK!!!!

GD Star Rating
loading...
GD Star Rating
loading...

My own RSS for music files from PHP

If you have read the previous post about the Website Music Player than you should be able to understand a little more about what is said in this post.

I was searching for hours and hours the other day and found some snippets of code to generate my music RSS and wow I love IT! I used PHP and xml to generate the RSS format.

I first had thought about how I generated the .xml code from the media player list and then found some things that could help in order to generate the correct information for the RSS feed.

So here is the code that I made that works:
(put this code in a music_rss.php file)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
 
$dir = "mp3";
$url = "http://www.thomasnorberg.com/mediaplayer/playerMultipleMenuPackage";
$email = "tnorberg at thomasnorberg dott com (Thomas Norberg)";
$name = "Tom's Blog";
$n = 0;
$playlist = array();
$fdir = opendir($dir);
while($i = readdir($fdir)) {
   // if a .mp3 string is found, add the file to the array
   if (strpos(strtolower($i),".mp3") !== false){
  	   $playlist[$n] = $i;
           $n++;
      }
}
 
//sort($playlist);
//shuffle($playlist);
//array_multisort($playlist);
 
$ttl = 1440;
$music_rss = "$url/playlist22.php";
header('Content-type: application/xml');
$rss_output = "<?xml version='1.0' encoding='UTF-8' standalone='yes'?>\n";
$rss_output .= "<rss xmlns:atom='http://www.w3.org/2005/Atom/' version='2.0'>\n";
$rss_output .= "<channel>\n\n";
$rss_output .= "<atom:link href='$music_rss' rel='self' type='application/rss+xml' />\n";
$rss_output .= "<title>$name Music RSS</title>\n";
$rss_output .= "<description>Where anything is everything</description>\n";
$rss_output .= "<link>$url/$dir</link>\n";
$rss_output .= "<language>en-us</language>\n";
$rss_output .= "<ttl>$ttl</ttl>\n";
 
for ($j=$n-1; $j>$n-11; $j--) {
   $title = str_replace(".mp3","", $playlist[$j]);
   $title = str_replace("_", " ", $title);
   $other = str_replace(" ", "%20", $playlist[$j]);
   $files = "$dir{$playlist[$j]}";
   $filetime = filectime($files);
   $size = filesize($files);
    $rss_output .= "\n<item>\n\n";
    $rss_output .= "<title>$title</title>\n";
    $rss_output .= "<link>$url/$dir/{$other}</link>\n";  
    $rss_output .= "<pubDate>" . date ("r", $filetime); 
    $rss_output .= "</pubDate>\n";
    $rss_output .= "<enclosure url='$url/$dir/{$other}' type='audio/mpeg' length='$size' />\n";
    $rss_output .= "<guid>$url/$dir/{$other}</guid>\n";  
    $rss_output .= "<author>$email</author>\n";
    $rss_output .= "</item>\n";
}
 
$rss_output .= "</channel>\n</rss>\n";
echo $rss_output;
closedir($fdir);
?>

This is what it should look like. Of course you have to change all the appropriate titles and everything or your won’t have anything to show on your RSS feed, such as the top three lines of code in the music_rss.php file:

1
2
3
4
5
6
<?php
 
$dir = "mp3";
$url = "http://www.thomasnorberg.com/mediaplayer/playerMultipleMenuPackage";
$email = "tnorberg at thomasnorberg dott com (Thomas Norberg)";
$name = "Tom's Blog";

And as always if you have any questions or comments please fell free to ask.

GD Star Rating
loading...
GD Star Rating
loading...

Website Music Player

I am finally able to sit down and tell you about the media player that I put on my website. As you can see to the right is a music player and the code that I used is valid XHTML. So here we go:

I first used the files from PremiumBeat.com and put them on my site. But then I didn’t want to edit the .xml file everytime that I added or deleted a song in the mp3 folder. So I found a script that I had from a long time ago from another mp3 player from another site that I built and had to modify it. So here is all the files and how to add them to your site.

Download .zip file here. (I accidentally deleted it awhile ago the link should work now!)

Upload those files to your server where you want the player to go and remember where you stored them (because you will need that url later to input and grab your files to play.

Then take a look at the sample HTML doc in your editor (NOT MS WORD, preferably something like notepad or editpad lite). Also OPEN the playlist.php file in the same editor. (NOTE THIS IS ALL FROM YOUR SERVER)

You are going to need to change a few things in order to have the music you want instead of mine.

So now that you have the HTML file open and the playlist file open. You need to change the following things:

On the sampleEmbedCode.html:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!-- End Copy/Paste -->
 
<!--Valid XHTML Code for IE and Firefox to Put in widget sidebar for wordpress-->
<div>
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" width="200" height="250">
    <param name="movie" value="http://www.thomasnorberg.com/mediaplayer/playerMultipleList.swf" />
<param name="FlashVars" value="autoPlay=no&amp;playlistPath=http://www.thomasnorberg.com/mediaplayer/playlist.php&amp;overColor=#822601&amp;playerSkin=2"/>
<!--[if !IE]> <-->
<script type="text/javascript" src="http://www.thomasnorberg.com/mediaplayer/swfobject.js"></script>
<div id="flashPlayer">
  This text will be replaced by the flash music player.
</div>
 
<script type="text/javascript">
   var so = new SWFObject("http://www.thomasnorberg.com/mediaplayer/playerMultipleList.swf", "mymovie", "295", "200", "7", "#FFFFFF");
   so.addVariable("autoPlay","no")
   so.addVariable("playlistPath","http://www.thomasnorberg.com/mediaplayer/playlist.php")
   so.write("flashPlayer");
</script>
<!--> <![endif]-->
</object></div>
 
<!-- End Copy/Paste>

and on the on the playlist.php file:

1
2
$dir = "mp3/";
$url = "http://www.thomasnorberg.com/mediaplayer/playerMultipleMenuPackage/mp3/";

Change everything that has http://www.thomasnorberg.com/mediaplayer/ to where ever you put the MP3 Player folder that you uploaded to your website.

Now when you open your sampleEmbedCode.html file again you should have the IsWar.mp3 playing. Now you can either delete that file from the mp3 folder and add new songs or keep it and add songs either way it is up to you. That is it so let me know if you have any complications that I can help with.

GD Star Rating
loading...
GD Star Rating
loading...
Quantcast