vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Thread Torrent (https://vborg.vbsupport.ru/showthread.php?t=53808)

Kriek 06-03-2003 10:00 PM

Thread Torrent
 
Description

After discussion with the Serence development team and several members of this community including cloudrunner would wrote KlipFolio Integration, I have decided to release Thread Torrent for Serence KlipFolio and vBulletin, moreover This hack was essentially requested by Koutaru here to provide a way to display newest threads. KlipFolio is a desktop application that allows you to easily view and manage live, automated and customizable channels to unique information sources called Klips. A Klip is a live, automated and customizable channel to a unique information source that runs in KlipFolio. For more information you can reference the KlipScript Guide for documentation (Also see Klip Tags). The basics are essentially self explanatory; let me know if you have any more questions concerning this topic.

http://www.graphic-forums.com/klip.gif

Installation Information
Code:

Files to edit: (2) vbTT.php, vbTT.klip
Files to upload: (2) vbTT.php, vbTT.klip
Queries to Run: (0) nada
Templates to edit: (1) nada
Templates to add: (0) nada
Time to install: approx 3 minutes


Velocd 06-04-2003 12:29 AM

Well the 10 people (thus far) who have downloaded this must understand what it is, but I guess I'm a little slow today.

How does this differ from the recent hack by cloudrunner?

Koutaru 06-04-2003 01:19 AM

Cloudrunners is new posts in a specific form (specifically for your news or announcements forum) whereas this hack is for new threads in general (am i right?) :p

[high]* Koutaru clicks install[/high]

Cloudrunner 06-04-2003 02:14 AM

That about sums it up. His takes your most recent threads from the entire forum and feeds it to your klipfarm. It includes thread starter username, how many replies, and when the last reply was (from a quick glance look see at the code, I didn't delve too deep.).

I'm assuming that since the output is in RDF format, one could easily integrate this as a backend syndication system as well, but that's all for another day ;)

Kriek 06-04-2003 02:46 AM

Affirmative. Every forum, every thread.

Even private forums if you are logged in with proper permissions ;)

Reverend 06-04-2003 02:48 AM

A couple of things to bare in mind when using any kind of forum backend feeds including this one.

You'll need to add a custom description to the online.php if you want to avoid getting an "unknown Location" when someone clicks a thread link via the klip.
And also,if a member stays logged into the forums,i.e their session hasn't expired,and then clicks a link via the klip,they will appear twice on the WOL,(as their username,and further down the list as a guest).You can check this by logging into your forums,and then open klipfolio and click one of the thread links.Look at the IP's column and you'll be listed with the same IP as "username" and "guest".Which means your forums currently active users count will be wrong.

Just thought i'd make users aware of that. ;)

Kriek 06-04-2003 03:10 AM

I'm afraid I have yet to personally experience the first problem you mentioned, nor have any of my members or clients in over a one year time span, so I'm afraid I'll have to take your word for it. I've been working closely with the Serence development team so I'll mention it to them in the coming weeks. The second problem or nuisance rather you spoke of is actually quite simple to exclude from Who's Online which typically displays as: Guest Unknown Location: /vbTT.php -- so a simple comparison operator will do ;)

Method no.1

Open online.php and find
PHP Code:

". iif(!$WOLguests, " AND session.userid user.userid", "") ."
ORDER BY user.username"); 

Then replace with the following
PHP Code:

". iif(!$WOLguests, " AND session.userid user.userid", "") ."
AND session.location NOT LIKE '%/vbTT.php%' ORDER BY user.username"); 


Reverend 06-04-2003 03:29 AM

Hey i didn't say it was a problem,i was merely pointing out some of my observations when using forum klips in the past and thought i'd make other members aware of them.

It's a nice hack Kriek,let us know how you get on with your further discussions with the Serence Devs. ;)

Kriek 06-04-2003 01:58 PM

Reverend, Sure thing, but most of the development is obviously surrounding Klipfolio itself and its features concerning Klips, but I have to admit that with each modification there seems to be another open window available for vBulletin as well as other software.

Mutt 06-04-2003 09:59 PM

thanks, it's very cool. My members will love it. I'm racking my brain tring to think about how else I can use this. Only thing I've come up with would be pms and then setting klip to alert when ever there a new item.

Neo 06-05-2003 03:49 AM

Very Nice.

snyx 06-05-2003 06:24 PM

any chance of picking up some screens from your desktop?
I wanna see how you have customized your klips with your

snyx 06-05-2003 06:24 PM

any chance of picking up some screens from your desktop?
I wanna see how you have customized your klips with your site.
yes I do have klips installed, but not for my forums

iggy123 06-05-2003 08:48 PM

