How to choose random theme in wordpress.com blogs?

Регистрация
15.09.2011
Сообщения
5
Благодарностей
0
Баллы
0
Hi.

I create template to register and create blog with some posts in wordpress.com, but I can't teach Zenno how to choose random blog theme.


Thanks for help.
 

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
834
Баллы
113
Since I have not been using WP for a while, would be better if you explain from which elements should you choose it.
 
Регистрация
15.09.2011
Сообщения
5
Благодарностей
0
Баллы
0
I want choose one random theme from marked in this image
wp-zenno.jpg
 

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
834
Баллы
113
1. Open branch builder in projectmaker
2. Find all these images by one search criteria (height for example.)
3. And make rise click on it.
4. In match field put macro random from 0 to (count of images-1)
 
Регистрация
15.09.2011
Сообщения
5
Благодарностей
0
Баллы
0
Thats works.

Thats works great. Thanks. :-)
 

joma

Client
Регистрация
06.03.2011
Сообщения
107
Благодарностей
13
Баллы
0
Посмотреть вложение installthemes_cb.xml Another option is to write a bunch of themes names u like into a text file per line, then do the bot and pull a random line (theme name) into the search box on the install themes page. then activate it. u can mess around with that one let me know if u need help geting it working ... just check fiel paths etc..
 

technik-trick

Новичок
Регистрация
26.09.2011
Сообщения
7
Благодарностей
0
Баллы
0
@Bulldozer: This one is driving me crazy.. I´m not able to handle the branch creator. Could you please give us a step by step guide what exactly to do in branch creator.
2. Find all these images by one search criteria (height for example.)
Thank you much
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
683
Баллы
113
It's easy. I was going to put up a vid to show you how to handle it, but my stupid computer at work just can't handle Camtasia real well. You could do this a few ways, all using the power of the ProBranchConstructor.

Now you could do like HB says and choose a random theme by using the image height. One problem with this. Wordpress will usually throw up a couple of paid themes on the page and if your random selection hits one of those, your template will fail because you are taken to a purchase page instead of your blog.

The other way is to have a list of the wordpress themes in a text file and randomly pull up one of the names out of there and use it. In this case you would have to use the OuterHtml element to find the theme. You would also have to make sure that you chose either match #0 or #1 because match #2 will just give you a preview. There is a problem with this method also. Since WP shows random themes on the page, there is no telling if the one that was chosen out of the text file is actually shown on the page. If not, the template will throw an error.

The best way is to find something that is on the page and will be there no matter what template shows and is not part of the paid templates. In this case if you look at the outertext element on all the free themes, you will find the element is Activate. The paid themes element is Purchase. So you would choose one of the activate buttons, right click on it and choose outertext as the attribute name and Activate as the attribute value. If you hit the search button you will find there are 24 matches on the page. Choose one of them. Choose Rize and then click and copy to template. When you get your template in the template editor, in the element properties box, use the random Macro from 0-25 and your template will choose a random theme from the page.
 

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