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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Trying to make a Pop Members
 New Topic  Reply to Topic
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

leatherlips
Senior Member

USA
1838 Posts

Posted - 17 June 2008 :  14:07:04  Show Profile  Visit leatherlips's Homepage  Reply with Quote
I'm trying to make a pop up members page. I'm having trouble however.

I currently need to know how to get rid of all of the columns except for the Member Name column. I still want the search function at the top. But for the pop up I don't need anything else such as the profile icon, the date joined etc...

I've noticed on the Oxle forum that it has sort of what I am looking for. However, I can't seem to figure it out. My table goes "wacky". <

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD

Edited by - leatherlips on 17 June 2008 14:16:53

balexandre
Junior Member

Denmark
418 Posts

Posted - 17 June 2008 :  16:30:06  Show Profile  Visit balexandre's Homepage  Send balexandre an ICQ Message  Reply with Quote
wanna share your code in a TXT file so we can see what do you need...

generaly, for the member profile all you need to include is the inc_profile.asp file and where you need to show it, just call the function "DisplayProfileForm"

<!--#include file="inc_profile.asp"-->
<% Call DisplayProfileForm %>


now, that's only to show the member details (if you need less that that, copy that inc_profile.asp page to a new file, remove what you do not need and... include that new file)
<

Bruno Alexandre
(Strøby, DANMARK)

"a Portuguese in Danmark"


Go to Top of Page

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 17 June 2008 :  16:37:13  Show Profile  Visit MaD2ko0l's Homepage  Reply with Quote
when you say pop memebrs page, do u mean a memebrs profile..eg pop_profile.asp or do u mean a popup memebrs.asp file?<

© 1999-2010 MaD2ko0l
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 17 June 2008 :  17:00:26  Show Profile  Visit leatherlips's Homepage  Reply with Quote
Here's a text file.

Here is a screenshot of Oxle's. This is pretty much what I want. I still want to keep the search part at the top of the page. (His does not show in the screenshot but is at the bottom of his page. I also hid his members names just for their privacy since it is from a different forum.) I also do not need to have the PM icon next to the name like he does.



Thanks for looking.

<

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD

Edited by - leatherlips on 17 June 2008 17:24:17
Go to Top of Page

balexandre
Junior Member

Denmark
418 Posts

Posted - 17 June 2008 :  17:29:29  Show Profile  Visit balexandre's Homepage  Send balexandre an ICQ Message  Reply with Quote
Why dont you download Oxle code?

He is a great guy and he has all the files for download

P.S. I asked to change the image in order to hide the names .... but you already did it (great minds think alike) eheh <

Bruno Alexandre
(Strøby, DANMARK)

"a Portuguese in Danmark"



Edited by - balexandre on 18 June 2008 04:28:50
Go to Top of Page

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 17 June 2008 :  21:06:02  Show Profile  Visit MaD2ko0l's Homepage  Reply with Quote
well all that that file is, its part of the pm mod.

so you coudl either just use the pm popup page or modify the page to suit your needs.

that wudl be anopther easier way<

© 1999-2010 MaD2ko0l
Go to Top of Page

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 17 June 2008 :  21:23:19  Show Profile  Visit MaD2ko0l's Homepage  Reply with Quote
pop_members

that is a rough copy of the pm mod version of that file...it still needs some tweaking and the code coudl probly do wityh an upgrade, but i have made it work with the current version of snitz and removed the pm icon/link

to call the page i used this

	<script language="JavaScript">
<!-- hide from JavaScript-challenged browsers
function pmmembers() { var MainWindow = window.open ("pop_members.asp", "","toolbar=no,location=no,menubar=no,scrollbars=yes,width=250,height=500,top=100,left=100,resizeable=yes,status=no");
}
// done hiding -->
</script>
<a href="JavaScript:pmmembers();">Memberlist</a>


i can try and clean up the file a bit more tomorrow if u want me to?<

© 1999-2010 MaD2ko0l
Go to Top of Page

balexandre
Junior Member

Denmark
418 Posts

Posted - 18 June 2008 :  04:29:33  Show Profile  Visit balexandre's Homepage  Send balexandre an ICQ Message  Reply with Quote
I just edited my message in order to add the link to the source code of Oxle forum <

Bruno Alexandre
(Strøby, DANMARK)

"a Portuguese in Danmark"


Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 18 June 2008 :  09:17:51  Show Profile  Visit leatherlips's Homepage  Reply with Quote
Thanks guys. I emailed MarcelG and he showed me his source file page, the same one balexandre linked to. I've got some more ideas for the page I'm going to try to implement. Having that page already done helps a lot!<

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 18 June 2008 :  11:17:39  Show Profile  Visit MaD2ko0l's Homepage  Reply with Quote
glad to help ;-) im sure if you run into more problems you will eb back ;-)<

© 1999-2010 MaD2ko0l
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 18 June 2008 :  15:35:27  Show Profile  Visit leatherlips's Homepage  Reply with Quote
I'm back.

I'm trying to do what I see on this page here:

http://www.webreference.com/js/tutorial1/opener.html

It is also the way the pop up smilies window behaves on the forum if you choose not to show the smilie table.

I want that when you click the members name in the pop up it automatically places it in the send to field of the Private Messages send page.

The way the one I have now kind of does that. Instead though, it seems to actually open a new page with the name in it.

Any ideas on how to make that work?

Here is what I currently have.<

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 18 June 2008 :  18:33:51  Show Profile  Visit MaD2ko0l's Homepage  Reply with Quote
ok...1st off, re use my file, its been updated... ---->Click Me<----

next you will need to modify privatesend.asp

