![]() |
[QUOTE]Originally posted by bira
Hi Tarion, that requires an extra condition - so it depends where you want it. 1) If you want an extra link in the memberlist's navbar, then open memberlist.php and find: Code:
if ($what=="datejoined") { Code:
if ($what=="away") { 2) if you want to add the away to the ADVANCED SEARCH in the member's list, Find: Code:
if ($postsupper!="") { Code:
if ($away=="1") { Code:
<tr> Code:
<tr> |
Yes, those hacks do exist. They don't have to exist plentifully; all you need is one, that modified just one line that another later hack also wants to modify. One such very extensive hack is ethank's persistent mark forum read hack.
And yes, you can search for just a part of the line. The potential problem with that is that as you make your search less specific, the chances increase of you finding what you're searching for more than once. In that event, you can either look at the text around each hit, and see if it looks close enough to what you're supposed to be looking for that you can reasonably decide you've found it. Alternatively, line numbers would make that process a lot easier; you would just have to find the partial search terms at or near the specified line number. Please understand, I am not saying that line numbers are the ultimate best solution. There are multiple ways for handling any situation here, and what might be best for you, might not be best for some (anybody feel like singing the theme song from Diff'rent Strokes? :D). |
Amen JJ,
I'll sing different strokes with you! :D |
I think this is a great hack, and I can't wait to use it. I ran into a problem installing it though. I am running version 2.03 and when I look in my usercp.php I cannot find any code that matches the two I am suppose to find. :confused:
|
Well, check again :p because i'm using also 2.0.3 and the code matched.
|
I've tried it several times now and I just tried it again. I have used my search command and I have even searched for just part of the string in case my code is messed up. The code is still the original without modification, so I don't know why it wouldn't be in there. I saw the code that you had help with on the first page for functions.php and I couldn't find the original code in the download nor the code bira suggested. Functions.php and usercp.php are the only ones that I am having problems with. Everything else was found easily.
|
Hi Bira
It is me, again :D what can I do, I love your hacks :D Is this hack compatable with tha Random Password hack. I noticed this in the /root/member.php $bbuserinfo[usergroupid]'$changepw $awaysql WHERE userid='$bbuserinfo[userid]' is that the right order Thanks |
[QUOTE]Originally posted by ptbyjason
I've tried it several times now and I just tried it again. I have used my search command and I have even searched for just part of the string in case my code is messed up. The code is still the original without modification, so I don't know why it wouldn't be in there. I saw the code that you had help with on the first page for functions.php and I couldn't find the original code in the download nor the code bira suggested. Functions.php and usercp.php are the only ones that I am having problems with. Everything else was found easily. |
Sure
In the usercp.php I can't find ***** $sql="SELECT userid,username,invisible,lastactivity ***** AND I can't find ***** if ((!$buddy[invisible] or $bbuserinfo['usergroupid']==6) and $buddy[lastactivity]>$datecut) { $onoff="on"; } else { $onoff="off"; } ***** In the functions.php I can't find (orginal install) ***** if ($post['lastactivity'] > $datecut and !$post['invisible'] and $post['lastvisit'] != $post['lastactivity']) { eval("\$onlinestatus = \"".gettemplate("postbit_online")."\";"); } else { eval("\$onlinestatus = \"".gettemplate("postbit_offline")."\";"); } ***** NOR (modified by bira on page 1) ***** if ($post[sessionuserid]>0) { eval("\$onlinestatus = \"".gettemplate("postbit_online")."\";"); } else { eval("\$onlinestatus = \"".gettemplate("postbit_offline")."\";"); } ***** |
i'm just going through 'Bira only made' hacks today and wow !!!
Going to be adding some of these hacks right after christmas :D |
[QUOTE]Originally posted by ptbyjason
Sure In the usercp.php I can't find ***** $sql="SELECT userid,username,invisible,lastactivity ***** Right, thats this rule on 20: $sql="SELECT DISTINCT session.lastactivity, user.userid,username,session.userid AS online,invisible,away (i have added away on the end) |
Ok, now that was what I needed. Thank you so much Lesane. Now last question before I change this. Since I have changed the code I was looking for, do I put the code in that is says in the original install or do I need to alter it in anyway?
|
Here are the instructions for the usercp.php code.
|
The whole database goes down and I get the following error when I follow the instructions:
Parse error: parse error in /business/bclapp/html/vbulletin/admin/functions.php on line 2103 Fatal error: Call to undefined function: getuserinfo() in /business/bclapp/html/vbulletin/admin/sessions.php on line 327 This is the code I put in from the for functions.php PHP Code:
Lesane, I am so sorry that I haven't gotten this down yet. I haven't had any trouble installing anything until this one. Adding this: functions.php line 2103 $DB_site->query("DELETE FROM post WHERE postid IN ($postids"."0)"); Sessions.php is still original. |
D'oh figured it out. Sorry. Who would have thought placing a code after what it is suppose to replace in functions.php could cause the problem? jk :)
Thank you for your patience Lesane, I couldn't have done it without you. |
Your welcome :), so it works fine now?
|
It works perfectly now Lesane. I couldn't be happier. :D
|
Hi Bira,
i have a little problem viewing my modifie_profile template, wenn i add an bithday, the day and the month of the birthday is also showing in the selectboxes of your hack, i tried to get it work but it doesn't. here the template: PHP Code:
PHP Code:
Sorry but the template is in german, i hope you understand this so far ;) |
Tarion, yes, that was a mistake I made which FireFly commented about in the first page of this thread :)
You need to change all the $xxxxxselected> in the template to $xxxxxaway> (replace 'selected' with 'away'). Then, in member.php, find: Code:
$dayname = "day".$returndate[2]."selected"; Code:
$dayname = "day".$returndate[2]."[high]away[/high]"; |
[QUOTE]Originally posted by Remi
Hi Bira It is me, again :D what can I do, I love your hacks :D Is this hack compatable with tha Random Password hack. I noticed this in the /root/member.php $bbuserinfo[usergroupid]'$changepw $awaysql WHERE userid='$bbuserinfo[userid]' is that the right order Thanks |
great bira, it works perfect now :) youre wonderfull and it's a very good hack.
THX for your fast support |
oops, sorry Remi -- yes, that's the correct order :)
Thanks :) |
Just a small add on I created and want to share with you:
It's just a small CP add on which shows all away users. To add it do the following: In admin/index.php FIND: PHP Code:
PHP Code:
FIND: PHP Code:
PHP Code:
Upload the two files and you will find a new link under Users: "Find away user ". Thats all ;) Not the best, but it works |
hey the_sisko - long time no see!!!
You know, I was wondering where you were -- I never got the chance to thank you for the Links Directory hack :up: :up: :up: Thanks for the add-on :) |
Quote:
|
Thx bira,...;)
Changed post above with .php. Its my system running on .php4...I always forget to change it :D |
Great add-on! That will be so useful!
Could someone help me with what to put in the postbit template to display in their posts when people are away? And did somebody say links directory hack? *goes off to search for that one* lol |
Thanks the_sisko
Works great |
Sadie the Links Directory hack can be found at https://vborg.vbsupport.ru/showthrea...threadid=12815
You can see a demonstration of it on my BB: http://www.atlasf1.com/bb/links.php |
Thanks so much bira (that's a good one!)
:) |
gonna be installing this in a few :)
awesome hack. thanks a lot :) I'm sure this will be used frequently on my teen forum :) :up: |
Bira:
I hope you don't mind but I have added a couple of things to the main script and the control panel script Where you have: // Leave Away Message in Profile (v1.0) if ($away=="1") { $awaysql = ",away='$away',awaydate='".time()."',returndate='" .$awayyear."-".$awaymonth."-".$awayday."',awayreason='".addslashes(htmlspecial chars(censortext($awayreason)))."'"; } else { $awaysql = ",away='0',awaydate='',returndate='',awayreason='' "; } // Leave Away Message in Profile (v1.0) in the member.php file change this to: // Leave Away Message in Profile (v1.0) if ($away=="1") { $awaysql = ",away='$away',awaydate='".time()."',returndate='" .$awayyear."-".$awaymonth."-".$awayday."',awayreason='".addslashes(htmlspecial chars(censortext($awayreason)))."'"; $showemail=0; } else { $awaysql = ",away='0',awaydate='',returndate='',awayreason='' "; $showemail=1; } // Leave Away Message in Profile (v1.0) and then in the user.php file where you have: if ($awaydate!="") { $awaydate="UNIX_TIMESTAMP('".addslashes($awaydate) ."')"; } else { $awaydate=""; } just below this put if ($away==1) { $showemail=0; } else { $showemail=1; } The changes to the member.php file I highlighted and user.php file is just the add on. Both will set the showemail option to either one or zero if they are away or back. That way people can't email them if they are away. Parker |
Parker,
The problem with your add-on is that it forces the change on the user, and without his knowledge. Example: say you have showemail=0 by default. You set yourself away, it stays 0. You return, and it changes it to 1 without you knowing... Likewise, if you WANT to continue getting e-mails while you're away, you're not gonna be able to, and you won't even know that it's disabled. Cheers, Bira |
Bira:
Hmm.....I will have to work on this. Thanks, Parker |
This isn't a big deal but when a user is away and the Buddy List alt tag message says "User is Away-line"
|
The installation went well and I did all the manual changes by the letter. Yet I get the following error message when I try to access the admin panel in order to do the necessary template changes:
"Parse error: parse error in /home/*****/public_html/memberarea/admin/functions.php on line 242 Fatal error: Call to undefined function: getuserinfo() in /home/*****/public_html/memberarea/admin/sessions.php on line 108" Dex |
mines just plainly not showing up.....heres a screenshot
http://teleblaze.com/asp/HackNotShowing.jpg |
FUNKTION.PHP
Find if ($post['lastactivity'] > $datecut and !$post['invisible'] and $post['lastvisit'] != $post['lastactivity']) { eval("\$onlinestatus = \"".gettemplate("postbit_online")."\";"); } else { eval("\$onlinestatus = \"".gettemplate("postbit_offline")."\";"); } REPLACE that with: // Leave Away Message in Profile (v1.2) if ($post[away]=="1") { eval("\$onlinestatus = \"".gettemplate("postbit_away")."\";"); } else { if ($post['lastactivity'] > $datecut and !$post['invisible'] and $post['lastvisit'] != $post['lastactivity']) { eval("\$onlinestatus = \"".gettemplate("postbit_online")."\";"); } else { eval("\$onlinestatus = \"".gettemplate("postbit_offline")."\";"); } } // Leave Away Message in Profile (v1.2) By this Code Pharsen Error in Funktions.php Pleas Help MFG PS: Very God HAck |
Bira, did you add all the addons, including the_sisko's cpanel addon to the zip?
|
Thx, great hack, ...
but one question: What changes do I have to make in the "showgroups.php" to the forum-staff is away or not? |
All times are GMT. The time now is 02:52 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:
|