• 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

    • Look who's back!
    • I wonder how driving laws around the world will change. No way to really tell if people are using phone. Same with smart watches i guess even now and those silly built in tablets for controlling the car instead of buttons.
    • They found a better aligned evil overlord for WhatsApp...
    • Google Chrome 149.0.7827.197 (offline installer) by Razvan Serea The web browser is arguably the most important piece of software on your computer. You spend much of your time online inside a browser: when you search, chat, email, shop, bank, read the news, and watch videos online, you often do all this using a browser. Google Chrome is a browser that combines a minimal design with sophisticated technology to make the web faster, safer, and easier. Use one box for everything--type in the address bar and get suggestions for both search and Web pages. Thumbnails of your top sites let you access your favorite pages instantly with lightning speed from any new tab. Desktop shortcuts allow you to launch your favorite Web apps straight from your desktop. Chrome has many useful features built in, including automatic full-page translation and access to thousands of apps, extensions, and themes from the Chrome Web Store. Google Chrome is one of the best solutions for Internet browsing giving you high level of security, speed and great features. Important to know! The offline installer links do not include the automatic update feature. Download web installer: Google Chrome Web 32-bit | Google Chrome 64-bit | Freeware Download: Google Chrome Offline Installer 64-bit | Direct Link | 131.0 MB Download: Google Chrome Offline Installer 32-bit | Direct Link | 119.0 MB Download page: Google Chrome Portable Download: Chrome ARM64 | Direct Link View: Chrome Website | Release Notes Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • 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
      463
    2. 2
      +Edouard
      161
    3. 3
      PsYcHoKiLLa
      112
    4. 4
      Michael Scrip
      85
    5. 5
      Steven P.
      70
  • Tell a friend

    Love Neowin? Tell a friend!