Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 HomePage link when NO Homepage
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

acoustika
Junior Member

Denmark
311 Posts

Posted - 04 December 2003 :  18:54:36  Show Profile  Visit acoustika's Homepage  Send acoustika an ICQ Message
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

Posted - 04 December 2003 :  19:15:28  Show Profile
have you made any changes to your forum? that doesn't happen here .. i have no homepage link.

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

acoustika
Junior Member

Denmark
311 Posts

Posted - 04 December 2003 :  19:26:47  Show Profile  Visit acoustika's Homepage  Send acoustika an ICQ Message
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 ***
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 04 December 2003 :  19:34:02  Show Profile
yes, it would be in topic.asp

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

acoustika
Junior Member

Denmark
311 Posts

Posted - 04 December 2003 :  19:35:02  Show Profile  Visit acoustika's Homepage  Send acoustika an ICQ Message
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
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 04 December 2003 :  19:40:44  Show Profile
i would make it this:

if Trim(Reply_MemberHomepage) <> "" then

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

acoustika
Junior Member

Denmark
311 Posts

Posted - 04 December 2003 :  19:50:40  Show Profile  Visit acoustika's Homepage  Send acoustika an ICQ Message
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
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 04 December 2003 :  20:04:32  Show Profile
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 ~
Go to Top of Page

acoustika
Junior Member

Denmark
311 Posts

Posted - 04 December 2003 :  20:09:38  Show Profile  Visit acoustika's Homepage  Send acoustika an ICQ Message
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
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 04 December 2003 :  20:13:14  Show Profile
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
Go to Top of Page

acoustika
Junior Member

Denmark
311 Posts

Posted - 04 December 2003 :  20:19:00  Show Profile  Visit acoustika's Homepage  Send acoustika an ICQ Message
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
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 04 December 2003 :  20:22:02  Show Profile
the first one

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

acoustika
Junior Member

Denmark
311 Posts

Posted - 04 December 2003 :  20:25:06  Show Profile  Visit acoustika's Homepage  Send acoustika an ICQ Message
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 ***
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 04 December 2003 :  20:30:57  Show Profile
but it shouldn't be called Reply_MemberHomepage for the first topic, it's another variable

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

acoustika
Junior Member

Denmark
311 Posts

Posted - 04 December 2003 :  20:44:54  Show Profile  Visit acoustika's Homepage  Send acoustika an ICQ Message
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 ***
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 04 December 2003 :  20:47:05  Show Profile
if (strHomepage = "1") then
if Trim(Member_Homepage) <> "" then

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.4 seconds. Powered By: Snitz Forums 2000 Version 3.4.07