vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   [Release] Graphical PM Representation (https://vborg.vbsupport.ru/showthread.php?t=88316)

SpeedStreet 07-12-2003 03:26 PM

[Release] Graphical PM Representation
 
Well, there is code in the navbar template that is coded out, but instead of writing a hack, this can now be done using conditionals.

It's simple! Just modify this code to work with proper links in the navbar, and make sure you have two graphics that represent pms off and pms on!

PHP Code:

<if condition="$bbuserinfo[pmunread] == 0">
 <
img src="pmoff.gif"></img>
<else />
 <
img src="pmon.gif"></img>
</if> 

See how easy this is??? :D

Tony G 07-13-2003 12:18 AM

Can you supply just some images for the people who cannot end up finding a pm off/on .gif?

Bad Bunny 07-13-2003 05:29 AM

Quote:

Originally Posted by SpeedStreet
Well, there is code in the navbar template that is coded out, but instead of writing a hack, this can now be done using conditionals.

It's simple! Just modify this code to work with proper links in the navbar, and make sure you have two graphics that represent pms off and pms on!

PHP Code:

<if condition="$bbuserinfo[pmunread] == 0">
 <
img src="pmoff.gif"></img>
<else />
 <
img src="pmon.gif"></img>
</if> 

See how easy this is??? :D

I made an interesting header addition that was inspired by your little snippet, and I was wondering if you minded if I share it with everyone. :)

SpeedStreet 07-13-2003 10:28 AM

Quote:

Originally Posted by Bad Bunny
I made an interesting header addition that was inspired by your little snippet, and I was wondering if you minded if I share it with everyone. :)


Please do :D

This was all part of a complete header redo on my part, hence the rather ambiguous code I hade to share....I didn't have any original code left!

imported_chuanse 10-10-2003 06:44 AM

Still waiting for those images :/

thuffner 10-10-2003 07:01 AM

1 Attachment(s)
Quote:

Originally Posted by chuanse
Still waiting for those images :/

Here's what I use...

imported_chuanse 10-11-2003 06:31 AM

Perfect :D
Thx dude :D

null 10-11-2003 12:18 PM

Is there any similar solution for vb2 ?

Bad Bunny 10-12-2003 04:46 AM

Not using conditionals. VB2 does not have conditionals. You would have to hack files for vb2.

imported_rynthar 10-12-2003 04:49 AM

Is it me, or has conditionals made it so you doing mods/hacks using templates only much more common?


All times are GMT. The time now is 11:07 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.01145 seconds
  • Memory Usage 1,737KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete