View Single Post
  #5  
Old 08-28-2010, 07:33 PM
DaRK mAN306's Avatar
DaRK mAN306 DaRK mAN306 is offline
 
Join Date: Aug 2008
Location: Bahrain
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi again Mr.Miller,

Yeah, I'm aware of that
- I mean that I have to change the template's name in the plugin to correspond with where I place the bar code - .!

First, I tested the code on the default vBulletin skin; I added a new plugin that is identical to what you posted before in Post #2, then I went to the header template and had the notification code simply cut (Ctrl+X) and then saved the template, after that I went to the footer template and pasted the notification code after the last line, saved the template and then went to the test forum homepage and pressed (Ctrl+F5) to make a full refresh - aka unconditional refresh -, then I went downstairs to check the footer and guess what? the notification menu was sitting there but it was deactivated - didn't display the number of notifications I had even though I had 2 new pms -!!

I tried placing the code in several places in the footer template itself and when it all failed, I tried placing it in the FORUMHOME template after changing the template name in the plugin code and it also didn't work .!

I even tried adding the notifications_total variable to the array in the plugin's code but it didn't help .!

Again, please don't waste your time on me .! I'll try to solve this in every possible way and once I succeed I'll post the solution here for others to benefit from it ..

Thanks again for your - big time - help and wish you all the best .!


--------------- Added 29 Aug 2010 at 20:56 ---------------

Greetings guys,

Thanks to both Mike and Lynne for their sincere help - if this is the right word to describe it - ..

At least, now I know how to preregister variables in case I needed to preregister something in the future ..

My problem is that it's refusing to work with me every time I try to preregister the notifications_menubits variable and I think that there is something wrong with this variable in particular because when I preregistered the facebook button to work in the navbar as Lynne has explained on this thread, it worked like charm ..

This problem is causing me all type of headaches and because of that I had to to fix it "in the old school way" .. It's true that it's a cheap way, but as long as it works I don't care .! I'll be waiting for vBulletin developers to make a useful tool that makes it easy for users to preregister such variables .!

What I did was this:
  1. Copied the bottom bar code from the footer template ..
  2. Removed the bottom bar code from the footer template ..
  3. Pasted the bottom bar code in the Header template ..
  4. To make the bottom bar on top of the forums list - because once I place the code in the header it goes beneath the forum list -, I added some CSS code to my bottom bar container as shown below:
    HTML Code:
    position:absolute;
    z-index:100;
It works even without the position attribute and with the z-index set to 1 .! But, I feel safe like this for a reason or another ..

Just to point out, this fix is in BETA stage .. I'll be testing it in the few couple of days to make sure that it works as it is supposed to !!

This means that I don't need to know how to fix this issue anymore unless someone wanted to provide us with a reasonable fix .!

Thanks again to Mike for his outstanding help, thanks to Lynne for her corresponding on vBulletin.com and thanks in advance for those who might provide something clean as a fix for this issue .!

Kind Regrads,
ME
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01345 seconds
  • Memory Usage 1,792KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete