Author |
Topic  |
|
golfmann
Junior Member
 
United States
450 Posts |
Posted - 01 August 2013 : 16:32:38
|
I have attempted to have a visible review of prior pm's both sent and reveived upon viewing as is somewhat done when replying.
Here is an example showing what I mean:
Note I show pm numbers to help when they get out of sync. 
My problem is threefold: I'd LIKE to thread them so they DON'T get out of sync and I don't have to worry about filtering so the wrong person doesn't get to read another's private pm by mistake, AND... not generate errors on the original pm with no replies yet.
example of error showing up:
Due to the subject filter used, the REPLY from the original doesn't show either, because of the RE: (is what I'm guessing)
example:
Here is the code on privateread:
If then from HELL is in red 
I'm obviously showing my ignorance and am equally not a programmer. I know just enough to get me into trouble but I AM creative... 
Any of you REAL programmers that might have a couple of minutes and any ideas..... PLEASE let me know  |
Edited by - golfmann on 05 August 2013 14:17:58 |
|
golfmann
Junior Member
 
United States
450 Posts |
Posted - 01 August 2013 : 16:35:09
|
I've tried 1,000 things :( |
 |
|
Carefree
Advanced Member
    
Philippines
4217 Posts |
Posted - 01 August 2013 : 22:48:54
|
if ("P.M_ID") <> cLng(Request.QueryString("PM.M_ID")-1) AND strPMSubject <> (rs("M_SUBJECT")) then
The problem with the above line is that your selection criterion precluded it from ever occurring, thus rs("M_SUBJECT") will never exist and your line will throw an error.
Try this, I cleaned it up a bit.
|
Edited by - Carefree on 01 August 2013 22:57:29 |
 |
|
golfmann
Junior Member
 
United States
450 Posts |
Posted - 01 August 2013 : 23:07:51
|
I see now what you did....
THANK YOU SO VERY MUCH!!!!
I putzed around with this for weeks.... lol I am such a dummy....
Thank you and bless you for all your help here...  |
 |
|
golfmann
Junior Member
 
United States
450 Posts |
Posted - 01 August 2013 : 23:22:43
|
But... I'm now getting this: 
Microsoft OLE DB Provider for SQL Server error '80040e14'
The column prefix 'PM' does not match with a table name or alias name used in the query.
/forum/privateread.asp, line 178 |
Edited by - golfmann on 01 August 2013 23:23:08 |
 |
|
golfmann
Junior Member
 
United States
450 Posts |
Posted - 02 August 2013 : 21:20:43
|
Well I got it to work by changing the PM.M_SUBJECT to M_SUBJECT and fixed the REPLIED FROM: to show right w/nbsp's...
Not sure it will filter like I need but so far so good and at least it SHOWS. AND you taught me a few things in the process! THANK YOU AGAIN and if you see trouble please let me know :)
|
Edited by - golfmann on 02 August 2013 21:29:44 |
 |
|
golfmann
Junior Member
 
United States
450 Posts |
Posted - 04 August 2013 : 19:25:17
|
For those playing along at home, first my sympathies, and here is how I solved the dilemma of how to properly show the to and from's IF a member sends twice in a row without a return reply:
While maybe not according to "Hoyle" it works and you're on your OWN for privatesent.asp...  That is all... |
Edited by - golfmann on 06 August 2013 20:40:17 |
 |
|
golfmann
Junior Member
 
United States
450 Posts |
Posted - 04 August 2013 : 19:28:02
|
PS: This place REALLY needs the picture shrinker in the base code  |
 |
|
AnonJr
Moderator
    
United States
5768 Posts |
Posted - 05 August 2013 : 09:58:52
|
The problem isn't so much the images as it is the code block. This forum does have the non-standard [scrollcode] tag implemented so you can post large code blocks like that and not stretch the page. |
 |
|
golfmann
Junior Member
 
United States
450 Posts |
Posted - 05 August 2013 : 14:19:33
|
I beg to differ...  |
 |
|
AnonJr
Moderator
    
United States
5768 Posts |
Posted - 05 August 2013 : 16:57:53
|
 |
 |
|
golfmann
Junior Member
 
United States
450 Posts |
Posted - 05 August 2013 : 18:27:31
|
inc_header:
JS:
I believe I got this from Marcel about 500 years ago...  |
 |
|
AnonJr
Moderator
    
United States
5768 Posts |
Posted - 06 August 2013 : 09:42:05
|
I've seen that one and a couple others floating around. I know we try to keep it as close to stock as possible here (the [noparse] and [scrollcode] tags being the two exceptions given their utility in posting code problems) so there's no misunderstanding what you're getting when you download the code.
Having said that, this would be something worth considering. I'd rather tie it more closely to the [img] tag myself so I don't have to worry about the re-size code interfering with actual site code (or crawling every image in the site...) - but that's a subject for another topic.  |
Edited by - AnonJr on 06 August 2013 09:42:29 |
 |
|
golfmann
Junior Member
 
United States
450 Posts |
Posted - 06 August 2013 : 10:41:18
|
I think you are right but I have had no problems in years wih it.
Thanks for being here!  |
 |
|
|
Topic  |
|
|
|