Jump to content



Rotating banners...


  • You cannot reply to this topic
9 replies to this topic

#1 addikti0n

    QSS L Plater

  • Member
  • 53 posts
  • Gender:Female
  • Location:MiA

Posted 15 November 2007 - 01:28 PM

Pretty self explanitory...

Anyone good with photoshop could design a few different ones with the same style just different cars? Perhaps banners using members cars?.. smile.gif

Posted Image


``elektrO.....= <3


www.etstreet.com


#2 Force Fed

    The Legend....

  • Member
  • 2,458 posts
  • Gender:Male
  • Location:Trollville
  • Interests:Trolling, Pissing People Off, Cars, Annoying People, Getting Inside People's heads!

    oh and cars

Posted 15 November 2007 - 01:31 PM

thats pretty cool. would be a nice lil feature, but the pages are already rather large to load. maybe have them as a selectable option in controls so people who dont want it can live without them..
Posted Image

#3 sinister

    Administrator

  • Admin
  • 9,914 posts
  • Gender:Male
  • Location:Cairns
  • Interests:Tuff Cars!

Posted 15 November 2007 - 01:56 PM

They shouldn't take long to load at the moment. If they do your connection not very good!

The front page of the website is 15,436 bytes of HTML code and 160,623 bytes in Java code (~17KB total). Even on dial-up that is only 3-4 seconds without images. The images change a bit so hard to measure that but if you work on the front page of the forum (which rarely changes) you are looking at still only ~15KB of HTML and ~94KB of Java (~110KB) plus images (~105KB) which are cached so should never need reload unless they have changed.

Biggest problem with load times are people who use oversize avatar or signatures (specifically GIF animations which are sometimes close to 1MB).

But as for the original question it is not hard to do and was actually done when the forum first started but was lost between the upgrade from phpBB to IPB and forum redesign from memory (about 18 months ago).

I was looking to do "car of the month" feature a long time ago and have this included in the banner but working extended hours and having other jobs it never eventuated. That said there is a couple guys starting to lend their abilities with graphic and website design which make help things like this happen.

I quite simply don't have the time to do everything myself smile.gif

Posted Image

Support the future of Drag Racing in FNQ. Click here

www.CairnsBurnouts.com


#4 lxtorrie

    QSS Opens

  • VIP
  • 724 posts
  • Gender:Male
  • Interests:Music: Slipknot, disturbed, FearFactory, etc<br />Cars: Definatly Old school muscle for sure.<br />Chillin with mates and meeting new ppl.<br />Graphic Designer

Posted 15 November 2007 - 02:20 PM

A while ago I wrote a php code to make an image change every time a page is refreshed. I also used this with a few PHPBB2 forums I have done.
I think its pretty kickass....and you could prolly use this in the forum sin.
Moving banners can get a bit much after a while, where as a new banner on each page refresh is by far better IMO.
But hey, what would I know haha tongue.gif

#5 lxtorrie

    QSS Opens

  • VIP
  • 724 posts
  • Gender:Male
  • Interests:Music: Slipknot, disturbed, FearFactory, etc<br />Cars: Definatly Old school muscle for sure.<br />Chillin with mates and meeting new ppl.<br />Graphic Designer

Posted 15 November 2007 - 02:50 PM

Found it.....

CODE
<?php
$dir = '.';
$avatar_types[] = 'gif';
$avatar_types[] = 'jpg'; //add as many new image extensions as you want.

// DO NOT EDIT BELOW THIS LINE
$avatar = array_key_exists('avatar',$_GET)?$_GET['avatar']:'';
if ($avatar != '') {
$avatar = urldecode($avatar);
}
else {
$avatars = array();
$directory = opendir($dir);
while ($list = readdir($directory)) {
if ($list != '.' && $list != '..') {
$ext_check = explode('.',$list);
foreach ($avatar_types as $variable => $value) {
if (in_array($value,$ext_check) && !in_array($value,$avatars)) {
$avatars[] = $list;
}
}
}
}
closedir($directory);
$random = array_rand($avatars,1);
$avatar = $avatars[$random];
}
$file = fopen($dir.'/'.$avatar,'r');
$content = fread($file,filesize($dir.'/'.$avatar));
fclose($file);
die($content);
?>




and then call it in your html by:


<img src="phpfilenamegoeshere.php" alt="" />


Just slap that in a php file and call it whatever
Enjoy!
biggrin.gif

#6 Force Fed

    The Legend....

  • Member
  • 2,458 posts
  • Gender:Male
  • Location:Trollville
  • Interests:Trolling, Pissing People Off, Cars, Annoying People, Getting Inside People's heads!

    oh and cars

Posted 15 November 2007 - 03:01 PM

my fone shows the total page size loaded when i have it on the wireless connectoin at home.... at times has been up to 1.7 mb but usually only 1.2...

guess it all depends on your connectoin speed if you notice it much, i have 1.5mb so i dont worry about it at all, but was saying that for the others not fortunate enough to have equiv or higher.
Posted Image

#7 lxtorrie

    QSS Opens

  • VIP
  • 724 posts
  • Gender:Male
  • Interests:Music: Slipknot, disturbed, FearFactory, etc<br />Cars: Definatly Old school muscle for sure.<br />Chillin with mates and meeting new ppl.<br />Graphic Designer

Posted 15 November 2007 - 03:03 PM

The php code i gave should not effect load time at all
biggrin.gif

#8 addikti0n

    QSS L Plater

  • Member
  • 53 posts
  • Gender:Female
  • Location:MiA

Posted 15 November 2007 - 03:38 PM

Yeh the change on refresh was what i meant.. not a banner that continually changes when ur on the same page smile.gif

Posted Image


``elektrO.....= <3


www.etstreet.com


#9 2JZZZZ

    QSS Veteran

  • Member
  • 2,904 posts
  • Gender:Male
  • Location:Cairns

Posted 15 November 2007 - 03:39 PM

whoa that went over my head.. but rotating banners wud b cool as

The guys going to think here's another kid using a fake ID or here's McLovin, the 25 year old Hawaiian organ donor. So what's it going to be? I am McLovin. No your not. No one's McLovin, McLovin's never existed because that's a made up, dumb, f**king fairy tale name you f**k


#10 qic04

    QSS P Plater

  • Member
  • 217 posts
  • Location:Townsville
  • Interests:Cars (all things they do), Girls (only 1 though), Computers (design, gaming), MOVIES!

Posted 23 November 2007 - 10:09 PM

f**k u are geek chris! hahaha I love it!!
car.... ford laser ke. b6t stocko conversion.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users