This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For STAGING SERVER ONLY... | |
# -------------------------- | |
# -------------------------- | |
# Developers add your IP Below | |
# DO NOT ADD Fuller IP's, however | |
# -------------------------- | |
# -------------------------- | |
# To set a u/p for everyone else, | |
# in command line on the server, type: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Replace line 140 in tab.structure.php with: | |
$help_text = "<p class='instruction_override'><strong>URL prefix</strong><style>#sub_hold_field_structure__uri .instruction_text p {display:none;} #sub_hold_field_structure__uri .instruction_text p.instruction_override {display:block;}</style>: ".$site_pages['uris'][$parent_id]."</p><input type='hidden' id='full_url' value='".$site_pages['uris'][$parent_id]."".$slug."'>"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Globals | |
.DS_Store | |
cgi-bin/ | |
error_log | |
# Master Config | |
config/config.local.php | |
# Caches | |
sized/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
$("a[@href^=http]").each( | |
function(){ | |
if(this.href.indexOf(location.hostname) == -1) { | |
$(this).attr('target', '_blank'); | |
} | |
} | |
) | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$url="http://www.mysite.org/one/two/three"; | |
$data=explode("//",$url); | |
$segments=explode("/",$data[1]); | |
$count = count($segments)-1; | |
echo $url . '<br>'; | |
echo $segments[0] . '<br>'; | |
echo $segments[1] . '<br>'; | |
echo $segments[2] . '<br>'; | |
echo $segments[3] . '<br>'; |