Using The xmp Tag To Show Code On A Webpage

Posted on September 10th, 2005 in Geek Stuff by jason

just discovered this tag searching for a way to show code in a webpage without having the browser/server actually execute the code. its damned amazing how you never stop learning, i never thought i find a straight html tag that useful again, lol i figured i had all the good ones committed to memory. All you have to do is enclose the code you want to be shown as text inside a <xmp> </xmp>  tag
and you are rocking..
Here’s an example

The adsense ads are included via php, and the search engine names are formatted using

<xmp> </xmp>

tags but the search box codes are not ran but shown as text…pure beauty, i wonder if they work on this, one way to find out…….

*****ADDED******
yes it does work on this lol, too well in fact it worked where i didnt want it to work, so im assuming that this will work on all forums blogs etc…..

My Take On Nucleus So Far

Posted on September 9th, 2005 in Rants and Raves by jason

Ok i found my first major beef it, i have no way of posting code at all….most of the time software like this always has some sort of function built in to do it, most often thru bb code’s tag, maybe i missed an enable bbcode option somewhere i’m going to check right now, kinda of a bummer too, i was kinda liking it’s simple layout and ease of use, but let me see what the deal is before i make any final judgements

AMBGLB Password Protector V 1.0

Posted on September 8th, 2005 in Ambglb Scripts by jason

This one is a really simple but effective script, all you have to do is upload the file, add your wanted user name and password into the form, hit the create files button and voila the properly formatted .htaccess and .htpasswd files are created and your directory instantly becomes password protected. WARNING this will overwrite your current htaccess and htpasswd files if you have them, make sure you back up any info on them before running the script, and then copy and paste them into the newly created files. After creation you may want to delete the script from your server to keep from accidently wiping out the files.

How does it work?
The script locates its own file path, and then strips the filename using the substr() function in combo with the $_SERVER[’SCRIPT_FILENAME’] var.

Passwords are encrypted using the crypt()function to securely store in the htpasswd file.

The actual files are created using the fwrite() function.

Click Here To Download AMBGLB Password Protector V 1.0

Ambglb Mailer V 2.0 - Email Contact Form System

Posted on September 7th, 2005 in Ambglb Scripts by jason


Ambglb Mailer V 2.0 - Email Contact Form System

Okay i just finished this one up a little bit ago, its a more advanced version of the amblgb mailer, in an effort to cut down on spambots hammering contact forms, I added a little security using an image verification system just like all the big sites use. I also added alot more css and formatting options to make it even easier to integrate into your site. Due to the complexity of the script, i had to break it down into 3 pages, 2 of them residing in a separate includes folder, so when you are installing you must make sure the folder and the file are in the same directory?

Install Instructions

1. download and unzip the script.
2. select the ambglb-mail-inc folder and open up the mailer-settings.php file
3. edit all the applicable settings in the file, each one that you need or may want to change is commented with instructions
4. upload all the files, maintaining the same structure as the zip file.
5. link to the ambglb-mailer.php page and you are ready to roll.

Whats new:
Spambot protection
Ip address logging
Css styling
IE scrollbar colors
Text more customizable

CLICK HERE TO DOWNLOAD AMBGLB MAILER V 2.0.ZIP 3.91kb

CLICK HERE TO DEMO

Ambglb Mailer V 1.1- Simple Email Contact Form UPDATED

Posted on September 7th, 2005 in Ambglb Scripts by jason

****NOW UPDATED****

Ambglb Mailer V 1.1 - Simple Email Contact Form

i wrote a quick update to the original script to add ip logging to the form, the senders ip address is captured and sent along in the email to you, for tracking and security purposes..

INSTALL INSTRUCTIONS
Install Instructions
all you have to is copy and past the entire code to a new file, name it what ever you want, just make sure it has a .php extension…..i added a few setting that can be edited to help customize it somewhat to your sites…
when changing the settings make sure you leave the text enclosed within the ” ” or it won’t work, also make sure you leave the // that mark comments in as well…

the only 2 settings you have to change are
$email = “email@domain.com” ;
just switch out to the email addy you want the form sent, so for me i would change it to
$email = “staff@herbanmedia.com” ;

and the
$bandname = “Bandname” ;
which for me would be say
$bandname = “Jason” ;

right now the script is set to return a link to your home page, (what people see when they type in www.yourdomain.com)
if you want to change it, simple swap the / out to the url of the page you wish, making sure you add the http:// if you don’t understand directory shorthand
$weburl =”/”;

the $text and $confirm are pretty self explain its simply the text that you see

the last 3 are the color settings of the page background, text color, and table outline
make sure you use the hex color codes to change…..

CLICK HERE TO VIEW SOURCE