Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-04-04 21:28:38

SuperMAG
Member
Registered: 2010-04-04
Posts: 35

Hi, Just converted site from Wordpress to TXP. Need help on Stuff.

Well first i am not a coder, so don’t blame me for screwing the whole thing lol.

First of all, is there anybody who can convert a wordpress theme to textpattern. i still have 20 bucks in my paypal account if its worth it.

my wordpress theme is called silverlight, i edited it very very much, here is packed version if any one is intrested: http://sports2all.com/sitetools/files/silverlight.zip

If not then i have few stuff, that are important to solve.

Currently, i made a temporary version of my style, in which i added a lot of html content to the template etc just to get my site working, its mostly working actually except of few stuff which i am gonno mention after the code. this will look very very ugly.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

	<title><txp:page_title /></title>
	<txp:css format="link" />
	<txp:rsd />
</head>
<link rel="stylesheet" href="http://sports2all.com/sitetools/themefiles/headerfooter.css" type="text/css" media="screen" /> 
<div id="header"> 
<font face="Arial"> 
<img class="alignnone" title="Welcome To Sports2ALL.com" src="http://sports2all.com/sitetools/images/logo1.png" alt="" width="1050" height="93" /> 
</font> 
</div> 
<div id="ddnav"> 
<div id="nav"> 
<ul class="nav style1"> 

<li class="page_item page-item-63"><a href="http://sports2all.com" title="Home">Home</a></li> 
<li class="page_item page-item-609 current_page_item"><a href="http://sports2all.com/community/" title="Forum">Forum</a></li> 
<li class="page_item page-item-40"><a href="http://sports2all.com/chat/" title="Chat">Chat</a></li> 
<li class="page_item page-item-1010"><a href="http://sports2all.com/wrestling-live-streaming/" title="Wrestling Live Streaming">Wrestling Live Streaming</a></li> 
<li class="page_item page-item-598"><a href="http://sports2all.com/football-live-streaming/" title="Football Live Streaming">Football Live Streaming</a></li> 
<li class="page_item page-item-3053"><a href="http://sports2all.com/other-sports-live-streaming/" title="Other Sports Live Streaming">Other Sports Live Streaming</a></li> 
<li class="page_item page-item-77"><a href="http://sports2all.com/wrestling-replays/" title="Wrestling Replay’s">Wrestling Replay’s</a></li> 
<li class="page_item page-item-84"><a href="http://sports2all.com/wrestling-ppvs/" title="PPV’s">PPV’s</a></li> 
<li class="page_item page-item-1137"><a href="http://sports2all.com/wrestling-dvds/" title="DVD’s">DVD’s</a></li> 
<li class="page_item page-item-468"><a href="http://sports2all.com/extras/" title="Extras">Extras</a> 
<ul> 
	<li class="page_item page-item-1850"><a href="http://sports2all.com/extras/online-tv/" title="Online TV">Online TV</a></li> 
	<li class="page_item page-item-1855"><a href="http://sports2all.com/extras/music-songs/" title="Music/Songs">Music/Songs</a></li> 
	<li class="page_item page-item-1887"><a href="http://sports2all.com/extras/free-sms/" title="Free SMS">Free SMS</a></li> 
	<li class="page_item page-item-1859"><a href="http://sports2all.com/extras/online-games/" title="Online Games">Online Games</a></li> 
	<li class="page_item page-item-1875"><a href="http://sports2all.com/extras/sopcast-player/" title="SopCast Player">SopCast Player</a></li> 
	<li class="page_item page-item-1863"><a href="http://sports2all.com/extras/satellite-maps/" title="Satellite Maps">Satellite Maps</a></li> 
	<li class="page_item page-item-1839"><a href="http://sports2all.com/extras/rapidleech/" title="RapidLeech">RapidLeech</a></li> 
</ul> 
</li> 
<li class="page_item page-item-74"><a href="http://sports2all.com/contact/" title="Contact">Contact</a></li> 
</ul> 

</div> 
</div> 

<div id="top"></div> 
<div id="main"> 

<body id="<txp:if_section name="">front<txp:else /><txp:section /></txp:if_section>">


<!-- center -->

	<div id="content">

<div align="left" style="padding: 0px;padding-left: 0px;padding-bottom: 10px;">
<script type="text/javascript"><!--
google_ad_client = "pub-8997487508131027";
/* 728x90, created 2/2/09 */
google_ad_slot = "4505125677";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>

	<div class="entry">
	<div class="post">
<txp:if_category>
		<h2><txp:category title="1" /></h2>

		<div class="hfeed">
		<txp:article form="article_listing" limit="1" />
		</div>
