Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2010-04-06 16:57:23
- SuperMAG
- Member
- Registered: 2010-04-04
- Posts: 35
Re: Hi, Just converted site from Wordpress to TXP. Need help on Stuff.
even though i couldnt understand anything from your last post. (lol sorry i am not a coder and not familier with textpattern at all lol)
but i did little thinking, i though that default was called because its a section, so i have to create 10 more sections and assign a page to it, so i just need to change that default to the section name and its done, i tested it and it worked.
Thanks alot guys, you guys are really helpfull.
Offline
#14 2010-04-06 17:25:15
- SuperMAG
- Member
- Registered: 2010-04-04
- Posts: 35
Re: Hi, Just converted site from Wordpress to TXP. Need help on Stuff.
Now few more problems:
1- By the doing all this tags etc, will it affect site speed or sever load.
<li class="page_item page-item-63<txp:if_section name="default"> current_page_item</txp:if_section>"><a href="<txp:site_url />" title="Home">Home</a></li>
<li class="page_item page-item-609"><a href="http://sports2all.com/community/" title="Forum">Forum</a></li>
<li class="page_item page-item-40<txp:if_section name="chat"> current_page_item</txp:if_section>"><a href="/chat/" title="Chat">Chat</a></li>
<li class="page_item page-item-1010<txp:if_section name="wrestling-live-streaming"> current_page_item</txp:if_section>"><a href="/wrestling-live-streaming/" title="Wrestling Live Streaming">Wrestling Live Streaming</a></li>
<li class="page_item page-item-598<txp:if_section name="football-live-streaming"> current_page_item</txp:if_section>"><a href="/football-live-streaming/" title="Football Live Streaming">Football Live Streaming</a></li>
<li class="page_item page-item-3053<txp:if_section name="other-sports-live-streaming"> current_page_item</txp:if_section>"><a href="/other-sports-live-streaming/" title="Other Sports Live Streaming">Other Sports Live Streaming</a></li>
<li class="page_item page-item-77<txp:if_section name="wrestling-replays"> current_page_item</txp:if_section>"><a href="/wrestling-replays/" title="Wrestling Replay’s">Wrestling Replay’s</a></li>
<li class="page_item page-item-84<txp:if_section name="wrestling-ppvs"> current_page_item</txp:if_section>"><a href="/wrestling-ppvs/" title="Wrestling PPV’s">PPV’s</a></li>
<li class="page_item page-item-1137<txp:if_section name="wrestling-dvds"> current_page_item</txp:if_section>"><a href="/wrestling-dvds/" title="Wrestling DVD’s">DVD’s</a></li>
<li class="page_item page-item-468<txp:if_section name="extras"> current_page_item</txp:if_section>"><a href="/extras/" title="Extras">Extras</a></li>
<li class="page_item page-item-74<txp:if_section name="contact"> current_page_item</txp:if_section>"><a href="/contact/" title="Contact">Contact</a></li>
2- And also i get something at the end of the source code, does it mean something:
<!-- Runtime: 0.0307 -->
<!-- Query time: 0.004949 -->
<!-- Queries: 13 -->
<!-- Memory: 3097Kb, <txp:title /> -->
<!-- txp tag trace:
[SQL (0.00184607505798): select name, data from txp_lang where lang='en-gb' AND ( event='public' OR event='common')]
[SQL (0.000324964523315): select name, code, version from txp_plugin where status = 1 AND type IN (0,1) order by load_order]
[SQL (0.000207185745239): select name,code,version from txp_plugin where status = 1 AND name='gbp_admin_library']
[SQL (0.000180959701538): select name, html as type from txp_prefs where event = 'permlinks' AND html <> 'gbp_partial']
[SQL (9.89437103271E-5): select page, css from txp_section where name = 'default' limit 1]
[SQL (0.000209093093872): select host from txp_log where ip='78.101.80.56' limit 1]
[SQL (0.000211954116821): select REPLACE(name, 'gbp_permanent_links_', '') AS id from txp_prefs where `event` = 'permlinks' AND `name` REGEXP '^gbp_permanent_links_.{13}$']
[SQL (0.000107049942017): select user_html from txp_page where name='default']
[Page: default]
<txp:page_title />
<txp:css format="link" />
<txp:rsd />
<txp:if_section name="default">
[<txp:if_section name="default">: true]
</txp:if_section>
<txp:site_url />
<txp:if_section name="chat">
[<txp:if_section name="chat">: false]
</txp:if_section>
<txp:if_section name="wrestling-live-streaming">
[<txp:if_section name="wrestling-live-streaming">: false]
</txp:if_section>
<txp:if_section name="football-live-streaming">
[<txp:if_section name="football-live-streaming">: false]
</txp:if_section>
<txp:if_section name="other-sports-live-streaming">
[<txp:if_section name="other-sports-live-streaming">: false]
</txp:if_section>
<txp:if_section name="wrestling-replays">
[<txp:if_section name="wrestling-replays">: false]
</txp:if_section>
<txp:if_section name="wrestling-ppvs">
[<txp:if_section name="wrestling-ppvs">: false]
</txp:if_section>
<txp:if_section name="wrestling-dvds">
[<txp:if_section name="wrestling-dvds">: false]
</txp:if_section>
<txp:if_section name="extras">
[<txp:if_section name="extras">: false]
</txp:if_section>
<txp:if_section name="contact">
[<txp:if_section name="contact">: false]
</txp:if_section>
<txp:if_section name="">
[<txp:if_section name="">: true]
</txp:if_section>
<txp:if_category>
[<txp:if_category>: false]
<txp:if_search>
[<txp:if_search>: false]
</txp:if_search>
<txp:article limit="1" />
[SQL (9.91821289062E-5): select name from txp_section where on_frontpage != '1']
[SQL (0.000416040420532): select count(*) from textpattern where 1=1 and Status = 4 and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') and Section != 'pages']
[SQL (0.000555992126465): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where 1=1 and Status = 4 and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') and Section != 'pages' order by Posted desc limit 0, 1]
[article 329]
[SQL (0.000150203704834): select Form from txp_form where name='default']
[Form: default]
<txp:if_individual_article>
[<txp:if_individual_article>: false]
<txp:permlink>
<txp:title />
</txp:permlink>
</txp:if_individual_article>
<txp:body />
</txp:if_category>
<txp:if_individual_article>
[<txp:if_individual_article>: false]
</txp:if_individual_article>
[ ~~~ secondpass ~~~ ]
-->
3- I have asy_jpcache: JPCache Integration plugin installed, how do i know its working.+
Offline
#15 2010-04-06 17:31:38
- SuperMAG
- Member
- Registered: 2010-04-04
- Posts: 35
Re: Hi, Just converted site from Wordpress to TXP. Need help on Stuff.
4- Where can i find a seo plugin that works with latest version, it seems that the core doesnt have anything like title,description,keywords for every page.
Offline
Re: Hi, Just converted site from Wordpress to TXP. Need help on Stuff.
I haven’t received your email.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#17 2010-04-06 18:21:31
- SuperMAG
- Member
- Registered: 2010-04-04
- Posts: 35
Re: Hi, Just converted site from Wordpress to TXP. Need help on Stuff.
i sent it, check you junk or bulk place.
Last edited by SuperMAG (2010-04-06 18:22:04)
Offline
#18 2010-04-06 18:35:48
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Hi, Just converted site from Wordpress to TXP. Need help on Stuff.
- Performance issues (I don’t think that’s such a heavy code you have there)
- It’s a tag trace, it will go away when you’ve put your site in live mode
- First read #1 and #2, then disable the plugin and look at the tag trace, enable it and look at the tag trace, is there a difference?
- Plugin: rah_metas, but you can also build the meta tags with native Txp tags
And nice to see that you’ve discovered Textile, but please don’t overdo it ;)
Last edited by els (2010-04-06 18:37:46)
Offline
#19 2010-04-06 19:46:53
- SuperMAG
- Member
- Registered: 2010-04-04
- Posts: 35
Re: Hi, Just converted site from Wordpress to TXP. Need help on Stuff.
1- thanks
2- thanks again
3- well this one i cant find it out, there is no refference to cache at all both enabled or disabled.
4- thanks again haha
Last edited by SuperMAG (2010-04-06 19:49:00)
Offline
#20 2010-04-06 19:55:23
- SuperMAG
- Member
- Registered: 2010-04-04
- Posts: 35
Re: Hi, Just converted site from Wordpress to TXP. Need help on Stuff.
wait, there are some stuff in the tag trace, most of them are showing false, does it mean something:
<txp:if_section name="default">
[<txp:if_section name="default">: true]
</txp:if_section>
<txp:site_url />
<txp:if_section name="chat">
[<txp:if_section name="chat">: false]
</txp:if_section>
<txp:if_section name="wrestling-live-streaming">
[<txp:if_section name="wrestling-live-streaming">: false]
</txp:if_section>
<txp:if_section name="football-live-streaming">
[<txp:if_section name="football-live-streaming">: false]
</txp:if_section>
<txp:if_section name="other-sports-live-streaming">
[<txp:if_section name="other-sports-live-streaming">: false]
</txp:if_section>
<txp:if_section name="wrestling-replays">
[<txp:if_section name="wrestling-replays">: false]
</txp:if_section>
<txp:if_section name="wrestling-ppvs">
[<txp:if_section name="wrestling-ppvs">: false]
</txp:if_section>
<txp:if_section name="wrestling-dvds">
[<txp:if_section name="wrestling-dvds">: false]
</txp:if_section>
<txp:if_section name="extras">
[<txp:if_section name="extras">: false]
</txp:if_section>
<txp:if_section name="contact">
[<txp:if_section name="contact">: false]
</txp:if_section>
<txp:if_section name="">
[<txp:if_section name="">: true]
</txp:if_section>
<txp:if_category>
[<txp:if_category>: false]
<txp:if_search>
[<txp:if_search>: false]
</txp:if_search>
Offline
Re: Hi, Just converted site from Wordpress to TXP. Need help on Stuff.
Not unless they should be true. You have a lot of “conditional” tags in there (tags that ask “if”). So certain of these tags will return “true” but others will return “false”. In this bit of the code:-
<txp:if_section name="default"> [<txp:if_section name="default">: true] </txp:if_section>
you have asked if we are looking at the default section, the answer is “true”, yes we are looking at the default section. Now if that is the case then any other <txp:if_section>
tags asking about other sections will return “false” because we are looking at the default section.
So having “false” values isn’t a problem in itself. It is only a problem if the answer should be “true” which is why we have this facility. If something isn’t working properly for us we can check through the tag trace and maybe find out exactly where the problem is occurring.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#22 2010-04-06 20:50:39
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Hi, Just converted site from Wordpress to TXP. Need help on Stuff.
No, that doesn’t mean anything, except that you can see that the check for which section you are in is done properly. If one of the conditions is true (if_section name="default"
) then logically all other conditional tags should return false.
You only need the actual tag trace when things don’t work as expected.
Sorry if I wasn’t clear. What I meant was rather this part (on top of the tag trace):
<!-- Runtime: 0.0307 --> <!-- Query time: 0.004949 --> <!-- Queries: 13 -->
I’m not an expert but these times don’t look wrong to me. I thought enabling and disabling the asy_jpcache plugin would show a difference there, but I may be wrong, I’ve never used the plugin myself.
edit: …late again ;)
Last edited by els (2010-04-06 20:51:13)
Offline
#23 2010-04-06 20:55:57
- SuperMAG
- Member
- Registered: 2010-04-04
- Posts: 35
Re: Hi, Just converted site from Wordpress to TXP. Need help on Stuff.
ok thanks both of you. i understood properly.
Offline
#24 2010-04-07 16:43:00
- SuperMAG
- Member
- Registered: 2010-04-04
- Posts: 35
Re: Hi, Just converted site from Wordpress to TXP. Need help on Stuff.
Edit: Never mind fixed.
Last edited by SuperMAG (2010-04-07 17:06:02)
Offline