The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I just wrote a hack, sort of, but before I impliment it, I wanted to ask if it would cause too much server strain.
Basically, I want a Private Message notice on my forumdisplay.php page. I have the PM pop-up notices turned off, but I do want my members notified when they get new messages. So, I used some of the code from index.php and placed in forumdisplay.php. Right under PHP Code:
PHP Code:
Now, it looks like this would call from the private message table every time the user loads the forumdisplay.php. Would this use more or less resources than the pop-up feature, or is the amount virtually negligible? |
#2
|
||||
|
||||
![]()
One thing, this:
Code:
if ($enablepms==1 and $permissions['canusepm'] and $bbuserinfo['receivepm']) { Code:
if ($enablepms==1 and $getperms['canusepm'] and $bbuserinfo['receivepm']) { And no, I don't think this would take too much resources. ![]() |
#3
|
||||
|
||||
![]()
thanks for the response, that's great news...
and what do you mean move the block down? It's not at the top, like on the index.php file. It's further down, after PHP Code:
|
#4
|
||||
|
||||
![]()
The thing is the $getperms array is only copied into $permissions in line 119~.
So if you want to use $permissions and not $getperms, you must put that block after line 119~ and not before. |
#5
|
||||
|
||||
![]()
$permissions was working just fine on line 50, but I changed it to $getperms just to be safe. Thanks again
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|