Author |
Topic |
|
Zenfor
Junior Member
372 Posts |
Posted - 01 November 2015 : 06:46:02
|
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
|
Post your code here. I don't "tweet", but I could fix the link issue. |
|
|
Zenfor
Junior Member
372 Posts |
Posted - 01 November 2015 : 13:33:22
|
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 |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 02 November 2015 : 00:49:37
|
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. |
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
Posted - 02 November 2015 : 04:32:53
|
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 |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 02 November 2015 : 13:30:19
|
Rui, would the "tweet" have the ability to display the drop-down menu? |
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
Posted - 02 November 2015 : 19:05:24
|
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 |
|
|
Zenfor
Junior Member
372 Posts |
Posted - 02 November 2015 : 21:22:06
|
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! |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 03 November 2015 : 00:30:07
|
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
|
|
|
Zenfor
Junior Member
372 Posts |
Posted - 04 November 2015 : 17:26:23
|
It looks like it's working...
Nice job!
Thank you! |
|
|
|
Topic |
|