iPanorama – Adding a Compass

Still playing around with the iPanorama plugin for Word Press. When reading about the features on the web site I noticed it said there was a compass to help keep you headed in the right direction!Since I do mostly 360°’s of nature preserves and trails, I thought a compass would be nice. I never could find out how to make it work, and so wrote in the support forum to see what was the secret!

Turns out, it was turned on in the program, one of those many little things that get missed during a major update. No problem, the author soon restored it, and I was off to the races!

It was nice, but I thought it lacking, at least for what I wanted.

Figure 1: The default compass

As you can see, it was quite small, and being black and white was not easily noticeable. While some people may like the fact that it is unobtrusive, it wasn’t for me.

I wrote the plugin author and asked about if, and how it could be changed. He replied promptly that yes it could be easily done in the “Custom CSS” section. Unfortunately as much as I wish I was able to program, I can’t.

He was very accommodating and sent me some sample code. I tried it, and it works so good! And while I can’t write original code, I can often hack up what is there to tweak it to my tastes.

So, if you have an interest, and want to add, or change the compass. Here are my hopefully simple directions.

Figure 2: iPanorama Compass activation and offset.
  • (1) In the scene you want a compass to appear in first make sure it is enabled.
  • (2) In the settings, turn the “Compass” slider on.
    • Note that you must do this for each scene in which you want the compass to appear.
  • (3) There is a field for “North offset”. Nothing to do now, but you may want to come back here later. If your compass does not point north correctly change the degree offset here.
    • Tip: clicking on the compass points it due North. If the image is not showing North at the top rotate the image so North is “Up” then note the current angle and estimate the degree change needed.
  • Save the tour, then if you use the preview button you should see the default small arrow. Where it appears depends on the widget (Theme) you are using. It should look like Figure 1 above.

But you don’t want that plain old compass do you! First you need a good compass image. Then to change the default to your custom image, copy this code into the “Custom CSS” window:

Figure 3: Custom CSS code

(4) Make sure you enable styles!

(5) enter or paste the code and modify the URL for your compass image.

.ipnrm .ipnrm-widget .ipnrm-compass:before {
display:none;
}
.ipnrm .ipnrm-widget .ipnrm-compass:after {
display:none;
}
.ipnrm .ipnrm-widget .ipnrm-compass.ipnrm-active {
width:64px;
height:64px;
background-image:url();
background-size:contain;
}
?
Figure 4: The custom compass

You can further tweak the size using the “width” and “height” parameters.

It looks okay on a mobile phone also!
iPad with widget – Note location of compass
iPad with widget – Note location of compass

Playing with embedded Fonts

<!– –> p1 { font-family: “Times New Roman”, Times, serif; font-size: 20px; } p2 { font-family: “Courier New”, monospace; color: green; } p3 { font-family: “Lucida Console”, “Courier New”, monospace; } p4 { font-family: Tahoma, sans-serif; color:red; } p5 { font-family: beynoregular; font-size: 20px; color:red; } choc { font-family: logger; font-size: 30px; color:#805a46; } choc1 { font-family: logger; font-size: 30px; color:#d2691e; } choc2 { font-family: “logger”; font-size: 30px; color:#35281E; } choc3 { font-family: “logger”; font-size: 30px; color:#7b3f00; } p7 { font-family: “beynoregular”; font-size: 40px; color:black; } p8 { font-family: “faster_oneregular”; font-size: 40px; color:violet; } p9 { font-family: ‘Caveat’; font-size: 30px; color:blue; }

The Web Font Test Page is located here.

======
This is new text I added using p1 Times New Roman. ====
This is new text I added using p2 Courier New. ====
This is new text I added using p3 Lucida Console. ====
This is new text I added using p4 Tahoma. ====

h I Non specified font.

h II Non specified font.

h III Non specified font.

This is new text I added using p (only).

This is new text I added using pV Beyno. él? tippmix eredmények

====
THIS IS Beyno. This doesn’t work.

THIS IS LOGGER. color:#805a46

THIS IS LOGGER. color:#d2691e

THIS IS LOGGER. color:#35281E

THIS IS LOGGER. Best color:#7b3f00

FASTER ONE THIS DOESN’T WORK

This is Caveat! This Works!

=====

This is new text I added inside a plain div statement. But it seems no div is required.

Now this is “Blog-Worthy”

Sometimes it is the simple things in life that can give the most pleasure! I have been using WordPress for years now. I just looked at the archives and it appears the first post was October 30, 2005. However since in that entry I wrote about adding an RSS feed to the blog I have to believe there were a few earlier posts also, they must have been lost. I vaguely remember a great crash that took out the blog at one point early on so unless they are cached somewhere on the web, they are gone forever. But that is not what this was about. . . I digress.

Ah yes, simple things and pleasure, now I remember.

Ah yes, simple things and pleasure, now I remember. During the last five years of using WordPress I have gone through many core upgrades. (Replacing the WordPress code on the server with updated code.) The early ones were stressful, delete these files, add these files, change the text in some files, update everything and hope to heck it works when you are done. The early loss mentioned above was traumatic, but since it was very early on in the life of the blog it wasn’t enough to where I would say “To hell with it, I am not going to try and recreate all that”… plus it was early on in the life of the blog and I was full of spirit yet. Then the WordPress team cam came along with “Automatic” updates where all you had to do was press a button and TA-DA, the script ran and the core, plug-in etc. was updated without the user having to do anything… other than push that button that is. ‘cept… there is always a ‘cept or “But” you know… always. For me and my WordPress it seemed to never work. On a rare occasion a plug-in would actually update when I pushed the button, but that was rare, very rare. So for several years I developed a routine.
A) Go to Admin panel
B) See there are updates available for a plug-in, (and yes back “in the day” you were not notified when there were updates, you just sort of checked frequently to see there there were any issued.)
C) click on the “Automatic Upgrade” button.
D) Watch the program automatically download the Zip file containing the upgrade
E) Watch as it quit doing anything useful and sit there until I lost patience and shut down the web page.
F) Go to the plug-in page on WordPress.org using the link in the blog plugin page.
G) Manually download the plug-in
H) Create a new directory on local drive
I) Unzip the plug-in to the new directory
J) Open an FTP session
K) Turn off the plug in in WordPress control panel
L) Delete the plug-in directory on the server
M) Copy the new plug-in directory to the server
N) Go back to the WordPress control panel and activate the plug-in
O) Hope it did not crash the system.
P) Repeat C through O for each of the new updates

