Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2004-11-12 00:39:45

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: bbclone plugin

yes maniqui… the tag has to be on every page…
the way i solve tihs is to make a form called ‘ *every ‘, and then i have that bbclone tag and anything else that will ever have to be on every page can just go in that form in the future. i actually keep one for the top (some tags have to go before anything else on the page) and one for the bottom (like bbclone tag).

then you never have to go through the blahness of adding one little tag to every single page you have. :)


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#17 2004-11-12 03:43:55

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: bbclone plugin

Thanks, Alison, for answering.

But I already know the way to use forms for chunks of the page that must appear in every page. (And I also use the if_section plugin to manage content in only one page template.)

I think I didnt explain myself very well.

My problem is: I tried putting the bbclone tag in the only one page template (the “default” template) I use (not inside an if_section tag) so BBClone must get hits for every page. I manage with TXP.
But it doesnt seems to work. I only get hits for the Start Section (a.k.a. default page, home, etc)…

Oooh, now i think I get your idea.
I have got to put the bbclone tag in a form used in the page template (in my case, just one template for all pages), and not directly in the page template…

I dont know why I said to pug in an article. That’s impossible to use TXP tags in articles. (¿isn’t? ¿am i right?))

So, well, I will try using it in a form.
thanks.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#18 2004-11-12 04:13:32

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: bbclone plugin

mm.. it doesn’t have to be in a form. it just has to be in the template somewhere. for me, it’s at the very end of the template. don’t put it in the articles, and don’t put it in an article form.

i personally just have mine in a ‘misc’ form that is called at the very bottom of the pagetemplate, after ‘/html’ ..
and it does recognize hits for invidual article pages/permalinks.

:) good luck with yours


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#19 2004-11-12 04:23:08

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

Re: bbclone plugin

I use this plugin and I’ve had similar problems. I modified it a little to get what I wanted for the page names. The links still don’t work but I’ll get over that.

First, I moved the global line up to the top and added the global section:
<code>
GLOBAL $sitename, $s;
</code>

Then I get the section name and make it look a little nicer if its the default.
<code>
$sect = ($s == “default”) ? “wilshire | one Home” : $s;
</code>

Then I prepend the page title with the section name:
<code>
$bbcprefix = $sect.”: “;
</code>

I also use the ob1_title plugin for my page titles although I don’t know that it matters. This is an example of what I get:

article: QuikPik TXP Menu Hack
article: TXP Plugin | rss_suparchive

Hope that helps.

-Rob

Offline

#20 2004-11-12 17:42:35

Remillard
Plugin Author
From: Lenexa, KS
Registered: 2004-05-16
Posts: 169

Re: bbclone plugin

As far as I know, it will not display section names off the main page. You will only get “Txp: Home” (in my particular case). You DO get individual articles (at least I do). I believe I’ll implement wilshire’s mods and reset the statistics to see what I start to get.

The link address is set somewhere in ./bbclone/constants.php and I looked into it to see if there was something well commented that said “URL is obtained here” and I could figure out what variable out of $_GET or whatever was getting used for the link. I didn’t find this, and from what I did see, I don’t think I have the willpower to delve any deeper into bbclone :).

Remillard

Offline

#21 2004-11-12 18:01:26

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: bbclone plugin

this is true… i don’t see section pages..
do let us know how things go with wilshire’s mod :)
and thanks, wilshire, for sharing


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#22 2004-11-12 18:06:47

Remillard
Plugin Author
From: Lenexa, KS
Registered: 2004-05-16
Posts: 169

Re: bbclone plugin

Works like a charm. I now have in poe_bbclone:

/*—— Configuration parameters ——*/
GLOBAL $sitename, $s;
$sect = ($s == “default”) ? “MOAE home” : “MOAE “.$s;

and:

// This is the Prefix to the Page’s name:
$bbcprefix = $sect.”: “;

And after a bbclone statistics reset I see:

MOAE txp: Textpattern 121 Part One
MOAE sitenews: The Pictures Are Back
MOAE article:
MOAE txp: Textpattern Plugins
MOAE sitenews:
MOAE txp:

The section shows up and if it’s an individual article it shows up after the colon.

Beauty.

Offline

#23 2004-11-12 18:12:46

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: bbclone plugin

awesome. i’m going in. wish me luck..

*edit: nicenicenice… it took me a little while, because i was nonsensible and i had certain key things out of order..and order really kind of matters when you’re assigning values to tags and then having them parse or whatever the terminology is…
but it works, and you are both wonderful people, and i much appreciate the information.

Last edited by alicson (2004-11-12 18:48:23)


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#24 2004-11-12 19:14:02

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: bbclone plugin

I have done the modifications suggested in Remillard’s post.

It doesnt work for me. I get a parse error in the home page.

My question is:
anyone is using the v0.3 of this plugin with TXP 1.0 RC 1 and BBClone 0.4.4.a ?
(and of course, did it work?)

any suggestion?


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#25 2004-11-12 19:28:10

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: bbclone plugin

i’m using v0.3 poe_bbclone and txp 1.0rc1 and bbclone 0.4.4.a

two things i can think of: if you cut and paste remillard’s text, be careful of the quotation marks …

<strong>

Last edited by alicson (2004-11-12 19:33:09)


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#26 2004-11-12 19:45:11

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

Re: bbclone plugin

maniqui – Yes, I am using bbclone 0.4.4a with RC1 with no problems.

Do you have bbclone set for UTF-8 encoding? If not this could be causing your problems.

I downloaded the utf-8 version of bbclone. If you didn’t you can get it here.

Offline

#27 2004-11-12 19:55:55

Remillard
Plugin Author
From: Lenexa, KS
Registered: 2004-05-16
Posts: 169

Re: bbclone plugin

To be completely fair, this is wilshire’s idea.

And, I’m using BBClone 0.4.4 and 1.0RC1 and it seems to work fine. If you get a parse error after tinkering with plugin code, try turning the plugin off and seeing if it goes away, then you can be reasonably sure that it’s something you typed there, and not a bigger issue.

Remi

Offline

#28 2004-11-13 21:52:36

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: bbclone plugin

Remillard,

I have turned off the plug-in, and then, the pages works.

It seems to be something in the new lines added to the plug-in, because before making changes the plug-ins “works” (well, only for homepage) for me.

I will think about changing to UTF-8 charset.

I use “charset=iso-8859-1”

and this introduce me to hte new problem I have.

Can anyone help me with this:

<a href=“http://forum.textpattern.com/viewtopic.php?pid=30536#30536”>http://forum.textpattern.com/viewtopic.php?pid=30536#30536</a>

Thanks.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#29 2004-11-15 02:53:06

Remillard
Plugin Author
From: Lenexa, KS
Registered: 2004-05-16
Posts: 169

Re: bbclone plugin

That very well could be the case. I don’t know much about the issues with international character sets.

For what it’s worth, I have some information from the BBClone folks and still trying to figure out if it’s possible to mock up the link somehow so that it works. It’s a pretty complex bit of code.

Remi

Offline

#30 2004-11-17 19:14:07

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: bbclone plugin

Well, finally, I get it workin (at least, it seems to!)

I write this post to help other users, so they know how to proceed if they go into problems like me.

When you read, you should read, not just do a quick view over the post :)

alicson said:
<blockquote>

Last edited by maniqui (2004-11-17 19:16:16)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB