• 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

Hmm, so which one is the best - the Cache version or the normal one?

Lol, here we go again though - start afresh :)

Okay, it's all good so far :D

BUT, it seems that its behind one. Take a look at:

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

Choose a message, but then when it shows you the message that is current, its the old one.

Although going to: sig.png and you can see it actually does change it. Any idea's? this isnt a major bad thing as i could make the "New Message Entered Successfully" page just a simple "Thanks - refresh original page to display the current one" OR even totally redesign it, lol.

Edited by TheTrainMan
  • 0

Thanks again, Sphinx Myth!!

Ok, here is a new dynamic sig idea!

SigAtlas

I can't take much credit for it, since it's just a butchered version of IP-Atlas.

It will build up a picture of where people are from as they view the sig using their IP and lon/lat info from NetGeo to place a red dot on a map of the earth.

sigatlas.php

  • 0
Hmm, so which one is the best - the Cache version or the normal one?

Lol, here we go again though - start afresh :)

585797309[/snapback]

The "Cache" version seems to be the best for you because you don't write any dynamic data as date, IP, weather on your Sig.

Messages aren't dynamic because the sig is created/rendered and saved each time an user posts one of them.

[HeadKaze]: INCREDIBLE! :D

Edited by Sphinx Myth
  • 0

lol, okay, I am leaving it - its working okay.

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

Question though - how do I remove that white box around the selection thing? Or just make it invisible?

That is the only thing i need to know how to do. I have a feeling it's the "fieldset".

Thanks for ALL the help i have recieved on this :D

Pete

  • 0
Question though - how do I remove that white box around the selection thing? Or just make it invisible?

That is the only thing i need to know how to do. I have a feeling it's the "fieldset".

585797828[/snapback]

Yes, it's "FIELDSET" and "LEGEND".

Edited by Sphinx Myth
  • 0
After you've changed it, how come on the next page it shows the old image still and not the one that it's been changed to?

585798052[/snapback]

Your sig was well updated, but your browser doesn't display the good picture.

As HeadKaze said, refresh your browser. But it doesn't work sometimes because of your browser cache (your browser thinks it's the same picture, so it displays the one it has in its cache).

To override this behaviour, try this little trick (sig_form.php):

<img src="<?=DSIG_SAVED_SIG.'?'.rand( );?>" />

