php forum
php mysql forum
php mysql smarty
 
Topic Options
#109839 - 12/11/03 11:58 AM Calendar SSI CSS Prob's
chuggs93 Offline
Junior Member

Registered: 12/11/03
Posts: 13
Ugg, Im having some problems converting the SSI calendar file over to CSS classes.

Especially this line of code for all the "days with events" I want it to be in another color, but it always refers back to the vars_calendar


if ($desc[1] eq $j) {
# there's an event today
$preday="<a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=calendar&date=$j">$preday";
$postday="$postday</a>";
$clr = $in{css} ? qq~ class="link"~ : qq~ color="$vars_calendar{color_event}"~ unless $clr;
}

If i switch over the link class, it doesnt work, and if i add a clas to the HREF it still doesnt work. Any ideas?

Plus i had to assign two classes to this code
$calendarRow .= qq~<td class="tdcalendarbody" align="left">$preday <font class="tdcalendarbody1" $clr >~;
$calendarRow .= ($j >= $jstart && $j <= $jend) ? sprintf("%.2d", $day) : "";
$calendarRow .= qq~</font>$postday</td>~;

which kinda sux

Top
#109840 - 12/11/03 12:13 PM Re: Calendar SSI CSS Prob's
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
I believe that the ssi calendar already uses CSS.

just use ubb_calendar_ssi.cgi?s=yes;css=yes instead of ubb_calendar_ssi.cgi?s=yes and update the classes accordingly

Top
#109841 - 12/11/03 12:39 PM Re: Calendar SSI CSS Prob's
chuggs93 Offline
Junior Member

Registered: 12/11/03
Posts: 13
question is, how come u cant change

$clr = $in{css} ? qq~ class="link"~ : qq~ color="$vars_calendar{color_event}"~ unless $clr;

that link class to something like "calendarlink"

its like it only can recognize "link"

Top
#109842 - 12/11/03 12:43 PM Re: Calendar SSI CSS Prob's
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
you have an link to the ssi page?

Top
#109843 - 12/11/03 04:24 PM Re: Calendar SSI CSS Prob's
chuggs93 Offline
Junior Member

Registered: 12/11/03
Posts: 13
u mean this?

http://65.108.196.175/cgi-bin/ultimatebb.cgi?ubb=calendar_ssi

Ugg, this stuff is confusing, can i look at someones calendar ssi cgi file? I dunno what the heck im doing wrong

Top
#109844 - 12/11/03 04:33 PM Re: Calendar SSI CSS Prob's
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
Can you post the link to the page where you call the SSI page, and use style/link tags to design it?
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#109845 - 12/11/03 05:56 PM Re: Calendar SSI CSS Prob's
chuggs93 Offline
Junior Member

Registered: 12/11/03
Posts: 13
http://65.108.196.175/ok/site93.php

if u view the page in 800x600, or if u take ur I.E window and resize it all the way to a little square, the calendar also gets like messed up and shrinks, scrutnches up. and the height gets longer. its weird. What did i do wrong?

Top
#109846 - 12/12/03 06:49 AM Re: Calendar SSI CSS Prob's
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
I think it's fine here, but it has two html tags, two head, body, title, etc tags... View Source of this page in your browser..
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#109847 - 12/12/03 08:18 AM Re: Calendar SSI CSS Prob's
chuggs93 Offline
Junior Member

Registered: 12/11/03
Posts: 13
LK: thats because when u make a call for ubbnews or the calendar, or even a poll which i will put on there, they all are scripts and such. So it places those tags in the original source as well. I dont get why it does that.

YOu know what i mean? by using exec cgi, or include virtual..

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks