![]() |
For the script of the Last Posts here
http://www.vbulletin.com/forum/showt...5&pagenumber=1 anyone know how i might have it so instead of showing smileys by the latest post, i could show the on/off.gif depending on if its new post or not thanks |
NM, I got it..thanks!
|
Ok still need help.thought I had it
Just need the code to insert to show in my latest posts to have the icon show on or off depeneding on if its a new post from the last time it was visited $thread[onoff] to choose the pic wethere its on or off.gif just dont know how to make it see if its new to you. thanks |
Anyone =/
|
? i don't quite understand what you need.....
|
Ok, the Latest Post hack that you can put on any page, i just have mine set to show the latest subject lines. I want also to put a little image on the side that shows wether the post is new from the last ones youve read. so in this picture below
http://clanthc.virtualave.net/latestposts.gif This would show theyve all been read, if the "v" was white it would show they were new. Im just not sure of the code to add in this script to check the last messages youve read. |
i see what you are saying... i just dont know where to get the piece of code.:stupid:
|
heres that main code for it
Quote:
|
and where would be a piece of code that goes in the templates for it
Quote:
|
Ok, this is the main part i needed
Code:
Code:
$forum['lastpost']) Code:
$bbuserinfo Im not a wiz at this, so thanks for going through it with me |
try it as it is and if it does not work just give a post and i will try and figure it out
|
Yeah, i did do it and it just showed the black v pic(off.gif) wether theres new posts or not
|
ok give me a little bit since it is halloween here, i think i may take a break from coding...
|
No prob..appreciate the help
|
so did you get it to work? do you still need help?
|
Still need help =/
I know its probably simple, but im not good enough with this code to know :confused: |
ok i got enough time now to help you out as much as you need... ok so run by me once again what it is that you need... do you want it so that if hte post is newer then the users last visit? if yes then post the query code here and i'll edit it for you so that it shows up right..
|
Only code I have is the Last Post script, and the code neo posted for me, not exactly sure what ya want me to post
But your exactly right on what i want, so in the pic i posted on page 1, the icon will be a white v showing theres been a new post or reply in a thread since last visit |
ok yup. just post the code from the hack... the hack that you dl has a file in it.. post that
|
edited
|
ohh great now VB goes and changes the code on me in 2.2.0:rolleyes:
|
:)
|
i don't quite understand..... the code already does make it on or off.
if user is unregistered all are on if user is registered and last visited 2 days ago it will light up all the ones after those 2 days and light off for all before that. |
Nope, it stays off even if your logged out
heres my questions from earlier Ok, this is the main part i needed Code:
Code:
$forum['lastpost']) Code:
$bbuserinfo Im not a wiz at this, so thanks for going through it with me |
Quote:
also Quote:
I hope this helps you out a bit. |
Ok, that helps me alot, I tested it by doing
Code:
if ($bbuserinfo['username']=='Lt.Christy') { so now ain thing is, what do i use to have it check latest thread instead of Code:
$forum['lastpost']) |
go find a query that uses forums and then check your results
|
Wouldnt this work
Code:
if ($bbuserinfo['lastvisit'] < $fd) { Code:
$fd = date($fdt,$threads[lastpost]); it doesnt seem to work, does it not work how i have it? |
i'm really sleepy... here i'll tell you what... tomorrow i'll rewrite the whole thing into a neater script using arrays and simplify it down and get it to work.
|
Wow, really appreciate it..my bedtime too
thanks again! |
Hey Lister, come up with anything?
|
Welp, I finaly did i tonight, here is end code I added
Code:
if (($threads['forumid'] == "6" || $threads['forumid'] == "9") && ($bbuserinfo['usergroupid'] <= "4")) { |
All times are GMT. The time now is 05:13 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|