Closed Thread Icon

Topic awaiting preservation: Shoutbox (This way I don't post new threads for each problem) Pages that link to <a href="https://ozoneasylum.com/backlink?for=24526" title="Pages that link to Topic awaiting preservation: Shoutbox (This way I don&amp;#039;t post new threads for each problem)" rel="nofollow" >Topic awaiting preservation: Shoutbox (This way I don&#039;t post new threads for each problem)\

 
Author Thread
Ensellitis
Bipolar (III) Inmate

From: New York, USA
Insane since: Feb 2002

posted posted 12-29-2004 10:09

Ok, now for my next question... I want to set it up so that if a user submits a URL, it posts an icon that links to thier web site next to the user icon, however if they don't post a url, the icon will not appear...

Here is a snippet of the area where all is defined...

code:
<?php
session_start(); // start the session to save users info
header("Cache-control: private"); // IE 6 sucks, so here is a fix

if (isset($_POST['name'])) {
$_SESSION['name'] = $_POST['name'];
}

$message = $_POST['message'];

$Option = $_POST['Option'];

$ip = $_SERVER['REMOTE_ADDR'];

$timezone = +2; //+2 is eastern

$time = date('F j, Y @ g:i.s a', time() + ($timezone*60*60));

echo htmlentities($message, ENT_QUOTES);

// Check to see if the user entered a name
if ($Option == "Save"){
if (!$name){
$name = "Unknown";
}else{
$name .= "";
}



And of course, how the input gets printed

code:
fwrite($df, "
<p class='user'><img src='user.gif' alt='User' /><span style='cursor: help;' title='Posted $time Eastern'> $name</span></p>
<p class='chat'>$message</p>\n");



With that, can anyone tell me how I can accomplish this? I have been searching through pages and pages of tutorials, and nothing yet...

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 12-29-2004 11:41

where is your problem? You just fwrite() the image + url when your url is not php->empty().

Ensellitis
Bipolar (III) Inmate

From: New York, USA
Insane since: Feb 2002

posted posted 01-24-2005 09:59

[Edit] Nevermind [/Edit]

(Edited by Ensellitis on 01-24-2005 10:13)

« BackwardsOnwards »

Show Forum Drop Down Menu