WordPress Is Mentioned By Code Download CSS Tutorial
โœ‚๐Ÿƒ๐Ÿพโ€โ™€๏ธ๐Ÿƒ๐Ÿผโ€โ™‚๏ธ
๐Ÿ“–

WordPress Is Mentioned By Code Download CSS Tutorial

WordPress Is Mentioned By Code Download CSS Tutorial

A few things come together for todayโ€™s user experience (UX) inspired tutorial whereby โ€ฆ

โ€ฆ to make what we are doing stand out more for the user, who may โ€œswimโ€ in a large table devoid of any styling to focus their attention.

Weโ€™ll leave you with modified PHP, that writes out the HTML Code Download Table manipulator, you could call getmelistโšซphp and which changed in thisway to make the Code Download Table be more usercentric with its presentation of hashtagged calls linking a WordPress Blog Posting at this blog with a particular piece of software code of interest in our Code Download Table.

Hope you try this functionality out for yourself.



Previous relevant WordPress Is Mentioned By Code Download Navigation Tutorial is shown below.

WordPress Is Mentioned By Code Download Navigation Tutorial

WordPress Is Mentioned By Code Download Navigation Tutorial

Weโ€™re following up on some recent WordPress navigation logic today, that we started with WordPress Is Mentioned By Navigation Primer Tutorial as shown below, for blog posting relationships between โ€ฆ

  • A blog posting being referred to โ€ฆ back, optionally, as a link, to โ€ฆ
  • A blog posting that mentioned that blog posting currently being viewed

โ€ฆ and looking at this premise, it stands to reason that as helpful as this concept looks on paper, if a regular reader expects a recent posting be referred to by others โ€œhot off the pressโ€ theyโ€™d be expecting quite a lot, and though what they get in this scenario โ€ฆ

Sadly, this tutorial is not mentioned by any others, yet

โ€ฆ probably does a good job tweaking them to the dilemma of โ€œhot off the pressโ€ being โ€œtoo recent to be referred toโ€ it still remains a disappointment, perhaps. So, thinking a tad laterally on this, what is going to help out here will be to particularize the scenario for what we do around here โ€ฆ and am sorry if this annoys, but we are showing a line of thinking here โ€ฆ and allow for Blog Posts that contain the word โ€œGETMEโ€ โ€ฆ our favourite code download mechanism around here โ€ฆ to add a โ€œCode Download Tableโ€ dropdown option, that if selected will lob the user directly onto the RJM Programming Code Download Table entry for the first โ€œGETMEโ€ file link found in that blog posting. This additional scouring of the MySql database, that utilizes the SQL UNION operator (the โ€œadding an extra clause or paragraphโ€ SQL operator, we like to think of it as) with its query, will not be relevant to all unmentioned blog postings, but it will help those that talk about software coding, which is quite a few.

That functionality had us looking back at how the Code Download Table was constructed in terms of its hashtagging when we discussed PHP Blog Summary Follow Up Tutorial. In this way, we had a first try at โ€ฆ

So it panned out to make this happen the original Code Download Table code did not need any tweaking, not good olโ€™ WordPress TwentyTen theme header.php โ€ฆ just is_mentioned_byโšซphp โ€ฆ but we hope you try out clicking some โ€œWhite Right Pointing Indexโ€ emoji โ€ฆ

โ˜ž

โ€ฆ at this WordPress blog sometime soon.

Did you know?

What gives with the &tsp=[someBigNumber] GET parameter โ€ฆ like is yellow highlighted in todayโ€™s tutorialโœ‚picture โ€ฆ in the โ€œCode Download Tableโ€ lookup URLs? This is so that we end up with different URLs each time a user accesses this functionality. This is because web browsers often try to help you out with speeding up your browsing, and use the web browser cache to โ€œregurgitateโ€ a previously visited URL should that have happened since the last clearing of any web browser cache, to โ€œslapโ€ the cache version quickly on the screen. But we donโ€™t want any โ€œslappingโ€ to go on around our functionality today, and a way to force the web browser to reconsider the real lookup, and go back to the real web server again for data, is to make your URL be unique. A curiosity here you can try is to use something like a local MAMP (for Mac or EasyPHP for Windows) local web server to, for an image file called image.jpg that is put into the Apache web serverโ€™s Document Root โ€ฆ

  1. see the image in your favoured web browser with the URL //localhost:8888/image.jpg โ€ฆ then โ€ฆ
  2. change that image somehow with an image editor โ€ฆ and โ€ฆ
  3. refresh, or revisit the image with the URL //localhost:8888/image.jpg โ€ฆ and youโ€™ll probably see the cached web server version โ€ฆ unless you havenโ€™t got web browser caching going โ€ฆ so amend this to โ€ฆ
  4. revisit the image with the URL //localhost:8888/image.jpg?random=7456536 โ€ฆ and this time we think youโ€™ll see the amended image that happened with your image editing โ€ฆ and yes, you can add GET parameters to your URLs even for image URLs (often, most helpfully with image URLs, actually)

Previous relevant WordPress Is Mentioned By Navigation Primer Tutorial is shown below.

WordPress Is Mentioned By Navigation Primer Tutorial

WordPress Is Mentioned By Navigation Primer Tutorial

Weโ€™ve written some new WordPress navigation logic today, for blog posting relationships between โ€ฆ

  • A blog posting being referred to โ€ฆ back, optionally, as a link, to โ€ฆ
  • A blog posting that mentioned that blog posting currently being viewed

โ€ฆ done, because we see that it is not only the โ€œverticalโ€ type linking of blog postings into a โ€œthreadโ€ that helps understanding โ€ฆ we hope โ€ฆ but also to jump around among commonalities between concepts (like โ€œhorizontalโ€ โ€œdegrees of separationโ€), perhaps. This functionality involves MySql database queries, and is best suited to a user clicks something (rather than pre-emptive content loading) to reach the functionality so that our database query has a post title to work with, and also so that every blog post does not overload the web server with a query ahead of time whose work may not be accessed anyway. The something that is clicked is an HTML a tag whose โ€œlookโ€ is an Emoji.

We also wrote a proof of concept, before applying that proof of concept live. To us, a โ€œproof of conceptโ€ is not much use if it is as involved as what it is trying to prove, and in todayโ€™s scenario we did a proof of concept for two scenarios, that being โ€ฆ

  • a blog posting that was referred to by others โ€ฆ and โ€ฆ
  • a blog posting that wasnโ€™t โ€ฆ doh! โ€ฆ but if you donโ€™t change something about the โ€œlook of thingsโ€ youโ€™ll confuse the user as to whether the web application just took notice of their click (via the onclick event) โ€ฆ so this is of mild importance, but we grant you that it is not as important as the first scenarioโ€™s workings

We quite often adopt a proof of concept scenario which tests the workings of a child (often in an HTML iframe element), in this case, PHP server side, piece of code, by introducing a simplified and pared down parent, in this case HTML piece of code. At the end of successful testing you are left with a good, and close to totally suitable child piece of code, to slot into the functionality of the real and live parent code.

That proof of concept was definitely a good โ€œunit testingโ€ thing to do, but nevertheless, donโ€™t feel overconfident as you go live โ€ฆ living with other real โ€œgoings onโ€ on the live website are things to consider, and test โ€ฆ it took us half an hour to iron out these types of issues.

The other good thing to have on your side is a Web Inspector like on Safari, similar to the Firefox Firebug web inspector we tend to go on and on and on and on and on and on about at this blog. Weโ€™re giving you a Safari rest on that today, and we want to show you an โ€œearly daysโ€ view โ€ฆ

โ€ฆ in the proof of concept help that the Safari Web Inspector gave us, delving in under the called (by HTML parent) PHPโ€™s actions. This type of information makes server side programming, like you do with PHP, that much easier โ€ฆ much easier than ideas where you write out web server files, with information, for your own benefit, or the other one we often like, during testing, is to write information out to top.document.title or perhaps to an alert box or to use console.log (on the debugging window, down the bottom).

Youโ€™ll never guess where we made this change to our WordPress TwentyTen themed blog? Give up โ€ฆ yes, good olโ€™ header.php changed in the bold Javascript new function way below โ€ฆ





function is_mentioned_by() {

var zspare,xspare,xxspare,ximb,xpspana=docgetclass("entry-title", "h2");

for (ximb=0; ximb<xpspana.length; ximb++) {

xxspare=xpspana[ximb].innerHTML.replace('</a>','').split('>');

xspare=xxspare[eval(-1 + xxspare.length)];

zspare=xspare.toLowerCase().replace(String.fromCharCode(35), "").replace(".", "").replace(".", "").replace(".", "").replace("+", "").replace("+", "").replace("'", "").replace('%27','').replace(/\//g, "").replace(/,/g, "").replace("---","-").replace("---","-").replace(/--/g,"-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-");

if (document.body.innerHTML.indexOf('d' + zspare) == -1) xpspana[ximb].innerHTML+=' <div style="display:inline;" id=d' + zspare + '><a style="display:inline;text-decoration:none; border:2px solid yellow;" onclick=" document.getElementById(this.id.replace(String.fromCharCode(116),String.fromCharCode(105))).src=' + "'" + '//www.rjmprogramming.com.au/PHP/is_mentioned_by.php?title=' + encodeURIComponent(xspare) + "'" + '; " title="' + (xspare) + ' is mentioned by ..." id=t' + zspare + '>&#9758;</a><iframe style=display:none; id=i' + zspare + ' src=></iframe></div>';

}

xpspana=docgetclass("entry-title", "h1");

for (ximb=0; ximb<xpspana.length; ximb++) {

xxspare=xpspana[ximb].innerHTML.replace('</a>','').split('>');

xspare=xxspare[eval(-1 + xxspare.length)];

zspare=xspare.toLowerCase().replace(String.fromCharCode(35), "").replace(".", "").replace(".", "").replace(".", "").replace("+", "").replace("+", "").replace("'", "").replace('%27','').replace(/\//g, "").replace(/,/g, "").replace("---","-").replace("---","-").replace(/--/g,"-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-").replace(" ","-");

if (document.body.innerHTML.indexOf('d' + zspare) == -1) xpspana[ximb].innerHTML+=' <div style="display:inline;" id=d' + zspare + '><a style="display:inline;text-decoration:none; border:2px solid yellow;" onclick=" document.getElementById(this.id.replace(String.fromCharCode(164),String.fromCharCode(151))).src=' + "'" + '//www.rjmprogramming.com.au/PHP/is_mentioned_by.php?title=' + encodeURIComponent(xspare) + "'" + '; " title="' + (xspare) + ' is mentioned by ..." id=t' + zspare + '>&#9758;</a><iframe style=display:none; id=i' + zspare + ' src=></iframe></div>';

}

}



โ€ฆ called by โ€ฆ



<body onload=" checkonl(); setTimeout(initpostedoncc, 3000); widgetcon(); precc(); courseCookies(); cookie_fonts(); is_mentioned_by(); " <?php body_class(); ?>>

Team that with some new PHP source code you could call is_mentioned_byโšซphp and you have todayโ€™s new WordPress blog TwentyTen theme โ€œIs Mentioned Byโ€ functionality.

The proof of concept parent HTML was is_mentioned_byโšซhtml for your perusal.

If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.

This entry was posted in eLearning, Event-Driven Programming, Tutorials and tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *