vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   New pm alert (a replacement for pm popup) (https://vborg.vbsupport.ru/showthread.php?t=59890)

Brad 01-07-2004 10:00 PM

New pm alert (a replacement for pm popup)
 
This hack will change the way pm pop works on your forums. Frist of all it will no longer be a pop up, instead the info is placed in a new table under the navbar. Also the avatar of the member that sent you the pm is displayed.

This is dirty but it works, if everything checks out in this beta release I will update the template to use phrases and post a new thread in the full release forum

colicab-d 01-08-2004 09:28 AM

Great idea you have there, but it may cause a few probs for folk with things like vbindex etc installed :p

Brolly 01-08-2004 10:04 AM

Nice, installed ;)

Dean C 01-08-2004 11:56 AM

Nicely implemented :)

albibak 01-08-2004 03:15 PM

Nice, but I have a probleme.
When the subject has a ' exemple : I'm here

The result is : I\'m here

Have you got any answers ?

albibak 01-08-2004 03:24 PM

An other problem.
The avatar don't work if it's a link, exemple if my avatar is : www.test.com/avatar.jpg

I must upload my avatar. It must be on the database ;)

Brad 01-08-2004 03:34 PM

Quote:

Originally Posted by albibak
An other problem.
The avatar don't work if it's a link, exemple if my avatar is : www.test.com/avatar.jpg

I must upload my avatar. It must be on the database ;)

Thats why this is a beta hack, what url dose the image give when it dosent work (file customs and board avatars) thanks.

albibak 01-08-2004 03:43 PM

I know it's a beta hack, it's just for that I write my remarks ;)

what url dose the image give when it dosent work (file customs and board avatars) thanks. => I don't understand, sorry

Brad 01-08-2004 03:44 PM

Change:

PHP Code:

        $newpm['username'] = addslashes(unhtmlspecialchars($newpm['fromusername'], true));
        
$newpm['title'] = addslashes(unhtmlspecialchars($newpm['title'], true)); 

To:

PHP Code:

        $newpm['username'] = unhtmlspecialchars($newpm['fromusername'], true);
        
$newpm['title'] = unhtmlspecialchars($newpm['title'], true); 

That will fix the \' problems, looking at the avatars now :)

albibak 01-08-2004 03:58 PM

Little remark :

If you have the welcome panel installed, a modification will be do :

Find in the .txt installation file

PHP Code:

---------------------
Open templatenavbar
---------------------

At the very end of the template add:

<
br />
$newpm 

and replace by :

PHP Code:

---------------------
Open templateforumhome
---------------------

add below [$welcome_panel], :

<
br />
$newpm 



All times are GMT. The time now is 10:04 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.01103 seconds
  • Memory Usage 1,738KB
  • 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
  • (4)bbcode_php_printable
  • (1)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