vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   PM reminder (https://vborg.vbsupport.ru/showthread.php?t=32594)

floleb7 11-21-2001 10:00 PM

Just a little hack.
My members ask me a better system for pm more easy to see so i create a little pop up with $pminfo inside and little refresh.


In the install.txt you will have 2 templates to create but if you want to show the link only for registred users you need to do this.


in global.php (root directory) find :

PHP Code:

    $newpmmsg=1;
  eval(
"\$headnewpm = \"".gettemplate('head_newpm')."\";");



just after put

Code:

if ($bbuserinfo[userid]!=0) {
eval("\$pm_link = \"".gettemplate("pm_link")."\";");
}

create a template call pm_link with
PHP Code:

<a href="javascript:void(0)" onclick="window.open('pm.php?s=','test','width=430,height=180')">PM reminder</a

without space between java ansd script
and add $pm_link in forumhome template.


Now only logged in or registred will see the link.

for the rest instrcution in the zip.

demo : click here

not a big hack but useful.

squawell 11-22-2001 04:49 PM

it's great!!but i got this message

Parse error: parse error in /home/jihchi/public_html/squawell/forums/vbb220/global.php on line 269

Fatal error: Call to undefined function: getpermissions() in /home/jihchi/public_html/squawell/forums/vbb220/index.php on line 10


what's wrong??

floleb7 11-22-2001 05:25 PM

ok i have edit the code to insert in global.php with [php] tag the { is replace
so take this

if ($bbuserinfo[userid]!=0) {
eval("\$pm_link = \"".gettemplate("pm_link")."\";");
}

|DarkManX| 11-22-2001 05:38 PM

demo or screenshot please??

floleb7 11-22-2001 06:01 PM

there is a demo in the first post

|DarkManX| 11-22-2001 06:24 PM

Quote:

Originally posted by floleb7
there is a demo in the first post

lol...oh geez, i completely missed that....thanks :)

squawell 11-22-2001 09:02 PM

i got new problem~~

when i push PM reminder then it show up

this message --- cann't find this page!!

i think u miss a php file~~~pm.php!!

or it may creat by myself??

squawell 11-23-2001 08:29 AM

thankz man~~~:D

i think it should be work!!

squawell 11-23-2001 08:42 AM

new problem~~

when i push the link and it popup this window but u look

backgroud why it show up that message??

and see red area i use ur pmnews_template.txt then it show that

i think ur attach file need to check again~~~

floleb7 11-23-2001 09:10 AM

oki this message is for refresh the page
i will see the english version of template now

for the rest i don't understand what you mean

floleb7 11-23-2001 09:15 AM

new zip with us and french version.

squawell 11-23-2001 10:24 AM

What I meant was that when I clicked on the link, a new window does open. However, the background changes to one in which the page could not be found. Also, if I clicked to enter the private message , there is no scroll bar. The window is fixed and cannot be adjusted. Why? It's strange....

forgive my poor english!!

and it clear now??

floleb7 11-23-2001 10:34 AM

oki i update the zip.

for the Private message link it's ok
for the rest you mean the pop up with ok for open your private message area or cancel for nothing ?

squawell 11-23-2001 11:36 AM

Quote:

Originally posted by floleb7
oki i update the zip.

for the Private message link it's ok--it's ok
for the rest you mean the pop up with ok for open your private message area or cancel for nothing ?

but the problem is when u click into private message

it should be have scroll bar to move up or down but it still

the popup window size cann't adjusted.see red area!

no scroll bar and cann't adjust!!

floleb7 11-23-2001 11:44 AM

no
the the pop up don't need to be resized because only the pminfo will be in this.

i can test your installation if you want create a test account and i will see :)

squawell 11-23-2001 12:05 PM

u mean this hack just only let u know u got how much pm's info

not usually we use that way!!

is that ur mean~~

ok i can creat a account but can u see chinese word??

because i'm chinese!!i make a chinese forum~

floleb7 11-23-2001 12:34 PM

this hacks allow people to have a little pop up with pm info with a refresh of 60 secondes or by clicking to the link.

If pop up box when receive a pm is enable you will have the box that say "you have a new pm etc"


i made this for members who like to use only pm when they are busy so they did their works and just use pm.


i can see chinese words :)

floleb7 11-23-2001 02:11 PM

ok i have the prob.

vb put space between java and script in my insctruction so put off the space and everything would be ok

squawell 11-23-2001 02:24 PM

oh~~~

that's why i cann't work reason~~~

ok~~i fixed it!!

and it look great~~

thankz ur help~~~:D

floleb7 11-23-2001 02:42 PM

no prob
hard to release a hack if one thing change when posting :D


All times are GMT. The time now is 01:02 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.01523 seconds
  • Memory Usage 1,752KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (20)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete