Spinformat posting

  • Автор темы Автор темы kandor
  • Дата начала Дата начала

kandor

Client
Регистрация
30.01.2011
Сообщения
29
Реакции
0
Баллы
0
Hi

I been playing with the macro settings and Regex and all works very well.

But I have encountered an issue that I hope someone can help

At the moment I am parsing with regex to get a title from an article txt file

I have

<title>{Shalom or should I say hi|New day and I like to say {Hello|Howdy|Hi}}</title>

I am using this macro to get the title

{-File.GetString-|-C:\articles\aros.txt-|-random-|-false-|-(?<=\<title\>).*(?=\<\/title\>)-}

But this will essentially posts a title like this on the site I am trying to post to:

{Shalom or should I say hi|New day and I like to say {Hello|Howdy|Hi}}

How would I make zennoposter to actually post a variant and not all this line to the site?

Greatly appreciate help with this task.

Best,
Kandor
 
You need use this marcos {-String.Split-|-variant 1|variant 2|variant 3-|-|-|-random-} for split variants, demo:
{-String.Split-|-Shalom or should I say hi|New day and I like to say-|-|-|-random-} {-String.Split-|-Hello|Howdy|Hi-|-|-|-random-}

CSS.
 
I take it that this won't work with nested spins.

Best,
Kandor
 
Would be a great feature to see in new version of Zennoposter.

As we all use it for different seo tasks it kind of makes sense to have full spinn support without the need of using Regex for the spinning bart at all and full support for nested spins.

Best,
Kandor
 
So there's no way of using spinned text (like from TBS) within a TXT-file ?!
I always have to create a String.Split ??
 
Simple spins you can run with Regex

But nested spins won't work.

Best,
Kandor
 
Having some kind of spin function would be really helpful.
 
To handle nested spins you need to recursively call your Regex until you've unspun all the spintax. Not sure if this is possible using macros. Should be easy to implement with javascript though.
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)