<txp:else />

	<txp:if_search>
	</txp:if_search>
                <txp:article limit="1" />
		<p></p><div class="postmetadata">Posted by SuperMAG/Gambreaker with the help of all the Sports Fans.</div>

&nbsp; &nbsp;<script type="text/javascript">  linkscolor = "000000";  highlightscolor = "6666FF";  backgroundcolor = "FFFFFF";  channel = "none";   </script><script type="text/javascript" src="http://www.addmarx.com/dynamicbookmark_compressed.php"></script><span><a onClick="clickDynamic1(this); return false;" href="http://www.addmarx.com"><img style="padding:0px; margin:0px" src="http://www.addmarx.com/shareemaillinkbookmarx.png" border="0"></a></span><span style="position:absolute; z-index:1000001; margin-top:24px; margin-left:-201px; visibility:hidden;"><iframe id="addmarx_empty" scrolling="no" frameborder="0"></iframe></span>
</txp:if_category>

<txp:if_individual_article>

<txp:else />
</txp:if_individual_article>

	</div>
	</div> 
	</div> 

<!-- right-->
	<div id="sidebar">
	<div class="rsidebar"> 

<ul> 
			<li id="text-305715461" class="widget widget_text">						<div class="textwidget"><form action="http://sports2all.com/search-results/" id="cse-search-box"> 
  <div> 
    <input type="hidden" name="cx" value="partner-pub-8997487508131027:u2vrhcpzwef" /> 
    <input type="hidden" name="cof" value="FORID:10" /> 
    <input type="hidden" name="ie" value="UTF-8" /> 
    <input type="text" name="q" size="31" /> 
    <input type="submit" name="sa" value="Search" /> 
  </div> 
</form> 

<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en"></script></div> 
		</li> 
		<li id="text-305715463" class="widget widget_text">			<h2 class="widgettitle">Important Links</h2> 
			<div class="textwidget"><script type="text/javascript"><!--
google_ad_client = "pub-8997487508131027";
/* 300x250, created 10/27/08 */
google_ad_slot = "6414009769";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script> 
<script type="text/javascript"

src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> 
</script></div> 
		</li> 
		<li id="text-317544801" class="widget widget_text">			<h2 class="widgettitle">Subscribe to Site Announcements</h2> 
			<div class="textwidget"><form style="border:1px solid #ffffff;padding:3px;text-align:center;" action="http://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=Sports2All', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true"> 
  <input type="hidden" name="loc" value="en_US"/><input type="hidden" value="Sports2All" name="uri"/> 
  <p style="text-align: left">Enter your email address:</p> 
  <p style="text-align: left"> 
  <input type="text" style="width:195px" name="email" size="20"/><input type="submit" value="Subscribe" /></p> 
  <p style="text-align: left"><a href="http://feeds2.feedburner.com/Sports2All"> 
  <img border="0" src="http://www.feedburner.com/fb/images/pub/feed-icon32x32.png" width="32" height="32"></a> 
  <a href="http://www.addtoany.com/subscribe?linkname=Sports2All%20Site%20Announcements&amp;linkurl=http%3A%2F%2Ffeeds2.feedburner.com%2FSports2All"><img src="http://static.addtoany.com/buttons/subscribe_256_24.png" width="256" height="24" border="0" alt="Subscribe"/></a></p></form></div> 
		</li> 
		<li id="text-368812293" class="widget widget_text">			<h2 class="widgettitle">Subscribe / Dontions / Translate / Online</h2> 
			<div class="textwidget"><a href="http://www.facebook.com/pages/Sports2ALLcom/181272661398"><img src="http://botswanateenclub.files.wordpress.com/2009/10/join-our-facebook-group.jpg" border="0" alt="In Sports2ALL Facebook we will post all the quick announcements on Wall and big events on Events Page. It is also used as a Backup Website for Announcements when the Site is down. So make sure you are listed as a Fan so you don't miss anything." width="300" height="90" /></a> 
<br> 
<br /> 
<a href="http://twitter.com/Sports2all"><img src="http://nextbio.files.wordpress.com/2009/06/follow-us-on-twitter1.jpg" border="0" alt="In Sports2ALL Twitter will also have quick announcements like facebook, may be alot quicker, so please suscribe to us incase this site is down temporarly." width="300" height="110" /></a> 
<br> 
<br /> 

