View Full Version : PM reminder
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 :
$newpmmsg=1;
eval("\$headnewpm = \"".gettemplate('head_newpm')."\";");
}
just after put
if ($bbuserinfo[userid]!=0) {
eval("\$pm_link = \"".gettemplate("pm_link")."\";");
}
create a template call pm_link with
<a href="javascript:void(0)" onclick="window.open('pm.php?s=','test','width=430,height=1 80')">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 (http://forum.latriade.net/div/popuppm.jpg)
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
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
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
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.