This week I decided to take the risk and stress to update to the latest version of WordPress 3.0.1. So as always I clicked on the automatic upgrade button, and low and behold but what do you think happened? Of course, it crashed the system. Okay, reset everything, go through the manual install… following steps A through P above. The actual program update went pretty well, but then I got to the plugins and restarting them. Boom – the “500” error. Okay, deactivate all the plug-ins by renaming all of them. Now restart WordPress, now rename all the plug-ins back again. Now re-activate them one at a time until the “500” error comes back. Mark down that plug-in in, rename it, then go on to the next one…. one after the other after the other. VERY time consuming.

After I got everything working again, minus a few of the plug-ins that were causing the 500 error where the author has not updated the plug-in yet, I took a break from everything WordPress. Not upset, just “Head clearing time”.

As I did other things I thought, “I am not going to keep doing this for the next X number of years!”. So I started searching the WordPress forums for an answer. The first observation is that MANY people have this issue. So the automatic upgrading in not all that automatic for many people. The next observation is that the 1 & 1 hosting service seems to be a big offender. Now for observation one, I know from other issues most people write when they have a problem, not when things go right, so it always looks like everyone is having a problem.. same with computer or other hardware issues…. As for observation two, well 1 & 1 is a large hosting service so they probably do have a lot of people with the same issue. Also since it is large trying to get them to change something to make it work for a certain group of users (WordPress) may not be that easy so the people with problems just multiplies.

Then I started finding different “fixes” for the issue. From cross your fingers and pray, to “it isn’t hard to do a manual upgrade, so just do it”, to “I did a complete reinstall of WordPress and it .. nope, didn’t fix it!

Then I noticed a number of threads with the same basic fix, a few lines of code/text to put into the “.htaccess” file, which I also found out stands for “HyperTextAccess” a small routine which the host server reads when it looks at the directory which contains it. (or it could be in the root directory and pointing to the WordPress directory…)

There were actually a couple different entries suggested, but the one that seemed to help most people was a very simple two lines of text:

AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php

I decided it was worth a try, and really it can’t hurt since the .htaccess file can just be deleted if something goes wrong. (If you do this, you may want to save a copy of the original just to be safe.)
I opened up the .htaccess file in Notepad (or any ascii/text editor) and typed in those two little lines, copied the file back to the WordPress root directory and fired up the browser!

In the WP Control panel there were two themes which it was saying there were updates for. (A new feature in 3.01?) I had tried the automatic update before, and it did the usual “Downloading XXXX.zip” and then complete stop……………….
I went back to the same place and clicked on the update button… Well, what do you know… it downloaded those suckers in a few seconds, installed them and told me everything was okay in a matter of a few seconds! I went out to the web page and back to the control panel just to make sure I did not get a 500 error or “System in maintenance” error, and everything seems to now be working perfectly! Now I can hardly wait for a few plugin updates to come out so I can try it on them…. Maybe, just maybe even the full core code update will work next time!

Apparently the two lines of code above tell the server to use PHP version 5 which is what works with WordPress. I don’t know the technical detail even though I read about it on the web, and I don’t know that I care. I do know it seems to have fixed my problem and that is what I do care about.

Enjoy,
George

Adding a “Teaser” to the Archived Post Listing.

Well, since I could not get the “the_excerpt” function to work properly, apparently there is a conflict with one of my other plugins. I do not want to deactivate any of the others I am using, but it was giving me the full post contents everytime including pictures, etc. so it was creating a HUGE page!

it was giving me the full post contents everytime including pictures, etc. so it was creating a HUGE page

I have now activated the excerpt and added them to the archives page. I think it adds to it, so you can see a little bit about the post rather than just the title the “Teaser” if you will. I would like to get the formatting to not skip a line (using <br>) which would condense it a little further. Also need to add some page breaks. But overall I am happy with the results.

This seems like the best way to let a user browse the old postings without resorting to a search… since they may not know what they are searching for. Hopefully a good excerpt will pique the readers interest enough to go to the post and read it. We’ll see what happens.

Expect an excerpt until the exceptions are resolved,