vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - YOBROMOFO-Flashing PM's (https://vborg.vbsupport.ru/showthread.php?t=233218)

lobosnake 10-27-2013 09:56 AM

ok, I would be helpful if you look and tell me what it is.

thank you very much

smirkley 10-30-2013 04:16 AM

sorry, forgot,

add an elseif after the pm notification

using $notifications_total instead of the pm notification

john7911 10-30-2013 06:18 AM

Thank you ;)

lobosnake 10-31-2013 11:49 PM

I did not understand very well, my English is very bad and I use a translator, so this would be correct?

Code:

<!--yobromofo.com flashing message-->
<vb:if condition="$bbuserinfo['pmunread']">
    <a href="private.php{vb:raw session.sessionurl_q}"><img border="0" src="images/newpm.gif" width="24" height="11"></a>
<else />
<vb:if condition="$notifications_total">


    </vb:if>
</vb:if>
       
<!--yobromofo.com end flashing message-->

thank you very much

smirkley 11-01-2013 02:42 AM

Sorry. My setup is very custom, so I tried to apply it to code for you by using your example. You can add text and/or hyperlinks in any of the three conditions, but this should do the trick for the basic image setup. Untested, but should work for the newpm.gif

Code:

<!--yobromofo.com flashing message-->
<vb:if condition="$bbuserinfo['pmunread']" />
    <a href="private.php{vb:raw session.sessionurl_q}"><img border="0" src="images/newpm.gif" width="24" height="11"></a>
<vb:elseif condition="$notifications_total" />
    <a href="private.php{vb:raw session.sessionurl_q}"><img border="0" src="images/newpm.gif" width="24" height="11"></a>
<vb:else />
   
</vb:if>
<!--yobromofo.com end flashing message-->


lobosnake 11-02-2013 10:24 AM

hello I served a lot, but still not get messages visit notify .
This is the code I am using:

Code:

<!--yobromofo.com flashing message-->
<vb:if condition="$bbuserinfo['pmunread']">
    <a href="private.php{vb:raw session.sessionurl_q}"><img border="0" src="images/newpm.gif" width="24" height="11"></a>
<vb:elseif condition="$notifications_total" />
    <a href="{vb:link member, {vb:raw bbuserinfo}}{vb:raw userinfo.userid}&tab=likes_received"><img border="0" src="images/newpm.gif" width="24" height="11"></a>
<vb:else />
    </vb:if>
<!--yobromofo.com end flashing message-->


Can you think of any way to do?

smirkley 11-02-2013 11:27 PM

The first condition is for pm's

The second is for all other notifications(will not see it if there are pm's

Third condition is for no notifications.

You can insert text or variables after the image tag but before the </a> for different text for each condition, including username.


All times are GMT. The time now is 01:37 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.01088 seconds
  • Memory Usage 1,726KB
  • 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
  • (3)bbcode_code_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
  • (7)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