• 0

Dynamic Signatures


Question

How would I make a signature that allows users to put a piece of text into my signature? I know you can use PHP, but I don't have the slightest clue about PHP

(Apart from Cutenews stuff)

Could someone make me a saple signature, very plain, and show me how to allow users to imput text into it thru my website?

Edited by TimRogers
Link to comment
https://www.neowin.net/forum/topic/301987-dynamic-signatures/
Share on other sites

Recommended Posts

  • 0
OK, I'm hosting it on my personal website.

So now, we can use colors and load function :D, well done! I suggest you allow different line thicknesses and it'll be perfect!

585785726[/snapback]

Thanks!!! Hehe funny you mention about the line thicknesses, I was working on that last night but had a few problems. I've had to move from Flash 5 to Flash 6 and that means there are some adjustments I need to make in order to get the thickness thing. Stay tuned!

I'll PM you when I get time for then next version! Thanks again :)

  • 0
Thanks!!! Hehe funny you mention about the line thicknesses, I was working on that last night but had a few problems. I've had to move from Flash 5 to Flash 6 and that means there are some adjustments I need to make in order to get the thickness thing. Stay tuned!

I'll PM you when I get time for then next version! Thanks again :)

585786955[/snapback]

You're welcome! I'm impatient!

  • 0

Mine isnt working :( lol. I feel so embarassed :p

http://www.wizzyworld.com/externals/sig/ is it.

Okay, so when I click "Change Sig" it doesnt change? Or the image above it doesnt display the change? :/

Also, whats the /admin/ folder for? Its empty?!

Pete

Edited by TheTrainMan
  • 0
Mine isnt working :( lol. I feel so embarassed :p

http://www.wizzyworld.com/externals/sig/ is it.

Okay, so when I click "Change Sig" it doesnt change? Or the image above it doesnt display the change? :/

Also, whats the /admin/ folder for? Its empty?!

Pete

585793292[/snapback]

Ok. It seems in your config file you didn't change the text position: the text is outside the picture limits. Try something like:

// Text position
define( "DYN_SIG_X", 0  );   // Frop the left
define( "DYN_SIG_Y", 60 );   // From the top

I discovered a small bug so please delete your dyn_sig folder (you can save/keep your DAT files, your fonts and your pictures, but not the other files), download the latest version on my website, install it and configure/customize it.

  • 0

Since I get a lot of PM's from members recently asking if they can have the code of my dynamic sig, I decided to post it here.

You need a PHP server with GD for this.

1. Save the code as sig.php

2. Make sure the dir is CHMOD'ed to give write access (755)

3. Create your signature image without the dynamic text and save it in the same directory as 'sig.png'

4. This script has a swear filter, but Neowin won't allow me to post that. Just add your own words to the swear filter. Just make sure there are no * in the filter.

5. The script produces an image 'signature.png' with the added text. Every change is logged to a log file.

That's about it. You can add extra stuff to it, but this is as basic as you can get. Have fun with it...

<?php
// code by 505
if (isset($_POST['sigtext1']))
{
//die('Service disabled for now... Back soon.');
$im = imagecreatefrompng('sig.png');
$white = imagecolorallocate ($im, 255, 255, 255);
imagestring($im,3,123,43,filter($_POST['sigtext1']),$white);
imagestring($im,3,123,55,filter($_POST['sigtext2']),$white);
imagepng($im,'signature.png');

$handle = fopen('sig.log','a+');
fwrite($handle,"------------------\r\n");
fwrite($handle,"time: " . date('d F Y, H:i:s') . "\r\n");
fwrite($handle,"ip: " . $_SERVER['REMOTE_ADDR'] . "\r\n");
fwrite($handle,"line 1: " . $_POST['sigtext1'] . "\r\n");
fwrite($handle,"line 2: " . $_POST['sigtext2'] . "\r\n");
fclose($handle);
echo 'Changed';
}

function filter($s)
{
// array with forbidden words (swear filter)
$forbidden = array('****','****','ass','suck','######');

$s = str_replace("\'","'",$s);
$s = str_replace('\"','"',$s);

for ($i=0;$i<count($forbidden);$i++)
{
 $s = preg_replace("/$forbidden[$i]/i",string($forbidden[$i],'*'),$s);
}
return $s;
}

function string($s,$c)
{
for($i=0;$i<strlen($s);$i++)
 $r .= $c;
return $r;
}
?>
<html>
<head>
<title>Change signature</title>
<style>
body,td {font-size: 12px;}
input {border: 1px solid black; font-size: 10px}
</style>
</head>
<body onload="sigform.sigtext1.focus()">
<div align="center">

<img src="signature.png"><br>
<form name="sigform" method="post" action="sig.php">
<table>
<tr>
<td>Line 1:</td>
<td><input type="text" name="sigtext1" maxlength="20"></td>
</tr>
<tr>
<td>Line 2:</td>
<td><input type="text" name="sigtext2" maxlength="20"></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" value="Change signature"></td>
</tr>
</table>
</form>
Please do not abuse this service<br>
Stay within the <a href="https://www.neowin.net/forum/rules.htm" target="_blank">neowin.net community rules</a><br>
<small>Note: changes will be visible to everyone on the neowin site. Changes, date, time and your IP-address are logged to a logfile.</small>
</div>
</body>
</html>

  • 0
okay, i got it working now :D

Is there a way to make the text bigger?

585794547[/snapback]

Change the value of DYN_SIG_SIZE in your config.inc.php file.

You should glance at it, really.

Edit: suggestions don't seem to work on your website. Check your file permissions.

Edited by Sphinx Myth
  • 0

Here are some dynamic signitures I have made for some neowin members :)

I will also create signitures for others who send me a private message or PM :)

ph3412t3h13

sig.PNG

Click the above image to change what the angry kid says!

neomilan

top.PNG

bill.GIF

Click the above image to change what Bill Gates says!

sumeet

sig.PNG

Click the above image to change the text!!

williamhook

sig.PNG

Click the above image to change the text!!

If anyone wants me to make them their own dynamic signiture feel free to PM me, and I will create it for you asap! :)

  • 0

Okay, now pooped off :(

I tried to make my own index page, and now when i click "Change Signature" it doesnt do anything!

http://www.wizzyworld.com/externals/sig/

Can it not be made that the options are stored in the actual file?

EDIT: Well, because I am doing things, then it is working now, but i bet i'll get the design of the page right, and it wont work :(

Edited by TheTrainMan
  • 0

Okay, so it doesnt like being in a table right? Doesnt like CSS right?

Can someone not get it to work?

Okay, I want it in this design - http://www.wizzyworld.com/externals/sig/wanted_index.php

so, can anyone make it work for me?

Also, for some reason my "post.php" isnt showing the image anymore when the person has changed it.

I so nearly got the other one to work, and now i am working with a new one and it still isnt working, but i dont know why.

  • 0

I'm sorry but it really annoyed me.

i just dont understand it and cant see how it is being in a box when the code doesnt say there is a box there, and why doesnt it like it in a box or seem to want to support CSS. I just dont get whats stopping it :@ :anrgy:

  • 0
I'm sorry but it really annoyed me.

i just dont understand it and cant see how it is being in a box when the code doesnt say there is a box there, and why doesnt it like it in a box or seem to want to support CSS. I just dont get whats stopping it :@ :anrgy:

585796886[/snapback]

Where abouts did you place the CSS on your page?

is it something like this?

<html>
<head>
<style type="text/css">
<!--

CSS CODE RIGHT HERE!!! <----- 

-->
</style>
</head>
<body>

REST OF CODE HERE!!!   <-----

</body>
</html>

  • 0

Yo.

I hadn't thought it would be so difficult to include my script.

So, I rewrote some things, renamed a few constants (more understandable). The form is now in only one part (sig_form.php), not two as previously (index_sig.php & post.php). That will help you to make your custom page, I also included into the ZIP archive an example of custom page which includes the script. By default, the form sends the data to index.php.

Finally, I made a version of the script which saves the sig into a file. It's better if your sig doesn't use dynamic data (like dates, IP etc.), it renders only once the sig (every time you change the text) and saves it (img/sig.png by default). That saves a lot of CPU resources.

Dyn Sig

DON'T FORGET TO MODIFY YOUR CONFIG FILE!

Edited by Sphinx Myth
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Micron reveals AI companies are spending billions to lock up its memory years in advance by Karthik Mudaliar The demand for more memory is far from over, and Micron is turning the AI-driven memory shortage into a much more predictable business. The company has revealed that it has signed 16 strategic supply agreements backed by roughly $22 billion in customer deposits and other financial commitments. The contracts cover DRAM and NAND deliveries over several years, with some running through 2030. With the AI boom, demand for high-bandwidth memory (HBM) has grown so quickly that large customers are now prepared to help finance future production in exchange for a guaranteed supply. According to Micron’s latest financial results, the company received commitments worth about $22 billion across its new agreements. Around $18 billion is expected to arrive as cash deposits, while the rest will come through other financial arrangements. Micron says the agreements could generate approximately $100 billion in future contracted obligations. They cover around 20% of its expected DRAM shipments and one-third of its NAND shipments during their respective terms. It should be noted that although AI infrastructure is the main force behind the current shortage, not all 16 agreements with Micron involve AI companies. Micron said the customers also include consumer electronics and automotive businesses, two sectors that increasingly compete with data centers for the same manufacturing capacity. HBM is consuming an increasing share of that supply. Unlike conventional desktop or server RAM, HBM stacks multiple memory dies vertically and places them close to an AI accelerator. This gives GPUs and other AI chips access to data at much higher speeds, but it also requires more complicated manufacturing and packaging. Micron says its 12-layer HBM4 memory is now shipping in high volume for a lead customer, with samples also supplied to other companies. The chipmaker has already generated more than $1 billion in HBM4 revenue and says the product is ramping twice as quickly as its earlier HBM3E generation. Samsung has similarly warned that the memory shortage could continue into 2027 and beyond. Consumer memory companies have also had to address sharp increases in DDR5 pricing, suggesting the effects are already reaching beyond the data center. For consumers, that could mean the AI memory crunch lasts longer than expected, even as manufacturers invest heavily in new production.
    • XnConvert 1.112 by Razvan Serea  XnConvert is a cross-platform batch image-converter and resizer with a powerful and ease of use experience. All common picture and graphics formats are supported (i.e. JPG, PNG, TIFF, GIF, Camera RAW, JPEG2000, WebP, OpenEXR) as well as supporting over 500 other image formats. Also available within the batch operations include rotating, adding of watermarks, adding of text along with many image-adjustment features such as brightness, shadows and more. Among the features included are: Batch adding of files and folders Support for drag and drop of files Batch rotating, cropping, resizing and more Adding of photo masks Preserving or removing image metadata in conversions Multipage image file support (i.e animated GIF, APNG, TIFF) Command line integration via NConvert Filters - such as 'Blur', 'Gaussian Blur', 'Emboss', "Sharpen' and much more Effects - such as 'Old camera' and much more Download: XnConvert 64-bit | Standalone | ~30.0 MB (Freeware) Download: XnConvert 32-bit | Standalone Links: XnConvert Website | Screenshot | Release Announcement Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Microsoft updates Visual Studio Code with chat cost tracking and multi-agent chats by Paul Hill Microsoft has just launched Visual Studio Code 1.126, its latest weekly release. This time, the company has focused on letting you see the total cost of chat sessions to spot expensive conversations; enabling multiple chats per session that run side-by-side in one agent host Copilot session; and letting you browse new folders safely in restricted mode. We have now reached the stage where free AI in IDEs is coming to an end. To help you keep track of your costs, VS Code now lets you see the entire cost of a chat session, rather than just individual turns. This should give you more transparency about which sessions consume the most credits, so you can better manage your usage over time and spend less. For those of you using the Agents window, you know it is possible to run and manage multiple agent sessions at once. In this update, a Copilot session started from an agent host can hold several chats at once. Explaining how this feature works, Microsoft writes: Finally, from this update forward, Microsoft will remove the pop-up when opening an untrusted folder. When you open a new folder now, it will automatically open in Restricted Mode. You will see a banner that lets you manage the trust level of the folder. Microsoft has made this change so that it’s easier to start inspecting code without giving it trust right away. If you have VS Code, you can check for updates within the app now to get this new version. Otherwise, you can download it from the Visual Studio Code website.
    • Anthropic accuses Alibaba of using 25,000 fake accounts to copy Claude's capabilities by Karthik Mudaliar Anthropic has accused Alibaba of using nearly 25,000 fraudulent accounts to extract capabilities from Claude on a huge scale. According to a report from Reuters, Anthropic told US lawmakers that operators linked to Alibaba and the company’s Qwen AI team generated 28.8 million exchanges with Claude between April 22 and June 5, 2026. That is a lot of Claude conversations, but Anthropic says this was not ordinary chatbot use. The company believes the accounts were part of a coordinated effort to collect answers that could help train or improve rival AI systems. The alleged campaign reportedly focused on some of Claude’s most valuable skills, including software development, multi-step reasoning, and agentic tasks. In practical terms, that means getting an AI model to plan and complete work across several stages rather than simply answering a single question. This is called 'distillation,' where AI companies use outputs from a larger model to train a smaller and cheaper one. The smaller model learns to imitate useful parts of the more capable system without needing the same amount of computing power. The distillation process isn't automatically suspicious, but the problem comes when one company gathers another provider's outputs without permission and at an industrial scale. Also, this does not mean Alibaba obtained Claude’s source code, model weights, or original training data. Instead, Anthropic claims the accounts repeatedly asked Claude carefully designed questions and collected the answers. Those answers could then be used as training material for another model. Anthropic has made similar accusations against DeepSeek, Moonshot AI, and MiniMax earlier this year. As Neowin previously reported, Anthropic said those three companies collectively generated more than 16 million Claude exchanges through roughly 24,000 accounts. Anthropic says the new campaign produced almost twice as many exchanges in a matter of weeks. Anthropic reportedly told lawmakers that the campaign could help Chinese AI developers approach the capabilities of its Mythos Preview model. Mythos is focused on advanced cybersecurity work, including finding and exploiting complex software vulnerabilities. via Reuters | Photo via DepositPhotos.com
  • Recent Achievements

    • Rookie
      krychek57 went up a rank
      Rookie
    • Grand Master
      Jaybonaut went up a rank
      Grand Master
    • One Year In
      Philsl earned a badge
      One Year In
    • Dedicated
      Scoobystu earned a badge
      Dedicated
    • First Post
      Tom Schmidt earned a badge
      First Post
  • Popular Contributors

    1. 1
      +primortal
      441
    2. 2
      +Edouard
      175
    3. 3
      PsYcHoKiLLa
      134
    4. 4
      Michael Scrip
      79
    5. 5
      Xenon
      77
  • Tell a friend

    Love Neowin? Tell a friend!