Rough Book

random musings of just another computer nerd

Category: PHP

Popularity Contest WordPress plugin breaks RSS feed

I’m using a somewhat old plugin (it hasn’t been updated since ’09) called Popularity Contest to show the popularity of my posts. However, I noticed that it was breaking my RSS feed. This is due to the fact that the plugin doesn’t properly escape the ampersand character inside an image URL. Instead of & it uses just &. You can fix this by changind line number 2272 to:

$str .= '<img src="'.site_url('?ak_action=api_record_view&#38;id='.$post->ID.'&#38;type=feed').'" alt="" />';

Journal Entries partially working and Comments!

Guess what! You can add comments now too… muahahaha. Erm. Yeah. I’m going to make a pretty page from where I can submit journal entries. Well, quick and dirty first. Then the pretty version will come later.

Finally… something functional on this website. It’s been about three months, but I finally have something here. I’m able to pull the journal entries fine from the database, but I have to send it through a parser to parse out the custom tags that I have… that’s the next step. But this is a good start. I’ll provide the terrible details of what actually happened over these past three months later…

Now to test out some custom tags… I’ll be deleting this entry later…

Long years ago, we made a tryst with destiny… And so on and so forth. This is a quote. Just some crap, really.

I should say more. A lot more. BLAH DE BLAH BLAH.

Lalalalaa!! This is a test.

Now for some code snippets:

#include <stdio.h>

int main()
    int c = c;
    printf("%i", c);
    return 0;

Yes, that actually works. And another one:


  print "perl is TEH rox0rz";

And now, just a line of code:

find something | xargs grep stuff

And a dialogue:

Me: w00t
You: rox0rz!11ONE11!!
Me: j00 4r3 teh d00m3d!!!1ONE11!!ELEVEN!!!11ELEVENTYBILLION!!11
You: OH NOES!1!!!!

That should be good enough.

Journal Entry Display Template

Ok so I’m writing some stuff here… just to make it look like I have something… I’m figuring out the layout right now… so… blah de blah de blah. I need to write enough to make this look long enough. Like a normal journal entry. So… blah de blah de blah blah. Hmm… I think I will use random strings of letters. So here goes. Adhsfh asoiew pasdofk weife. Woidsj soidsfj soso ajs pwei adjfp ajgia pwe? Aidso wieji aodifp aowaoe sdjfis gisod!! Gjoei waoid waooa eirj aodk glas. Wrije epiew jwld pwqj apgoi aopwp apds apeoijap apd spdi psos peowe aspdfl alg siie sidj app ajdj aueu gjwi igw wiej ago aeowp giaoewp gjskd wpeoi apdpd apgpd apdpd eijg. Aeidk siej apdwoieja alsd wid psdk wigjs aidja gjda pda sdu wopie widjsd wie. Ioijel isdjw pewpj sdpfie! Losing my website was TEH SUCK!11!11!ONE111!!ELEVEN11!!!ELEVENTYBILLION11!!! But because I am a l33t h4x0r I was able to get back my journal entries!!111!! I am TEH R0X0RZ11!!! Disk failure is TEH D00M3D11!!!!111. Ok, so that should be enough material.

Photo Album Complete

After 3 years of empty promises, my pictures are finally on the website. You can track all of my promises through these journal entries… but anyway, it’s all done now! Ahhh… It feels good. The thumbnails will take a little time to load… that’s because it’s generating the file on the server – dynamically. I’m proud of this entire tool 🙂 The next thing I’m going to work on – Creating and Updating User information. Then what… Hmm… Links and Projects maybe… Update my bio and resume… oh yeah, make a debugging console… oh and even a reminder and a calendar tool… That should be fun…

User authentication complete

The website authenticates users now. If you try to log into any restricted areas, you are presented with an intimidating, yet helpful message which informs you that you have insufficient privileges. Now I actually need to add stuff to the User Tools page… I probably should make an Add New Users tool… certainly beats manually entering it into the dbase…

User Page

I’m creating a User Page where users will be able to log in. I’ll be adding other features to the page later on, but for now it will only log you into the site.

Photo Album access rights

Exclusive Albums will no longer appear in the Album List. That makes the “Exclusive” column redundant. I’m too lazy the change it though.

Photo Album up and running

The Photo Album is complete. I’d say 95%… I’m still implementing access rights and privileges. Essentially people won’t be able to see all the pictures I have. I’m keeping certain pictures private or viewable only by certain people.

Anyway, go ahead and take a look.

Waste of time

I wasted about an hour trying to track down a problem in my encryption algorithm. I still can’t find it! Right now I’m using a crude hack to fix the problem. It fixes it… and works about 99% of the time. I have another idea though… hmm… Anyway, Photo Album should be up and running by the end of today…

Photo Album nearing completion

I have been able to generate thumbnails. All I need to do now is spawn a window with a larger version of the image… that and a few cosmetic aspects. Like how the colour fades in and out? Pretty neat huh? 🙂

All original content on these pages is fingerprinted and certified by Digiprove
%d bloggers like this: