Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-09-16 00:47:55

helmz
Member
Registered: 2010-09-14
Posts: 65

General help

Hi guys, im new in textpattern, and after 2 days I finally think i need help… first of all i started without using anything of default page, so i made it. All ok but, now i need to make 2 text zones modificables by an admin, with a rss related to them. I dont know how to do that with Textpattern code. I also need to change and image every 5 seconds and be able to see them like a lightbox. The last thing i need to know is how to make something to open a text linked as a lightbox too. Thanks guys, help me as soon as you can, im sorry but i havent experience with textpattern and dont know how to do everything, thanks again.

Offline

#2 2010-09-16 11:33:41

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: General help

helmz wrote:

I need to make 2 text zones modificables by an admin, with a rss related to them.

Describe in more detail, please. The first part sounds like static blocks of text, but then RSS makes no sense for static text. What goes in the “text zones”?

I also need to change and image every 5 seconds and be able to see them like a lightbox.

Txp itself won’t do the image rotation. You need to choose and then incorporate a suitable javascript or flash component. I recommend the jQuery Cycle plugin. It is pretty easy to get Txp to feed images to such a script.

The last thing i need to know is how to make something to open a text linked as a lightbox too.

Again, you’ll need to choose and incorporate your lightbox script of choice. What “something” do you need to use this way?

help me as soon as you can

This is a helpful forum, but one usually gets quicker and more helpful responses by posting fewer and more specific questions.


Code is topiary

Offline

#3 2010-09-16 13:23:25

helmz
Member
Registered: 2010-09-14
Posts: 65

Re: General help

First of all, thanks for your answer. When I say 2 text boxes modificables by an admin I mean that there are 2 texts that can be modified as them were articles or something. My problem is not create an article or not, my problem is that I need a text with their size, where i want, etc in the index page, I know there can be RSS related to articles, is there anyway to modify totaly articles and show them in main page instead of /articles and modify everey article as I need?.

Thanks for sharing jQuery Cycle plugin I will try it.

You said: Again, you’ll need to choose and incorporate your lightbox script of choice. What “something” do you need to use this way?

I want to do link a pop up with a text, but I saw in FancyBox for example that you can se them like it was a photo (lightbox style).

Now I am in trouble with other thing to…

Im trying to insert data to mysql, I proced like this:


<form method="post" action="datadb.php">
mail: <input type="text" name="email">
<input type="submit" name="valider" value="Send">
</form> 

datadb.php(located in root):


$email = $_POST['email'];
mysql_connect('host' , 'user', 'pw');
mysql_query("INSERT INTO email (email) VALUES ('$email')");

Thousands of thanks guys.

Last edited by helmz (2010-09-16 13:26:44)

Offline

#4 2010-09-16 13:54:02

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,315

Re: General help

helmz wrote:

first of all i started without using anything of default page […] My problem is not create an article or not, my problem is that I need a text with their size, where i want, etc in the index page

Very basic question, but as this problem arises: Did you think of putting an article tag into your page template, exactly where you want your modifyable zones to appear?


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#5 2010-09-16 14:44:03

helmz
Member
Registered: 2010-09-14
Posts: 65

Re: General help

I tried that two times but as I said im new in textpattern and i dont know yet how to manage them, when i tryed it, one time it wasnt modificable and the other just linked me to articles archive.

jQuery Cycle plugin doesn’t look to be a TXP pluggin specialy so, how must i install it? or where?

Offline

#6 2010-09-16 14:48:53

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: General help

helmz wrote:

When I say 2 text boxes modificables by an admin I mean that there are 2 texts that can be modified as them were articles or something. My problem is not create an article or not, my problem is that I need a text with their size, where i want, etc in the index page, I know there can be RSS related to articles, is there anyway to modify totaly articles and show them in main page instead of /articles and modify everey article as I need?.

If you put an article tag on the main page (site home page) it will list articles from every section (except sections that have been explicitly set not to appear on the home page). If you are using articles in the Txp sense, that is, creating them in the Content->Write tab, you can easily modify them. Offhand I don’t remember whether or not the default RSS feed will include modified articles, or only new ones.

If you want to include specific articles in specific places, use <txp:article_custom id="99" /> (substituting the correct article id#).

I want to do link a pop up with a text, but I saw in FancyBox for example that you can se them like it was a photo (lightbox style).

Right, I meant what is the source of the text, what is the context? Will this be text that comes from another article?

Im trying to insert data to mysql, I proced like this:

You might want to look into the mem_simple_form plugin.

jQuery Cycle plugin doesn’t look to be a TXP pluggin specialy so, how must i install it? or where?

Sorry, no, it’s a plugin for jQuery, not Txp. You’d need to upload the script to your server, then put standard HTML script tags in your page head to include both it and jQuery (of which there is already a copy in the textpattern directory).

I suggest you get a basic content framework up and running before delving into presentation details (such as lightboxes and slideshows).


Code is topiary

Offline

#7 2010-09-16 17:06:43

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: General help

uli wrote:

Did you think of putting an article tag into your page template, exactly where you want your modifyable zones to appear?

helmz wrote:

I tried that two times but as I said im new in textpattern and i dont know yet how to manage them

Offline

#8 2010-09-16 20:36:23

helmz
Member
Registered: 2010-09-14
Posts: 65

Re: General help

What im trying to do is something similar to this…
bc. <txp:article >
<h1 class=“entry-title”><txp:title /></h1>
<p class=“published”><txp:posted /></p>
<div class=“entry-content”>
<txp:body />
</div>
<txp:article />

but i dont know what is correct and what not, tryed that but still have author etc, i just want title + body. Thanks for trying to help me guys.

Last edited by helmz (2010-09-16 20:38:06)

Offline

#9 2010-09-16 21:28:09

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: General help

When using article as a container tag, the closing tag should look like this:

</txp:article>

(BTW, add a blank line before bc. to get the code to appear correctly.)


Code is topiary

Offline

#10 2010-09-16 21:35:12

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,315

Re: General help

helmz wrote:

tryed that but still have author etc, i just want title + body.

Seems like the page you’re looking at is served by another page template [make sure that for the moment all sections are connected to e.g. your default template (i.e. page in TXP speak)] or another block of code displays the author [look for txp:author on that same page template EDIT: oops, might also come from a form].

The way I learnt interrelationships in TXP was writing identifiers into forms and page elements. Just don’t post it or else people will smile at you.

Last edited by uli (2010-09-16 21:45:13)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#11 2010-09-16 21:53:17

helmz
Member
Registered: 2010-09-14
Posts: 65

Re: General help

Ok, now i have article as i needed, but i have 2 i want 1 in one side and one on the other, and in the code they have the same class, how do I separate them?

Thanks again mates, remember i still need help with text like a lightbox and the database.

Offline

#12 2010-09-16 22:10:54

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,315

Re: General help

Method A is two article tags in the template with limit="1" each. Is this method A viable for you? EDIT: Go with Els, she’s always right ;)

Last edited by uli (2010-09-16 22:11:44)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

Board footer

Powered by FluxBB