Log in

View Full Version : what are the userinfo variables for notifications


BigJohnny
11-02-2008, 10:13 PM
stuff like $vbulletin->userinfo['pmunread'] but one for each of the "notifications"

How do i find out what the userinfo vars are for all of these

unread profile visitor messages
profile visitor messages waiting approval
incoming friend requests
requests to join your social groups
invitations ot join social groups
unread picture comments
picture comments waiting approval
group messages waiting approval

basically i want the userinfo variables so i can set another variable based on eather or not those userinfo vars have something or not like if($vbulletin->userinfo['pmunread']!= 0)

Lynne
11-02-2008, 11:04 PM
I'm not positive, but I don't think that if is because of an option to turn it off, I think it is just "if there are notifications then show the notifications". If you don't want that code, just comment it out or delete it.

BigJohnny
11-02-2008, 11:23 PM
actually what i was planning on doing was adding seperate notifcation icons for the different notifications, but i dont know what all of the userinfo variables are, so instead im trying to find those.

im basically wanting to modify this
https://vborg.vbsupport.ru/showthread.php?t=96221

Lynne
11-02-2008, 11:33 PM
You should look in global.php starting around line 660 where the $notifications array is defined.

BigJohnny
11-03-2008, 01:03 AM
that might be what i need thanks.... ill poke around a bit more tomorrow when i have some time.

right now im noticing the differences in the memberinfo template between 3.6 and 3.7 ..... no way to show an avatar there i guess.

Lynne
11-03-2008, 03:12 AM
There is an avatar shown on the new member page. It's on the right side in the Mini Stats box.

BigJohnny
11-03-2008, 10:57 AM
yes i didnt see that until after because i was messing with getting a default avatar working.

It wasnt showing up there, but i got it showing in the mini stats.
Where does the profile pic go? Im unable to upload one due to my host having exec() disabled, but basically I wanted my 3.7 member info page to look like the one i had done up on my old 3.6 board.

the code for the page has changed quite a bit though, and has enough additions that it would be hard to copy my 3.6 template, and modify it for 3.7

Lynne
11-03-2008, 02:42 PM
You can see what the default page looks like over on vb.com. Floris (http://www.vbulletin.com/forum/member.php?u=11606) has a profile picture.

BigJohnny
11-04-2008, 02:18 AM
hmm......now i really wish i could make it look like my 3.6 member info page :(

how hard would it be to take that section with the username/avatar/titles/activity from my 3.6 board, and make the 3.7 board look like it?

it isnt modified heavily, just things like profile pic/avatar were moved... i added a couple of extra stats.

here is what my old member info looks like. the profile pic actually shows up below the reputation and above the activity stats.

Lynne
11-04-2008, 02:20 AM
If you want it to look like 3.6, then use the 3.6 templates.

Dismounted
11-04-2008, 03:29 AM
I think you will have to modify the 3.6 template to get it to work on 3.7. It won't work directly.

BigJohnny
11-04-2008, 10:21 AM
ya, i just want that section to look like that...not the whole thing.