Previous Thread
Next Thread
Print Thread
Rate Thread
~;

which kinda sux
#109839 12/11/2003 12:58 PM
Joined: Dec 2003
Posts: 13
Junior Member
Junior Member
Offline
Joined: Dec 2003
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="$preday";
$postday="$postday
";
$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~
$preday ~;
$calendarRow .= ($j >= $jstart && $j <= $jend) ? sprintf("%.2d", $day) : "";
$calendarRow .= qq~
$postday
Sponsored Links
#109840 12/11/2003 1:13 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
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

#109841 12/11/2003 1:39 PM
Joined: Dec 2003
Posts: 13
Junior Member
Junior Member
Offline
Joined: Dec 2003
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"

#109842 12/11/2003 1:43 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
you have an link to the ssi page?

#109843 12/11/2003 5:24 PM
Joined: Dec 2003
Posts: 13
Junior Member
Junior Member
Offline
Joined: Dec 2003
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

Sponsored Links
#109844 12/11/2003 5:33 PM
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Can you post the link to the page where you call the SSI page, and use style/link tags to design it?

#109845 12/11/2003 6:56 PM
Joined: Dec 2003
Posts: 13
Junior Member
Junior Member
Offline
Joined: Dec 2003
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?

#109846 12/12/2003 7:49 AM
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
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..

#109847 12/12/2003 9:18 AM
Joined: Dec 2003
Posts: 13
Junior Member
Junior Member
Offline
Joined: Dec 2003
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..


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:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,080
Joined: March 2000
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 701
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 13
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
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-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)