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


All times are GMT. The time now is 08:58 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.02821 seconds
  • Memory Usage 1,736KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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