|
Joined: Sep 2004
Posts: 152
member
|
member
Joined: Sep 2004
Posts: 152 |
See the header I know USER_LAST_VISIT_TIME is one of the fields in the user table, but I'd like to display it in a template...
|
|
|
|
Joined: Sep 2004
Posts: 152
member
|
member
Joined: Sep 2004
Posts: 152 |
P.S. I'd like to show it in showprofile.tpl
I did find {$regrow[user].Last} in online.tpl, but it seems that variable is not valid in showprofile.tpl
|
|
|
|
Joined: Aug 2006
Posts: 1,358
Veteran
|
Veteran
Joined: Aug 2006
Posts: 1,358 |
|
|
|
|
Joined: Sep 2004
Posts: 152
member
|
member
Joined: Sep 2004
Posts: 152 |
Ah... thank you Blaaskaak. That's becoming a real hack though - and if possible I'd like to stay away from hacks (I hate it when updates go wrong).
I had hoped it was something really easy, like inserting an extra line in a TPL file, but apparently it's a bit more complex than that!
Anyway, thank you very much for your help.
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
Any edit of a template or script file is a hack ...
|
|
|
|
Joined: Sep 2004
Posts: 152
member
|
member
Joined: Sep 2004
Posts: 152 |
True, but there are hacks and HACKS
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
there is also compare and BEYOND COMPARE
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
All hail, Beyond Compare ... If only we still had MultiHack...
|
|
|
|
Joined: Aug 2006
Posts: 1,358
Veteran
|
Veteran
Joined: Aug 2006
Posts: 1,358 |
True, but there are hacks and HACKS A good suggestion for ubb.threads would be make all userdata available to all the templates, so you just have to modify templates to show whatever userdata you want. I think the impact codewise and performance wise is minimal, and would things like this more like hacks instead of HACKS Why the ability of editing templates from inside control panel when you still have to dive into code if you want to add a little extra data. However, the hack I posted looks like a lot, but it's quite basic. Step 1: Getting the data Step 2: Let the smarty template know the data is there Step 3: Let the smarty template display that new variable. Not really something that hooks deepinto the code and would be difficult to redo for coming versions.
|
|
|
|
Joined: Sep 2004
Posts: 152
member
|
member
Joined: Sep 2004
Posts: 152 |
I've programmed something similar on another website in PHP - there the data is actually pulled from the forum database to be displayed on a dynamic web page. So I'm not afraid of coding itself. However, I want to limit the work I need to do when upgrading to a new version as much as possible. When I need to manually copy and paste 3 pieces of code every time I upgrade, I'll lose quite some time. Now 3 pieces of code are not a problem, but I know myself. I'd start installing all kind of hacks and before you know it, I'd need to copy and paste 300 pieces of code
Last edited by Yomar; 12/06/2007 6:48 AM.
|
|
|
|
Joined: Aug 2006
Posts: 1,358
Veteran
|
Veteran
Joined: Aug 2006
Posts: 1,358 |
Gizmo and Sirdude both mentioned beyond compare, and that tool is my livesaver for upgrading with hacks.
I compare the original with my hacked version, and can quicky re-apply hacks to the new version.
My last upgrade in total took less then an hour, and I use *LOTS* of hacks.
Last edited by blaaskaak; 12/06/2007 11:11 AM. Reason: Bleh :)
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
so my mentioning 'BEYOND COMPARE' doesn't count... m'kay...
|
|
|
|
Joined: Aug 2006
Posts: 1,358
Veteran
|
Veteran
Joined: Aug 2006
Posts: 1,358 |
so my mentioning 'BEYOND COMPARE' doesn't count... m'kay... Hmm, you must be blind or something?
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
oh <rosanne rosanna danna mode> never mind </end>
|
|
|
|
Joined: Nov 2006
Posts: 3,095 Likes: 1
Carpal Tunnel
|
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095 Likes: 1 |
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
I tried all three, I wasn't impressed at all with UltraCompare :shrug:
|
|
|
|
Joined: Nov 2006
Posts: 3,095 Likes: 1
Carpal Tunnel
|
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095 Likes: 1 |
No problem. You're own work style having used BC for so long does not easily allow you to switch applications.
That is actually the #1 reason why it is very close to impossible to get someone to switch to another application is their own comfort level with a program.
Microsoft knew that quite well with Word Perfect. They actually had much more functionality and performance than WP for a couple of years but due to the popularity of WP it took a few years to prove to others that it was better.
I'm not trying to sell any of them - Heck they're all cheap enough you could easily buy all 3 of them.
Just saying that if you spend a few hours with each and try out their features with an open mind I think you will see that UC has more features than the other 2. I used to like ExamDiff Pro and used it for years but after trying a new version of UC and actually giving it a chance was what made me switch over to it.
(YMMV)
|
|
|
|
Joined: Aug 2006
Posts: 1,358
Veteran
|
Veteran
Joined: Aug 2006
Posts: 1,358 |
A question I asked but didn't get a response too, UC might be a better program overal, but is it also a better program to "upgrade with hacks".
Photoshop is way better then the ancient version of paint shop pro I use, but I am doing what I want to do a lot faster in Paint Shop Pro. And UltraCompare might be the better overal product, what advantages does it give to you over Beyond Compare?
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
BC > UC for upgrade / hacks, imo
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
Agreed ......
|
|
|
|
Joined: Nov 2006
Posts: 3,095 Likes: 1
Carpal Tunnel
|
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095 Likes: 1 |
Well not sure I could give you a solid answer as I suppose it's how you work. I too use an older version of PSP to do some things because it is just natively faster than the newer versions which placed too much bloat into it. As Giz and SD say. They are comfortable with how BC works and thus I'm sure they work faster in that then they would (at least initially) in UC. Doesn't matter if it has a bunch of bells and whistles if you don't use them. Here is their feature list if interested, but if you're comfortable with BC and it does what you want then I too don't see a reason for you to change. But if you're a new user to this type of software then I think you would probably be better off starting with UC. http://www.ultraedit.com/index.php?name=UC_Features.
|
|
|
|
Joined: Jun 2006
Posts: 3,837
Carpal Tunnel
|
Carpal Tunnel
Joined: Jun 2006
Posts: 3,837 |
I could never figure our UC LOL So have stuck with BC
|
|
|
|
Joined: Nov 2006
Posts: 3,095 Likes: 1
Carpal Tunnel
|
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095 Likes: 1 |
Yeah, nothing wrong with that. If it's working and does what you need.
|
|
|
|
Joined: Jul 2007
Posts: 103
member
|
member
Joined: Jul 2007
Posts: 103 |
I like the discussion about compare programs, but I am more interested in the real solution by embedding the userprofile data into all the .tpl files. Any updates on that?
|
|
|
|
Joined: Aug 2006
Posts: 1,358
Veteran
|
Veteran
Joined: Aug 2006
Posts: 1,358 |
No updates on it, but I'd love that one too!
|
|
|
Bots
by Outdoorking - 04/13/2024 5:08 PM
|
|
|
|
|
|
1 members (Nightcrawler),
737
guests, and
131
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|