find lines 185-190 which shoud look like this

	<script language="JavaScript">
<!-- hide from JavaScript-challenged browsers
function pmmembers() { var MainWindow = window.open ("pm_pop_members.asp", "","toolbar=no,location=no,menubar=no,scrollbars=yes,width=250,height=500,top=100,left=100,resizeable=yes,status=no");
}
// done hiding -->
</script>


and replace it with the following

	<script language="JavaScript">
<!-- hide from JavaScript-challenged browsers
function MembersPop() { var MainWindow = window.open ("pop_members.asp", "pmSendTo","toolbar=no,location=no,menubar=no,scrollbars=yes,width=250,height=500,top=100,left=100,resizeable=yes,status=no");
}
// done hiding -->
</script>


a few lines down (lines 195)

you have this

			"          <td bgColor=""" & strPopUpTableColor & """><input maxLength=""50"" name=""sendto"" value=""" & Request.Querystring("mname") & """ size=""50""> <font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><a href=""members.asp"">Memberlist</a> "


replace it with this

			"          <td bgColor=""" & strPopUpTableColor & """><input maxLength=""50"" name=""sendto"" value=""" & Request.Querystring("mname") & """ size=""50""> <font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><a href=""JavaScript:MembersPop();"">Memberlist</a> "


and thats it.

this will now allow you to keep on adding names to the list, it will add the name of the use you are pming with a commer at the end which allows for the message to be sent to multiple people<

© 1999-2010 MaD2ko0l

Edited by - MaD2ko0l on 18 June 2008 18:35:06
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 18 June 2008 :  19:35:20  Show Profile  Visit leatherlips's Homepage  Reply with Quote
Thanks MaD2koOl! It's getting closer!

I like how you made the comma so if you wanted to enter more than one name. However, the comma throws out an error even though it still sends the message. Is there a way to have the comma only appear where needed and not at the end of any username?

Example, if I only send it to demo it should have:

demo

Not demo,

And if adding more than one name it should say:

demo,demo2

Not demo,demo2,

I asked a similar question a few years ago about the comma issue with the chat mod. Shaggy gave an answer. It worked for the chat but I don't know how to implement it for this pop members page.

Here is the link about the chat comma:

http://forum.snitz.com/forum/topic.asp?TOPIC_ID=61160&whichpage=2<

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD

Edited by - leatherlips on 18 June 2008 19:39:36
Go to Top of Page

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 18 June 2008 :  20:12:42  Show Profile  Visit MaD2ko0l's Homepage  Reply with Quote
it throws u an error because after a commer is given it looks for a username, and after the last commer there isnt a username specifyed so it gives u an error saying that it cannot find a member name that is blank.

so what i did is this

in privatesend_info.asp find this line 157

				strErrMessage = strErrMessage & "<font face=""" & strDefaultFontFace & """ color=""" & StrHiLiteFontColor & """ size=""" & strDefaultFontSize & """>Sorry, there is no one registered with that MemberName: " & arrNames(i)& "</font>"


and make it look like this(added parts in red)

			  if not arrNames(i) = "" then
strErrMessage = strErrMessage & "<font face=""" & strDefaultFontFace & """ color=""" & StrHiLiteFontColor & """ size=""" & strDefaultFontSize & """>Sorry, there is no one registered with that MemberName: " & arrNames(i)& "</font>"
end if
<

© 1999-2010 MaD2ko0l

Edited by - MaD2ko0l on 18 June 2008 20:13:25
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 18 June 2008 :  20:56:33  Show Profile  Visit leatherlips's Homepage  Reply with Quote
I'll try that MaD2ko0l.

Now I'd like to get this to work with my searchforum.asp page. I've made a new pop_search_members.asp page and tried to modify it to put the member name in the search author field but it won't work.

I tried changing the part that I thought would do that to this:

Response.Write "      <script language=""Javascript"" type=""text/javascript"">" & vbNewLine & _
      "      <!-- hide" & vbNewLine & _
         "      function pick(member) {" & vbNewLine & _
      "           if (window.opener.document.SearchForm.Message.createTextRange && window.opener.document.SearchForm.SearchMember.caretPos) {" & vbNewLine & _
      "           var caretPos = window.opener.document.SearchForm.SearchMember.caretPos;" & vbNewLine & _
      "                 caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? member + ' ' : member;" & vbNewLine & _
      "                 window.opener.document.SearchForm.SearchMember.focus();" & vbNewLine & _
      "        } else {" & vbNewLine & _
      "              window.opener.document.SearchForm.SearchMember.value+=member;" & vbNewLine & _
      "                       window.opener.document.SearchForm.SearchMember.focus();" & vbNewLine & _
      "           }" & vbNewLine & _
      "                   window.close();" & vbNewLine & _
      "      }" & vbNewLine & _
      "      // -->" & vbNewLine & _
      "      </script>" & vbNewLine

Perhaps I didn't label the right parts of the search form correctly?

I'm testing this on my test forum here so you can see it.<

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 18 June 2008 :  21:07:12  Show Profile  Visit MaD2ko0l's Homepage  Reply with Quote
that looks about right...i will have a look tomorrow...2:11 am here and i am knackered

when i have woken up i will have a little looky for u and se if i can get it to work on my normal search.asp file.

however i have noteiced on 1 line you have this

if (window.opener.document.SearchForm.Message.createTextRange

that shhould be

if (window.opener.document.SearchForm.SearchMember.createTextRange

try that and see what happends<

© 1999-2010 MaD2ko0l
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.82 seconds. Powered By: Snitz Forums 2000 Version 3.4.07