Previous Thread
Next Thread
Print Thread
Hop To
Joined: Sep 2004
Posts: 152
Y
member
member
Y Offline
Joined: Sep 2004
Posts: 152
See the header smile

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
Y
member
member
Y Offline
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
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
Hmm, I did a mod for somebody that looks like it....

https://www.ubbdev.com/forums/ubbthreads.php/ubb/showflat/Number/315950#Post315950

have a look there.



[Linked Image from siemons.org]
Joined: Sep 2004
Posts: 152
Y
member
member
Y Offline
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,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Any edit of a template or script file is a hack wink...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Sep 2004
Posts: 152
Y
member
member
Y Offline
Joined: Sep 2004
Posts: 152
True, but there are hacks and HACKS smile

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
there is also compare and BEYOND COMPARE wink

Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
All hail, Beyond Compare wink...

If only we still had MultiHack...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
Originally Posted by Yomar
True, but there are hacks and HACKS smile


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 smile
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.


[Linked Image from siemons.org]
Joined: Sep 2004
Posts: 152
Y
member
member
Y Offline
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 laugh

Last edited by Yomar; 12/06/2007 6:48 AM.
Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
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 :)

[Linked Image from siemons.org]
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
so my mentioning 'BEYOND COMPARE' doesn't count... m'kay... wink

Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
Originally Posted by Sirdude
so my mentioning 'BEYOND COMPARE' doesn't count... m'kay... wink


Hmm, you must be blind or something? wink


[Linked Image from siemons.org]
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
oh

<rosanne rosanna danna mode>
never mind
</end>

laugh

Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
Here is a bit of discussion we already had on the compare subject
https://www.ubbcentral.com/forums/ubbthreads.php?ubb=showflat&Board=17&Number=190441

Having used all three of these products my personal preference is now UltraCompare (YMMV)


ExamDiff Pro $35
http://www.prestosoft.com/edp_examdiffpro.asp

Beyond Compare $30
http://www.scootersoftware.com/

UltraCompare $30
http://www.ultraedit.com/index.php?name=Content&pid=34



Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
I tried all three, I wasn't impressed at all with UltraCompare :shrug:


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
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
Y
Veteran
Veteran
Y Offline
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?


[Linked Image from siemons.org]
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
BC > UC for upgrade / hacks, imo smile

Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Agreed wink......


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
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
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
I could never figure our UC LOL

So have stuck with BC smile

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
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
No updates on it, but I'd love that one too!


[Linked Image from siemons.org]

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
1 members (Ruben), 476 guests, and 111 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)