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)

Wasim 02-13-2005 04:19 AM

nice

Protoman 02-14-2005 02:58 AM

I also have the vbAdvanced issue. I wrote code that changed the link to /forumURL/private.php when you are on the homepage but it still didn't work.. I'm pretty new to writing php.

Protoman 02-14-2005 03:53 AM

I wrote a quick fix that seems to work for me.. but I'm not responsible if it screws up your forum!!

It just repeats the default command and shows "Private Messages: x Unread, x Read"
in your navbar template find:
PHP Code:

<br />
<if 
condition="$bbuserinfo['pmunread']">$privatemessages<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> 

Replace With:
PHP Code:

<br />
<if 
condition="THIS_SCRIPT == 'adv_index' OR defined('VBA_SCRIPT')"><phrase 1="$vbphrase[unread_x_nav_compiled]2="$vbphrase[total_x_nav_compiled]3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase><else />
<if 
condition="$bbuserinfo['pmunread']">$privatemessages<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></if> 



waiting patiently for a real fix :ermm:

T3MEDIA 02-14-2005 09:21 PM

Quote:

Originally Posted by T3MEDIA
Problem. I have a few girls on a form and one girl had 30 PM's this spread across her screen. I assumed it would show like maybe 1 or 2 max.

Is there a way to show 1 to 3 users max and have the flashing note icon clickable to the normal private.php file?

I am going out to a club so I guess you guys can huck that up...
thanks.

anything to help me on this?

T3MEDIA 02-15-2005 12:39 AM

Quote:

Originally Posted by corollasbest
I wrote somethin up real quick.. I don't know if it works.. I need to get to my home pc and test it first.. just posting it here as my scratchpad :banana: I'll edit this if it works...
PHP Code:

");
            
            // Set the PM Counter to start at 0
            if (!isset(
$messageCount))
            {
                session_register("
messageCount");
                
$messageCount = 0;
            }


        while (
$privatemessage = $DB_site->fetch_array($getmessages) AND $messageCount < 3) 


was this for me?
If so I just replace what was asked in the hack I assume

Protoman 02-15-2005 01:00 AM

not for anybody, it's not done.

Sebastian 02-15-2005 01:34 AM

@ T3MEDIA

Replace

PHP Code:

ORDER BY user.usergroupid ASC 

with
PHP Code:

ORDER BY user.usergroupid ASC LIMIT 0,

that will limit the PMs shown to the first 3, after they see the first 3, the next 3 will be shown.

The hack will be updated with some enhancements soon.

Protoman 02-15-2005 02:04 AM

that's a bit easier than my version :D like I've said.. I've only been writing php for uhh 2 days.. i did get mine working btw

thx for the easy fix

Kihon Kata 02-16-2005 02:02 AM

Anyone take a look at the code?

Quote:

Originally Posted by TonysDesigns
Can I get someone to help me withmy code? I think mycode is modded already and this is why I'm not surewhere to put thishacked code. THanks in advance!

My PM area code:
Code:

<if condition="$bbuserinfo['userid']">
       
                <td class="alt2" valign="top" nowrap="nowrap">
                <div class="smallfont">
                        <!--$vbphrase[log_out]]-->               
                        <strong>$vbphrase[welcome_x]

                <phrase1="$pmbox[lastvisitdate]"2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]
                        <if condition="$show['pmstats']">
$vbphrase[private_messages]: $vbphrase[unread_nav] $bbuserinfo[pmunread]$bbuserinfo[pmunread], $vbphrase[total] $bbuserinfo[pmtotal].



Sebastian 02-16-2005 10:26 PM

@ TonysDesigns, try this (untested).

find:

HTML Code:

<if condition="$show['pmstats']">
replace with:

HTML Code:

<if condition="$bbuserinfo['pmunread']">$privatemessages<else />
<if condition="$show['pmstats']">
$vbphrase[private_messages]: $vbphrase[unread_nav] $bbuserinfo[pmunread]$bbuserinfo[pmunread], $vbphrase[total] $bbuserinfo[pmtotal].</if>



All times are GMT. The time now is 07:44 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.03419 seconds
  • Memory Usage 1,763KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_html_printable
  • (5)bbcode_php_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