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: General / Classic ASP versions(v3.4.XX)
 Mobile/Wap version?
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 6

gpspassion
Junior Member

260 Posts

Posted - 18 June 2003 :  13:22:05  Show Profile  Visit gpspassion's Homepage
ok, took that out and it works! Almost...post_info.asp generates a nasty error...
http://www.gpspassion.com/forumsen/pda_qr.asp?TOPIC_ID=2050
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 18 June 2003 :  16:20:56  Show Profile  Send ruirib a Yahoo! Message
Looks like post_info.asp is not getting the value of the CAT_ID variable. That's your current problem.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

gpspassion
Junior Member

260 Posts

Posted - 18 June 2003 :  18:42:04  Show Profile  Visit gpspassion's Homepage
yes figured that out, probably because the printer_friendly.asp doesn't have it build in ;-)
I guess there are two options:
1. Feeding that info somehow
2. Creating a post_info_pda.asp that doesn't "need" that info
Any suggestion on what's easiest?
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 18 June 2003 :  18:56:42  Show Profile  Send ruirib a Yahoo! Message
You can make a simple query to the topics table, to get the category info, since you know the topic id. Just do it before it is needed in post_info.asp.
You cannot create a post_info that does not need that info, since the reply table currently needs that field to be filled in.


Snitz 3.4 Readme | Like the support? Support Snitz too

Edited by - ruirib on 18 June 2003 18:58:00
Go to Top of Page

wizard
Junior Member

208 Posts

Posted - 21 June 2003 :  01:00:51  Show Profile  Visit wizard's Homepage
Can I have the scripts for the mobile version? Can u mail me @ tan.khengyew@pacific.net.sg
Go to Top of Page

gpspassion
Junior Member

260 Posts

Posted - 22 June 2003 :  06:45:16  Show Profile  Visit gpspassion's Homepage
wizard - Sure, do you want what I was sent for v3.3 or the pda_qr.asp I created? The latter is here: http://www.gpspassion.com/upload/pda_qr.zip

ruirib - Sorry for being clueless :-( Any pointers on how I would go about doing a "simple query to the topics table before it is needed in post_info.asp" ? I guess that wouldn't be a problem for the normal version of the forums? Also is there a way I can put a check to see whether the post comes from pda.asp, in which case I would go back to pda.asp and not to the normal (bandwidth comsuming) version? TIA!

Edited by - gpspassion on 22 June 2003 06:50:52
Go to Top of Page

wizard
Junior Member

208 Posts

Posted - 23 June 2003 :  00:54:14  Show Profile  Visit wizard's Homepage
I'm using V3.4. Can I have the complete mobile 3.4 version?
Go to Top of Page

wizard
Junior Member

208 Posts

Posted - 23 June 2003 :  01:14:56  Show Profile  Visit wizard's Homepage
One more question. Can I just upload the scripts to a new folder, maybe called "mobile" and then change the config.asp for the mobile version to the exact same database. Will it work this way or will I need to employ the dreaded "2 forums, 1 db" method.
Go to Top of Page

gpspassion
Junior Member

260 Posts

Posted - 23 June 2003 :  07:07:57  Show Profile  Visit gpspassion's Homepage
wizard I can end you the .zip I received, but like I said it's based on v3.3 so it doesn't work properly with v3.4, check the current thread.

[b]At this point my plan would be to allow browsing with that version (3.3 based) and posting with my pda_qr.asp, BUT that would require getting posting to work and someone helping out with my previous questions:

"Sorry for being clueless :-( Any pointers on how I would go about doing a "simple query to the topics table before it is needed in post_info.asp" ? I guess that wouldn't be a problem for the normal version of the forums? Also is there a way I can put a check to see whether the post comes from pda.asp, in which case I would go back to pda.asp and not to the normal (bandwidth comsuming) version? TIA!"

Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 23 June 2003 :  18:40:34  Show Profile  Send ruirib a Yahoo! Message
gpspassion, I am a profound believer in learning by yourself. So I will just post the code to fix the CAT_ID problem and I suggest that you look at the solution GauravBhabu posted for the HTTP_REFERER problem (do a search on this term) and you will have a solution to the proper redirection problem.


strSql = "SELECT CAT_ID FROM " & strTablePrefix & "TOPICS WHERE TOPIC_ID=" & Request.Form("TOPIC_ID")

set rsQr = my_conn.execute (strSql)

If not rsQr.EOF Then
   CAT_ID = rsQr("CAT_ID"
End If

rsQr.Close
set rsQr = nothing


Thinking better I would suggest that you insert this code at the top of pda_qr.asp, before the definition of the QuickReply sub. Let me warn you that you have duplicate definitions for the QuickReply sub. Better erase one of them.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Pouyan
New Member

91 Posts

Posted - 23 June 2003 :  18:45:38  Show Profile
gpspassion,

It's interesting how I posted a Mobile Mod idea on Server Hacker's site today:
http://www.shnforum.com/forum/topic.asp?TOPIC_ID=2425

Then I come here and see your topic...very very interesting!

Can you zip up the version you're working on once you are done for everyone to use ?

and one more question... is it possible to have the mobile version and a regular forum running off of the same database ? how is it possible to have two different font/color configurations for the same forum ? I thought that information was tored in the database ?

Also, what do you guys think it would take to make the events calendar available on the mobile version as well ?

pretty amazing stuff...

Edited by - Pouyan on 23 June 2003 18:48:11
Go to Top of Page

gpspassion
Junior Member

260 Posts

Posted - 24 June 2003 :  10:39:26  Show Profile  Visit gpspassion's Homepage
Pouayan - I'll be happy to oblige, but let's get to the bottom of this posting problem first ;-)

ruirib - I agree a 100% about learning by yourself, the learning curve is a bit steep for someone who's never touched .asp before though ;-)

On the CAT_ID thing, I think there was a ")" missing in CAT_ID = rsQr("CAT_ID" so I fixed that ;-)
It's now complaining of a syntax error in line 50 ( set rsQr = my_conn.execute (strSql) ) and says an "operator" is missing in the expression " 'TOPIC_ID=' "...I'll try to figure it out, but if you see what the problem might be, let me know ;-)

Updated link - http://www.gpspassion.com/forumsen/pda_qr.asp?TOPIC_ID=2236
Updated code - http://www.gpspassion.com/forumsen/pda_qr.zip

PS - Thanks for pointing out that I had the sub twice, I'd fixed that in the meantime.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 24 June 2003 :  10:59:54  Show Profile  Send ruirib a Yahoo! Message
quote:
Originally posted by gpspassion


On the CAT_ID thing, I think there was a ")" missing in CAT_ID = rsQr("CAT_ID" so I fixed that ;-)
It's now complaining of a syntax error in line 50 ( set rsQr = my_conn.execute (strSql) ) and says an "operator" is missing in the expression " 'TOPIC_ID=' "...I'll try to figure it out, but if you see what the problem might be, let me know ;-)

Updated link - http://www.gpspassion.com/forumsen/pda_qr.asp?TOPIC_ID=2236
Updated code - http://www.gpspassion.com/forumsen/pda_qr.zip

PS - Thanks for pointing out that I had the sub twice, I'd fixed that in the meantime.


Sorry about the missing parenthesis, man. It's so obvious, I can't see how I did it.

I apologize as well about the other problem. I built this code for post_info.asp and only then I decided that you should use it in pdq_qr.asp, and that's where the code fails.
Change the code to this:


strSql = "SELECT CAT_ID FROM " & strTablePrefix & "TOPICS WHERE TOPIC_ID=" & CLng(Request.QueryString("TOPIC_ID"))

set rsQr = my_conn.execute (strSql)

If not rsQr.EOF Then
   CAT_ID = rsQr("CAT_ID")
End If

rsQr.Close
set rsQr = nothing


Try this and let me know how it goes.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

gpspassion
Junior Member

260 Posts

Posted - 25 June 2003 :  06:48:45  Show Profile  Visit gpspassion's Homepage
Gotta run, but yes it works, thanks so much!
It even redirects me to the pda_qr. I just need to get it to skip the "New Reply Posted" screen and maybe add a little login box and also lighten up the QR code and it's done,
thanks again!
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 25 June 2003 :  06:52:04  Show Profile  Send ruirib a Yahoo! Message
Ok, glad it's working.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page
Page: of 6 Previous Topic Topic Next Topic  
Previous Page | 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.44 seconds. Powered By: Snitz Forums 2000 Version 3.4.07