Wednesday, December 12, 2018

Using An Image For Joomla Search Button

This should be a really simple thing, but does seem to be. I wanted to use an icon for my search button. In the module I set “Use an Image” to yes, but this did nothing. My first search lead me to this page.

https://forum.joomla.org/viewtopic.php?t=282140

This did not work for me.

This page finally got me closer to what I needed; however, I really don’t like using a .gif file. The format is not as smooth as other formats.

https://forum.joomla.org/viewtopic.php?t=728841

I am using Gantry 5 Hydrogen theme and simply adding the “searchButton.gif” to the “/g5_hydrogen/images” folder got things working quickly.

I hope this helps someone else out there….

 

Joomla – Fabrik – 0 Unable to connect to the Database:

I had a Fabrik project that I wanted so show someone and when I got there I saw this message.

0 Unable to connect to the Database: This driver is unsupported in PHP 7, please use the MySQLi or PDO MySQL driver instead.

My Joomla was version Joomla! 3.8.6. I had recently upgraded the server to PHP 7, so I found what broke it. I found this article to get me started.

http://fabrikar.com/forums/index.php?threads/if-in-joomla-3-5-you-get-this-driver-is-unsupported-in-php-7-try.43721/

I needed my Joomla! version and I found in the backend >>  System >> System information.

The solution was to change the SQL driver in Administrator side to “MySQLI(PDO)”. You get there by going to Global Configuration >> Server, and it will be in the upper right.

I hope this helps someone else out there…

 

Screen Ruler In Firefox

I often need to know the viewport or screen size when developing the style sheet for a site. It took a little bit to understand where to find the built in screen ruler in Firefox. Here are steps.

  1. Hit f12 to bring up the developer tools.
  2. Click on the gear to bring up the settings
  3. Scroll down till you find “Toggle rulers for the page”.
  4. Once that is checked you will see the ruler icon at the top of the toolbar.

  5. Clicking on the ruler icon will display the ruler on the page.

 

I hope this helps someone else out there…

 

Joomla Kickstart Restore – Blank White Page

Moved site from Localhost to Godaddy hosting and after I restored the site I got a completely blank screen in both the front end and backend. The source was completely blank.

I found this on OSTraining.com that let me see the errors by editing the “configuration.php” file in the CPanel. I changed “public $error_reporting = ‘development’;”.

https://www.ostraining.com/blog/joomla/white-screen-of-death/

I was now getting an error.

Error:
/home/myaccount/public_html/plugins/system/chronoengine_gcore2/chronoengine_gcore2.php on line 65

I recently upgraded the Chronoforms from version 5 to 6 while keeping 5 around. Their website said this was okay to do.

The site was working fine and this error seem to happen because of the restore. The restore was done through Akeeba Kickstart.

https://www.akeebabackup.com/support/akeeba-backup-3x/Ticket/27368-fatal-error-when-restoring-website.html

The end results was file permissions. My hosting account wouldn’t let me select a different PHP version. I had to contact tech support and they were surprised and had to go up to teir 3 to get it resolved. They determined it my CPanel account that was having permission issues to allow me to change the PHP version.

Once that was changed I was still unable to access the sites. I could put a HTML file there but couldn’t run any PHP. The folder permissions on the public folder needed to be reset to “750”. My sub-domain directories needed to be set to “755”. Godaddy said if I right-click on the folder I could change the permissions myself.

 

I hope this helps someone else out there….

 

Theme cannot be used Gantry Hydrogen WordPress Site

I love blogging in WordPress, but often like Joomla to build sites. I have been playing around with Gantry’s Hydrogen template in Joomla and have been using it to build a new site for myself. My blog is in WordPress and would like the two site to look a like.  Gantry’s Hydrogen is totally free and works for both systems.

I installed it on my new test WordPress site that I had already installed Divi and got some administration error, so I uninstalled it and tried it on a  fresh copy and got the same “Theme cannot be used. For more information, please see the notice in administration.” I knew it wasn’t just Divi being installed on the other site.

If I would have read the install directions on the following page I would have installed the theme properly. Instead I watched the video on the page and it was installing in a Joomla site so I blew it off.  There was a button for “wordpress”.

http://docs.gantry.org/gantry5/basics/installation

  • First install the plugin from the WordPress dashboard plug-ins by searching for “Gantry”. I installed Gantry 5.
  • Then move the theme into the themes folder and activate it.

I hope this helps someone else out there….

 

Joomla Extension For Pop Ups

Some websites do a great job of getting your attention for a product but gives the user the power to get rid of the popup at their leisure.

I stumble upon this site where the developer has created an awesome “engage” box extension. Click below to see what I mean.

https://www.tassos.gr/joomla-extensions/engagebox

In the “Demos” box use the drop-down to see all the different types of popups there are.

I hope this helps someone else out there….

 

Install Joomla Akeeba Pro – Automated Backups

I have done this before; however, some times you need a re-fresher. I started with Localhost version. My Local Environment is Windows 7 running WAMP.

I used “Task Scheduler” to be my local Cron service.  I start by right-clicking on the Task Scheduler and “run as administrator“.

  1. Create a task

  2. On the General tab give the job a name so you can identify the task. I checked to “Run whether user is logged on or not“. Do not check “hidden“.
  3. On the Triggers tab click “new“, and set the time you want this to run. I checked to “Stop task” if it is taking longer than an  hour.

  4. In the Actions tab click “new”, and for the Action select “start a program“.  Browse to your WAMP and locate the PHP.exe. For the arguments add the full path to your sites “cli” folder. Mine is “C:\wamp\www\mywebsite\cli\akeeba-backup.php”
  5. The next tabs Conditions and Settings are self explanatory.

Live Site

  • Shared hosting with Godaddy
  • Joomla 3.8.6 site
  • Akeeba 5.5 pro

I needed to get my path to my PHP.exe with the Godaddy shared hosting and the configuration wizard totally figured this out.

/home/mycpanelusername/public_html/cli/akeeba-backup.php

For the PHP path I used

/home/mycpanelusername/php

The path I used for the PHP was no good. I found the next article on Godaddy’s site.

https://www.godaddy.com/help/create-cron-jobs-16086

/usr/local/bin/php -q /home/[user name]/[path to the file]

https://uk.godaddy.com/help/what-is-a-cron-job-3483

I used the following video from Akeeba to get it right.

https://www.akeebabackup.com/videos/1213-akeeba-backup-for-joomla-pro/1623-abtp02-automating-backup.html

My Final path was:

 /usr/local/bin/php /home/myaccount/public_html/cli/akeeba-backup.php

When I ran the configuration I was given the correct path to the Akeeba-backup.php file.

In the CPanel hosting I went to “cron job”, and created a job.

I hope this helps someone else out there.

Facebook Apps / Joomla Modules No Longer Working

We use a couple of Modules in Joomla that tap into Facebook events. This week these broke.

Facebook put out an official statement about cracking down on abuse.

https://newsroom.fb.com/news/2018/03/cracking-down-on-platform-abuse/

Facebook is reviewing all their apps. They are turning off apps that haven’t been used in last three months.

I hope this helps someone else out there…

 

Responsive IFrame In Joomla 3

This is an issue that I have come across many times and I really liked this last solution I found from this site.

http://howtosurvivejoomla.altervista.org/tutorial/5-responsive-articles-iframe

I use the JCE pro and had a little trouble following the article, but the author did a great job putting the article together. Here is where the “Styles” area is in the Pro version.

Components >> JCE >> Profiles.

In the Profiles section click on “Default“.  Then go to the “Plugin Parameters” tab, and scroll down to the “Styles” section. Click on the “Styles” tab and the right side of the screen will bring up settings.

I was localhost and I just added the new CSS to my “custom” style sheet. I went back to the article and set the style of the IFrame I had already inserted through the JCE Pro and added the new style to it.

I hope this helps someone else out there…