<form action="https://www.paypal.com/cgi-bin/webscr" method="post"> 
<input type="hidden" name="cmd" value="_s-xclick"> 
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----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UAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMDkwNjE0MTMxNzM5WjAjBgkqhkiG9w0BCQQxFgQUGaIf6wo+Jw1EWpPP/zgQ4TbquFIwDQYJKoZIhvcNAQEBBQAEgYBr3on+3h5zN3UPtk4Ykf+sJ97xZzBr14OKslKRT1pNRZ0u8INKBZGq1Uz8s0gDEX2bpIVSI39GsnpsTCp6Wvo4TtYF0mHG7LgzIgLWbfe2h9i2CK+fCIqxXQDy7vkGYFnlkxRzCHbQJRxeSnUmqaXuk72M2mw6tYx2/JY6w92ldg==-----END PKCS7-----"> 
<input type="image" src="http://i45.tinypic.com/muxw21.jpg" border="0" name="submit" alt="PayPal - The safer, easier way to pay online." width="300" height="79"> 
<img alt="" border="0" src="http://i45.tinypic.com/muxw21.jpg" width="1" height="1"> 
</form> 
<br> 
<object id="99counters134555" type="application/x-shockwave-flash" data="http://www.99counters.com/counters.swf?id=134555" width="300" height="200" wmode="transparent"><param name="movie" value="http://www.99counters.com/counters.swf?id=134555" /><param name="wmode" value="transparent" /> 
  <embed src="http://www.99counters.com/counters.swf?id=134555" type="application/x-shockwave-flash" wmode="transparent" width="300" height="200"></embed></object> 
<br /> 
<p></p> 
<iframe src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/translatemypage.xml&up_source_language=en&w=160&h=60&title=&border=&source=http%3A%2F%2Fsports2all.com%2F" width="160" height="60" frameborder="0" scrolling="no" style="display: block; " align="left"></iframe> 
&nbsp; &nbsp;<script type="text/javascript" src="http://widgets.amung.us/colored.js"></script><script type="text/javascript">WAU_colored('s7r9utkzgnwm', 'ffffff000000')</script></div> 
		</li> 
		</ul> 

	</div>
	</div>
	</div>

<!-- footer -->

<div id="footer"></div> 
<div id="footerbox"> 
<div class="footer"><font face="Arial" style="font-size: 9pt">Sports2ALL.com is powered by their Fans. <a href="http://sports2all.com/sitemap.xml" title="Sports2ALL SiteMap">SiteMap</a> / <a href="http://sports2all.com/forum/sitemap.xml" title="Forums SiteMap">ForumsMap</a>. Rules & Guidelines of Chat and Forums are <a href="http://sports2all.com/community/rules/">Here</a>. For Copyright Issues, Please Read our <a title="Copyright" href="http://sports2all.com/copyright/">Copyright Page</a>. <font color=#FFFFFF><script type="text/javascript" src="http://freeonlineusers.com/on2.php?id=109447"> </script> Users Online</font>.
</div>

</body>
</html>

First problem:

its the navigations links, i donno how to make them work, i mean this is a normal link:
<li class="page_item page-item-63"><a href="http://sports2all.com" title="Home">Home</a></li>

And this is the page which is opened link.
<li class="page_item page-item-63 current_page_item"><a href="http://sports2all.com" title="Home">Home</a></li>

The difference is that current_page_item, which makes the nav tab blue. making it look like that home page is open.

but how can i make this to work when like i open chat page, and then the chat nav tab gets blue. or in other words how can i add current_page_item to the link page which is open.

Thanks in advance.

Code display -Gocom

Last edited by Gocom (2010-04-04 21:47:08)

Offline

#2 2010-04-04 21:51:45

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Hi, Just converted site from Wordpress to TXP. Need help on Stuff.

SuperMAG wrote:

or in other words how can i add current_page_item to the link page which is open.

With a conditional tag that suits the page type:

Last edited by Gocom (2010-04-04 21:53:43)

Offline

#3 2010-04-05 05:33:47

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Hi, Just converted site from Wordpress to TXP. Need help on Stuff.

I regularly convert WP themes to Textpattern, in fact you could almost call it my day-job. If you want to get in touch email me at “stuart at thebombsite dot com” and I’ll get you sorted out.

Last edited by thebombsite (2010-04-05 05:34:30)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#4 2010-04-05 11:44:27

SuperMAG
Member
Registered: 2010-04-04
Posts: 35

Re: Hi, Just converted site from Wordpress to TXP. Need help on Stuff.

well i looked in the wiki alot before making a topic, but couldnt understood it. can you give me a head start.

and btw, how did u guys made that code thing in my post, is there any tag. usually punbb use bbcodes. but here it doesnt work.

stuart, i maild.

Offline

#5 2010-04-05 14:03:34

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.

SuperMAG wrote:

and btw, how did u guys made that code thing in my post, is there any tag. usually punbb use bbcodes. but here it doesnt work.

It’s Textile :) How do I post tags and code on the forum? (3rd FAQ). BTW, if you hit ‘Quote’ on your own post you can see it ;)

