July 14, 2024, 08:06:39 PM
Forum Rules: Read This Before Posting


Topic: New Random Featured Book Block  (Read 19557 times)

0 Members and 1 Guest are viewing this topic.

Offline Mitch

  • General Chemist
  • Administrator
  • Sr. Member
  • *
  • Posts: 5298
  • Mole Snacks: +376/-3
  • Gender: Male
  • "I bring you peace." -Mr. Burns
    • Chemistry Blog
New Random Featured Book Block
« on: December 12, 2005, 01:49:10 AM »
The Journal of Chemical Education has been reviewing books for Chemists and chemical enthusiasts for several years now. I've added the past 2 years worth of interesting titles from their list to the featured book block on your left. I wrote the code by hand and I am very happy with the way it looks. The block will show a  random book from the current collection of 60 titles, you can expect me to add some more when I have free time x-mas break.

Although I don't like advertisements in general, I think the block does a succesful job staying out of the way of regulars and being highly-visible to the guests. Plus, I just like clicking refresh to see which one will pop up next. Anyways, just wanted to introduce the new addition.
Most Common Suggestions I Make on the Forums.
1. Start by writing a balanced chemical equation.
2. Don't confuse thermodynamic stability with chemical reactivity.
3. Forum Supports LaTex

Offline Mitch

  • General Chemist
  • Administrator
  • Sr. Member
  • *
  • Posts: 5298
  • Mole Snacks: +376/-3
  • Gender: Male
  • "I bring you peace." -Mr. Burns
    • Chemistry Blog
Re:New Random Featured Book Block
« Reply #1 on: December 12, 2005, 03:31:33 AM »
78 ;)
Most Common Suggestions I Make on the Forums.
1. Start by writing a balanced chemical equation.
2. Don't confuse thermodynamic stability with chemical reactivity.
3. Forum Supports LaTex

Offline billnotgatez

  • Global Moderator
  • Sr. Member
  • ***
  • Posts: 4413
  • Mole Snacks: +223/-62
  • Gender: Male
Re:New Random Featured Book Block
« Reply #2 on: December 12, 2005, 07:54:45 AM »
Is there going to be a way to see the whole list.

Offline movies

  • Organic Minion
  • Retired Staff
  • Sr. Member
  • *
  • Posts: 1973
  • Mole Snacks: +222/-21
  • Gender: Male
  • Better living through chemistry!
Re:New Random Featured Book Block
« Reply #3 on: December 12, 2005, 12:12:06 PM »
I had just noticed that the book thingy was changing.  I think it's great!!

What would be really neat would be if you could link to the J. Chem. Ed. reviews from that box too.  Is there any way to do that?

Offline Mitch

  • General Chemist
  • Administrator
  • Sr. Member
  • *
  • Posts: 5298
  • Mole Snacks: +376/-3
  • Gender: Male
  • "I bring you peace." -Mr. Burns
    • Chemistry Blog
Re:New Random Featured Book Block
« Reply #4 on: December 12, 2005, 01:23:35 PM »
billnotgatez: Although we don't have competitors parse, I don't want to make their life easier. You can always click refresh or go to the journal and read through the articles. :)

movies: Good idea. I would set it up, but most people wouldn't have access anyways.
« Last Edit: December 12, 2005, 01:28:13 PM by Mitch »
Most Common Suggestions I Make on the Forums.
1. Start by writing a balanced chemical equation.
2. Don't confuse thermodynamic stability with chemical reactivity.
3. Forum Supports LaTex

Offline Mitch

  • General Chemist
  • Administrator
  • Sr. Member
  • *
  • Posts: 5298
  • Mole Snacks: +376/-3
  • Gender: Male
  • "I bring you peace." -Mr. Burns
    • Chemistry Blog
Re:New Random Featured Book Block
« Reply #5 on: December 12, 2005, 01:25:53 PM »
Hmmm, apparently you can read them if you don't have a subscription. I'll make the "read more" link forward to the appropriate review, but not today. I'll post in this thread after I finish doing that for the 78 titles now listed. ::sigh::
Most Common Suggestions I Make on the Forums.
1. Start by writing a balanced chemical equation.
2. Don't confuse thermodynamic stability with chemical reactivity.
3. Forum Supports LaTex

