41
Ace_Armstrong
Re: PiCal 0.7 -- Remove GMT from detailed event view?

Quote:

peterr wrote:
If I understand the problem, as you had '/spacer.gif' highlighted, that is your concern.

Because the td/cell code for that is within a row which is within a table defined as 640 px wide, that is why it appears as 640 wide. In fact, _that_ table is within another table of 640 px wide.

I didn't install the common directory, because with XOOPS 2.2.x, all that code is already defined in a standard XOOPS path, ....... found that out after stumbling upon some piCal code.



No, the line that was highlighted was simply XOOPS activating a hyperlink in my message; the actual problem is the way there are several lines that specify the width of the table and the width of the various cells to be 640 and 630. This is nowhere within my theme, and none of the other modules create this table. In fact, piCal didn't do it until I upgraded to 0.84. That table simply doesn't appear anywhere within the code, unless it's in the parts that are written in Japanese.

I have literally been through every line of code from piCal and the js calendar and cannot find a single mention of 640 pixels of width. (Well, there was ONE, but it was unrelated and I changed it to 570. Didn't do the trick.)

*pulls out hair*
Ace Armstrong
The Man. The Myth. The Mammal.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Intelligent, informed debate good. Innuendo bad. See for yourself!
www.GLOAMING.us



42
Ace_Armstrong
Re: PiCal 0.7 -- Remove GMT from detailed event view?

Quote:

peterr wrote:
Quote:

Ace_Armstrong wrote:
I also need to change the dates to American format if possible ("May 21" instead of "21 May") throughout the blocks and content.


The same file (/modules/piCal/class/piCal.php ) has functions called 'get_middle_dhi' and 'get_middle_dh', lines 2646 to 2674 as follows:

function get_middle_dhi$time $is_over24 false )
{
    
$hour_offset $is_over24 24 ;

    
$hour4disp $this->use24 $this->hour_names_24date'G' $time ) + $hour_offset ] : $this->hour_names_12date'G' $time ) + $hour_offset ] ;

    return 
sprintf(
        
_PICAL_FMT_DHI ,
        
$this->date_short_namesdate'j' $time ) ] , // D
        
$hour4disp // H
        
date_PICAL_DTFMT_MINUTE $time // I
    
) ;
}



// unixtimestamp
function get_middle_hi$time $is_over24 false )
{
    
$hour_offset $is_over24 24 ;

    
$hour4disp $this->use24 $this->hour_names_24date'G' $time ) + $hour_offset ] : $this->hour_names_12date'G' $time ) + $hour_offset ] ;

    return 
sprintf(
        
_PICAL_FMT_HI ,
        
$hour4disp // H
        
date_PICAL_DTFMT_MINUTE $time // I
    
) ;
}


and the method in which the date is represented, is by the 'date' function. If you checkout:

http://php.planetmirror.com/manual/en/function.date.php

there are plenty of examples. To get the format you want it is

$today date("M j");              // May 21



Okay....I understand how to get the right format from PHP. What I don't get is where in the piCal code to make the change to that format.
Ace Armstrong
The Man. The Myth. The Mammal.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Intelligent, informed debate good. Innuendo bad. See for yourself!
www.GLOAMING.us



43
Ace_Armstrong
Re: PiCal 0.7 -- Remove GMT from detailed event view?

I understood most of that. Thanks for the help. Now I've got a new problem. I upgrade to 084, and it broke my design because SOMEWHERE in the code it's hard coded to create a table that is 640 pixels wide. This is the offending code, as seen from the source of a page that is displayed broken (the very first line is from my theme.html file as a reference; the rest is generated by the module):

Quote:

<td id="CenterMainContent">

<table border='0' cellspacing='0' cellpadding='0' width='640'>
<tr>
<td width='640' class='calframe'>
<!-- header -->

<table border='0' cellspacing='0' cellpadding='0' style='width:640px;border-collapse:collapse;'>
<tr>
<td><img src='http://www.SITENAME.com/modules/piCal/images/default/spacer.gif' alt='' width='10' height='30' /></td>
<td nowrap='nowrap' colspan='7' align='center' bgcolor='74BAFF'>
<table border='0' cellspacing='0' cellpadding='0' width='630' class='pical-categoryform'>


I can't find any reference to "640" or "630" anywhere in the code. I have gone through literally every file in the module and every file in the "common" directory. NOTHING.

If someone could give me a clue on this, that would be great. *grumble grumble*
Ace Armstrong
The Man. The Myth. The Mammal.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Intelligent, informed debate good. Innuendo bad. See for yourself!
www.GLOAMING.us



44
Ace_Armstrong
Re: PiCal 0.7 -- Remove GMT from detailed event view?

I also need to change the dates to American format if possible ("May 21" instead of "21 May") throughout the blocks and content.

Anyone know how to do this?
Ace Armstrong
The Man. The Myth. The Mammal.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Intelligent, informed debate good. Innuendo bad. See for yourself!
www.GLOAMING.us



45
Ace_Armstrong
PiCal 0.7 -- Remove GMT from detailed event view?

Is there a way to remove the GMT time display from the events detail page and just display the local time? I've pored through the code and I can't find it. (Of course, what I know about PHP could fit on the point of a needle, so that's not really saying much.)

Thanks!
Ace Armstrong
The Man. The Myth. The Mammal.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Intelligent, informed debate good. Innuendo bad. See for yourself!
www.GLOAMING.us



46
Ace_Armstrong
FIXED IT!!!

Got it. The problem was with the graphic, after all; I created the graphics from a mock-up in Photoshop that I sliced down into a table. I forgot to take the copyright notice off of the mockup before exporting, and then inadvertently uploaded the graphic with the copyright information on it.

DOH!

So, thanks for the help. It's always stupid little things like this that are the most maddening!

(BTW, the tag problems are largely because I generated the initial page using NetObjects Fusion 8, which doesn't really care too much for valid HTML. I'm sure it got muddled even more by my manual tinkering, as well.)

Thanks, mate! Appreciate the help. As usual, it was a mechanical problem: the nut behind the wheel.
Ace Armstrong
The Man. The Myth. The Mammal.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Intelligent, informed debate good. Innuendo bad. See for yourself!
www.GLOAMING.us



47
Ace_Armstrong
Re: A little help, please? This is MESSED UP! :-(

I am going STARK RAVING MAD!!!!!!

AUGH!!!!

*le sigh*
Ace Armstrong
The Man. The Myth. The Mammal.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Intelligent, informed debate good. Innuendo bad. See for yourself!
www.GLOAMING.us



48
Ace_Armstrong
Re: A little help, please? This is MESSED UP! :-(

It's already set that way.
Ace Armstrong
The Man. The Myth. The Mammal.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Intelligent, informed debate good. Innuendo bad. See for yourself!
www.GLOAMING.us



49
Ace_Armstrong
Re: A little help, please? This is MESSED UP! :-(

I already deleted the files in template_c, as noted above.

Changing the tags from upper case to lower case also had no effect.

I'm wondering if this could be something on the server end, like a server cache that's corrupted or something. I mean, it's displaying things that aren't even in the file anymore. Is this possible, and if that's what it is, any suggestions on a fix?
Ace Armstrong
The Man. The Myth. The Mammal.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Intelligent, informed debate good. Innuendo bad. See for yourself!
www.GLOAMING.us



50
Ace_Armstrong
A little help, please? This is MESSED UP! :-(

Can someone please take a look at http://www.OlgaBonfiglio.com and tell me what is causing the sudden weirdness?

The site looked fine, and then I changed a graphic in one of the rollovers--didn't touch the HTML, just replaced the graphic file--and suddenly the copyright information at the bottom of the page started repeating all the down from the top of the page to the bottom. The repeated text can't be selected.

I have tried everything to fix this. I even tried deleting the lines that are repeating from theme.html, clearing the cache, deleting all the files in templates_c before refreshing. The same text keeps re-appearing even when it's not even in the HTML. (If you look at the source code now you'll see it's back in there, but when I took it out, it still appeared as before.)

Also, I suddenly got a weird graphics glitch just below the masthead in the middle of the page, but only in IE (not in Mozilla or any of its derivatives).

This is driving me stark raving mad, and there's no reason this should have changed because of a simple graphic upload. HELP ME BEFORE I START HURTING PEOPLE!!!!

Ace Armstrong
The Man. The Myth. The Mammal.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Intelligent, informed debate good. Innuendo bad. See for yourself!
www.GLOAMING.us




TopTop
« 1 2 3 4 (5) 6 7 8 ... 22 »



Login

Who's Online

47 user(s) are online (21 user(s) are browsing Support Forums)


Members: 0


Guests: 47


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits