Fenux.Net - The Life of a Geek
PHP
Stories about or somehow related to PHP.
Page 1 of 2
Posted on 12/2/2005 1:49 pm in PHP

And now I have to release a new version of GeekQuotes (my quotes module for PHP-Nuke). I've been working with the webmaster for DFWLarp.com for the last few days to make it work with older version of PHP-Nuke and MySQL than I run. I should have released later tonight.

Update: It's uploaded now. I also fixed another bug that made it display a database error on occasion. You can download it from here.

Posted on 11/26/2005 9:45 am in PHP
I've been fighting with PHPNuke off and on for awhile about incorporating images into my posts. I've added the img tag to the $AllowableHTML in config.php, but sometimes it will still mangle my tags. I think I've finally solved the problem.

In mainfile.php, there is a function called check_html. In this function, there is a line that says "$str = eregi_replace("]*)[[:space:]]*>", ', $str);". This comes before it checks the AllowableHTML. By commenting out that line, I seem to have solved the problem.
Posted on 8/20/2005 11:13 am in PHP
I've been working on another PHP-Nuke module for release.  It's called FHome.  It allows the site to display news on the front page the way it's displayed here, as well as allowing the comments to go into the forum.  Apparently I broke part of the code that adds the posts to the forum.  I think I have that fixed now.  This post will actually be a test of that.

I need to remember to write in an admin function to "fix" posts that didn't get posted to the forum correctly.  That way I'll be able to just click and readd them if they screw up rather than doing things the hard way.
Posted on 8/18/2005 5:44 am in PHP
I've just finished off GeekQuotes v0.10 and made it ready for release. It is currently available in the Downloads section of this site. The module is release under the GPL.

I created this module when I moved my site from PostNuke to PHP-Nuke. I had a bunch of quotes in my database that I wanted to continue using, but PHP-Nuke didn't have a built in Quotes module. I've had to recreate almost all of the code to make it work, but I did borrow bits and pieces of the random display code from PostNuke. When I got ready to release it though, I rewrote the random display code so that I could use a different license to release it.
Posted on 8/16/2005 8:03 am in PHP
I've just finished installing GT-NextGen on this site.  The goal of this modification to PHP-Nuke is to "htmlify" the links on the site so that sites such as Google will index it properly.

It was a pain to install because it required modifying a lot of core code (not huge modifications, just on several files).  The biggest problem I have with those types of modifications is that when I update versions, I have to redo it all.  This is the reason I'm trying to make the fn-comments modification I'm doing hold most of it's code in a seperate file.

My next goal is to find where to modify the Meta keywords in PHP-Nuke.  It's not that it's going to be hard.  I just haven't done it yet.
Posted on 7/29/2005 5:49 pm in PHP
I found an add-on for PHP-Nuke called GoogleTap that creates pretty urls.  It looks pretty promising so far.  I'm going to install it later, but it looks a bit complicated and I'm way too doped up on pain pills at the moment to do anything that complex.  I'll report later with my success or failure and my thoughts about the whole ordeal.
Posted on 7/22/2005 8:23 pm in PHP
It's weird. It happens sometimes, but rarely. I actually got the site migrated to use different software with no major setbacks. I've got all the topics and stories moved over. Now I've just got to finish tweaking the look and feel of the site.

Update: Apologies to those that had user accounts, but I'm not going to be able to move them over.  You'll have to recreate them.
Posted on 4/8/2005 1:03 pm in PHP
I finally figured out my problem. After 3 days, i discovered that there was a problem with my quota for this site's account. When I created a test site under test.fenux.net it was still using this site's account, so it was subject to the same issue. Totally bizarre. I elimanted all quotas for that account and the problem went away.
Posted on 4/6/2005 5:26 pm in PHP

Every time I try to install PostNuke on a fresh site, I end up with blank config.php and .htaccess files. If I manually fill them in, I end up with a failure to load on both Xanthia and pnRender. It's totally bizarre. I haven't been able to find anything quite like it searching through google.

I think I may go insane over this.

Posted on 4/6/2005 1:22 pm in PHP

I was working on this site yesterday and wanted the modify the template for News Articles (what shows up when you click "read more"). Every time I tried to modify any of the templates though, it failed miserably. All I would get is blank html for that portion of the site. At one point, my whole site failed and I had to restore from backup to get it to display again.

I'm fairly certain it has something to do with the move to the new server, but after several hours of work on it, I'm still unable to determine what the problem is. Right now, I'm setting up a PostNuke site at test.fenux.net to see if a fresh install works properly or not.

Page 1 of 2
Creative Commons License  Subscribe with Bloglines  Get Daily Wisdom!
This work is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 United States License.
© 2000-2010 Jason Burgess