vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Blink PM icon with userinfo (https://vborg.vbsupport.ru/showthread.php?t=75619)

org 03-05-2005 01:24 PM

One of the main deficits eliminated. Good job!
Installed.

T3MEDIA 03-05-2005 08:41 PM

Quote:

Originally Posted by kall
How about making the flashing gif be hotlinked as well?

I was thinking that too.

lefthome 03-09-2005 11:01 AM

I want to install, but I am upgrading to vb-bulletin 3.07 this weekend. Does this hack, vice nice program, work in version 3.07?

Shackbase 03-20-2005 05:10 PM

www.talkshack.com - i did all it asked for.. and nothing.. :( what did I do wrong.. ?

Thanks,

--Tone

Nordinho 03-20-2005 07:19 PM

Quote:

Originally Posted by Shackbase
www.talkshack.com - i did all it asked for.. and nothing.. :( what did I do wrong.. ?

Thanks,

--Tone

Has anyone got this working on the cmps index page??

bobjackson 03-20-2005 07:59 PM

Quote:

Originally Posted by Nordinho
Has anyone got this working on the cmps index page??

ya, i'm using this with cmps.

i made a couple of changes and used a phrase. (changes in bold)

i've been running this for awhile now with no issues.

Code:

// blinking PM & details hack...
if ($bbuserinfo['pmunread'] > 0)
{
        $getmessages = $DB_site->query("
                SELECT pmtext.pmtextid, pmtext.fromusername, pmtext.fromuserid, pmtext.dateline, pm.pmid, user.userid, user.usergroupid,
                        COUNT(pmtext.fromuserid) AS fromusertotal FROM " . TABLE_PREFIX . "pmtext AS pmtext
                        LEFT JOIN " . TABLE_PREFIX . "pm AS pm USING(pmtextid)
                        LEFT JOIN " . TABLE_PREFIX . "user AS user ON (user.userid=pmtext.fromuserid)
                        WHERE pm.userid=$bbuserinfo[userid] AND messageread=0
                        GROUP BY pmtext.fromusername ORDER BY user.usergroupid ASC
        ");

        while ($privatemessage = $DB_site->fetch_array($getmessages))
        {
                $usertotal = $privatemessage['fromusertotal'];
                if ($usertotal == 1)
                {
                        $privatemessagebit .= ', <a href="/forums/private.php?'.$session['sessionurl'].'do=showpm&pmid=' . $privatemessage['pmid'] . '">' . $privatemessage['fromusername'] . '</a> - ' . vbdate($vboptions['dateformat'], $privatemessage['dateline'], true);
                }
                else
                {
                        $privatemessagebit .= ', <a href="/forums/private.php?'.$session['sessionurl'].'do=showpm&pmid=' . $privatemessage['pmid'] . '">' . $privatemessage['fromusername'] . '</a>(' . $privatemessage['fromusertotal'] . ')';
                }

                $from_group = 'imsg.gif';
                if (in_array($privatemessage['usergroupid'], array(5,6,7)))
                {
                        $from_group = 'imsg2.gif';
                }
        }

        $privatemessagebits = substr($privatemessagebit , 1);

        $privatemessages = '<img style="vertical-align: middle;"  border="0" src="'.$stylevar['imgdir_misc'].'/' . $from_group . '" alt="You have a PM!" /> from ' . $privatemessagebits;
        $vbphrase['blinkpm'] = construct_phrase($privatemessages, $privatemessages);
}

and then the updated template change for the phrase:
Code:

<br />
<if condition="$bbuserinfo['pmunread']"><phrase>$vbphrase[blinkpm]</phrase><else />
<if condition="$show['pmstats']"><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase></if></if>

hope that helps.

biggkay 03-20-2005 09:23 PM

Works nice in my forums, but it would be even better if it would work in vBadvanced CMPS.

Shackbase 03-20-2005 10:23 PM

im a vb noobie - whats the cmps?

--Tone

biggkay 03-21-2005 03:33 AM

<a href="https://vborg.vbsupport.ru/showthread.php?threadid=65797" target="_blank">https://vborg.vbsupport.ru/showt...threadid=65797</a>

Shackbase 03-21-2005 03:35 AM

Thank you BiggKay... much appreciated... Looks like a HUGE mod.

Would that nullify my style that I currently use or would it 'merge' into it?

www.talkshack.com

--Tone


All times are GMT. The time now is 09:41 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.06334 seconds
  • Memory Usage 1,744KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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