The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Custom place for notifications
I was wondering if someone could explain, in depth, on how to add a notifications link (with number of messages) to a place on a seperate site that has a header throughout the whole site that includes the forums. Did that make sense? So I have a huge website, one seperate than the forums, but both places have 1 universal header and I'd like to have the notifications on both sides.
I'm fairly new to php, so a step-by-step would be very nice. Thanks in advance! |
#2
|
|||
|
|||
What notifications are you speaking of?
|
#3
|
|||
|
|||
When you are signed in and someone sends you a private message it says (1) notification.
Then you click on that and it shows a drop down that says you have (1) private message, (1) friend request....and so on depending what the user sent to you. On a seperate unrelated note, I had some custom work done to the header of the website and I'm have a problem figuring out where some code is. If I'm in my style manager and double click on header to view the code it calls a $loginbox. That is the custom login box that we had built to be uniform throughout the entire site. Well I can't for the life of me find where that code is sitting. Is there some place outside the admincp where this could be? any guesses? Thanks again! |
#4
|
|||
|
|||
For the notification part you would need to use either an addon or you would need to write the code that will pull that info to be displayed.
For the $loginbox, look in your Products & Plugins > Plugin Manager In there should be a plugin that is pulling that info, otherwise they have it in a file but I would say the plugin would show where that file is located. |
#5
|
|||
|
|||
PERFECT! thanks for the advice on the $loginbox.....it was right there...I can't believe I never thought to look there. Good Call!
So as far as those notificaitons, do you know if there is an addon already built? Can you direct me there? If there isn't would you be interested in building one for us? Thanks again for everything! I found this code as an addon....anyway to work with something like this (it works if is stays within the templates, but if used outside the templates it doesn't) : <if condition="$bbuserinfo[pmunread]"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" align="center"> <tr> <td class="thead"><a href="private.php"><div style="text-decoration:none;">You currently have $bbuserinfo[pmunread] Unread Private Message<if condition="$bbuserinfo[pmunread] >= 2">s</if>! Click Here!</div></a></td> </tr> </table> <br /> </if> |
#6
|
|||
|
|||
Just thought I would check back to see if anyone would be willing to write a custom query so I can use the above 'if' condition in a template outside of my vbulletin.....
Free would be good, as I know it wouldn't take that long to just write the query, I just don't know how to pull in the right PM data. Thanks in advance! |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|