The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Recently Viewed (Hack in Progress)
After lurking around sitepoint today, I thought I would create a hack much like they have. "Recently Viewed". The first thing I did is search vB.org to see if it was recently released, or released in the past. I did find a few request for this, but no hack has ever been acually released to the public.
So I started thinking how I can create this hack the best way possiable. The first thing that came into mind is create a new table called "recentlyviewed" with the following information. 'recentlyviewed' Table
This means the 1 query will be added on the showthread.php page (per user). Now this method can instantly start filling the "recentlyviewed" table with large boards; Seeing as showthread.php is the mosted used file IMHO. So I thought, lets only keep 5 listing per userid. Keep only 5 listing in database (per userid) This would be done using the global.php file... Scenario: User has viewed 10 threads (according to the recentlyviewed table). Delete the oldest 5. Conditions before sql execution: Code:
SQL = count total threads where userid = userid if (user has more the 5 viewed threads) { Delete the oldest threads viewed, keeping the latest 5 } else { exit(); } Also, I will publicly release this once this is finished... |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|