The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
Somebody here request it so I made it quickly.... Basically this hack here tells your users how many new posts and threads there have been since hteir last visit on the main page.
An example is https://vborg.vbsupport.ru and right under your username. INSTRUCTIONS: Inside index.php (not admin) find: PHP Code:
PHP Code:
In the template forumhome_welcometext find: PHP Code:
PHP Code:
That's it! If you installed the hack please click the install button! Show Your Support
|
Comments |
#62
|
|||
|
|||
good hack, thnx!!!
|
#63
|
|||
|
|||
great hack!
|
#64
|
|||
|
|||
Quote:
|
#65
|
|||
|
|||
nice. i installed this one a while ago but upgrading my board killed it.. i just fixed it and 'installed'
|
#66
|
|||
|
|||
is there a possibility with all the changes that have occured with this hack that someone can post the actual coding that does in fact work correctly again?
Im a bit unsure after reading through these posts what to remove and what not too and having the updated changes in one spot would be nice. Thx |
#67
|
|||
|
|||
bumping this up to get some help on my previous post.
|
#68
|
||||
|
||||
/me moves his site to new server, upgrades VB to 2.2.7 and re-installs this most excellent hack!
thanks again! Illu |
#69
|
|||
|
|||
Roody (and any else who doesn't want to read through) ... in a good mood today, so I compiled the optimizations from the posts here and here it is:
:::Since Your Last Visit::: *** optimized per the suggestions of the posts here. I also changed the text to display "There are X new thread and X new posts! ... simply b/c the other way made it seemed crowded up top. change it to whatever you'd like. Run this query on your DB: Code:
ALTER TABLE `post` ADD INDEX(`dateline`) ; Edit: "index.php" Find: Code:
// if user is know, then welcome Add below it: Code:
$getnewthread=$DB_site->query_first("SELECT COUNT(*) AS threads FROM thread WHERE dateline > '$bbuserinfo[lastvisit]'"); $getnewpost=$DB_site->query_first("SELECT COUNT(*) AS posts FROM post WHERE dateline > '$bbuserinfo[lastvisit]'"); Edit Template: /Forum Home Page Templates/"forumhome_welcometext" Find: Code:
Welcome back, <b>$bbuserinfo[username]</b> Add below it: Code:
<br>There are <b>$getnewthread[threads]</b> new threads and <b>$getnewpost[posts]</b> new posts! |
#70
|
|||
|
|||
Quote:
hi, this does speed things up, but when i mark all forums read or when i log out, and log back in, it still displays new threads. hidjra |
#71
|
|||
|
|||
thanks for the help man. sorry if you think i wasnt reading this thread through. in fact i read it thoroughly, but after all the posts i found it a little confusing. thanks for the update though.
|
#72
|
|||
|
|||
hey everyone. i actually just created a post regarding this hack in another forum. I need help trying to get this hack to work at a member level. Basically we have members on my board who can't see all the forums yet this hack leads them to think there is posts that are viewable to them. Is there a way to make this set on a member level.
here is my other post. Member level |
#73
|
|||
|
|||
yeah work great on 2.2.8
but how must i do for put the number of new thread as link under each forum descriptions i've tried all the night but no succes for me can you help me please???? Is it the good way for do that i explain ?? |
#74
|
||||
|
||||
quick question, if i wanted this to also say
Quote:
|
#75
|
||||
|
||||
I'd need what Roody wants.
$getnewthread=$DB_site->(...)and forumid <> 'id of your private forum'"); $getnewpost=$DB_site->(....)and thread.forumid <> 'id of your private forum'"); Can I use several forums here? <> '4' | '6' | '8' ? Members see the counter rising although there are only posts in private forums, that's the point. Thanks, -Tom |
#76
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|