Your comments

I use a function to grab all info for a subscriber.  I loop through all of our user, pulling each in and check their custom variable (in my case circid).  The function that pulls in a specific user pulls in all information, subscription, login, services, etc.  I use it for any user information lookup I need so it is fairly generic.  Once you have the screen name, or email address as a search item you can then pull in their entire record and check any of the fields you want.  Just remember that you have to check for a "lack of variable' when looking at custom values.

The code below is old, and was used while I was testing and learning the Townnews API. Bug are mine, but this code does work in 90+% of the time.  Error checking was at a minimum at this point.

Call to function:
$sub_arr=get_user_info($user);


Check for 'customer' field (circid is an internal customer id number for one of our tools):

if(isset($sub_arr['custom']['circid'])&&$sub_arr['custom']['circid']!=0) {
//do doemthing
} else {
//do something else
}


function:
function get_user_info($user_id) {

  //$user_id == screenname or email address
  $user_arr=array();
  $result_arr=process_command("user","get",array('user'=>"$user_id"));
  $services_array=get_services();
  $serv_arr=process_command("subscription","get_user_services",array('user'=>"$user_id"));
  if(!isset($result_arr['error_code'])) {
    $user_arr=$result_arr;
    $user_arr['services']=$serv_arr;
    $user_arr['error']=0;
    $user_arr['message']="";
  } else {
    //handle error condition
    $user_arr['error']=1;
    $user_arr['message']="Error detected. Error is ".print_r($result_arr['error_code'],true)."  \r\n";
  }
  $user_arr=$result_arr;
  $user_arr['services']=array();
  foreach($serv_arr as $service_id) {
    if($service_id>0) {
      $resultserv_arr=array();
      $user_arr['services'][$service_id]['name']=$services_array[$service_id]['name'];
      for($i=0; $i<100; $i++) {
       $resultserv=process_command("subscription","search",

          array('page'=>$i,'limit'=>100,'user_email'=>$user_id,'service_ids'=>$service_id));
        if(!isset($resultserv[1])) {
          $i=999999;
        }
   foreach($resultserv AS $item) {
          if(trim($item['user_uuid'])==trim($user_arr['id'])) {
            if(trim($item['id'])!= "") {
              $user_arr['services'][$service_id]['id']=$item['id'];
              $user_arr['services'][$service_id]['serviceID']=$service_id;           
            } else {
              $user_arr['services'][$service_id]['id']="0";
           }
          }//end if(trim($item['user_uuid']...
        }//endforeach
      }//endfor($i=0...
    }//endif($service_id>0)...
  }//endforeach($serv_arr...
  if($result_arr['is_admin']==1) {
    $user_arr['services'][99999]['name']="Admin access";
    $user_arr['services'][99999]['serviceID']=99999;
    $user_arr['services'][99999]['id']=0;
  }
  if(isset($user_arr['service'][0]) && is_array($user_arr['service'][0])) { unset($user_arr['service'][0]); }
  return $user_arr;
}

Sort of.  I use a PHP script to pull a list of subscribers/users then loop through that to download the individual subscriber information.  Pulls about 1000 entries every 3-4 minutes, but I get everything about them that way.  I don't run it often, but when I need a complete list, this is how I do it.

I found a way, using the API calls.  When you pull a user account info, it has a "custom" array that has your custom items in it.

Based on the response to you passing this along to your tech guy, neither is he.  Using an iframe like this:

  (iframe src="https://cadillacnews.com")(/iframe)  will create a secure (to the browser at least) content connection to the target site.  Even if my URL is FredsDiner.org and I di that, it is still secure to the browser.  In this case it has nothing to do with Godaddy, or Townnews.


  HOWEVER

Townnews may do some sort of referrer checking at which point they may block access.  That is a different issue though.


So... Just to clarify, your new domain is wdnz.com and you want to pull in content from TownNews (say wdnz.org) then you would use on the wdnz.com site  (substituting the proper brackets):

 (iframe src="https://wdnz.org")(/iframe)

Now, this is frowned upon, since Townnews is in business to host sites, the more appropriate method is to create a HTML block on your  Townnews site (as used above wdzn.org), and put in the iframe code like this: (iframe src="wdzn.com")(/iframe) and host the main site at townnews.

Secure has nothing to do with DNS other that the Secure cert needs to match the content site information.  The technology will work either way.  Policy and Contracts is what will stand in your way.

FYI: I work for our paper, and an Internet Service Provider that does hosting.  I deal with these things daily.  

Interesting.  If your "browser" is saying insecure then somewhere you have a "http://" instead of a "https://".  That has nothing to do with Townnews.


As for the iframe, are you trying to wrap an entire page in the iframe, or just a "section" so that you can include information from elsewhere on your page?



depends on the crawler.  More than likely, it will.

It will depend on if the crawler knows what the target site is, and if they deduct value for such things.

For a site NOT on Townnews I use a simple "What is Three plus Seven" type form entry, that is generated on the fly.  It passed the question to the form processor which checked to see if the answer is correct.  I don't pass the answer, just the full question.  The 3 words are semi-randomly generated from a list of possible terms.  For one site that was worried they would miss things, I still sent all of the submissions, but if the answer was wrong, it changed the subject to "[suspect] Rest of subject here" instead of the "Rest of subject here" subject it normally sends.

How to do this on Townnews, I don't know.  It should be fairly simple for them to come up with a system that requires someone to answer a semi-random question.  This will foil most bots these days.


If you use an Iframe tag, on wdnz.com to include bdailymews.com/wdnz you can do it.  That is the only way I know of without server-level access.

We would need it broken down by Race, Candidate, and Precinct.  We also need a way to denote National, State, County, and smaller/other groupings.  We show each precinct's vote count, then total by Township, city, County, and State, depending on how wide-reaching the Race is.  For School-related votes, or Ordinances, they tend to stop at the city or County level.  If you want to see how ours lays out, we Frame-Include our old system on out elections page at https://cadillacnews.com/elections/ .  This is not behind a paywall, so should be available to anyone wanting to see how we did things.  


For example:

Race: President

Type: National Election

Candidates:

  Fred Flintstone (D)

  Barney Rubble (R)

  George Jetson (L)

Breakdowns:

  Precinct, County, State each showing totals for that breakdown based on Precinct, Township/City, Counties (that we cover), and State.

the <span class=""> works, but requires a constant editing of each link for 'specials' and such.  I was hoping for a class field for links, just like BLOX does for each block.  This would allow us to fine-tune it with predefined classes.  Ticket opened over this has been answered and classes added.  We still have to use the <span class=''> tags but it does help cut down on the code needed updating each time we change a link from one type of highlight to another.