Welcome, Guest. Please login or register.
September 09, 2010, 11:02:03 AM
Home Help Search Login Register
News: QuipTracks.com | "Dragonball Evolution" now available! | Look for us on Facebook! | Check out QuipTracks: The Blog! | A  stream of funny: QuipTracks: the Twit!

+  QuipTracks
|-+  Support
| |-+  Forum Issues
| | |-+  No beef.
« previous next »
Pages: [1] Print
Author Topic: No beef.  (Read 634 times)
soiledshortz
Electrical-powered bastard
*
Posts: 10



View Profile WWW
« on: October 22, 2008, 10:53:20 PM »

No beef here, as I have still relentlessly been asking where it is...

I do have a question though, and it isn't so much about the forum. It is more of a curiosity. I like your website design and have been working on one of my own. I really like your banner at the top of the page that has different lines of dialog on it whenever you refresh. How is this performed? And I swear if someone says witchcraft I will be forced to turn them into a newt.

Thanks,
~Byron
Soiled Shortz
Logged

The Don
Guest
« Reply #1 on: October 23, 2008, 06:50:52 AM »

It is not witchcraft there is no such thing.

It is hacksors.
Logged
Asbestos Bill
Riffer
Administrator
Madam Narf
******
Posts: 315



View Profile
« Reply #2 on: October 24, 2008, 11:33:04 AM »

Good question. I'm guessing JavaScript, but Kevin's the one who set it up. I'll tell him you asked...
Logged

The Don
Guest
« Reply #3 on: October 25, 2008, 11:14:01 AM »

Nope like i said it is hacksors.
Logged
Asbestos Bill
Riffer
Administrator
Madam Narf
******
Posts: 315



View Profile
« Reply #4 on: October 26, 2008, 07:15:42 AM »

Do you mean H4X0RZ?
Logged

The Don
Guest
« Reply #5 on: October 26, 2008, 04:07:34 PM »

Aye that it be. All your computers are belong to me nows.
Logged
throom
Riffer, Webmaster
Administrator
One of the Expendable Brothers
******
Posts: 31


Laceless shoe enthusiasts untie!


View Profile
« Reply #6 on: October 29, 2008, 01:47:24 PM »

Actually it is PHP.

Zencart uses a bunch of PHP constants to build each page. It also lets you create modified copies of the pages that set those constants. I made a copy of the header.php page and put this PHP code in it so that every time a page loads it randomly selects a phrase to set HEADER_SALES_TEXT to. Zencart then builds the phrase into the page.

  switch(rand(1,16))
  {
  case 1:
define('HEADER_SALES_TEXT', 'Children in starving countries would love the chance to dowload QuipTracks. <br/>Now listen and be happy about it!');
    break;
  case 2:
    define('HEADER_SALES_TEXT', 'Like retreads for movies.');
    break;
  case 3:
    define('HEADER_SALES_TEXT', 'Behold our mighty stockpiles of Smart-Ass!');
    break;
  case 4:
    define('HEADER_SALES_TEXT', 'Leaves hair shiny and more manageable.');
    break;
  case 5:
    define('HEADER_SALES_TEXT', 'Little. Yellow. Different.');
    break;
  case 6:
    define('HEADER_SALES_TEXT', 'Make a -4 saving throw to avoid laughter.');
    break;
  case 7:
    define('HEADER_SALES_TEXT', 'Ask about our painful rectal itch.');
    break;
  case 8:
    define('HEADER_SALES_TEXT', 'Like watching a movie with big-mouthed friends...<br/>but fun!');
    break;
  case 9:
    define('HEADER_SALES_TEXT', 'Funnier than The Ritz Brothers! <br/>(And considerably less dead.)');
    break;
  case 10:
    define('HEADER_SALES_TEXT', 'All bobble-heads must die!');
    break;
  case 11:
    define('HEADER_SALES_TEXT', 'Who is DOD and why did he send us <br/>these nuclear missle triggers?');
    break;
  case 12:
    define('HEADER_SALES_TEXT', 'Graffiti for the brain.');
    break;
  case 13:
    define('HEADER_SALES_TEXT', 'Short bus on the humor highway.');
    break;
  case 14:
    define('HEADER_SALES_TEXT', 'In the cartoon-shaped chewable vitamins of entertainment, <br/>we are the little packet of desiccant. <br/>(You know, that thing that says DO NOT EAT.)');
    break;
  case 15:
    define('HEADER_SALES_TEXT', 'Laugh, damn you, laugh!');
    break;
  case 16:
    define('HEADER_SALES_TEXT', 'All the world is a stage, <br/>and we\'re in the front row <br/>with rotten cabbages and tomatoes.');
    break;
  }


Note that it would be better to have this read a random phrase from the database but I was in a hurry so I did it this way. Smiley
Logged
soiledshortz
Electrical-powered bastard
*
Posts: 10



View Profile WWW
« Reply #7 on: December 02, 2008, 12:15:15 AM »

That's pretty cool!
Logged

Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!