A random parameter suffix is added to the picture URL, but it does nothing (because a picture isn't a script :shifty: ). Browsers will think it's a new picture, will refresh their caches and will display the new picture.

Edited by Sphinx Myth
  • 0

Removed my sig thanks to some kid who kept writing f**k over and over again. I guess totally dynamic sigs are a bad idea. I'm thinking the "select a quote" option to be a better idea now.

But how to I do it? OCR? hehe no, I don't think so. IP Ban? Maybe, but anyway, I'm bored with the idea of dynamic sigs now anyway. Think I might just have something simple, or a random quote if I'm feeling special.

I could go on about "oh why is the world full of idiots", but really, it's not going to achieve anything except get the idiot more excited about his actions. I really don't care, and I don't know why I'm bothering to write this. I guess it's just a warning to all the other guys using one. It *will* be abused, this place is full of kids. Sad but true. Actually it's not really sad at all, it's a lesson to never expect people to do the right thing. Always write secure code with ways to prevent abuse.

  • 0
Removed my sig thanks to some kid who kept writing f**k over and over again. I guess totally dynamic sigs are a bad idea. I'm thinking the "select a quote" option to be a better idea now.

But how to I do it? OCR? hehe no, I don't think so. IP Ban? Maybe, but anyway, I'm bored with the idea of dynamic sigs now anyway. Think I might just have something simple, or a random quote if I'm feeling special.

I could go on about "oh why is the world full of idiots", but really, it's not going to achieve anything except get the idiot more excited about his actions. I really don't care, and I don't know why I'm bothering to write this. I guess it's just a warning to all the other guys using one. It *will* be abused, this place is full of kids. Sad but true. Actually it's not really sad at all, it's a lesson to never expect people to do the right thing. Always write secure code with ways to prevent abuse.

585804636[/snapback]

It's sad...but so true...

  • 0
Removed my sig thanks to some kid who kept writing f**k over and over again. I guess totally dynamic sigs are a bad idea. I'm thinking the "select a quote" option to be a better idea now.

But how to I do it? OCR? hehe no, I don't think so. IP Ban? Maybe, but anyway, I'm bored with the idea of dynamic sigs now anyway. Think I might just have something simple, or a random quote if I'm feeling special.

I could go on about "oh why is the world full of idiots", but really, it's not going to achieve anything except get the idiot more excited about his actions. I really don't care, and I don't know why I'm bothering to write this. I guess it's just a warning to all the other guys using one. It *will* be abused, this place is full of kids. Sad but true. Actually it's not really sad at all, it's a lesson to never expect people to do the right thing. Always write secure code with ways to prevent abuse.

585804636[/snapback]

Just use sessions to make sure only one page can change the image. Worked for me.

  • 0
Just use sessions to make sure only one page can change the image.? Worked for me.

585809069[/snapback]

Any chance you could elaborate on what exactly using a sessions is, and how they work to prevent abuse? Perhaps provide a code example.

Edit: ok, I think I get what you mean, but how does restricting the changing of a sig by one web page prevent the user from writing rude and insulting comments whether that be a text based sig (by using very easy methods to avoid a swearing filter) or by a drawing sig such as SigScribble where identifying such words is practically impossible, even using the most advanced OCR technology.

I doubt it would even be very common for people to POST to the sig from another page. What is the point of that, and how different is it to POSTing from the official page?

I think the only valid method worth bothering with is IP banning.

Edited by headkaze
  • 0
Any chance you could elaborate on what exactly using a sessions is, and how they work to prevent abuse? Perhaps provide a code example.

Edit: ok, I think I get what you mean, but how does restricting the changing of a sig by one web page prevent the user from writing rude and insulting comments whether that be a text based sig (by using very easy methods to avoid a swearing filter) or by a drawing sig such as SigScribble where identifying such words is practically impossible, even using the most advanced OCR technology.

I doubt it would even be very common for people to POST to the sig from another page. What is the point of that, and how different is it to POSTing from the official page?

I think the only valid method worth bothering with is IP banning.

585809189[/snapback]

That is exactly what it prevents users from doing.

Put this in the page that has the form on it (which in this case would be a drop down list)

<?php
session_start();
$_SESSION['Key'] = "Some Big Unknown Key....blablablalba";
?>

and put this on the page that updates your data file

<?php
session_start();
if ($_SESSION['Key'] == "Same as they key you defined in the first file") {
//Your Code Here
$_SESSION['Key'] = "NONE";
}
else
Echo ("Thanks for trying to hack my sig.  Go get a life.");
?>

The user will see the Thanks for trying to hack my sig message if they try to POST the data form another page.

Hope that helps ;)

  • 0

I had problems with people use rude/insulting words on my sig so I have added a word filter to it, any words that maybe seen as insulting/rude are filtered with * and new words can be added to list via an admin area. But on top of this I also added in ip ban so if i find someone continusly trying to do this on my sig i just simply type in the ip and ban it :)

  • 0

Hello,

I was wondering if there was a way to use a background image that I already have.

I made a basic image in Photoshop and I want to use it as the background for my dynamic signature.

I know that this is possible, but I do not know how to do it.

I know PHP, but I am not very familiar with the GD image tools. :ermm:

