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

Reply
 
Thread Tools Display Modes
  #1  
Old 10-17-2008, 06:45 PM
Mr Chris Mr Chris is offline
 
Join Date: Oct 2007
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Your Notificaions Question

My forum is image 2. I want mine to look like image 1 with that pop out box for alerts. Currently mine only alerts for private messages there.

I run 3.7 with a custom skin, I tried reverting the navbar template and it screwed things up a bit. I just Un reverted it.

Is there anyother way to get those features?

Thanks!
Attached Images
File Type: png Picture 1.png (38.2 KB, 0 views)
File Type: png Picture 2.png (10.8 KB, 0 views)
Reply With Quote
  #2  
Old 10-17-2008, 07:07 PM
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
 
Join Date: Mar 2008
Location: India
Posts: 1,416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

so you want to manually add those edits..

Find this in navbar:-

HTML Code:
<if condition="$show['pmwarning']">
Add ABOVE:-

HTML Code:
<if condition="$show['notifications'] AND $show['popups']">
	<div><span id="notifications"><a href="usercp.php$session[sessionurl_q]">$vbphrase[your_notifications]:</a> <strong>$notifications_total</strong></span></div>
	<script type="text/javascript"> vBmenu.register("notifications"); </script>
<else /><if condition="$show['pmstats']">
	<div><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></div>
</if></if>
Then find this:-

HTML Code:
<!-- / user cp tools menu -->
Add BELOW:-

HTML Code:
<if condition="$notifications_total">
<!-- notifications menu -->
<div class="vbmenu_popup" id="notifications_menu" style="display:none">
	<table cellpadding="4" cellspacing="1" border="0">
	<tr><td class="thead" colspan="2">$vbphrase[your_notifications]</td></tr>
	$notifications_menubits
	</table>
	</div>
<!-- / notifications menu -->
</if>
Hope it helps
Reply With Quote
  #3  
Old 10-17-2008, 07:22 PM
Mr Chris Mr Chris is offline
 
Join Date: Oct 2007
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for your reply

check out the attached image..

it doubled up the private messages button

any other ideas?
Attached Images
File Type: png Picture 4.png (13.8 KB, 0 views)
Reply With Quote
  #4  
Old 10-17-2008, 08:08 PM
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
 
Join Date: Mar 2008
Location: India
Posts: 1,416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, I knew that would happen. It just means that you have double instances of that code:-

Find this:-

HTML Code:
<if condition="$show['pmwarning']">
and remove one instance of this code (you should have it twice there):-

HTML Code:
<if condition="$show['pmstats']">
	<div><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></div>
</if>
Now.. i think you aren't aware but you'll get notification menu ONLY when you actually get notifications. So, test it by sending yourself a PM.
Reply With Quote
  #5  
Old 10-18-2008, 11:57 AM
Mr Chris Mr Chris is offline
 
Join Date: Oct 2007
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you so much for your help.

If I could ask you one last question.. See the attached image.. By removing that set of code you suggested it changed it from 2 private mesages to 1 and 1 notification..

How do I lose the private message all together and just keep the notifications?

thanks!
Attached Images
File Type: png Picture 4.png (14.8 KB, 0 views)
Reply With Quote
  #6  
Old 10-18-2008, 01:27 PM
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
 
Join Date: Mar 2008
Location: India
Posts: 1,416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It should not happen. Check if you have followed the instructions above. You must be having an extra Private message phrase still there.

And what happens when you do not have any notifications ?
Reply With Quote
  #7  
Old 10-18-2008, 03:18 PM
Mr Chris Mr Chris is offline
 
Join Date: Oct 2007
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have followed the instructions as specified I believe.

When all notifications have been checked the notification text disappears and just the private messages text remains.
Reply With Quote
  #8  
Old 10-19-2008, 02:11 AM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For gods sake stop editing code like that. It's normal behavior for vb 3.7 to display "Your Notifications" if you actually have one. otherwise, it looks like your right image.
Reply With Quote
  #9  
Old 10-19-2008, 10:34 AM
Mr Chris Mr Chris is offline
 
Join Date: Oct 2007
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what do you mean by right image?
Reply With Quote
  #10  
Old 10-19-2008, 02:14 PM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your second attachment - Picture 2.png. When you have no notifications, that's what you're supposed to see. Picture 1.png is what appears only if you actually have a notification.
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 02:07 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05506 seconds
  • Memory Usage 2,278KB
  • Queries Executed 12 (?)
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
  • (6)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete