vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Favorite thread hack or favorite post hack (https://vborg.vbsupport.ru/showthread.php?t=2185)

08-02-2000 11:54 AM

I know favorite forum hack, but can anyone say me about this hacks(Favorite thread hack or favorite post hack). I think, it will be fine, when the user can store in a thread or a post and in the next session, he see this threads or post in a separate windows or in an separte area and he can delete this in this ares.

Anyone know this?

08-02-2000 07:06 PM

For instance. First version only for favorite thread.

quick and ...?
Add a field "favoritesthreads" in table "user".
There I add the threads, they can the user use with a new button under the table of the thread (Edit template.), with a script, which I started.
The various threads I implode and expplode with the php-function. When I use "OR" as "character who stand between the threads" I can use the whole field as the end of the sql-statement.
Is that an idea?

08-02-2000 07:26 PM

or .. make a favorite threads table that contains a userid field that corresponds to the user's id and a field that contains the threadid so it looks like:

Code:

Userid  Threadid
1        765
1        755
1        764
5        987
5        876

[Edited by rangersfan on 08-02-2000 at 04:27 PM]

08-02-2000 07:42 PM

couldn't this be a potential resource hog?

08-02-2000 09:15 PM

Thread Hog? It is no different than what you did other than to make it more streamlined in its own table.

08-03-2000 01:37 AM

there are alot more threads than there are forums. A favorite forum listing can only have soo many things, but a favorite thread can have a ton of threads for each user. To me it seems like it could *potential* resource hog, if each user puts a ton of favorites.

But, I have no idea what I'm talking about, so it probably isn't :)

08-03-2000 01:44 AM

The only time it would be accessed is when the user goes to the "Favorite Thread" page that lists their threads. It would grab all their thread ids from the favorite table then look up the thread title in the thread table, a simple join could be used to accomplish this. It then shows the threads to the user.

But the whole email notification system needs to be reworked so that Favorite Threads are the threads that get email notification. Just like Fusetalk does it. So replying to a thread isn't needed to put it under Email Notification. I talk about it all the time so I should get to it an write it. I haven't donme it because it would require some major hacking to database to accomplish it.

08-03-2000 06:07 AM

I dont think, its a potential resource hog, but the dirty way to put this as an array in the user table its quicklyer. I think about 4000 user and 15 favorites per user - it can be a big table and I must search for relations in other big tables.

But, maybe I put this in a favorite table, i can put a field of kind in it and I can store favorite post too or or forums.
Your oppions?

08-03-2000 08:03 AM

well i just added the basic bookmark a thread thing someone here posted... so they just click a link to bookmark the thread

08-03-2000 08:26 AM

Yes, that is one possibility, but i wont, that the user can see her favorites in my forum as a part of the forum and because of this I must it store in the database!


All times are GMT. The time now is 08:08 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.02545 seconds
  • Memory Usage 1,725KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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