The Arcive of vBulletin Modifications Site. |
|
Problem with user info box Details »»
|
|||||||||||||||||||||||||||
I've added a user info box to the top of my forumhome. The problem Im having is that $newpm[messages] and Users Currently Online: <b>$headeronline</b> arent working. This info box is a combination of a few different hacks, so Im not sure what is wrong.
I've attached a screenshot to try and help explain my problem. Thanks in advance. Download Now
Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Is it in "header" template you added the html code? Or "forumhome"?
Post the actual php code so we can have a look at it.
|
|
#3
|
|||
|
|||
|
The code is in my forumhome_logoutcode template.
I have a seperate "user Info" box for forumhome_logincode template. PHP Code:
</head> <body> $header <br> $logincode <br> <!-- text --> |
|
#4
|
||||
|
||||
|
I'm not interested in the template, but the php code you added.
|
|
#5
|
|||
|
|||
|
Quote:
Quote:
|
|
#6
|
||||
|
||||
|
FIND:
Code:
// if user is know, then welcome Code:
$countnewthreads = $DB_site->query_first("
SELECT COUNT(*) AS total
FROM thread
WHERE dateline>$bbuserinfo[lastvisit]
");
$countnewposts = $DB_site->query_first("
SELECT COUNT(*) AS total
FROM post
WHERE dateline>$bbuserinfo[lastvisit]
");
$getnewthread = number_format( $countnewthreads['total'] );
$getnewpost = number_format( $countnewposts['total'] );
|
|
#7
|
|||
|
|||
|
OK, but doesnt that just give me new posts and new threads since last visit? What I want, is new PMs, and total users online.
Im confused. =/ |
|
#8
|
||||
|
||||
|
So post the code you have problems with then. What you posted above made me think that is your problem.
|
![]() |
|
|