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)
 Link to various active topics?
 New Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Zenfor
Junior Member

372 Posts

Posted - 01 November 2015 :  06:46:02  Show Profile  Reply with Quote
I wanted to tweet a forum link to forum active topics since "Last Week". However, I noticed the URL is the same for any active topic search, it doesn't include the dropdown selection.

Any suggestions? Thank you.

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 01 November 2015 :  10:56:10  Show Profile
Post your code here. I don't "tweet", but I could fix the link issue.
Go to Top of Page

Zenfor
Junior Member

372 Posts

Posted - 01 November 2015 :  13:33:22  Show Profile
quote:
Originally posted by Carefree

Post your code here. I don't "tweet", but I could fix the link issue.


It's not code, I need a link that I can share that will display all topics in the last week. When I get the result, this is the URL it displays no matter what is in the Active Topics Since dropdown:

http://eastonmass.com/forum/active.asp
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 02 November 2015 :  00:49:37  Show Profile
OK. Now I see what you want. It isn't possible to display all the topics with a single link. You will have to post each of them or be satisfied with the current link. Drop-down lists need coding - and Twitter won't have access to read your database by itself.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 02 November 2015 :  04:32:53  Show Profile  Send ruirib a Yahoo! Message
A possibility would be to effect a small change into active.asp to allow it to receive the number of days from the query string and act from there. Actually it would be rather simple: get the value from the query string, save it to a cookie and let active.asp do its thing from the cookie value.

This would mean passing active.asp one the valid values for the cookie (LastVisit, LastFifteen, etc...).


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

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 02 November 2015 :  13:30:19  Show Profile
Rui, would the "tweet" have the ability to display the drop-down menu?
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 02 November 2015 :  19:05:24  Show Profile  Send ruirib a Yahoo! Message
quote:
Originally posted by Carefree

Rui, would the "tweet" have the ability to display the drop-down menu?



No, a tweet is just a 140 character text message that may include links. Links in tweets are not counted for the 140 character limit in full length, they add a fixed, limited amount of characters to the limit, regardless of the actual length.
However, links will include everything valid in a link, including query string parameters.

I guess a difficulty here would be obtaining the link directly. A button could be added to open the link in a page, the link being dependent on the value chosen in the dropdown. In any case, the first step would be to, at the very beginning of active.asp, read the query string and check if one the values normally stored in the dropdown related cookie, is present in the query string. If it is, just save it to the cookie and then let active.asp handle it from then on.

A direct link to the last week's topics could simply be written as http://(...)/active.asp?activesince=LastWeek


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

Zenfor
Junior Member

372 Posts

Posted - 02 November 2015 :  21:22:06  Show Profile
quote:
Originally posted by ruirib
...text message that may include links...

...A direct link to the last week's topics could simply be written as http://(...)/active.asp?activesince=LastWeek


This is what I was looking for. Twitter is just an example of how I would use it but the goal is to have a URL link that captures the active topics dropdown choice.

Is coding needed? Thanks!
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 03 November 2015 :  00:30:07  Show Profile
Programming it to recognize a request value is easy, you'll just have to decide which value to use when you post a link.

Just above the "Dim ModerateAllowed" line (appx 64), add this:

If Request("activesince")>"" Then ActiveSince = Request("activesince")


Your link would be: active.asp?activesince=value from list below

LastVisit
LastFifteen
LastThirty
LastFortyFive
LastHour
Last2Hours
Last6Hours
Last12Hours
LastDay
Last2Days
LastWeek
Last2Weeks
LastMonth
Last2Months
Go to Top of Page

Zenfor
Junior Member

372 Posts

Posted - 04 November 2015 :  17:26:23  Show Profile
It looks like it's working...

Nice job!

Thank you!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.48 seconds. Powered By: Snitz Forums 2000 Version 3.4.07