• b2evo
  • Front Page
  • Contact
  • Login
  • reset page

Far Fields

  • Andromeda ¦ First Contact
  • Blush ¦ Private
  • Dad ¦ Private
  • Vyaj ¦ Immigration & Asylum Cases

Near Fields

  • My Bits
  • Behind the Sceanic
  • vOw ¦ Vegan Organic Wholefood

Old Fields

  • 1996 Site
  • Old Search Site

Blogs

  • b2Evo ¦ Blog techie stuff
  • eLf ¦ Updates on the land
  • blInk ¦ Some useless links
  • spAce ¦ Thoughts on being
  • j&j ¦ Prospectors of Kern
  • av0id ¦ How I Got Here

Calling MathJax

October 11th, 2018

Added the script

<script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-MML-AM_CHTML' async></script>

to [/skin/_body_header.inc.php]


Then the text

Where a is not zero.
$$a \ne 0$$ 
$$(ax^2 + bx + c = 0)$$
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}$$

becomes

Where a is not zero. $$a \ne 0$$ $$ (ax^2 + bx + c = 0)$$ $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}$$

  roger
 


Passing php variables

October 10th, 2018

In making a widget to show the current user's posts, I had to get the php $current_User->.
This was achieved by
1. adding code to the header so that it was global and could be called from anywhere.

<script>
var uid = "<?php echo $current_User->ID; ?>";
</script>

2) then a FreeHTML widget called the javascript variable: javascript being usable in the FreeHTML widget

<script>
url="https://calstock.org.uk/?disp=useritems&user_ID=" + uid;
document.write("<a href=" + url + ">My Posts :: <em>All collections/a>");
</script>

  roger
 


<< 1 ... 6 7 8 ...9 ...10 11 12 ...13 ...14 15 16 ... 67 >>
  •  Paged Index of 133 Posts

  • Last nineteen

    • Add html figure tag
    • Validation 7.2.5
    • elfgifs_plugin
    • Add sub text button
    • [autocorrect] validation
    • Versions & Database
    • Math Terms & Plugin
    • My Search Hack
    • figure tag
    • evobar toolbar
    • Front Page Collections #
    • Move to a new line using CSS not <br />
    • Version 6.10.6 & php 7
    • Stuck on Version 6.10.5
    • Limit Login Attempts
    • 6.10.5
    • Add Number to Comment
    • 6.10.4
    • v 6.10.*
  • Search


Valid HTML 5.0    ubuntu link    duckduckgo link    b2evolution link    firefox link    Creative Commons Licence    Valid CSS!