PDA

View Full Version : Removing "web" link


biggest_apple
11-17-2004, 05:12 PM
As mentioned before I'm trying to remove the "web" link if the user doesn't offer a homepage URL or at least make the web link inactive in this instance. Can you tell me:
A) What specific file (it's name) needs to be altered.
B) What code I need to throw in and where.

Thanks as always!

biggest_apple
11-19-2004, 12:26 PM
bump

biggest_apple
11-20-2004, 11:59 PM
bump once more...... :?

Connie
11-21-2004, 08:28 AM
Which template are you using?

which release?

As far as I read the script. the "comment-URL" is checked whether it is empt y, contains only "http://" or "http://http://"

so for my small understanding the comment-URL should not show up if empty... :?:

biggest_apple
11-21-2004, 10:02 AM
It's a custom template that pixelpunk helped me with. The release is 1.0

I have no idea why the comment URL is showing up. As I mentioned it shows up even if no link is provided by the user.

resident-idler
11-21-2004, 05:36 PM
Consider upgrading to one of the newer versions.
I dont know about the previous ones, but Connie is right - on 1.2 index.php checks the value to be null or not.

pixelpunk
11-28-2004, 03:46 PM
Due to some special circumstances biggest_apple's install can not be upgraded.
I have done a series of direct edits in the main index.php script, in a usual install the name becomes a link if there is one (url).

What needs to be done is further editing of the main script.
Can you look up and post the relevant code perhaps?

Look for something like
$image_comments .= " $comment_message<br />$comment_name @ $comment_datetime";

Do a search for it. I guess that one is modified in your script but I do not recall how.

// punk

biggest_apple
11-28-2004, 05:08 PM
Could this be it:

$image_comments .= "<li><span class='commentname'>$comment_name</span> <a href='$comment_url' title='Visit Homepage'>web</a><br />
$comment_datetime<br /><br /><span class='message'>$comment_message</span></li>

pixelpunk
11-28-2004, 05:41 PM
Before $image_comments .= ... add:
if($comment_url != "") {*
$cwebsite = "<a href='$comment_url' title='Visit Homepage'>web</a><br />";
} else { $cwebsite = ""; }

Then, in the $image_comments thing change
<a href='$comment_url' title='Visit Homepage'>web</a><br />
to
$cwebsite

and you should be all set.

// punk

biggest_apple
11-28-2004, 06:42 PM
That worked a treat thanks! :D

Now I've got one more question... the pop-up comments section still isn't displaying a scroll bar. How do I fix this??

pixelpunk
11-29-2004, 07:11 AM
http://www.pixelpunk.se/software/forum/viewtopic.php?t=196

// punk

biggest_apple
11-29-2004, 09:39 AM
Thanks again!!