Part of the EllisLab Network
   
1 of 2
1
First project release using CI :)
Posted: 05 April 2007 12:33 AM   [ Ignore ]  
Grad Student
Rank
Total Posts:  37
Joined  02-27-2007

Well, I’ve finally put it all together smile

Just published this project: www.linksport.com.pt tonight and, of course, powered by CI. It’s a portuguese sport portal.

It’s all runing using the ADODb library founded somewhere in the wiki (I do love ADODb)

Comments apreciated smile

Profile
 
 
Posted: 05 April 2007 01:45 AM   [ Ignore ]   [ # 1 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1749
Joined  06-23-2006

Nice work! Just some feedback:

- neat Ajax menus!
- the “Favoritos” link doesn’t work in my browser (using Camino, which is a Firefox derivative)
- the “grassline” doesn’t stay at the bottom of the page (in my browser)

Example:
http://www.linksport.com.pt/modalidade/equitacao/escolas-hipismo

 Signature 

Mac OS X 10.4.10, Apache 1.3.3, PHP 5.2.3, CodeIgniter 1.5.x., baby!

Profile
 
 
Posted: 05 April 2007 08:05 AM   [ Ignore ]   [ # 2 ]  
Summer Student
Avatar
Total Posts:  22
Joined  03-22-2007

I like the site a lot! (Even though I can’t translate Portuguese wink). I agree with coolfactor on the menus, I like those too. The soccer ball (futebol, I guess? Sorry for being too American, lol) clock at the top is a nice touch as well.

Everything works fine in Firefox 2.0.0.3 on my end.

Profile
 
 
Posted: 05 April 2007 10:04 AM   [ Ignore ]   [ # 3 ]  
Grad Student
Rank
Total Posts:  37
Joined  02-27-2007

Thanks for all the comments, I appreciated and glad you guys liked it.

About those issues, coolfactor, I don’t know that Camino browser, and, as I understood, it’s a mac version, right?

I did test this site under IE6, IE7, FF1.5 and FF2. It works everything ok, however, since camino is FF derivative it should work also. The “Favorites” function was supposed to be cross-browser, but since I don’t have other browsers to test it, I’m kinda limited smile

Here’s my JS function for the bookmarking:

function dwBookmark(title, url) {
    
if (window.sidebar) window.sidebar.addPanel(title, url,"");
    else if (
window.opera && window.print) {
        
var mbm = document.createElement('a');
        
mbm.setAttribute('rel','sidebar');
        
mbm.setAttribute('href',url);
        
mbm.setAttribute('title',title);
        
mbm.click();
    
} else if (document.all) window.external.AddFavorite(url, title);
}

PS, Fuseblown, yeap, Soccer smile

Profile
 
 
Posted: 05 April 2007 02:29 PM   [ Ignore ]   [ # 4 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1749
Joined  06-23-2006

AddFavorite() seems to be an IE Javascript function, not part of the ECMAScript standard, and FireFox (the browser) has adopted it. The function doesn’t seem to work in Safari either (the #3 browser on the market).

I should correct my statement that Camino is a derivative of Firefox, that was wrong. However, Camino uses the same Gecko rendering engine.

All in all, a minor point that won’t affect too many of your visitors. Given that browsers today have more advanced bookmark (aka “Favorite”) management beyond a simple menu, I rarely add items to that menu, and wouldn’t use a link on a web page to add one anyway. I’d be curious to know what percentage of people use such a feature, as it’s always intrigued me that such a feature would crop up in JS.

 Signature 

Mac OS X 10.4.10, Apache 1.3.3, PHP 5.2.3, CodeIgniter 1.5.x., baby!

Profile
 
 
Posted: 05 April 2007 02:53 PM   [ Ignore ]   [ # 5 ]  
Summer Student
Avatar
Total Posts:  4
Joined  03-07-2007

I have problems with footer in ff2 =) so it’s not only Camino bug)

Profile
 
 
Posted: 06 April 2007 07:57 AM   [ Ignore ]   [ # 6 ]  
Grad Student
Rank
Total Posts:  37
Joined  02-27-2007
Konstantin [rus] - 05 April 2007 02:53 PM

I have problems with footer in ff2 =) so it’s not only Camino bug)

Totally right! I didn’t test in FF2 when the page has scrolling (I have a big screen :D) ... hmm.. that’s kinda odd actually, it’s a absolute div positioned at the bottom.. I’ll check on it anyway, thanks for notice that smile

BTW, coolfactor, your curiosity game me an idea :D ... I’ll think I’ll make a hits counter of that Favorite.. I’m curious too if people actually use that.

Profile
 
 
Posted: 06 April 2007 09:24 AM   [ Ignore ]   [ # 7 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  277
Joined  02-07-2007

I like it too (the clock is my favorite).

Couple crits:

Why are you using a table? CSS should be just fine to do the same thing…

Why is your JavaScript directly in the body? Why not make it a separate .js file and link it?
(I don’t know much JavaScript, so if there is an in-crowd technical reason why, then ignore me)

I know you know about the grass line already - just figured it would help to let you know I get the same thing in FF2 on Linux Ubuntu.

Cool site though…

Profile
 
 
Posted: 06 April 2007 09:32 AM   [ Ignore ]   [ # 8 ]  
Grad Student
Rank
Total Posts:  37
Joined  02-27-2007

About the bottom grass, yeah, I know and I’m workin’ on it smile

About the old-fashion table concept.. Well, I started by creating a tableless design but I’m kinda new on css and at some point I couldn’t keep everything ok on both IE and FF, and since I had a short deadline for this project I hadn’t the time to study that. I’ll re-publish a tableless layout asap tho.

About JS, yeah, I do have a function in the body element that could be in my JS library, however, I didn’t included that already ‘couse I’m still working on that function for other purposes.

Profile
 
 
Posted: 06 April 2007 09:47 AM   [ Ignore ]   [ # 9 ]  
Grad Student
Rank
Total Posts:  37
Joined  02-27-2007

Grass fixed smile

Profile
 
 
Posted: 06 April 2007 04:53 PM   [ Ignore ]   [ # 10 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  208
Joined  06-12-2006
dG_ - 06 April 2007 09:47 AM

Grass fixed smile

I have a similar problem. How did you do it?

Profile
 
 
Posted: 06 April 2007 08:08 PM   [ Ignore ]   [ # 11 ]  
Grad Student
Rank
Total Posts:  37
Joined  02-27-2007

css:

body {
height
: 100%;
}

html
>body div#skel {
height: auto;
}

div
#skel {
min-height: 100%;
height: 100%;
}

div
#footer {
position: absolute;
margin-bottom: 0px;
bottom: 0px;
height: 30px;
}


html:

<div id="skel">
<
div id="contents">bla bla bla</div>
<
div id="footer"> </div>
</
div>

I have more than this, of course, but this get your started smile

Profile
 
 
Posted: 26 September 2007 08:25 AM   [ Ignore ]   [ # 12 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  162
Joined  02-14-2007

I know I’m slow at seeing the link - but I love the site - looks great…

can you elaborate on how you’re building the css? It looks like you’re calling a php file and I’m curious why - and what exactly it’s doing…

 Signature 

Trying to do it right the first time! whoops guess that didn’t work out so well…

Profile
 
 
Posted: 26 September 2007 08:34 AM   [ Ignore ]   [ # 13 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  298
Joined  09-11-2007

i like the system of images smile

http://www.linksport.com.pt/esimples/showpic/src/img579-im2.jpg/w/180/h/155/zc/1/q/190
(apesar da url ficar muito grande)

but looks like a good site.

strange, we talk the same language, but is soo diferent! desporto = esporte)

ah, the css file, you only change the extension of css (style.css to style.php)... no problem tongue laugh

 Signature 

cool mad
Rafael
Last.fm
Twitter

“Because they’re stupid, that’s why. That’s why everybody does everything!”

Profile
 
 
Posted: 26 September 2007 08:39 AM   [ Ignore ]   [ # 14 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  162
Joined  02-14-2007

yes the images are very neat - I love that idea - because it would give the ability to get really crazy with caching… ah the visions are endless

but what i’m curious about is if there is any benefit to calling all the css together? is this file just pulling different css parts together and parsing them? I see the advantage being that you can get themable css this way - but i’m just curious what the reasoning is…

 Signature 

Trying to do it right the first time! whoops guess that didn’t work out so well…

Profile
 
 
Posted: 26 September 2007 08:42 AM   [ Ignore ]   [ # 15 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  2264
Joined  07-30-2007

Usually when a stylesheet is referenced as a .php file it’s because there is some dynamic generation in there.

For instance, let’s say you had all of your colors stored in a database, you could do something like this:

<?php
  
// Tell the client this is a CSS file
  
header('content-type:text/css');
  
// Set an expiration, so the client will cache the stylsheet
  
header("Expires: ".gmdate("D, d M Y H:i:s", (time()+900)) . " GMT");

  
// Get config information from database
  
$query = $this->db->get('config');
  
$config = $query->result();

  
// Below is our stylesheet - using values from above database
?>
body {color
:<?= $config->body; ?>}
a
:link, a:active, a:visited {color:<?= $config->link; ?>}
a
:hover {color:<?= $config->hover; ?>}
 Signature 

Become a fan of the CodeIgniter Cookbook (estimated: Fall 2010).

Follow me on twitter here.
MichaelWales.com | MichaelWales.info

Profile
 
 
   
1 of 2
1
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 819, on March 11, 2010 11:15 AM
Total Registered Members: 119943 Total Logged-in Users: 57
Total Topics: 126079 Total Anonymous Users: 5
Total Replies: 663194 Total Guests: 502
Total Posts: 789273    
Members ( View Memberlist )
Newest Members:  karljsyadelaidelopezSimon Patersonyuewoyacuba_lemarcelskajthp02guthreg1shookyFree