Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Trying to make a Pop Members

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
leatherlips Posted - 17 June 2008 : 14:07:04
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". <
15   L A T E S T    R E P L I E S    (Newest First)
MaD2ko0l Posted - 19 June 2008 : 12:10:27
eermm me personally, i dunno really.

because if its a non meber they are really going to know who the memebrs are, so they probly shoud lbe logged in anyway, but on the othr hand, the person not logged in maybe a memebr thats just looking for information at work or some other place like that.

but you coudl always make it consistant with the current memebrs.asp as only logged in memebrs can view that page.

whats the reason for only allowing memebrs to see the memebrs.asp page anyway? is there a security issue there somehow?

*edit* also, do u need memebrs to login to the site anyway before they can browse the forums? if you require logging in before gettign access to the site then it wont matter because the user will be logged in anyway<
leatherlips Posted - 19 June 2008 : 11:19:44
quote:
Originally posted by MaD2ko0l

ko0l...any more problems yet?

I don't think so. However, I have a question about if I should allow non members to be able to see the pop up members list on the search page. What do you think?

It looks like the default search.asp page lets you choose a member from a drop down list even if you're not a member. So maybe this isn't a problem?<
MaD2ko0l Posted - 19 June 2008 : 11:01:06
ko0l...any more problems yet?<
leatherlips Posted - 18 June 2008 : 21:13:59
quote:
Originally posted by MaD2ko0l

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

That was it! Thanks so much for all of your help! Now go get some rest! <
MaD2ko0l Posted - 18 June 2008 : 21:07:12
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<
leatherlips Posted - 18 June 2008 : 20:56:33
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.<
MaD2ko0l Posted - 18 June 2008 : 20:12:42
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
<
leatherlips Posted - 18 June 2008 : 19:35:20
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<
MaD2ko0l Posted - 18 June 2008 : 18:33:51
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<
leatherlips Posted - 18 June 2008 : 15:35:27
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.<
MaD2ko0l Posted - 18 June 2008 : 11:17:39
glad to help ;-) im sure if you run into more problems you will eb back ;-)<
leatherlips Posted - 18 June 2008 : 09:17:51
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!<
balexandre Posted - 18 June 2008 : 04:29:33
I just edited my message in order to add the link to the source code of Oxle forum <
MaD2ko0l Posted - 17 June 2008 : 21:23:19
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?<
MaD2ko0l Posted - 17 June 2008 : 21:06:02
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<

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.27 seconds. Powered By: Snitz Forums 2000 Version 3.4.07