vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   vb/hivemail navbar integration (https://vborg.vbsupport.ru/showthread.php?t=69039)

pcalloway 09-03-2004 01:18 PM

vb/hivemail navbar integration
 
Am running vb3.0.3 and hivemail 1.3 and they are integrated. Am trying to get my email notification to show up on my Navbar - it's not appearing correctly and am hoping someone here might point me in the right direction.

I found this text in the navbar template:
Code:

<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><a href="$vboptions[bburl]/private.php?$session[sessionurl]">$vbphrase[private_messages]</a>: $vbphrase[unread] <if condition="$bbuserinfo['pmunread']"><strong>$bbuserinfo[pmunread]</strong><else />$bbuserinfo[pmunread]</if>, $vbphrase[total] $bbuserinfo[pmtotal].</if>

And after it, I added:
Code:

<!-- HIVEMAIL ADD -->
<if condition="$show['hivemaillink']">
 <if condition="!$bbuserinfo['hiveuserid']">
  <td class="$navclass[hivemail]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=mailsignup">$vbphrase[hivemail_get_account]</a></td>
 <else />
  <td class="$navclass[hivemail]" nowrap="nowrap"><a class="smallfont" href="$vboptions[hive_url]">$vbphrase[hivemail_goto_account]</a>
  <if condition="$bbuserinfo['hivecheck']"><span class="smallfont"><br />$bbuserinfo[hivemsgs_newcount] $vbphrase[hivemail_new_messages]<br />$bbuserinfo[hivemsgs_unreadcount] $vbphrase[hivemail_unread_messages]</span></if></td>
 </if>
</if>
<!-- END HIVEMAIL ADD -->



It appears but oddly on my forum navbar (isn't taking the alt2 background):

http://www.authentic-campaigner.com/images/hive1.jpg


But appears just fine in my instant messaging screen (alt2 like I want:)

http://www.authentic-campaigner.com/images/hive2.jpg

I'm not much of a coder, what am I missing? Appreciate any help. I'd be happy to release this as a hack if it's anything folks might want.

Paul Calloway
www.authentic-campaigner.com

trackpads 09-03-2004 02:00 PM

Your html is calling the wrong TD Class, use this-

HTML Code:


<!-- HIVEMAIL ADD -->
<if condition="$show['hivemaillink']">
 <if condition="!$bbuserinfo['hiveuserid']">
  <td class="alt2" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=mailsignup">$vbphrase[hivemail_get_account]</a></td>
 <else />
  <td class="alt2" nowrap="nowrap"><a class="smallfont" href="$vboptions[hive_url]">$vbphrase[hivemail_goto_account]</a>
  <if condition="$bbuserinfo['hivecheck']"><span class="smallfont"><br />$bbuserinfo[hivemsgs_newcount] $vbphrase[hivemail_new_messages]<br />$bbuserinfo[hivemsgs_unreadcount] $vbphrase[hivemail_unread_messages]</span></if></td>
 </if>
</if>
<!-- END HIVEMAIL ADD -->

Great idea BTW!!

pcalloway 09-03-2004 10:58 PM

Quote:

Originally Posted by trackpads
Your html is calling the wrong TD Class, use this-

HTML Code:


<!-- HIVEMAIL ADD -->
<if condition="$show['hivemaillink']">
 <if condition="!$bbuserinfo['hiveuserid']">
  <td class="alt2" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=mailsignup">$vbphrase[hivemail_get_account]</a></td>
 <else />
  <td class="alt2" nowrap="nowrap"><a class="smallfont" href="$vboptions[hive_url]">$vbphrase[hivemail_goto_account]</a>
  <if condition="$bbuserinfo['hivecheck']"><span class="smallfont"><br />$bbuserinfo[hivemsgs_newcount] $vbphrase[hivemail_new_messages]<br />$bbuserinfo[hivemsgs_unreadcount] $vbphrase[hivemail_unread_messages]</span></if></td>
 </if>
</if>
<!-- END HIVEMAIL ADD -->

Great idea BTW!!

Worked like a charm! Thank you.

trackpads 09-04-2004 01:29 AM

Np.

Go ahead and release this as a template hack at VBT & at Hivemail. I know I am using and I am sure others would find it very usefull too!

Again, great idea!

-Jason


All times are GMT. The time now is 10:52 AM.

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.01239 seconds
  • Memory Usage 1,734KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete