Spectre
Oct 6 2006, 04:46 AM
This is only a very quick tutorial, meant to complement the dynamic signature tutorials that already exist here. It's nothing new, but it was just brought to my attention that not many people seem to be aware of this method. This does not cover the actual creation of dynamic signatures, per se - but rather a better 'trick' to allow you to use dynamic signatures on forums such as this one. I've noticed that most of the dynamic signature tutorials on this forum state that you must place a file index.php in a folder <filename>.png, in order to trick Invision Power Board (and other forums) into thinking that it is linking to an image - but when the user's browser attempts to access the folder image.png, it is redirected to the index.php script. However, this is very 'hackish', and in my opinion, not the best way to go about it if you have a choice. If your host runs Apache and it is configured to allow it, you can create a script with any extension - such as .gif, .png, .jpg, or whatever - and use a .htaccess file to cause the script to be passed to the PHP engine, and therefore treated as a script and not an image. This means there is no 'tricking' the forum into thinking that a folder is a script and causing access to be redirected to the script contained within the folder - the image is the actual script. So rather than having signature.png/index.php, you can simply have signature.png - and all the PHP code is contained within that file. In order to use this method, you simply need to add file handling instructions to a .htaccess file located in the same folder as your dynamic signature script. You can name the script whatever you like, but make sure it aligns with whatever type of image the script is creating and the Content-Type header it sends (which seems to be PNG for the majority of tutorials): CODE <Files signature.png> ForceType application/x-httpd-php </Files> And that's all there is to it. No more relying on Apache's method of automatically redirecting access of a folder to a pre-defined directory index in order to use dynamic signatures in forums and other areas that only allow images with a recognised image extension to be linked to.
Reply
sportytalk
Oct 11 2006, 09:40 PM
Thanks for your post explaining how to go about adding dynamic signatures without having to trick the internet browsers, this will almost certainly help those people who want to have an updating signature, logo or even banner I guess. I don't really include dynamic images on my website, at least I haven't done yet. I may, however, put a dynamic banner or something on my website in the future. Even if I don't use this method, no doubt there are other people out there who are pleased they've read this topic. Thanks for sharing
Reply
Sprnknwn
Oct 13 2006, 09:10 PM
Sorry ¿what do you understand for dynamic? I thought that a dynamic signature was only one which changes between a few images of the same size. An animated gif to speak clearly. So I guess you´re talking about something differente because I don´t need anybody need php code to put an animated gif in his signature. ¿Maybe you say something like... last.fm sigs?
Reply
gameratheart
Oct 13 2006, 11:53 PM
If you are making the image generator for use in a forum, there's another method similar to this if you use IPB 2.0 or higher. In the ACP there's a section defining filetypes, if you find it it lists all the allowed extentions on the forum and their mime type. You can just change the one for png from image to application/x-httpd-php and it has the same effect as what Spectre mentions. If you do this, however, you do it at your own risk. I have used this before but not for this extension.
Reply
Spectre
Oct 14 2006, 02:54 AM
QUOTE(Sprnknwn @ Oct 14 2006, 07:10 AM)  Sorry ¿what do you understand for dynamic? I thought that a dynamic signature was only one which changes between a few images of the same size. An animated gif to speak clearly. So I guess you´re talking about something differente because I don´t need anybody need php code to put an animated gif in his signature. ¿Maybe you say something like... last.fm sigs?
A dynamic image is one that can be changed, for instance a single image that displays different text each time you view it. An animated GIF is not dynamic - although the frames may change to form the animation, the image is still in itself static. A dynamic image can be created in PHP via the imaging functions provided in various libraries.
Reply
Dooga
Oct 14 2006, 05:21 AM
hmm.... will that make my images all php files? lol...
Reply
Spectre
Oct 14 2006, 03:16 PM
No. Only individual files specified in the .htaccess file. You could add an Apache handler that caused all images to be passed to the PHP engine, but using the mentioned method only allows for individual files to be treated in a certain way (in this case, as a PHP script).
Reply
AlternativeNick
Jan 27 2007, 06:53 AM
theres another way to do this (how i do it at least). The url to one of my dynamic images is www.altscripts.net/image.php/1/sig.gif anything in /1/sig.gif can be changed, i use 1 as it is my forum ID, and sig.gif just fools a forum software (or whatever else) into thinking its an image file, the sig.gif part is not actually used in the script. To get the information from the url, i just use explode; this is how its done CODE $stdata = explode("/",$_SERVER['PATH_INFO']);
then to get the '1' out of the url, i use $stdata['1'], and $stdata['2'] would be the sig.gif, that allows for truely dynamic images (where user input of some sort is required, in this case a forum ID to get a few forum stats.)
Reply
QuickSilva
Jan 27 2007, 12:20 PM
Oh so very cool. I actualy knew how to do this, but for some people that didn't, it's a very good tutorial. You have explained it very well and made it quite simple to understand. Very well done!
Reply
Recent Queries:--
how to make dynamic signatures - 2.54 hr back. (1)
-
how to put signature at posting blogspot - 95.11 hr back. (1)
-
signature script - 354.10 hr back. (1)
-
fancy sig gif - 414.57 hr back. (1)
-
dynamic stat image script - 491.28 hr back. (1)
-
php signature script - 549.07 hr back. (1)
-
dynamic signature png - 558.65 hr back. (1)
-
code dynamic stat signature in php - 589.42 hr back. (1)
-
how to make dynamic stat signature with php - 602.26 hr back. (1)
-
you tube dynamic signature - 633.59 hr back. (2)
-
dynamic email signature generator script - 722.64 hr back. (5)
-
free fancy animated signatures - 867.96 hr back. (2)
-
anchor links allow apache to go there - 874.07 hr back. (1)
-
forum signature dynamic - 874.21 hr back. (1)
Similar Topics
Keywords : dynamic, signatures, real, forget, placing, index, php, signature, png, folder
- Locking A Folder With No Software At All!
works on XP AND VISTA!!! (4)
Create Dynamic Html/php Pages Using Simple Vb.net Code
Taking your application data, and creating a webpage for others to vie (1) This example will show you how use a string in VB to create PHP code. In order to do this, you need
a string to store your PHP page and a function that I will list at the bottom of the page for you to
put in a module. This code is written in VB.NET Public Sub CreatePage(ByVal HTMLTitle As
String, ByVal HTMLText As String, ByVal HTMLFileName As String) Dim strFile As String '
---------------------- ' -- Prepare String -- ' ---------------------- strFile = "" '
-------------------- ' -- Write Starter -- ' -------------------- strFile = " " ....
Folder View In Kde 4.1
(4) Even though there was a lot of negative criticism over the new KDE, but over the last time there are
mostly positive critics and they encouraged me to try this DE (some of them even told me that KDE4
is better than MS Vista's and even OSX's one!). For those which don't know what is
KDE and what should they expect from it, here is the official link from the devs. :
http://www.kde.org/announcements/4.1/ With the comming of KDE 4 lots of things changed and lots
of new things were added in it, but I'll keep on one productive thing in here, and its cal....
Centering A Div
placing the div to the center of a screen (0) Many people would like theire website in the center of the screen. This is how to do that. 1. make
a new css document. 2. Then place the following code in it. #main-div { position: absolute;
top: 50%; left: 50%; width: 70em; height: 50em; margin-top: -25em; /*always take 1/2 from the
size of the height, they have to be negative*/; margin-left: -35em; /*always take 1/2 from the size
of the width, they have to be negative*/ } Then place in your html: the following code.
content This wil place the div box in the center of the screen, works mostly for ....
Tutorial : Hide Folder Without Any Softwares
Descriptive enough! (10) It's easy, just a few steps and your folder will be hidden First step : Create folder, name it
using alt+0160 Second : A folder will be created with name 1 space, then right click the folder,
properties, customize, change icon, see for a blank icon and press apply Enjoy Video tutorial
uploaded by me http://www.youtube.com/watch?v=EW8dD3KeUJk Have fun.....
How To Make Your Signature Look Really Good!
using various bb codes (15) I got a PM the other day asking how I did various things in my signature, well I'm going to show
you all the secrets /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0"
alt="biggrin.gif" /> So first of all theres those bars that show what you use and things
they're called signature bars you can get them by clicking below signaturebar.com is
fantastic for signature bars, you can even request one of your choice. It is supported by ads and
donations also by a few talented developers with an eye for detail go take a look! Next theres
the sl....
Cakephp On Ubuntu
using your own public_html folder (0) Hi, there are many tutorials about this, but i would like to type the steps i followed in order to
get cakephp working on my user public_html folder. as many of you probably know, if you have
apache's userdir module loaded, you can put your web pages on /home/user/public_html , and
access them with the url: http://localhost/~user/ . I really prefer this, so all my web pages are
on my personal home, but how to configure cakephp to work with these paths, i got a hard time with
this, but finally got it!. here's how: in case you don't have apache2's u....
Dynamic Signature - Yet Another Way To Do It
Create dynamic sigs for multiple users using .htaccess and RewriteRule (0) Ever since I connected a program I made in Visual Basic to MySQL database, I had an idea to create
some sort of a status page... And I did that, where I updated my connection status every 60 seconds,
updated my Winamp playlist, and several other interesting things... Then, I figured I could create
an image, and display all that info, and show it on forums, as a signature... And I made a great
PHP script, that look real fancy, and does the job perfectly... So, I was adding the reference to
http://status.galahad.trap17.com/stat.php to all the forums... BUT (there's ....
Making A Dynamic Page On Blogspot
Using an external server to make your pages hosted on blogspot dynamic (5) Good morning everyone. Have you ever wondered how to allow your visitors to edit content on your
blog? Like adding a post straight off the page, adding a link, editing your profile etc. This will
be extremely useful if you want your visitors to contribute to your blog besides writing comments or
tagging. 1. Adding a post straight off the page. Go to blogger.com, login, select your blog. Go to
settings -> email. By enabling blog email, you can now add a post by simply sending an email to the
address you specified. The address should look something like: yourusername....
Templating System Using Php Includes
Building a Dynamic site using Includes and flat-files. (13) Php based Templating System http://jlhaslip.trap17.com/template/index.php The Source Code
for the scripts are included (literally) on the different pages on the Demo, including the Contact /
Email script. The only page not there yet is the Message Script. Maybe tonight I will upload that.
This one uses a little bit of query-string checking to confirm that the contents of the page are
actually available (file_exists())and an allowed page content before serving it up. The
'allowed page content' is done by checking against a flat-file containing an array....
Cool Signature Mod
Invision Power Board Mod (14) this mod make your signature have the name of the people logged in the forum that is reading your
post. exemple: in your signature you say: Hello ! And for the person loggued in will see:
Hello (the persons username reading your post) ! Hello Find3r! How to do this: one of
the admins have to add to - Admin CP -> Skinning & Styles -> Board Wrappers -> Footer: this:
CODE <script> //Get member name to Signature v0.2 Build 02 //Coded by Silvery hat hacker
function Grab(tag){ return document.getElementsByTagName(tag) } var i....
Putting A Signature On The Forum
A tutorial on how to put a signature on here (35) Concidering it is a part of the rules that we put signatures in the signature portion instead of
typing it every time you make a post, i made this to tel people how to put the signature up for
people to see. It will automaticly be added to the end of every single post you make! First Off
you need to go to "My Controlls" which can be found in the top right hand side of the screen...
Once you are in your controlls look on the left hand side for "Edit Signature" once you are
there you should see a screen like this that shows your current signature for ex: m....
Building An Unordered List Of Anchors
From a list of files in a folder (4) Building an Unordered List of Anchors from a Folder of files This script reads files from the
named folder and then builds a list of links from the filenames using the contents of the first
tag as the link description and the file-name as the anchor href . The file should be a web
readable file such as html or php. This script may come in handy for creating a list of clickable
links for use in sidebars and on 'sitemap' pages. Simply build a series of html files and
store them all in a single folder, ensuring that the description inside the first h3....
Yet Another Signature Rotator
(Easier, and more Efficient) (7) Hey Trap, It's Mr. Panda, and I'm introducing a signature rotator script I came across
several months ago. Unlike most other signature rotators on trap17, this one does DOES NOT
require the configuration process, and a new signature can be added, simply by uploading it to the
proper directory. Seeing as this requires so much less configuration, I do hope it will be
implemented by some of you 'Sig Masters' out there /biggrin.gif' border='0'
style='vertical-align:middle' alt='biggrin.gif' /> , that have to add another line of code to your
rotator file....
Css And Javascript Combined For Dynamic Layout
use of different CSS files at same site (9) This tutorial is meant for people that are dealing with problems while coding their site at 100% of
width. Important notice: Some people has JavaScript disabled, so they will not be able to load CSS
file (take this in account when creating your website). How this script works. In the HEAD of your
HTML document will apply this command, so variable.js file will be load at start: CODE
<script type="text/javascript" src="variable.js"></script> In
browser JavaScript file variable.js is loaded. This Javascript file consist of this para....
How To: Change Your Website's Index File
a simple trick using .htaccess (24) How To: Change Your Website's Index File a simple trick using the .htaccess file A simple
tutorial which only involves editing one little file. Useful for those of us who have mime-typed
extensions or who are creating lots of test design files and want an easy way to make the design
they like best their default file. Create a file called .htaccess in the /public_html/ folder if
you don't have it. I think one should be there already when you get your site so if it isn't
you should create it anyway! In the file write the following: CODE Di....
Php Dynamic Signatures
Using the GD Module and MySQL (9) PHP Dynamic Signatures using the GD Module After much scowering on the internet to find a
suitable tutorial on this subject, I came up empty-handed. So I was forced to learn it on my own
through trial & error. And since I had discovered a lack of tutorials on this subject, I dediced to
write one! Working Example: Abstract : Using the GD Module of PHP allows a
developer to build custom Images with Dynamic Content. Such content could be the Requesting Users
IP Address, Web-Browser Type, Operating System, even the number of times the user has see....
How To Edit Your "index Page"
Adding new pages? (0) This tutorial was requested by sxyloverboy . Introduction: sxyloverboy has asked me how
to make your navigation bar on him website change to add another page, without having to do it on
every page. Well, I have the answer for you! Beginning Assuming you have a FTP upload
access, you'll be open your file "index.php" -=Example=- Once your "index.php" file is open
press "CRTL+F" (Find) and search for something that looks like this; CODE
<tr> <td class="off" onmouseover=....
Php Installed Modules Dynamic Reference Tool
An effective tool for coding in PHP (4) PHP Installed Modules Dynamic Reference Tool A dynamic tool for referencing PHP modules and
their associated routines, which are installed on your web-server. **Note: Uses only 2 functions
built-in to PHPs core and should be easy to convert to a later version of PHP. This current version
uses PHP4. Example: PHP Installed Modules Dynamic Reference Tool Abstract : As a PHP
Developer, it is nice to know what functionality is available to you, and what you would have to
implement yourself. Some of this functionality is provided for you by the PHP core,....
Changing A Dynamic Ip
How to change your dynamic IP. (18) In this tutorial I will tell you how to change a dynamic IP if you have Windows XP. First of all go
to - Start >> Run - and type 'cmd'. A window with a black background and grey text. In
this window type 'ipconfig' and text should come up saying: IP Address ............. *IP
HERE* Subnet Mask ................ *SUBNET MASK HERE* Default Gateway .......... *DEFAULT GATEWAY*
Write this down on a bit of paper on in notepad. You will need them later. Now type
'ipconfig/release' - this will terminate your internet connection - but don't g....
Secure Dynamic Pages Ii
(0) Just put the following code in every begining of your PHP script: CODE <?php
error_reporting("0"); ?> So, you will never see any errors. OR CODE
<?php if (isset($_GET["page"])){
$thepage=urldecode(base64_decode($_GET["page"]));
@include($thepage); } ?> ....
Secure Dynamic Pages
Another good php tutorial. (7) Hello all, Recently a friend of mine gave me this code to make your site completley dynamic and
secure at the same time. Here is what you have to do. Open a new page in your text editor and paste
in this code. CODE <?php error_reporting (E_ALL ^ E_NOTICE);
if(!$page){ $page = $HTTP_GET_VARS['page']; }
if($page=="" or $page=="main"){
include("main.php"); } if($page=""){ die("You
cannot access this page directly..."); } ?....
Looking for dynamic, signatures, real, forget, placing, index, php, signature, png, folder
|
*RANDOM STUFF*
*SIMILAR VIDEOS*
Searching Video's for dynamic, signatures, real, forget, placing, index, php, signature, png, folder
*MORE FROM TRAP17.COM*
|
advertisement
|
|