Last edited by els (2010-04-05 14:04:31)

Offline

#6 2010-04-05 21:30:23

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Hi, Just converted site from Wordpress to TXP. Need help on Stuff.

SuperMAG wrote:

head start.

Well, let’s say if the following link points to default section (also known as frontpage) you could do something like:

<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>

Last edited by Gocom (2010-04-05 21:31:46)

Offline

#7 2010-04-06 04:45:36

SuperMAG
Member
Registered: 2010-04-04
Posts: 35

Re: Hi, Just converted site from Wordpress to TXP. Need help on Stuff.

well i replaced that with this: <li class=“page_item page-item-63”><a href=“http://sports2all.com” title=“Home”>Home</a></li>

AND IT WORKED!!!

but i tired on other links, like forum, chat etc. can you give one example of the other link too, like for example: chat

<li class=“page_item page-item-40”><a href=“http://sports2all.com/chat/” title=“Chat”>Chat</a></li>

Thanks alot for you help.

Offline

#8 2010-04-06 04:59:34

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Hi, Just converted site from Wordpress to TXP. Need help on Stuff.

See if_section. Name attribute is the the name of the section.

<txp:if_section name="chat">
	True
<txp:else />
	False
</txp:if_section>

The other tag used, was <txp:site_url />. It just outputs the URL of the site.

Offline

#9 2010-04-06 05:36:52

SuperMAG
Member
Registered: 2010-04-04
Posts: 35

Re: Hi, Just converted site from Wordpress to TXP. Need help on Stuff.

Well i used this:

<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>

but it didnt work, probably because there is no section called chat, its just an article.

Offline

#10 2010-04-06 14:15:13

JanDW
Plugin Author
From: Providence, RI, USA
Registered: 2008-07-18
Posts: 327
Website

Re: Hi, Just converted site from Wordpress to TXP. Need help on Stuff.

You’ll probably want to create a section for chat + create a page that calls that article. If you really just want to link to an article (that’s assigned to a section/page already), you can reference the article by it’s ID. Something like:

<li class="page_item page-item-40"><txp:article_custom id="123"><permlink><txp:title /></permlink></txp:article_custom></li>

edit. changing the article ID to the relevant ID, of course

Last edited by JanDW (2010-04-06 14:24:04)


TXPDream – A Textpattern Tag Library for Adobe Dreamweaver. (updated for 4.2.0) | jdw_if_ajax – Only serve certain parts of a page when requested with AJAX

Offline

#11 2010-04-06 15:27:22

SuperMAG
Member
Registered: 2010-04-04
Posts: 35

Re: Hi, Just converted site from Wordpress to TXP. Need help on Stuff.

well i tried your code, and changed the id, the only thing that was shown in the menu area was the Chat. no link, not a tab.

i think we are closer to this, i mean i just have to use that gocom code:

<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>

but change the site_url to a way that it calls the chat article by its id. i dont know exactly how to do that.

And i dont understand about the section thing, i mean if i created a section, then i should assign the chat page to that section, is that it.

Offline

#12 2010-04-06 16:39:21

JanDW
Plugin Author
From: Providence, RI, USA
Registered: 2008-07-18
Posts: 327
Website

Re: Hi, Just converted site from Wordpress to TXP. Need help on Stuff.

What I was trying to say was: An article needs to be assigned to a section, and a section is assigned to a page: so if you want a http://yourdomain.ext/chat url, you would need to create a specific chat section, assign a page to that section (could be an existing page) and post the article there.

BTW I recommend you have a look at those links Els gave you on the semantic model as well as the tag reference

I’m not sure in what context your using this but a remark on the code you’re using: I think you want <txp:if_section name=“default”> wrapping around the list item, so you take out the whole list-item when it returns false.

<txp:if_section name="default">
<!--use article custom to get article by id-->
<txp:article_custom id="123">
<li class="page_item page-item-63">
<!-- permlink will return the link to the article, since we're in article custom context / <txp:title /> returns article title-->
<txp:permlink><txp:title /></txp:permlink>
</li>
</txp:article_custom>
</txp:if_section>

if you need the url to be of a different format you can also use permlink as a single tag :

<a href="<txp:permlink />" title="something"><txp:title /></a>

edit: fixed typo in link and closed permlink tag.

edit: closed <li> tag too and added a slash to close article custom, time for coffee

Last edited by JanDW (2010-04-06 16:51:31)


TXPDream – A Textpattern Tag Library for Adobe Dreamweaver. (updated for 4.2.0) | jdw_if_ajax – Only serve certain parts of a page when requested with AJAX

Offline

Board footer

Powered by FluxBB