How-To call a module when a user clicks a node title or read more link if($page) I would like to call a module from node.tpl.php like so (based on node id):

//This is my node--job_post.tpl.php

   &lt;pre&gt;

   &lt;?php
         if ($page):
    $nid = $node-&gt;nid;
  switch($nid){
  case 4:  CALL A MODULE FOR NODE ID 4
  case 5:  CALL A MODULE FOR NODE ID 5
  break;
 }
  endif;
  ?&gt;
 &lt;/pre&gt;


If there is a better way to accomplish this , please let me know. Thank you in advance.
That's not how it works in Drupal.

You need to use Hook_node_view() in a custom module .module file, NOT in the template.tpl.php file. Which executes the code inside it whenever a node is viewed.

Ex:

hello_world.module

hello_world_node_view($node, $view_mode, $langcode){ 

  //code to run when node is viewed goes here.

}