the setting "$showthreadnumber" is that the number of threads to show or the actual thread number - ie like this http:\\http://www.vbulletin.org/forum/showt...threadid=53808

Kriek 06-05-2003 09:14 PM

The integer of threads you desire to display from your forum via Klipfolio at any given time, however due to the Klipfolio refresh rate your Klip should pull and display that same number of threads each time. Meaning the first load will pull and display ten threads, although after the Klip refreshes it will endeavor to pull another ten threads, granted that there in fact ten active threads that have been posted to.

Kevorkian 06-07-2003 07:59 AM

for me don't work... :(

Kriek 06-07-2003 10:21 AM

Kevorkian, in order to try and determine your problem and its solution. The more information I have about your vBulletin version, error output, and the exact specific nature of the problem you're having, the more likely I will be able to help you.

Kevorkian 06-07-2003 02:51 PM

ok i have tried on blank board correctly configured with vbulletin 2.3.0 i have made two test with thread torret and one with klipfolio integration, the first don't work but the second yes, the php output of the file was ok but when i try to see in action klip torrent on klip folio don't work and i receive generic block with anything and without any data

Kriek 06-07-2003 04:12 PM

Kevorkian, PM or email me the contents of your .klip file please.

Kevorkian 06-07-2003 05:00 PM

ok sent ;)

iggy123 06-08-2003 03:06 PM

works fine for me - thnx

http://www.klipfarm.com/farm.php?page=info&klip=1400
thnx

Kevorkian 06-08-2003 04:49 PM

only for me don't work ;___________;

SZ|TalonKarrde 06-08-2003 06:13 PM

Heh, when I saw this I thought it had something to do with Bit Torrent. Oh well, useful hack, regardless.

Kevorkian 06-08-2003 07:35 PM

it's possible that the problem caused by iss 5 configuration?

Kriek 06-08-2003 10:37 PM

Kevorkian, anything is possible, but I am confident this problem has nothing to do with vBulletin or Thread Torrent. Perhaps someone here will be able to help you more than I can :ermm:

alesis404 06-10-2003 10:35 AM

I have edited online.php code with the suggested code but I still see a guest?, any idea what might cause this.

Great hack BTW :)

Kriek 06-10-2003 12:22 PM

Thank you Alesis, I appreciate your positive annotations. If you renamed vbTT.php subsequently you will need to amend that in the NOT LIKE comparison operator string. Is is displaying Guest Unknown Location in online.php?

alesis404 06-10-2003 06:46 PM

Kriek, I have not renamed vbTT.php or the klip file, they are using the default names as they came in the rar file, I just changed the config file to suit my installation.

I then edited the code as you mentioned in the online.php file and uploaded but i still see a "Guest" logged in even though I am only one on my forum..my forum is in testing so I *know* there is no guests and I am only person logged in.

Once again the "NOT LIKE comparison operator string" is the same as you posted because I did *not* change the name of the klip file or the vbTT.php file...they are default

None the less it is working perfectly other than that and could be very handy to many for use on thier forums

**I have included small .jpg capture showing what I mean by it displaying a "Guest" even though I am only one on the forum, this is happening after editing the online.php file with the operator string and all file names are default

Kriek 06-10-2003 10:16 PM

Alesis, you attempted the first method, please try these.
(Also consider trying without the forward slash)

Method no.2
PHP Code:

". iif(!$WOLguests, " AND session.userid user.userid", "") ." 
AND session.location NOT REGEXP '/vbTT.php' ORDER BY user.username"); 

Method no.3
PHP Code:

". iif(!$WOLguests, " AND session.userid user.userid", "") ." 
AND session.location NOT RLIKE '%/vbTT.php%' ORDER BY user.username"); 

Method no.4
PHP Code:

". iif(!$WOLguests, " AND session.userid user.userid", "") ." 
AND session.location != '%/vbTT.php%' ORDER BY user.username"); 


alesis404 06-10-2003 10:56 PM

Kriek, just so you are aware I have tested all 3 of these also just now and also tested each one without the "forward slash" and each time I logged out and logged back in and still see a *guest*

**Note however I did these all one after another editing the code in online.php and then logging out and logging back in, *possibly* the guest was still showing because of a session ID? I cannot confirm this unless I do the edit and wait in between each one unless of course when I logout each time it logs both myself and the guest* out...I'm not positive how that works.

The reason i mention this is because of an earleir comment on the first page of this thread

Quote:

And also,if a member stays logged into the forums,i.e their session hasn't expired,and then clicks a link via the klip,they will appear twice on the WOL,(as their username,and further down the list as a guest).You can check this by logging into your forums,and then open klipfolio and click one of the thread links.Look at the IP's column and you'll be listed with the same IP as "username" and "guest".Which means your forums currently active users count will be wrong.
**If worse comes to worse and there is and extra guest that is fine...at least I know what it is but have tried all 4 methods and each does not seem to work

alesis404 06-13-2003 05:27 PM

Kriek I am wondering if this is at all possible...our forum is private and used by few close freinds and we love this hack as it provides excellent way to share news *but* we have few concerns about the security and possibilty others might find our klip and view the headlines and see the related links.

What I mean is say if we have the klip farely well hidden down a few directorys such as home/dir1/dir77635/dir5343/vbtt.klip it is unlikely someone could find the klip and even if they did we do not allow registrations but the problem we find is even if you are logged out and all cookies erased etc it is still possible to refresh and see the new post headlines in klipfolio if the location of the klip is known but you cannot access the actual content but still we are concerned about non members even reading out topics to klipfolio

I could possibly be a non registered user and see the topic's and associated links..we would like to avoid this and make it so no matter what the headlines are not able to be viewed or refreshed *unless* you have a username/password to login and are cookied ,I am not sure this is possible and maybe there is a easy fix for this...I appreciate any info you might be able to provide regarding this and am simply looking for a way in the unfortunate event someone discovered out klip they wouldnt be able to even see our headlines.

Thanks again for your time :)

Kriek 06-15-2003 07:09 PM

Alesis, just so you know -- your above request is under development ;)

alesis404 06-15-2003 07:13 PM

Thank you very much Kriek and might I say again...EXCELLENT hack!!!

Cloudrunner 06-16-2003 02:33 AM

Just curious Alesis....

Have you taken into account the refresh rate at which your board flushes it's cookies?

i.e. do you log out, then login in and goto the who's online without waiting for the board to flush the unused sessions?

Just curious like I said.

alesis404 06-16-2003 05:56 AM

Cloudrunner, we tried various scenarios just to be sure and that was one of the first things I kinda thought might affect it was the sessions but i am using multiple computers for testing as well as people in other locations so I would delete cookies and as well give enough time for the session to time out...sometimes not trying till the next day and then I would reinstall the stock vbTT.klip and we noticed in many occasions that it was still possible to view the thread topics but not actually access them without using a username/password...not that much of a security risk but we would be even better if the topics could not be seen...as I mentioned this is a small private site and we are just worried that someone could casually view our klips.

**I'm not sure what tthe default session timeout is set at and would prefer not to set it any lower if it might cause problems accessing the rest of the site during a visit

*Don't mind you being curious at all...might give me clues to fix :)

**Will be gone till Saturday and cant reply to this thread till then, thanks again

alesis404 07-01-2003 12:07 AM

Hello again, just wondering Kriek if it is possible for a person to stop posts from a specific forumid= or multiple forumid's?

The reason I ask is I would like to add the NNTP gateway news hack but if I do all the posts that get added everytime the script is refreshed these will fill up my max threads in klipfolio, so if I could simply block those from making it to klipfolio things would be sweet ;)

Kriek 07-01-2003 01:47 AM

Alesis, make sure you have a updated version, then open vbTT.php and find
PHP Code:

$reply 'Replies';
$description 'Active Threads';
$showthreadnumber '10'

Replace with the following
PHP Code:

$reply 'Replies';
$description 'Active Threads';
$privateforum '50';
$showthreadnumber '10'

Edit to your prefrences, then find
PHP Code:

$dosql .= 'SELECT threadid,title,lastpost,replycount,postusername,thread.forumid';
$dosql .= ' FROM thread LEFT JOIN forumpermission USING(forumid) WHERE visible=1';
$dosql .= ' AND forumpermission.forumid IS NULL ORDER BY lastpost DESC LIMIT ' $showthreadnumber

Replace with the following
PHP Code:

$dosql .= 'SELECT threadid,title,lastpost,replycount,postusername,thread.forumid';
$dosql .= ' FROM thread LEFT JOIN forumpermission USING(forumid) WHERE visible=1';
$dosql .= ' AND forumid NOT REGEXP ' $privateforum;
$dosql .= ' AND forumpermission.forumid IS NULL ORDER BY lastpost DESC LIMIT ' $showthreadnumber


alesis404 07-01-2003 01:52 AM

Thanks again Kriek, I will try later tonight :)

Kriek 07-01-2003 01:58 AM

No problem ;)

Keep in mind there are several methods.

alesis404 07-01-2003 04:40 PM

Kriek...after adding that code it *appears* all posts are blocked from reaching klipfolio.

all I have changed is $privateforum = '50'; to $privateforum = '9'; but now test posts from other forums do not show on the klip.


All times are GMT. The time now is 03:16 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01387 seconds
  • Memory Usage 1,849KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (9)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete