Cool Way to Display Attachments

While searching for an issue with Photoshop I came across a forum post in Adobe where someone posted a comment with an attachment. The way the attachment was displayed was very cool. Here is a screen clip showing you what I mean.

Can’t wait to get working on this.

I hope this helps someone else out there…

HTML Entities In Gantry & WordPress

I was working in Ganty 5 for a Joomla site and decided to use Gantry for the WordPress blog. I had purchased some “Particles” from Inspiretheme.com. They have a WordPress particle they call Content Pro. It takes the articles and makes them blocks to show in the front page. It worked great; however, the titles were show the HTML Entities and not the character I wanted.

I contacted InspireTheme, but my subscription was over and they wanted me to resubscribe to get support. The fix seemed so easy; however, I didn’t know where to start. With some playing around I found what I was looking for. It turned to be the “content-pro-wordpress.html.twig” file located “wp-content/themes/g5_hydrogen/custom/particles/”. Here is what I needed to change.

{{- display.title.limit ? article.title|truncate_text(display.title.limit) : article.title -}}

Changed to:

{{- display.title.limit ? article.title|truncate_text|raw(display.title.limit) : article.title|raw -}}

What I had to change was to add “|raw” at the end of the variable. Twig is powerful and helpful, but still new to me. The following links were good help to helping me understand TWIG filters.

http://docs.gantry.org/gantry5/advanced/twig-filters

https://wordpress.stackexchange.com/questions/318934/shortcode-returns-escaped-html-tags

I hope this helps someone else out there….

I-Frame In Joomla

Had a customer who deleted an iFrame in a Joomla article. IFrames can be trouble-some in Joomla and the old JCE, but we have JCE Pro installed. I have sometimes switched the editor from JCE to NONE in the Global Configuration. This wasn’t the fix here. When I pasted the IFrame code into the article the iframe tag would be come “<i-frame”.

A Google search on “i-frame” and “Joomla” brought me to a page from RSJoomla. I had to remove some of the JavaScript protection on the post data. You can find this here (Components > RSFirewall! > Firewall Configuration > Active Scanner). It will look like this.

I hit the X so there were no protections other than being on. Here is a link to that article. They offer more suggestions, but only this one worked for me.

https://www.rsjoomla.com/support/documentation/rsfirewall-user-guide/frequently-asked-questions/scrambled-tags-iframe-becomes-i-frame.html?utm_source=readmoredoc&utm_medium=link&utm_campaign=rsfirewall-exception

I hope this helps someone else out there…

Using NSLookup To Fix Email Bounceback

Needed to find the my Reverse DNS to fix an issue with Craigslist not being able to verify my my IP / Domain Name combination. My co-worker reminded me of “NSLookup”.

  • Open the command prompt
  • Type in “nslookup”
  • You will see your Gateway information.
  • Type in “set type=mx” and hit enter
  • Type in the domain name “somewhere.com” and hit enter.

I hope this helps someone else out there….

Joomla 4 Gantry 5

I have enjoyed using Gantry 5 but Joomla 4 is around the corner…do they work together yet is the question I have. I had Joomla 4 installed lets try it. Well that didn’t go well. I got Gantry installed; however, when I installed the Hydrogen theme I got the following error.

The problem is I can no longer get back into the “Control Panel”. I was able to get the site back by going to “System” on the sidemenu and went to Manage >> Extensions. I was able to remove Hydrogen, but this didn’t fix the Control Panel issue. Once I removed the Gantry 5 the control panel was working fine.

In my opinion is Gantry is not ready to play with Joomla 4 yet. Rocketthemes is hopeful they will get this worked out.

https://rockettheme.com/blog/joomla/277-looking-forward-to-joomla-4-and-beyond

I hope this helps someone else out there….

Moving Joomla Site To New Domain And SSL

Started to rebuild a customers site in Joomla but didn’t want to disturb the existing site we purchased a new CPanel Hosting package which gave us PHP 7. I got the site finished and approved but when I went to make the switch of the domain name to the desired name I noticed a dedicated IP in thehosting package. There were a lot of specific subdomains and uses for the such as a “Mail.mydomain.com”. This turned out to be for a SSL cert that was installed. Here are the steps it took and some of the pitfalls I ran into.

The SSL Certificate needed to be removed. In the “My Products” section of the Godaddy hosting scroll down to the SSL section. Click on “Mange”, but if you have more than one SSL make sure you end up in the correct one. I was ending up in the wrong one to fix it I would click on “All” in the upper left of the screen of the SSL Certificate’s detail page. I could then select the desired certificate and it allow me to “Rekey & Manage”.

Since the two hosting packages and domains were all with Godaddy it was easy to disassociate the SSL form the domain. I clicked on “Change the site that your certificate protects” and added a made up subdomain of “old.mydomain.com”, hit “save”, and then “Submit all Saved Changes”. I repeated this process to add it back to the new hosting package after the desired domain name was attached to the new hosting package with a sweet new site at the end of it.

Clicking the profile siloquette icon in the upper-right of the Godaddy dashboard and go to “My Products”. Select the old hosting to detach the domain name from the old hosting. This was an old package that listed “Hosted Domains” in the left-side menu. I clicked on that name ( I didn’t think was a hyperlink), and it brought me to a list of of a couple of domain names. I needed to wait almost a day for the SSL certificate to be disassociated with the domain. This was unusually long time to wait. It normally takes a few hours. I then clicked the checkbox next to the desired domain name and click “Change Primary”. I gave it a made up name of “old.mydomain.com” and clicked okay. Now to move the desired domain name to the new hosting package.

In Godaddy’s admin panel it seems fastest to use the icon the upper right and go to “my products” and this time select the new hosting package. In this new hosting page you will click on the “Change” button in the Account panel and select the desired domain. The last thing was go back the SSL certificate and change it to protect the desired domain again.

Overall an easy process; however, I run a WordPress blog as a subdomain and of course use perma-stinks. Once the main site was moved over the wordpress site broken in a couple of ways, and it was difficult to log into the admin panel. This was a quick fix by going into the database table “wp-options” and change the “siteurl” and the “home” to the new domain. I had a couple of other Joomla site as subdomains that came back up fine.

I hope this helps someone else out there…

Joomla White Screen After Update

The whole site was broken. The front end was fine and working. While updating some extensions it would go through part of the update and then I would just get this screen.

I refreshed the page and had to “resend” the information and the update finished. It was the JCE Pro component that got hung, but I had others such as Akeeba Admin Tools that also go hung.

I have tried just refreshing the page before it didn’t fix the issue. I was glad it worked this time. I am not sure what the issue is. I seems to have just started happening this week.

I hope this helps someone else out there…

Redirect Website Using .HTAccess

While building a new site I set up a new hosting account to gain access to PHP 7, because the old hosting package didn’t upgrade past PHP 5.6. Once everything was close I wanted to set up the new hosting so the main site and each sub-domain is in a separate directory making it easy to maintain.

I was told by Godaddy to we could either create an add-on domain or handle the redirection with .HTAcess file. I have messed with these through the years and they are very powerful. I found this very nice write up on some simple ways to use this and thought I would share it or a least post it so I can find it again.

https://mediatemple.net/community/products/grid/204643080/how-do-i-redirect-my-site-using-a-htaccess-file

I hope this helps someone else out there…