• 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

    • hands down the worst version of Windows to date and sadly I think it's only downhill from here
    • I've never known a release to have so much pressure than this one. There is so much riding on the whole games industry because of everything that's changed in the past five years. That if this is a complete flop then I think the whole games industry is done unless something radically changes.
    • Windows 11 is now five years old by Taras Buria Windows 11 is now half a decade old. Five years ago, on June 24, 2021, Microsoft announced its latest operating system, designed to "bring you closer to what you love." Today, Windows 11 celebrates its fifth birthday. The launch of Windows 11 was interesting. Rumors about Microsoft introducing a Windows 10 successor popped up weeks before the public announcement, and a few days later, an entire preview build leaked online, allowing everyone to take a peek at what Microsoft was preparing. A few weeks later, Microsoft confirmed that Windows 11 was a thing and officially unveiled its next-gen operating system. Early versions of Windows 11 promised quite a lot. A redesigned, more modern user interface, a brand new Start menu and taskbar, improvements to virtual desktops and window snapping, Android app support, Teams integrated into the taskbar, Windows Widgets, a new version of the Microsoft Store, improved security, and more. Some of those features were welcomed, while others were received with heavy criticism. Besides missing taskbar and Start menu features, many disliked the steep hardware requirements, which kicked out PCs that were back then still perfectly fine. TPM and Secure Boot became mandatory, causing a spike in sales of dedicated TPM chips for motherboards. Double-layered context menus were disliked as well, and it is something that Microsoft still has to fix. Additionally, with time, some of Windows 11's exclusive features were simply killed. Microsoft removed the Teams integration and discontinued Android app support. During the early days of Windows 11, Microsoft was quite unwilling to address things that users criticized most. After four years on the market, management changes, and heated competition from the Mac camp, Microsoft finally decided to give in and take its operating system back to the drawing board to fix everything users had been complaining about for years. Microsoft is now redesigning the Start menu, adding missing taskbar features, improving Windows Update, fixing Windows 11's context menu, and more. Some believe all that warrants a new Windows 12 release, but for now, it appears that Windows 11 will stick around for a while. With Microsoft now listening to its core audience and acting upon received feedback, fans can finally expect a much better version of Windows 11 than what was available five years ago. Here is to five more years, Windows 11!
    • It’s a code which will be connected to your account. You can share the box but that would be sort of pointless.
  • Recent Achievements

    • Week One Done
      Wavespace earned a badge
      Week One Done
    • One Year In
      OHI Accounting earned a badge
      One Year In
    • First Post
      Almohandis earned a badge
      First Post
    • Rookie
      DaviKar went up a rank
      Rookie
    • Dedicated
      HidekoYamamoto94 earned a badge
      Dedicated
  • Popular Contributors

    1. 1
      +primortal
      463
    2. 2
      +Edouard
      176
    3. 3
      PsYcHoKiLLa
      122
    4. 4
      Michael Scrip
      82
    5. 5
      Xenon
      75
  • Tell a friend

    Love Neowin? Tell a friend!