Offline Borek

  • Mr. pH
  • Administrator
  • Deity Member
  • *
  • Posts: 27736
  • Mole Snacks: +1804/-411
  • Gender: Male
  • I am known to be occasionally wrong.
    • Chembuddy
Re:New Random Featured Book Block
« Reply #6 on: January 15, 2006, 04:19:31 PM »
Is iframe forced by amazon? Or was it your selection?

BTW: I took a look at the page code - are you preparing UTF-8 files with Windows noetpad?
ChemBuddy chemical calculators - stoichiometry, pH, concentration, buffer preparation, titrations.info

Offline Mitch

  • General Chemist
  • Administrator
  • Sr. Member
  • *
  • Posts: 5298
  • Mole Snacks: +376/-3
  • Gender: Male
  • "I bring you peace." -Mr. Burns
    • Chemistry Blog
Re:New Random Featured Book Block
« Reply #7 on: January 15, 2006, 06:14:17 PM »
I don't use the code Amazon gives, I wrote my own. But, Amazon usually keeps their ads in iframes. The reason I'm using iframes now, which wasn't how I use to do it, is so that the forum software isn't bogged down by reading 1000s lines of code. So, I keep the code for the random feature block, still on the server(mitch.chemicalforums.com), but not on the forum. If you need the code let me know.

I don't know what UTF-8 is, but if you recognize the formatting, it must be the way Amazon encodes their affiliate links.
Most Common Suggestions I Make on the Forums.
1. Start by writing a balanced chemical equation.
2. Don't confuse thermodynamic stability with chemical reactivity.
3. Forum Supports LaTex

Offline Borek

  • Mr. pH
  • Administrator
  • Deity Member
  • *
  • Posts: 27736
  • Mole Snacks: +1804/-411
  • Gender: Male
  • I am known to be occasionally wrong.
    • Chembuddy
Re:New Random Featured Book Block
« Reply #8 on: January 15, 2006, 06:40:05 PM »
I don't use the code Amazon gives, I wrote my own. But, Amazon usually keeps their ads in iframes. The reason I'm using iframes now, which wasn't how I use to do it, is so that the forum software isn't bogged down by reading 1000s lines of code. So, I keep the code for the random feature block, still on the server(mitch.chemicalforums.com), but not on the forum. If you need the code let me know.

I am thinking about becoming Amazon affiliate one day and I wonder how the urls look alike - and what does Amazon provide (picture?). But I even didn't bothered to sign and read about the code yet.

If you are ready to share the code - I will be happy to look at it :)

Quote
I don't know what UTF-8 is, but if you recognize the formatting, it must be the way Amazon encodes their affiliate links.

UTF-8 is a way of encoding unicode characters in text files (well, perhaps that's not the correct way of stating it, but I don't mind). W2K notepad adds some formatting characters at the beginning of the UTF-8 files and they are later often misinterpreted by browsers - I thought that's what I was seeing; but in this case everything is OK - I have just realized that the W2K Wordpad is stupid and doesn't recognize UTF-8 properly. What I have seen displayed as trash were bullets from the left menus.

You, Americans, are not aware of such things - you don't use characters like ??ó??? when writing, for your simple language 96 ASCII characters are enough ;)
« Last Edit: January 15, 2006, 06:41:44 PM by Borek »
ChemBuddy chemical calculators - stoichiometry, pH, concentration, buffer preparation, titrations.info

Offline Mitch

  • General Chemist
  • Administrator
  • Sr. Member
  • *
  • Posts: 5298
  • Mole Snacks: +376/-3
  • Gender: Male
  • "I bring you peace." -Mr. Burns
    • Chemistry Blog
Re:New Random Featured Book Block
« Reply #9 on: January 15, 2006, 06:53:00 PM »
Code is in the Staff Forum ;)
Most Common Suggestions I Make on the Forums.
1. Start by writing a balanced chemical equation.
2. Don't confuse thermodynamic stability with chemical reactivity.
3. Forum Supports LaTex

