Download & Extend

Hide Apture bar on certain pages

Project:Apture
Version:6.x-1.7
Component:Miscellaneous
Category:task
Priority:minor
Assigned:Unassigned
Status:active

Issue Summary

I'm actually writing this to help a guy out, but figured I'd post it here and if it's wrong maybe someone will correct it for him.

I think this code with hide the Apture bar on any page who's URL doesn't include a certain word:

<?php
$uri
= $_SERVER["REQUEST_URI"];
$uri_array = split("/",$uri);
$uri_first = $uri_array[1]; // might need to change this to [1]
?>

<?php if ($uri_first == 'Enter word in url that must exist in order to see the code'){ ?>

Enter Apture

<?php } ?>

Comments

#1

If you don't know what Apture is, you can see it at their website http://www.Apture.com, or mine, www.Lickitornot.com (may or may not be available depending on state of developement).

#2

maybe it would be better to add a checkbox in the node- form to disable apture in the created node.

as i forgot most of the drupal- api while "defending my country" i'm not able to do this at the moment, but gonna take a look at it when i'm back in the business.

PS: my english skills suffered too :(

#3

Yes that would be good! I was writing this for a guy who may or may not have had Drupal, but as I'm using Drupal myself, I thought maybe the community could build on the idea. I look forward to seeing how the Apture integration grows.