![]() |
nice hack :) very useful! thanks for sharing it with us all ;)
|
About letting the PM go and then display the message?
|
I tried the below with
$sendto["$username"] = true; $tostring["$user[userid]"] = $user['username']; before and after the actual error message or without it at all, like your code I get no error messages and all PM went thru. else if ($user['awaystatus'] == 1) { $awaysincedate = vbdate($vboptions['dateformat'], $user['awaysince']); if ($user['awaymessage'] == "") { $awaymsg = "not given"; } else { $awaymsg = $user['awaymessage']; } $sendto["$username"] = true; $tostring["$user[userid]"] = $user['username']; eval('$pmuseraway[] = "' . fetch_phrase('userawaynopm', PHRASETYPEID_ERROR) . '";'); } |
OK, try this if you can. Use the original private.php file and find:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
---------- John |
Quote:
Sorry, not enough time here for that. I admit though, if someone can come up with it, I'll use it too. Rgds ---------- John |
Quote:
If not, here is the code you can use. In your private.php, find: PHP Code:
PHP Code:
I hope this helps. Rgds -------------- John |
Quote:
|
Quote:
|
Quote:
|
Quote:
Just to let you know though, I stopped using this mod. I replaced it in my forums with the e-mail warning one. I think it is better that way, your PM goes to the recipient, even if he is away, and you get back an e-mail saying that the recipient is away and he will get your message when he returns. A PM would be a more elegant solution, but I do not want to get involved with all the checks necessary to send a PM. The e-mail is sent by the admin account, so users will get it one way or another. Rgds |
Quote:
|
I customized it and it is perfect. Since I integrated hivemail and vbulletin, users get instant visual of new emails, so it is like a PM in navbar for email. You might want to change your message as user away does get PM.
if ($user['awaystatus'] ==1) { $awaysincedate = vbdate($vboptions['dateformat'], $user['awaysince']); if ($user['awaymessage'] == "") { $awaymsg = "(reason not given)"; } else { $awaymsg = $user['awaymessage']; } { mail ($bbuserinfo[email],"$username cannot read your private message.","The PM you sent to $username was delivered, however this user is currently away since $awaysincedate. Reason: $awaymsg","From: \"$vboptions[bbtitle] Mailer\" <$vboptions[webmasteremail]>"); } } |
Quote:
One question, what is "hivemail"?? Sounds interesting. John |
<a href="http://www.hivemail.com" target="_blank">http://www.hivemail.com</a>
that was created by Chen who used to be a top developper at vbulletin. The integration is really excellent. You get all your emails (a subject link) in your CP, and with a small hack over there you can incorporate in navbar next to pm messages. Members automatically have an email @yoursite if they want. Could be username or alias (you define). |
Quote:
Thanks for the tips. I did a Google search yesterday and find it. I wish I could (a) afford it, (b) convince my hosting people to install it on my server. It would be great, but I know I can't afford it at the moment and I am not sure they will agree on setting it up. My sites are hosted for free by some helpful people, so I can't take advantage of their good will. Rgds |
Is it possible for someone to install this hack for me please? If you can do so, please contact me via email at: Pandora@Sweet-November.Net
Thanx in advance! |
I get this error when I run the query
ALTER TABLE `user` ADD `awaystatus` INT( 1 ) UNSIGNED DEFAULT '0' NOT NULL , MySQL said: #1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 any ideas |
Quote:
BTW...That girls is beautiful. |
[high]* TwinForMe clicks install
[/high] I added the postbit code by sv1cec except I use postbit legacy. I had to change his code a bit. Find: Code:
$post[musername] Code:
<!-- Code change for user being away --> |
It would be nice to see all of this in a text file ...
|
just curious havent you repeated the following twice ?
HTML Code:
========================================================== |
OK, this is bizarre. Wonder if anyone can help.
Installed without a problem. HOWEVER, if you are logged in, you cannot go and view your own member profile. (You can see other's without difficulty, and, they can see you. But you get a blank white page when you go to member's list and try to view yourself). Any ideas???? rich |
Quote:
|
Quote:
|
im trying to add this on vb 3.0.6 i had it before i upgraded so i reinstalled it, but when i test it, the away fields dont save ..... do you know whats causing it ?
|
Alrighty...I followed all the instructions (and then went back and added in the second homepage = '" . addslashes(htmlspecialchars_uni($homepage)) . "', that's in there a second time as well as change my " $show['extrainfo'] = true;" thing with the different combos since it shows up twice in my file..and its still not showing up. Can anyone tell me what might be the problem?
|
I would like to install this hack. Currently I am using vb 3.06 and will upgrade to vb3.07 this weekend. Does this hack work in vb3.07?
|
I?d really like to install this hack but I guess I?m missing something and haven?t been able to figure this out yet. I execute the query as instructed:
ALTER TABLE `user` ADD `awaystatus` INT( 1 ) UNSIGNED DEFAULT '0' NOT NULL , ADD `awaymessage` VARCHAR( 200 ) NOT NULL , ADD `awaysince` INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL But I keep getting the same message: An error occurred while attempting to execute your query. The following information was returned. error number: 1146 error desc: Table 'forum.user' doesn't exist Okay, so somebody told me that is because the file does not exist and I have to added the location just before user like; forum_user. Tried that and no luck so I search for the user.php file, which I assume is the right file and I have two. One in admin and one in admincp. I tried the query adding both and different error but still an error. I don?t want to keep asking these silly questions so there has to be someplace I can learn about running a query in vb3.07. Can somebody assist me please? |
[sql]ALTER TABLE `user` ADD `awaystatus` INT( 1 ) UNSIGNED DEFAULT '0' NOT NULL ,
ADD `awaymessage` VARCHAR( 200 ) NOT NULL , ADD `awaysince` INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL [/sql] You are not editing files, but a table in your database. You are probably using a table prefix, thus the table named 'user' will be named something like 'prefix_user'. To find your table prefix look in the bottom of your includes/config.php file. For more information on how to run a query, click the link "How to run a query" above the sql-statement in my post. |
thank you for the help MarcoH64 and I will do as you suggest. By the way, the link is good, but the information is out of date when following those instructions and maybe they need updating from years back since the site linked is no longer what is described in the instructions and for someone like me, who hasn't a clue about this information it is rather confusing.
|
Hmm to tell you the truth, i never even looked at the link myself :(
I will have a look and maybe see if i can post something better. |
You say EDIT TEMPLATE MODIFY PROFILE and then soem
================================================== ====== [FIND]--> $customfields[required] </div> </div> </td> </tr> </table> <br /> [BELOW ADD]--> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="thead">Current Away Information</td> </tr> <tr> <td class="panelsurround" align="center"> <div class="panel"> <div style="width:$stylevar[formwidth_usercp]" align="$stylevar[left]"> <fieldset class="fieldset"> <legend>Away Status</legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%"> <tr> <td>Check the box below to set yourself on away. Posting when you are away will take you off away mode automatically.</td> </tr> <tr> <td><input type="checkbox" name="awaystatus" value="1" <if condition="$bbuserinfo[awaystatus] == 1">checked</if>>I am currently away.$awaysincedisplay</td> </tr> </table> </fieldset> <fieldset class="fieldset"> <legend>Away Message</legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%"> <tr> <td colspan="2">Enter an away message that will be visible in your profile.</td> </tr> <tr> <td><input type="text" class="bginput" name="awaymessage" id="tb_awaymessage" value="$bbuserinfo[awaymessage]" size="50" maxlength="200" /></td> </tr> </table> </fieldset> </div> </div> </td> </tr> </table><br /> then you say [EDIT TEMPLATE MEMBERINFO] then more how do you edit these templates? |
Go into your Admin Control Panel --> Styles and Templates (on the left) --> Style Manager-->
Click on the button to the right that looks like this --- [<< >>]. The templates will be shown on that page. Find the template you want to edit and open it --> then edit. |
How about adding something in the postbit to show when a user is away? For instance a small image or something? Maybe near the "online" light?
--I really like how it takes the away message when a post is made by the "away" user. |
Its on the first post but where do you implement it?
|
Click install :)
btw. change content of "userawaynopm" phrase to: Code:
<u><b>Attention : </b></u> Your PM cannot be send to its intended recipients.<br>User <b>$user[username]</b> is away since the $awaysincedate.<br> |
Works perfectly! Thank you!
|
Love this, took less than 5 mins, hope my users dont use it as much as i will though!!! :)
|
hmm.. nothing is showing up when i set this..
[ OD is away since - ] Reason: thats all it says? |
Have you ran the SQL Query at the top of vb3 userawaymessages install.txt, that should add the phrases, if so then check through all the file edits, works fine for me!
|
All times are GMT. The time now is 11:38 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|