UBB.Dev
Posted By: willing Page Views - 05/19/2007 12:20 PM
Strange question perhaps, but is there any way to change the number of "views" for a thread.

For example if it is currently showing "243", can we say, for example, change it to be "4354" or "23" if we wanted to (ie, make the number bigger or smaller? And then once we have changed that number, any further views will be added as normal?

Thanks
Posted By: Gizmo Re: Page Views - 05/19/2007 1:33 PM
For anyone's information that's looking for something similar; this is being worked on at UBBCentral
Posted By: AllenAyres Re: Page Views - 05/21/2007 4:40 PM
Not quite as user-friendly, but it can be done via a mysql command too:

UPDATE ubbt_TOPICS SET TOPIC_VIEWS = 'n' WHERE TOPIC_ID = 'n'

Change 'n' to the number you need.
Posted By: Gizmo Re: Page Views - 05/22/2007 1:59 AM
:points at post 184493:

You have to update it on the post id, unless you want to dbdive and discover the topicid...
Posted By: Ian Spence Re: Page Views - 05/22/2007 2:03 AM
TOPIC_ID is the same as the "Main" argument in the url
Posted By: Gizmo Re: Page Views - 05/22/2007 2:43 AM
Yeh, I guess so; but it's easier to send them after the first post's id than to explain how to fetch things from the url wink
Posted By: AllenAyres Re: Page Views - 05/22/2007 3:47 AM
Easier how? I'd think you'd be at the topic id if you have a particular topic you're trying to change the view count on - a hover isn't that difficult if you already know how to do mysql commands wink
Posted By: Ian Spence Re: Page Views - 05/22/2007 5:25 AM
someone get Allen's avatar a lollipop!
Posted By: Gizmo Re: Page Views - 05/22/2007 6:07 AM
allens avitar needs a boop on the nose...
© UBB.Developers