Clunt

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Fresh CachyOS install with Niri - I guess it's a little orange, but I'm working on it
    • FastStone Image Viewer 8.5 by Razvan Serea FastStone Image Viewer is a fast, stable, user-friendly image browser, converter and editor. It has a nice array of features that include image viewing, management, comparison, red-eye removal, emailing, resizing, cropping, retouching and color adjustments. Its innovative but intuitive full-screen mode provides quick access to EXIF information, thumbnail browser and major functionalities via hidden toolbars that pop up when your mouse touches the four edges of the screen. Other features include a high quality magnifier and a musical slideshow with 150+ transitional effects, as well as lossless JPEG transitions, drop shadow effects, image annotation, scanner support, histogram and much more. It supports all major graphic formats (BMP, JPEG, JPEG 2000, animated GIF, PNG, PCX, PSD, EPS, TIFF, WMF, ICO and TGA) and popular digital camera RAW formats (CRW, CR2, NEF, PEF, RAF, MRW, ORF, SRF, ARW, SR2, RW2 and DNG). FastStone Image Viewer features: Image browser and viewer with a familiar Windows Explorer-like user interface Support for many popular image formats and PDF viewing True Full Screen viewer with convenient image zoom support and unique fly-out menu panels Crystal-clear and customizable one-click image magnifier Powerful image editing tools: Resize/resample, rotate/flip, crop, sharpen/blur, adjust lighting/colors/curves/levels etc. Eleven re-sampling algorithms to choose from when resizing images Image color effects: gray scale, sepia, negative, Red/Green/Blue adjustment Image special effects: drop shadow, framing, bump map, sketch, oil painting, lens Draw texts, lines, highlights, rectangles, ovals and callout objects on images Clone Stamp and Healing Brush Superior red-eye effect removal/reduction with completely natural looking end result Multi-level Undo/Redo capability Single click to switch between best fit and actual size mode Image management, including file tagging, rating and drag-and-drop to copy/move/re-arrange files Histogram display with color counter feature Compare images side-by-side (up to 4 at a time) to easily cull those forgettable shots Image EXIF metadata support (plus comment editing for JPEGs) Configurable batch processing to convert/rename large or small collections of images Slideshow with 150+ transition effects and music support (MP3, WMA, WAV...) Create efficient image attachments for emailing to family and friends Print images with full page-layout control Create fully configurable contact sheets Create memorable artistic image montages from your family photos for personalized desktop wallpapers (Wallpaper Anywhere) Acquire images from scanners. Support batch scanning to PDF, TIFF, JPEG and PNG Versatile screen capture capability Powerful Save As interface to compare image quality and control generated file size Run favorite external editors with one keystroke from within Image Viewer Offer portable version of the program which can be run from a removable storage device Configurable mouse wheel support Support themes (bright, gray and dark) Support dual-monitor configurations Support touch interface (tap, swipe, pinch) Support dual instances Play video and audio files (Third party codecs may be required for old versions of Windows) And much more... FastStone Image Viewer 8.5 changelog: Added support for SVG format Added Start importing automatically and Handle duplicate file names automatically options to the Import Photos and Videos tool WebP files can now be rotated and saved with a single click Enhanced dark theme support in the PDF viewer Fixed a bug where some links in PDF files were not clickable Other improvements and bug fixes Download: FastStone Image Viewer 8.5 | Portable | ~15.0 MB (Freeware) View: FastStone Image Viewer Website | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Yup, broke my comp… again. its times like this when I regret AMD. This just never happens on NV.
    • Huh? You're delusional calling the Steam Deck dead. It is so successful that it has sold out multiple times. Even after the price hike this year it sold out again with 24 hours of being back in stock. The demand is real and has not died down even after four years.
  • Recent Achievements

    • Rookie
      DaviKar went up a rank
      Rookie
    • Dedicated
      HidekoYamamoto94 earned a badge
      Dedicated
    • One Month Later
      timbobit earned a badge
      One Month Later
    • One Month Later
      nates earned a badge
      One Month Later
    • Week One Done
      Almohandis earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      460
    2. 2
      +Edouard
      160
    3. 3
      PsYcHoKiLLa
      110
    4. 4
      Michael Scrip
      85
    5. 5
      Steven P.
      69
  • Tell a friend

    Love Neowin? Tell a friend!