Translate This Page

About Me

profile_picture_120

Name: Joshua Lyon
Birthday: August 8, 1985
Location: Valley Ranch (Irving), TX
E-mail: josh@boshdirect.com

Related Articles

Content View Hits : 1137388
Tech
Joomla Templates getItems() Issue
Written by Josh Lyon   
Friday, 15 August 2008 15:54

If you start getting template errors (specifically with JoomlaArt templates) like the one below, just replace the lines of code listed below. I've noticed this happen on JA_Fagus and JA_Purity... although I think JA_Purity was fixed in the 1.5.6 Joomla packages.

Fatal error: Call to a member function getItems() on a non-object in /***/templates/ja_***/ja_menus/Base.class.php on line ***. 

Open up the file that has the error in it and look for the following line:

$menu = @JMenu :: getInstance(); 

And replace it with:

$menu = &JSite::getMenu(); 
 
Set Joomla Publishing Defaults
Written by Josh Lyon   
Saturday, 26 July 2008 17:04

I got tired of having to click through the tabs in Joomla 1.0.x to change my publishing state from unpublished to published and check the show on frontpage item everytime I posted a new article. That being said, I did a little research and figured out how to change the default settings. It requires you to modify the core joomla code, so if you patch your site to a new joomla version and they replace the file you will have to reapply this patch.  All you have to do is open the /components/com_content/content.php file and look for the $row->state variable in the editItem() function. By default it is set to 0 and you will want to change it to 1.

The $row->state variable will change the default publishing status. 0 being unpublished and 1 being published.

The $row->frontpage variable will change the default status for whether or not an item will show up on the frontpage. 0 means it will not show up on the frontpage and 1 means it will show up on the frontpage.

In my content.php file, the $row->state variable was on line 1,843 - but this may vary for you depending on the version of Joomla you are running.

 
post from wii
Written by Josh Lyon   
Tuesday, 15 July 2008 14:07
i made this post from my wii internet browser
 
Back to One Webhost
Written by Josh Lyon   
Wednesday, 09 July 2008 04:47

I can happily say, I am back to paying for just one webhost. As I mentioned in a previous article, I was paying almost $40/month between two webhosts (1 shared + 1 VPS) and had my websites split across both of them. I recently moved all the websites on both of the old hosts over to my new Hostmonster account. Everything seems to be running fine and I even got a chance to do a little housekeeping at the same time.

I was originally paying for my brother's domains and hosting, but asked him to start paying for his domains if he wanted to keep them. Since then, he transferred his domains to GoDaddy and started paying for them. The downside to this is I no longer have control over them.  His domains were one of the main reasons I kept the oldest (shared) servers for so long. Being that I don't have control over the DNS records and it's almost been a year now that I am still paying for the shared hosting, I decided to just kill the DNS hosting and let his website go dead until he takes care of the DNS records.

Either way, I'm back to one host at a great price and so far I'm still happy with the decision.

 
<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>

Page 10 of 19