Halfagain IM Forums
February 10, 2012, 04:13 *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Due to increasing spam we are forced to make this forum "Read Only". If you have an issue, most likely was discussed here. Use the Search function and try to find related discussions. If you can't find any helpful information, just email support at halfagain dot com"
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Shuffle Sense Blocks... before or after ???  (Read 494 times)
0 Members and 1 Guest are viewing this topic.
Brainwrek
Newbie
*

Karma: 10
Offline Offline

Posts: 12


« on: March 31, 2007, 00:00 »

I'm thinking about purchasing CS, but I need to know when the sense blocks are shuffled... before or after the variables are populated?

For example... I want the *same* NAME to appear in all sense blocks.

So let's say I have the following sense blocks:

[Name] is a [cool] guy.
[Name^prev] [likes] [dogs].
[Name^prev] hates [cats].

But... how does this work if I shuffle the sense blocks?  If the shuffle occurs after the variables are populated, then (I think) it should work fine.  But if the shuffle occurs before the variables are filled in, then the [Name^prev] variable won't refer to anything, and it will break.  Right?

ALSO...

Is it possible to refer to a variable that is originally set in the RSS title sense blocks?  And then have that variable carried into the body of the article?

For example the RSS title would be:

[Name] is a [cool] guy.

And then the article sense blocks would be:

[Name^prev] [likes] [dogs].
[Name^prev] hates [cats].
[Name^prev] is a  [zodiac sign].

I hope it can work this way, because if it will, then CS is EXACTLY what I'm looking for!
Logged
Omar
Here to help.
Administrator
Hero Member
*****

Karma: 10001
Offline Offline

Posts: 2687


« Reply #1 on: March 31, 2007, 09:04 »

You already purchased, so it does that Smiley

I know i already gave you an answer on email, but i will post that all here, maybe other people will be inetretsed in. Feel free to post any news about how that works for you.

Shuffle get occur before variables get replaced, so having the kind of structure you said it can get project broken. However, there are some tricks. Something you can do about this would be to use complete blocks, that use both variable initialisation and the other uses. Like:

[Name] is a [cool] guy. [Name^prev] [likes] [dogs]. [Name^prev] hates [cats].
[Name] is a [bad] guy. [Name^prev] [hates] [basket]. [Name^prev] loves [soccer].

Also, a variable can be carried over from rss title blocks. So if all titles blocks has some variable that is later used with ^last or ^prev, then you can do shuffle because variable was initialised in title.
Logged
Brainwrek
Newbie
*

Karma: 10
Offline Offline

Posts: 12


« Reply #2 on: April 03, 2007, 08:12 »

Thank you Omar.  By setting the variable in the title, I can do *exactly* what I want to do.  CS is an incredible script.  I'm not sure people realize how powerful this thing really is.  Wow!

I'm a happy customer.

Can't wait to see the new version.  Smiley
Logged
Pages: [1]
  Print  
 
Jump to:  

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