Offline Mitch

  • General Chemist
  • Administrator
  • Sr. Member
  • *
  • Posts: 5298
  • Mole Snacks: +376/-3
  • Gender: Male
  • "I bring you peace." -Mr. Burns
    • Chemistry Blog
Re:New Random Featured Book Block
« Reply #10 on: January 17, 2006, 02:12:25 AM »
If you are ready to share the code - I will be happy to look at it :)UTF-8 is a way of encoding unicode characters in text files (well, perhaps that's not the correct way of stating it, but I don't mind). W2K notepad adds some formatting characters at the beginning of the UTF-8 files and they are later often misinterpreted by browsers - I thought that's what I was seeing; but in this case everything is OK - I have just realized that the W2K Wordpad is stupid and doesn't recognize UTF-8 properly. What I have seen displayed as trash were bullets from the left menus.

You, Americans, are not aware of such things - you don't use characters like ??ó??? when writing, for your simple language 96 ASCII characters are enough ;)

Better?
Most Common Suggestions I Make on the Forums.
1. Start by writing a balanced chemical equation.
2. Don't confuse thermodynamic stability with chemical reactivity.
3. Forum Supports LaTex

Offline Borek

  • Mr. pH
  • Administrator
  • Deity Member
  • *
  • Posts: 27736
  • Mole Snacks: +1804/-411
  • Gender: Male
  • I am known to be occasionally wrong.
    • Chembuddy
Re:New Random Featured Book Block
« Reply #11 on: January 17, 2006, 04:05:02 AM »
Better?

You mean - with dashes instead of bullets? Well it looks as good as previous version, just the code looks better under Wordpad. I dont' suppose many peaople will check that feature :)

BTW: why these side menus are not done as unordered lists? They will be bulleted in a more natural way.

Speaking about UTF-8 and bullets... What code do you use for symbols near "previous - next" (visible in bottom right corner when you read any thread)? My Opera displays them as question marks.
ChemBuddy chemical calculators - stoichiometry, pH, concentration, buffer preparation, titrations.info

Offline Mitch

  • General Chemist
  • Administrator
  • Sr. Member
  • *
  • Posts: 5298
  • Mole Snacks: +376/-3
  • Gender: Male
  • "I bring you peace." -Mr. Burns
    • Chemistry Blog
Re:New Random Featured Book Block
« Reply #12 on: January 17, 2006, 05:09:45 AM »
The block code for menus isn't a simple html file, its rather complicated.

As for the question marks, they look like question marks to me too. :P
« Last Edit: January 17, 2006, 05:10:31 AM by Mitch »
Most Common Suggestions I Make on the Forums.
1. Start by writing a balanced chemical equation.
2. Don't confuse thermodynamic stability with chemical reactivity.
3. Forum Supports LaTex

Offline Donaldson Tan

  • Editor, New Asia Republic
  • Retired Staff
  • Sr. Member
  • *
  • Posts: 3177
  • Mole Snacks: +261/-13
  • Gender: Male
    • New Asia Republic
Re:New Random Featured Book Block
« Reply #13 on: January 29, 2006, 03:58:30 AM »
for some reason, the picture of the books no longer appear.

i can only read the title. I am using firefox 1.5 btw.
"Say you're in a [chemical] plant and there's a snake on the floor. What are you going to do? Call a consultant? Get a meeting together to talk about which color is the snake? Employees should do one thing: walk over there and you step on the friggin� snake." - Jean-Pierre Garnier, CEO of Glaxosmithkline, June 2006

Offline Mitch

  • General Chemist
  • Administrator
  • Sr. Member
  • *
  • Posts: 5298
  • Mole Snacks: +376/-3
  • Gender: Male
  • "I bring you peace." -Mr. Burns
    • Chemistry Blog
Re:New Random Featured Book Block
« Reply #14 on: March 24, 2006, 10:53:33 PM »
157 books in the random book list now. :)
Most Common Suggestions I Make on the Forums.
1. Start by writing a balanced chemical equation.
2. Don't confuse thermodynamic stability with chemical reactivity.
3. Forum Supports LaTex

Sponsored Links