![]() |
Anyway, using fresh & clean 2.2.6 files there are at least two code snippets you can't find using the original installer, because JelSoft rewrote them. talon3dhq posted the new 2.2.6 snippets and Boofo applied bira's changes to them.
Also, there is a wrong find/add after in the original installer - it makes you add bira's code where it doesn't belong. Birdie501 pointed this one out. Finally, there are some very unclear find/replace instructions. For example, you have to search for "...lastactivity" and change it to "...away,lastactivity". Now, in 2.2.6, the line is "...lastactivity,lastvisit". If you just replace the whole line, you loose the "lastvisit". I wrote down the complete new lines and their correct replacements in the new installer. It's not like you should add errors to your hacks only to make "newbies" work harder, imo. ;) |
Some more information about the changes:
Using fresh & clean 2.2.6 files there are at least two code snippets you can't find using the original installer, because JelSoft rewrote them. talon3dhq posted the new 2.2.6 snippets and Boofo applied bira's changes to them. Also, there is a wrong find/add after in the original installer - it makes you add bira's code where it doesn't belong. Birdie501 pointed this one out. Finally, there are some very unclear find/replace instructions. For example, you have to search for "...lastactivity" and change it to "...away,lastactivity". Now, in 2.2.6, the line is "...lastactivity,lastvisit". If you just replace the whole line, you loose the "lastvisit". I wrote down the complete new lines and their correct replacements in the new installer. |
That's the key word...experience. After we do enough hacks, we gain the experience to be able to modify sections of code to fit our needs. Apparently, you didn't do the file compare on the upgrade. That is the only way to go for the minor upgrades (i.e 2.2.5 to 2.2.6) as far as I am concerned. :)
All I was trying to point out that for us who have been around this a little longer, it is easier than it is for the new ones coming along. What is easy for us, can be a nightmare for them. We have all been through that part of it at one time or another and anyone who says he wasn't scared when installing their first few hacks is either a damned genius or a damned liar. :) [QUOTE]Originally posted by JJR512 When I upgraded to 2.2.6, no, I didn't have it installed. I had it installed in an earlier version, but in an earlier upgrade I didn't reinstall it. Besides, having it already installed shouldn't matter. Having it already installed only saves you the trouble of doing any database changes and possibly adding templates; those are the easy parts. The hard parts are doing the file modifications, and upgrading completely destroys file modifications, because you're using new, clean files. I understand what you're saying about being a newbie...but it's because I had to figure things out on my own that I'm not a newbie anymore. ;) But I'm not saying there's anything wrong; I'm just saying that, in my experience, I don't have any problems. |
I also found a few problems when i installed the old one on my localhost, hopefully this one will work, good job
/me clicks install |
yes....this one is complete
/me installs it...hope it works good |
I like this one better, nice job! Now to install it...
|
in postbit I want to leave out the away image, instead I want just text ("Schorsch is away!"), located over "registered since", just like it's here in vbulletin.org forums.
how can I do this ? thanks, Schorsch |
Schorsch:
First change your "postbit_away" template to something like this: PHP Code:
|
cool, thanks Sho, I'll try it this evening :)
|
Glad I could help. :)
|
what's different from the previous version...
i.e. what has been fixed/modified :D? - Mist |
[QUOTE]Originally posted by Sho
Some more information about the changes: Using fresh & clean 2.2.6 files there are at least two code snippets you can't find using the original installer, because JelSoft rewrote them. talon3dhq posted the new 2.2.6 snippets and Boofo applied bira's changes to them. Also, there is a wrong find/add after in the original installer - it makes you add bira's code where it doesn't belong. Birdie501 pointed this one out. Finally, there are some very unclear find/replace instructions. For example, you have to search for "...lastactivity" and change it to "...away,lastactivity". Now, in 2.2.6, the line is "...lastactivity,lastvisit". If you just replace the whole line, you loose the "lastvisit". I wrote down the complete new lines and their correct replacements in the new installer. |
I installed this hack now, works like a charm :) :banana:
Thank you very much!!!! regards, Schorsch |
:classic:
|
:thumbup: thanks Sho
curious I already install your hack at my local and it s perfect but not my server yet so I wonder if do I have to delete and install new one? Is there anything I can update without having to delete it? I already have old one at my server and I have some errors that members mentioned at Bira's thead. thanks again |
Since nothing has changed on the database side, download bira's original installer (there's a link to the thread in the first posting; around page 10 someone posted a text-based installer of the old version), find the code snippets you originally inserted into your files, delete them and install my re-release of the hack. Your user's away status won't be affected by it. :)
|
Great, thanks Sho :)
|
Just don't run the queries listed under "Database Changes", of course. The tables are already there.
|
hello i am getting an error when i try and edit user in admin cp, it is a mysql error that seems to be pointing this hack:
start error: Invalid SQL: SELECT *,FROM_UNIXTIME(joindate) AS joindate,FROM_UNIXTIME(lastvisit) AS lastvisit,FROM_UNIXTIME(lastactivity) AS lastactivity,FROM_UNIXTIME(lastpost) AS lastpost,FROM_UNIXTIME(awaydate) AS awaydate avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar FROM user LEFT JOIN avatar ON avatar.avatarid=user.avatarid LEFT JOIN customavatar ON customavatar.userid=user.userid WHERE user.userid=7 mysql error: You have an error in your SQL syntax near 'avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar ' at line 2 mysql error number: 1064 Date: Saturday 24th of August 2002 01:49:57 PM Script: http://www.domain.co.uk/forums/forum...=edit&userid=7 Referer: http://www.domain.co.uk/forums/admin...t%26userid%3D7 |
If you are trying to install this hack on 2.2.6, please try my re-release.
|
what if i have already installed previous hack?
do i have to unistall or can i just run sql statments and edit files with new code? |
On the database side, nothing has changed. You don't have to delete the tables. Just revert the code changes. Find what you added and delete it, than find what you replaced and replace it again with what my installer tells you to find (!). When that is done, follow the instructions in my installer from the beginning. Just don't run the queries again. Templates are still the same, too.
|
[QUOTE]Originally posted by carpman
what if i have already installed previous hack? do i have to unistall or can i just run sql statments and edit files with new code? |
Good. I hope my re-release helps you. Good luck. :)
|
I don't have the this code in usercp:
if ($buddy['lastactivity'] > $datecut and (!$buddy['invisible'] or $bbuserinfo['usergroupid'] == 6) and $buddy['lastvisit'] != $buddy['lastactivity']) { $onoff="on"; } else { $onoff="off"; } I have: if ($buddy['lastactivity'] > $datecut and !$buddy['invisible'] and $buddy['lastvisit'] != $buddy['lastactivity']) { $onoff="on"; } else { $onoff="off"; } There is no $bbuserinfo['usergroupid'] == 6) I use 2.26 |
PhoenixBB, I just opened vbulletin226.zip and checked it again, and found the code. Line 38. On the other hand, I did not at all find the code you quoted.
Please note that the information given in the installer is based on original 2.2.6 files. |
Hi, the above quote I quoted is what I have on line 38 of the usercp. I just checked the original file (VBulletin226 Release Candidate), and the original file I have, is the exact same. IE on line 38 there is not that 'usergroupid==6' bit.
Hmm, what does it mean? Did they change the files at some point?? |
Hm, there was some sort of "2.2.6 beta package" up for a day, yes. The zip I used to validate the installer was downloaded the same day I put the re-release up.
|
I quote John from this thread:
[QUOTE]Files changed between 2.2.6 RC and 2.2.6 final: avatar.php, editpost.php, memberlist.php, newreply.php, private.php, usercp.php, admin/forum.php, admin/usergroup.php John |
Everything else has been working on the board thus far - including various hacks. Except for this, one it was always the usercp which gave me a parse error (the ?> ) on last line. As I don't have the usergroup thingy in my original, I'll try removing that bit from the replacement code. It can't be important for me if it wasn't there originally, so it might be better to leave out than in. I'll try both ways. The database changes made didn't refer to that bit did they? I mean it's not a necessary line is it?
Trust me to download on the day they have a beta up! Oy! |
I think it should work, yes. The line you have is basically the one bira's original installer tells us to search for - one reason I re-released the hack is because you can't find this line in 2.2.6 final, among other errors. ;)
Good luck! |
if upgrading from original hack can i leave templates as is?
|
Yep, the templates are unchanged. :)
|
It works, it works!! Woo and hoo!!
[high]* PhoenixBB does a happy dance [/high] Curiously when I removed the 'usergroupid==6' bit I got a parse error. So I put it back, and it worked fine. So even tho it wasn't there originally, it makes no difference having it there. Everything works a treat. :D Thank you sooo much! |
Good! :classic:
|
All "or $bbuserinfo['usergroupid'] == 6)" means is "or Admins". :)
[QUOTE]Originally posted by PhoenixBB It works, it works!! Woo and hoo!! * PhoenixBB does a happy dance Curiously when I removed the 'usergroupid==6' bit I got a parse error. So I put it back, and it worked fine. So even tho it wasn't there originally, it makes no difference having it there. Everything works a treat. :D Thank you sooo much! |
Great hack, I've install it on my forum 2.2.7 and fine working.
|
Great! :)
|
Thank you so much! I tried to install this hack since 2.2.4, and I never got it working, since some of the code changed. Now I have it on 2.2.7, and it works perfectly.
|
I am currently in the progress of updating my own forums to 2.2.7. If everything works as expected, I will edit my initial posting in this thread to reflect that his hack works with 2.2.6 as well as with 2.2.7. ;)
|
All times are GMT. The time now is 02:25 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|