Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » Plugin Requests

#136 2006-07-22 11:33:12

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: Plugin Requests

Thanks Mary, I’ll ask Yura what he cares to do.
Cheers.


Offline

#137 2006-07-25 16:31:36

guiguibonbon
Member
Registered: 2006-02-20
Posts: 296

Re: Plugin Requests

Hello folks,

easy one : i’d like a “counter” for article lists. something like <txp:xxx_counter /> would output 1 in the first article on the page*, 2 on the second*, etc. That would be hugely useful for things such as CSS sprite navigation or in case you have multiple instances of the same javascript (mooShow for instance).

It might already exist but I didn’t find it. I’d have done it myself if I understood global variables and how textpattern works with them a bit better, but I don’t.

Thanks

* triggered by same article, article_custom or related_articles tag.

Last edited by guiguibonbon (2006-07-25 16:40:40)

Offline

#138 2006-07-25 17:04:57

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,416
Website GitHub Mastodon

Re: Plugin Requests

This is feasible with <txp:php>:

To start a counter, include a sequence like that prior to all instances of <txp:article />, for instance in the page template or an included misc form:

<txp:php>
global $mycounter; // unique name
$mycounter = 0; // initial value
</txp:php>

inside your article form, increase the counter’s value:

<txp:php>
global $mycounter; // same unique name
$mycounter++;
</txp:php>
[...further tags go here...]
<txp:body />
<!-- now printing counter value -->
<txp:php>
global $mycounter; // same unique name
echo $mycounter; // print counter value;
</txp:php>

That’s it.

Last edited by wet (2006-07-25 17:05:54)

Offline

#139 2006-07-26 01:01:04

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Plugin Requests

Is this request still standing?

Offline

#140 2006-07-26 01:07:30

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: Plugin Requests

Wet,
Your nuts. How do you know all that stuff. Have you been keeping an extra brain in a jar? Cmon now, tell the truth! :)


Offline

#141 2006-07-26 03:50:38

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,416
Website GitHub Mastodon

Re: Plugin Requests

ma_smith wrote:

Cmon now, tell the truth! :)

Austrians are all like that ;-) Hasta la vista, baby…

Offline

#142 2006-07-26 22:48:07

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: Plugin Requests

REQUEST: An update to rss_thumbpop to display title with wraptag and wraptag for captions in jpop mode. I’ll pledge $25 for this hack.

I need it to do the following:

  1. Display the image title (like jpopcap) before the jpopcap text, with a wraptag attribute.
  2. Allow a wraptag attribute for jpopcap.
Extra Credit but not required…
  1. image crossfade, as per aro_slideshow. http://forum.textpattern.com/viewtopic.php?id=16517

Anyone?

Offline

#143 2006-07-26 23:21:58

guiguibonbon
Member
Registered: 2006-02-20
Posts: 296

Re: Plugin Requests

no no request not standing anymore, it worked just fine, though it isn’t as pretty as a nice txp tag of course. Many thanks wet, by the way. For the record, if you need the numbering to start over again (for another series of articles) just add that first snippet again, right before your new article tag.

Offline

#144 2006-07-27 00:48:57

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Plugin Requests

Offline

#145 2006-07-31 00:17:09

Inspired
Plugin Author
From: Kiev, Ukraine
Registered: 2005-01-28
Posts: 87
Website

Re: Plugin Requests

Matthew’s plugin request follow up: Plugin ransom: Hide ‘‘Admin’‘ Write fields

btw, Matthew, it’s because you’re a forum moderator, so you could see my email unhidden :-) oh, hey, now there’s no link at all, it’s all because of those nasty spammers, i know…


Plugin Composer — admin plugin to write your own plugins

Offline

#146 2006-08-02 17:45:41

cnolle
Archived Plugin Author
Registered: 2004-03-21
Posts: 87
Website

Re: Plugin Requests

Don’t know if this request requires its own plugin – or maybe there is already one out there that I am not aware of. I am currently working on a project that currently uses textpattern’s default related articles function to display a list of related articles but some of these articles have the same title but are placed in different sections, which makes the current list confusing at best.

So it would be really useful to be able to display the section name after the article title. Is there already such a plugin or would anyone be up for it?

- Christian

Offline

#147 2006-08-02 17:50:41

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: Plugin Requests

I’m not positive, but I think chh_article_custom chh_related_articles gives you the option to style the output via a form, so that you can accomplish what you’re trying to do :)

edit wasn’t chh_article_custom after all :)

Last edited by ma_smith (2006-08-02 17:54:15)


Offline

#148 2006-08-02 18:03:05

cnolle
Archived Plugin Author
Registered: 2004-03-21
Posts: 87
Website

Re: Plugin Requests

ahh that worked. Did look at the plugin earlier but must have overlooked the form option.

Thanks very much.

-Christian

Offline

#149 2006-08-02 19:48:01

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: Plugin Requests

Mary, I came to an arrangement with Rob on rss_thumbpop which I assume will be made avaiable to everybody. I think you can delete it.

Offline

#150 2006-08-09 19:51:23

igner
Plugin Author
Registered: 2004-06-03
Posts: 337

Re: Plugin Requests

Mary – Chalk me up for the ign_pass_protect request…this request has come up more than once, so it’s just begging for a clever solution1.

Manfre – the Section permission request is back-end permissions (editi/publishing rights per section); as I read José’s request, he’s looking for a front-end solution.

1 Can you also register a request for clever solutions? I could use a couple :)


And then my dog ate my badger, and the love was lost.

Offline

  1. Index
  2. » Archives
  3. » Plugin Requests

Board footer

Powered by FluxBB