Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-05-2010, 03:20 PM
DGsemiPROoCOM DGsemiPROoCOM is offline
 
Join Date: Aug 2009
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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!
Reply With Quote
  #2  
Old 01-06-2010, 09:58 PM
Mythotical Mythotical is offline
 
Join Date: Jun 2004
Location: Booneville, AR, USA
Posts: 1,428
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What notifications are you speaking of?
Reply With Quote
  #3  
Old 01-07-2010, 07:37 PM
DGsemiPROoCOM DGsemiPROoCOM is offline
 
Join Date: Aug 2009
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #4  
Old 01-07-2010, 08:18 PM
Mythotical Mythotical is offline
 
Join Date: Jun 2004
Location: Booneville, AR, USA
Posts: 1,428
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 01-08-2010, 01:37 PM
DGsemiPROoCOM DGsemiPROoCOM is offline
 
Join Date: Aug 2009
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #6  
Old 01-20-2010, 01:22 PM
DGsemiPROoCOM DGsemiPROoCOM is offline
 
Join Date: Aug 2009
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:10 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04549 seconds
  • Memory Usage 2,203KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete