I've managed to make it so when users log into the site the modules block will check for new pms and if there are some it will display a flashing message icon next to the private mesaging link in the modules block..
so feelin kinda proud of myself i figure "hey i'll do the same thing for unread forums messages so users can immediatly tell if there are new messages ... should be easy enough right?"
How incredibly wrong can a person be .... appearently trying to determine of there are unread forum messages is much much more difficult than private messages.
I'm using nuke 7.5 with bb port built in downloaded from here ..
Any ideas cause i'm kinda lost.
Sugs Lieutenant
Joined: Jan 10, 2004
Posts: 188
Location: UK
Posted:
Sat Mar 12, 2005 8:12 am
The code below is by Adam ismay who did this mod for phpbb forums.
Where in the forums it says "view posts since last visit" it adds the number of posts in brackets after it ie; "view posts since last visit (21)"
The same thing ( or similar ) is used on this site.
Not sure if you can use this code or hack it in......I have treid something similar with my site visitors block but never got very far with it.
It somehow has to be added into $content but all I keep getting is errors.......but then again I havn't spent much time on it
Code:
#
#-----[ OPEN ]-------------------------------------
#
#
#-----[ SAVE ALL FILES ]------------------------------------------
#
# EoM
_________________ Help Me !!! The Humphries are after me milk.
mordikar Nuke Cadet
Joined: Mar 11, 2005
Posts: 4
Posted:
Sun Mar 13, 2005 12:12 am
Thanks .. it's definately a start ... looks like i may need to pull the session management into the modules block as well .. What i really need is a way to pull the unread forums data .. so maybe if i look at it i can find what triggers is and then do an if loop to modify the link like i did with the priveate messages.
You have given me an excellent starting point to work from and i am very appreciative.
Sugs Lieutenant
Joined: Jan 10, 2004
Posts: 188
Location: UK
Posted:
Sun Mar 13, 2005 12:34 am
Let me know how you get on.......Would be handy on my site aswell
_________________ Help Me !!! The Humphries are after me milk.
mordikar Nuke Cadet
Joined: Mar 11, 2005
Posts: 4
Posted:
Sun Mar 13, 2005 8:19 am
well,
I've been working on it all morning and i'm not getting anywhere.
The problem i'm currently facing is i can't get the values for user_id or user_last_visit into from the userdata array in nuke ..
I think if i can get those values i might be able to get it going ...
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum