Author |
Topic  |
acoustika
Junior Member
 
Denmark
311 Posts |
Posted - 04 December 2003 : 18:54:36
|
Hey all
I've just noticed on my forum when you look in topics there ALWAYS is the Icon to a users Homepage, even though they haven't written a homepage in their profile, and the Icon links to "About:blank", I actually don't know if it's supposed to do this, But I think's it's annoying, It should only show for those who have actually put a homepage link in their profile. I have searched but, couldn't come up with a fix for this, I have checked my DB and the fields are as the should be. I run MySql with SNITZ 3.4.03, anyone know about this??? |
May The Code Be With You www.UniqueDk.dk *** The Open Forums of Denmark *** |
|
Nikkol
Forum Moderator
    
USA
6907 Posts |
|
acoustika
Junior Member
 
Denmark
311 Posts |
Posted - 04 December 2003 : 19:26:47
|
I have made lot of changes, alot of Mods and I have customized quiet a bit, I don't know when this went wrong, Haven't noticed it until now, I have upgraded from Access to MySql just recent, But wouldn't it be on Topics.asp you think??
My DB for the homepage field in members is as it should be, Varchar(255) allow null, default '' |
May The Code Be With You www.UniqueDk.dk *** The Open Forums of Denmark *** |
 |
|
Nikkol
Forum Moderator
    
USA
6907 Posts |
|
acoustika
Junior Member
 
Denmark
311 Posts |
Posted - 04 December 2003 : 19:35:02
|
I fixed it I had a space in the homepage url line, Isn't this correct that this was the fix you think???, although it didn't correct the posts already made by those members (had a space between the reds, removed here(fixed version here))
if Reply_MemberHomepage <> "" then Response.Write " <a href=""" & Reply_MemberHomepage & """ target=""_blank"">" & getCurrentIcon(strIconHomepage,"Besøg " & ChkString(Reply_MemberName,"display") & "'s Hjemmeside","align=""absmiddle"" hspace=""6""") & "</a>" & vbNewLine end if |
May The Code Be With You www.UniqueDk.dk *** The Open Forums of Denmark *** |
Edited by - acoustika on 04 December 2003 19:36:12 |
 |
|
Nikkol
Forum Moderator
    
USA
6907 Posts |
|
acoustika
Junior Member
 
Denmark
311 Posts |
Posted - 04 December 2003 : 19:50:40
|
well okay I have put that code in now :-), But still did not fix the former topics, Or that is one user Tester1 in new posts the HP link is updated but one topic started by this member wont update, but doesn't matter, it's only a testDB, am testing all I can in the next few days till I will open up the forum for the public :-) But I think it's working now. On Another testuser I can see the HP link is cjanging if I change back and forth in the profile (link --> not link --> link, and so) So I guess it's working now :-) I hope :-) But thanks and then thanks ;-)
???? What does the Trim command do?????
and if anyone would like to test a little bit try here.
www.uniquedk.dk/forum
user: tester10 pass: 00000000
everything will be deleted in a couple of days :-) |
May The Code Be With You www.UniqueDk.dk *** The Open Forums of Denmark *** |
Edited by - acoustika on 04 December 2003 19:53:34 |
 |
|
Nikkol
Forum Moderator
    
USA
6907 Posts |
Posted - 04 December 2003 : 20:04:32
|
you also need to do the same thing for the first post, not just the replies.
trim removes leading and trailing spaces if there are any. |
Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~ |
 |
|
acoustika
Junior Member
 
Denmark
311 Posts |
Posted - 04 December 2003 : 20:09:38
|
1000 Thanks to you Nikkol ;-)
and actually, wouldn't then the Trim command also have fixed it, without removing the space, 'Course why were the spaces there, Can't imagine it has been me putting it there in TWO places :-) (maybe it was there for some reason) But of course can't remember if I did a change there, have been working on my site and the forum in a very long time now ;-) and made alot of changes :-) |
May The Code Be With You www.UniqueDk.dk *** The Open Forums of Denmark *** |
Edited by - acoustika on 04 December 2003 20:13:08 |
 |
|
Nikkol
Forum Moderator
    
USA
6907 Posts |
Posted - 04 December 2003 : 20:13:14
|
yes, it is there for a reason. the original snitz code places just one space if you don't specify a homepage. in the modifications you made, you must have removed that.
and Trim wouldn't have fixed it without specifying "" (instead of " ") |
Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~ |
Edited by - Nikkol on 04 December 2003 20:14:08 |
 |
|
acoustika
Junior Member
 
Denmark
311 Posts |
Posted - 04 December 2003 : 20:19:00
|
Now the HP link is NOT showing up in the 1. post even though they have a HP link in their profile
But it is showing up in the 2. post and further
should it be if Trim(Reply_MemberHomepage) <> "" then OR if Trim(Reply_MemberHomepage) <> " " then |
May The Code Be With You www.UniqueDk.dk *** The Open Forums of Denmark *** |
Edited by - acoustika on 04 December 2003 20:21:07 |
 |
|
Nikkol
Forum Moderator
    
USA
6907 Posts |
|
acoustika
Junior Member
 
Denmark
311 Posts |
Posted - 04 December 2003 : 20:25:06
|
jep, that's the one I have, but now the link does not show in the first post, and the code for the two places in topic.asp are identical |
May The Code Be With You www.UniqueDk.dk *** The Open Forums of Denmark *** |
 |
|
Nikkol
Forum Moderator
    
USA
6907 Posts |
|
acoustika
Junior Member
 
Denmark
311 Posts |
Posted - 04 December 2003 : 20:44:54
|
well the replies are fixed THAT code looks like this
if strHomepage = "1" then <-- notice NO () here, weren't there before either if Trim(Reply_MemberHomepage) <> "" then
but how should the code for the first post look like, here's how it is now.
if (strHomepage = "1") then <--- here the () are if Member_Homepage <> " " then
|
May The Code Be With You www.UniqueDk.dk *** The Open Forums of Denmark *** |
 |
|
Nikkol
Forum Moderator
    
USA
6907 Posts |
|
Topic  |
|