Need Some Javascript Guru Help

Discussion in 'Software' started by Chim, Jun 20, 2016.

  1. Chim

    Chim Private First Class

    Okay, in recent times a Blogger / BlogSpot changeover from http to https format has caused problems for many Bloggers. In my case, I already managed to fix the no images and emoticons in the comments problem that had materialized in my Blog. So I'm good to go.

    However, I have a friend whose Blog is more complicated than mine. It has more gadgets and bells & whistles, Etc. So, her Blog still has problems that need fixing.

    The problem with which I'm trying to help her fix right now involves this code:
    http://helplogger.blogspot.com.ar/2012/04/how-to-add-emoticonssmileys-in-blogger.html
    She uses a different set of emoticons and a different setup for displaying them than I do. That's why she still has problems. Anyway, from conducting experiments on my Test Blog, I came to the conclusion that if she just simply reinstalled the code in that link above, her emoticons would very likely return because I pretty much proved that in my Test Blog. Frankly I don't think she installed it correctly the first time around.

    Ahhh, but here is the fly in the ointment. Way back when she started her Blog, she somehow modified that code in the link and added emoticons to that set. Either someone helped her do it back then or whatever, but at this time she has no recollection of how to modify the code to add the additional emoticons.

    NOW ... right now I'm in the middle of attempting to add the additional emoticons to that code above. I'm doing it via what IMO is the obvious and logical way of doing it. I'm just not convinced that there isn't more than meets the eye. All I'm doing is just adding the additional emoticons' URLs formatted with the code format of the existing emoticons.

    My question to the resident JavaScript Gurus that might roam around here is ...
    WOULD that be all there was to adding the additional emoticons to the above code? Or would it somehow involve opening up some JavaScript file somewhere with Notepad and then saving it as a JavaScript file? I ask this because way back when we were on the MyOpera Community, we did at one time similarly add emoticons to an existing set and that time it did involve opening up a JavaScript file and then saving the changes as a JavaScript file. Of course, at that time, we used instructions that had been supplied to us. We don't have that luxury now. Doh!
     
  2. Corporal Punishment

    Corporal Punishment Head of Software Shenanigans Staff Member

    I would have to see a broken code to be sure of what you are speaking of and I do not on the site. However, if your test worked then you know it is something with her added code. That said the added code is most likely directly addressing the emoticon as http:// instead of ./ or https:// so if you look through the custom code for that - I;d think that would be a good place to start.
     
  3. Chim

    Chim Private First Class

    By now my experiment of attempting to add the additional emoticons via my so-called obvious and logical way is complete. Verdict? It did NOT work. :mad: Doh! o_O:(

    Fixing my Blog was much easier. As per a fix I found on the Net, all I had to do was go into my template's HTML and change all occurrences of http to https and BAMM! My Blog was back up and running.

    On my friend's Blog, that fix actually couldn't even be executed across the board because it would fix some things and break others. :eek: For example: That fix made her BlogSpot-hosted emoticons work again. But, her Yahoo-hosted emoticons had to be left at http status or else they wouldn't work. And one of the early on changes of an instance of http to https made her Footer image disappear. I never found out specifically which instance of http to https change was the culprit. I just simply changed several of the early on instances back to http and the Footer image returned.

    MAN! What a mess! :eek: She just finished e-mailing me another set of emoticons that I'm going to try. We're now down to around Plan F. :D I have no idea how this soap opera is going to end, but I have a feeling that we won't be able to put her Blog back together again exactly how it used to be. We'll probably have to just somewhat scrape off some of the outright barnacles and just have it look decently presentable. Cuz she actually has other problems in her Sidebar that we haven't even remotely addressed yet.

    Thanks for trying to help, Corporal Punishment.
     
  4. Eldon

    Eldon Major Geek Extraordinaire

  5. Chim

    Chim Private First Class

    That's in essence what I used to fix my Blog, Eldon. Except I accessed that tip from this link:
    https://helplogger.blogspot.com/2016/05/mixed-content-errors-in-blogspot-blogger.html

    Well, let me clarify. In both your link and my link, the part regarding identifying the problems is the same. However, the part regarding fixing the problems is different. In your link the approach is to fix problems in a post by post manner. That would be tedious. In my link, the approach is to attack the whole 9-yards shebang by going into the Blog's template for an all in one location changing of all instances of http to https.

    That said though, I skipped the part regarding checking for / identifying the problems first ... because the instructions specify to use Google Chrome. Chrome does not work in my system ... never has. I think it must be some Google Chrome aversion to Dial Up Internet. Cuz throughout the years I've had different computers, different brands and different Windows versions and Chrome has never worked. The common denominator is my Dial Up.

    So yeah, as far as my Blog went, I dove straight into the fixing part, forgoing any going through the motions of supposedly identifying the problems first. With my Blog I lucked out and the fix worked. With my friend's Blog on the other hand, I feel like I'm on a Snipe Hunt. :D
     
  6. Eldon

    Eldon Major Geek Extraordinaire

    I recall your problem (and your Associates :D ).
    Good luck with your friend's blog.
     
  7. Chim

    Chim Private First Class

    Yeah, in thinking back, I think it might have actually been you from whom I got that link that finally was the breakthrough in fixing my Blog. Ahhh yes, my Associates. I'm quite certain that at least 50% of the reason my Blog was so speedily fixed was due to my Associates being so reliable, knowledgeable and hardworking. :D

    Anyway, ehhh, I'm sure my friend and I will eventually get SOME version of her Blog working. Even if I have to guilt trip ... uhhh, I mean, convince her to recreate her Blog Design from scratch and make it less complicated.
     
  8. Eldon

    Eldon Major Geek Extraordinaire

    I didn't want to say it, but sometimes that's the best option.
    Get all the basics working and then add the fancy stuff.

    Here's a great VBScript tutorial.
    http://www.tutorialspoint.com/vbscript/index.htm
     
  9. Chim

    Chim Private First Class

    Wooooooo! I don't think we'd go that route. The various ways in which we customize our Blogs are via the existing Blogger Customizing Tools / Settings, CSS, 3rd Party Code and adding Gadgets.

    I really don't like the Blogger / BlogSpot system for Blog customization. It bites. Back in the now defunct MyOpera Blogging Community we used to create some awesome Blog Designs using pure CCS code. None of this searching on the Net for prehistoric 3rd party code that is no longer maintained by the authors. Likewise, no using of questionable Gadgets and power-challenged Settings.

    Anyway, after more experimentation, testing and pulling my hair out, I have come to a pretty solid 100% conclusion. Before I started helping my friend, she had already been experimenting and conducting fixing attempts herself. So after I fixed my Blog, I specifically told her, "Okay, e-mail me a copy of your absolute ORIGINAL template, the one that used to work before the change from http to https. This way I can experiment and hopefully figure out how to fix your Blog."

    Well, after today's experimenting, testing, brainstorming and attempting to put pieces of the puzzle together, I believe I came up with enough evidence that indicates with 100% certainty that apparently my friend inadvertently did NOT send me her absolute ORIGINAL working template. She obviously somehow got mixed up and sent me one of her work in progress templates. And this work in progress template is 100% without a doubt MISSING code that I was assuming was in there. This template that she e-mailed me could NOT have possibly worked as is. I proved that this morning as I added the missing code.

    I got things a lot closer to working normally. I now got the emoticons to display also via usage of the Symbols instead of just with the URLs. That was not the case before. Now only the Yahoo-hosted emoticons conundrum remains. I think though that there is a strong possibility that IF I can get my friend to this time around send me her correct, absolute original template, I MIGHT be able to tweak that one, perform the http to https changes and get it to work as that one WOULD have the Yahoo-hosted emoticons in place in the code.

    Theoretically of course. Cuz it could also turn out to be another shoot & MISS followed by a rabid, unhinged, colorful metaphor-laden fest like Spock in Star Trek IV. :D
     
    Eldon likes this.
  10. Eldon

    Eldon Major Geek Extraordinaire

    I'm going to leave you with a 'Like'. :D
     
  11. Chim

    Chim Private First Class


MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds