Previous Thread
Next Thread
Print Thread
Rate Thread
#155068 10/02/2002 9:37 AM
Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Might be my most popular hack. laugh

Name: User-selectable Time Zones and Date Formats

Description: With this modification, your users can choose their own time zone and date format.

Demo: https://ubbdev.com

Link: ZIP File

Requirements: UBBâ„¢ 6.3.0 Beta Release 1.0

Number of Downloads: [img]https://www.ubbdev.com/lk/num.php?s=timezone.zip[/img]

Notes:: Works only with certian servers; read the notice in the end of the hack; not Wordletized; not used everywhere (for example view recent posts). ALPHA version!!

Sponsored Links
Joined: May 2001
Posts: 50
Member
Member
Offline
Joined: May 2001
Posts: 50
Well I decided to take the plunge and try this out (took 45 mins to mod it in eek ). Anyways two problems...

1) http://www.btinternet.com/~fs2/screenshots/others/ubb-prob.jpg
Basically when I select a different date (other than the community deafult) from the profile that happened. I have a feeling it might be something to do with no 2 wink

2) In the instructions it says:

Quote
code:
Code
*****************************
* Open public_pntf_admin.pl *
*****************************

Find:
=====

my $r = shift;

my $string = qq(
$TBT) . <<GUIDE;


Replace with:
=============

my $r = shift;

my $string = qq~<script type="text/javascript">
<!-- (blah, blah)

However I couldn't find those two lines togeather. The closest match I found was:

code:
[qb]
Code
	my $r = shift;

# my $thismany = scalar keys %{ $r };

my $string2;

my $string = qq(
$TBT) . <<GUIDE;
[/qb]
Another match I found was:

Code
	my $r = shift;
my $ip;

if (($user_profile[8] eq 'Administrator' && $user_profile[4] =~ /Admin/)) {
$ip = qq~<td bgcolor="$vars_style{TableColorStrip}"><!-- 1 --><font color="$vars_style{TableStripTextColor}" face="$vars_style{FontFace}" size="$vars_style{TextSize}"><b>
$vars_wordlets_pntf{pntf_admin_ipaddress}
</b></font></td>~;
}

my $string = qq(
$TBT) . <<GUIDE;
But that one didn't seem right. So I guess you were right when you said Alpha version. wink

[edit

Using UBB version 6.3.1.1 btw smile

Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
1) Try to rehack ubb_forum.cgi and public_forum_page.pl... If it doesn't help, I need a URL tipsy

2) It's the "another match", because you're using WOL List hack smile

Joined: Nov 2001
Posts: 1,704
CTM Offline
Moderator / Da Masta
Moderator / Da Masta
Offline
Joined: Nov 2001
Posts: 1,704
Hurrah! At last!

You don't know how long I've wanted this, LK laugh

Joined: Mar 2001
Posts: 172
Member
Member
Offline
Joined: Mar 2001
Posts: 172
Someone show this to Charles. I'm tired of saying "this should be in already" and "every other board already has it".

Sponsored Links
Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Quote
quote:
Originally posted by LK:
Might be my most popular hack. laugh
I guess I was wrong about that :rolleyes: wink

ZIP updated, rehack public_pntf_admin.pl, ubb_lib_posting.cgi, public_new_reply_form.pl and public_pntf_summary.pl.

Joined: May 2001
Posts: 50
Member
Member
Offline
Joined: May 2001
Posts: 50
Well I've tried the newer version although I'm still getting problem 1. I've sent you a PM with the board URL and account details (should you need them). Hopefully you'll be able to spot what I'm doing wrong wink

btw the board is on my own 3 PC network (cause I use it for testing hacks) which is why I've sent you the URL rather than putting it here smile

-[edit]-

Forgot the most important thing. How the bug occurs wink Basically if you switch the date to anything other than the community default. Haven't tried messing around with the time, although that might have been affected as well.

Joined: Nov 2002
Posts: 30
Junior Member
Junior Member
Offline
Joined: Nov 2002
Posts: 30
is there anybody here that got it to work? great hack LK but it complety messed up my forum. frown

hope there will be a better one soon!

Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
URL?

Joined: Nov 2002
Posts: 30
Junior Member
Junior Member
Offline
Joined: Nov 2002
Posts: 30
I already uninstalled the time zone hack..

it aint updated yet??

Sponsored Links
Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Can you please reinstall it and give me the URL?

Joined: Nov 2002
Posts: 30
Junior Member
Junior Member
Offline
Joined: Nov 2002
Posts: 30
I will try to get to it some day.. real busy at the moment and the ftp server of the board is down so I cannot access my files frown

will keep you informed!


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)