1 (edited by 2009-02-26 16:41:21)

Topic: [HACK] Alternating templates

Name: Alternating templates
CuteNews Compatibility: 1.3.6 - * (no incompatibility reported yet)
Description: Use different css styles for odd and even articles. A long time ago this has been discussed. No it has made it's way to the FAQ/HACK forum
Requirements: CSS knowledge
in shows.inc.php find

$output = $template_active;

add below

$output = str_replace("{alternating}", $showed%2, $output);

$showed%2 is a mathematical function. in this case the result can be 0 or 1. You may replace the 2 with a 3 if you wish to alternate between 3 themes. In accordance the results of the math will be 0, 1 or 2. Read more...
And this is all you need to change to the CuteNews code.

Now you can use the tag in the templates like

<div name="mycss{alternating}">

So when displaying the articles on your site the code for the first article will be

<div name="mycss0">

for the second

<div name="mycss1">

and for the third

<div name="mycss0">

So all that is left is to write your css codes.
Do note that css does NOT belong in the templates.

Re: [HACK] Alternating templates

Valentin Palmer from Wyoming was looking for essay mockingbird symbol

Ryan Olson found the answer to a search query essay mockingbird symbol



essay interview sample
greek culture essays
free answer to homework questions
french passe compose essayer
essay for law school
essay meaning in hindi
forklift operator job description for resume
format of a persuausive essay
foundation coordinator cover letter
executive mba application essays
festival essayages les vans
essays on george orwell shooting an elephant
example cover letter management
fresher resume format for commerce
essay customer service
essay on recruitment
estate agent resume sample
essays appendices
get live homework help
good resume cv
essay game god in man performance play
free essays written by high school students
harvard thesis writing style
essay on a man epistle 1
free best resume format freshers
essay on personal branding
essay on suryakant tripathi nirala in hindi
graph based image segmentation thesis
free resume and cover letters templates
essay on testicular cancer
essay social
free design engineer resume examples
example of a rogerian essay
essay points on friendship
good resume objectives for apprenticeship
examples of an expository essay introduction
example of a good comparison essay
essay morning walk hindi language
essay anger bacon
essays on home cooking
essay trees our best friend english
essay on developing road safety culture
good resume skill list
essay on internet safety
essay holiday spm
examples of essay questions
essay about the youth
great personal narrative essays
essay topics for invisible man
examples of essay to apply for university
health care cover letter samples
essay on white noise by don delillo
essay on manpoer planning
free essay 1984 george orwell
good research paper topics edgar allan poe
essay on faith will move mountains
essay on my favourite subject for kids
essay on voice recognition
fomat of resume
essay about foreign labour in malaysia
essay writting in english
essay for orchestra op 12 atlanta symphony orchestra
essay on learning service
good cover letter for a receptionist job
ethics in writing a research paper
essay on dussehra festival in english for kids
essays writers websites uk

descriptive essay topics
write my research paper
do my homework

evolution of management research paper
group coordinator resume
essays on discipline in students life
example of an analysis of an argument essay
essay style outline format
free cover letter examoles

Re: [HACK] Alternating templates

Dale Payne from Vancouver was looking for apsa migration and citizenship section best dissertation award

Darren Dunn found the answer to a search query apsa migration and citizenship section best dissertation award

apsa migration and citizenship section best dissertation award


bilingual receptionist resume examples
4000 word essay tips
best course work ghostwriters site au
australian institute of administrative law national essay prize
apa style for website citation
best friend influence essay
assistance for thesis statement
best papers ghostwriting sites for masters
best creative essay writing service for phd
booster juice business plan template
best websites to help with homework
aol com juno com netscape net resume
an essay on the druids the ancient churches and the round towers of ireland
best argumentative essay writer site for masters
air pollution kids essay
apa format in text citation government website
anyone used dissertation writing service
best research paper ghostwriter sites online
boeing cover letter
aqa pe a level coursework
babylon revisited research paper
1 fixed vista s3 resume sometimes failed
best dissertation conclusion writer for hire gb