Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-01-25 11:04:32

JustinLow
Plugin Author
From: Singapore
Registered: 2004-04-25
Posts: 57
Website

[plugin] [ORPHAN] low_discuss

From my website.

With the release of Textpattern 1.0 delayed, I might as well go ahead to release this plugin now. The current version is 0.3 and has been tested on Textpattern 1.0rc2.

What does it do? It gives you a few functions that replaces the built-in Textpattern comment functions. For one, it removes the preview-before-submitting thing. It also generates the ‘nofollow’ tag as recommended by Google.

As an added bonus, it removes all hard-coded styling from the comments and comment form. It does encase individual comments in ‘spans’ in order to give them an anchor.

You can also specify what field the comments are sorted by, and the direction they’re sorted in.

You can download the plugin in a text file format here. Please read the documentation within the plugin before using it. While you shouldn’t have problems using it, please understand you use it at your own risk. If you spot a bug, do contact me though.

I plan to incorporate Jon Hick’s live-preview hacks into the plugin as soon as I have the time.

Update 0.3: Bugfix, for the issue mentioned by zoeglingjulian further down in this thread.

Last edited by Els (2010-09-04 14:07:54)


Justin

Offline

#2 2005-01-25 11:18:47

JustinLow
Plugin Author
From: Singapore
Registered: 2004-04-25
Posts: 57
Website

Re: [plugin] [ORPHAN] low_discuss

I can’t, for some reason, update the central plugin list. I can’t even view page 2 of it. Anyone know why?

Anyway, if you read the plugin documentation, you’ll see that you have to make one change to publish.php. I could have written the plugin in order to bypass this, but it would have added much unneeded bulk, so I feel this is the best way.

chrismc has documented this in his blog

Just follow his instructions under ‘Easiest Hack Ever’ (or mine) and that’ll do it. You just want to prevent Textpattern from appending the comments-thingy by default.


Justin

Offline

#3 2005-01-25 21:05:29

Etz Haim
Plugin Author
From: Karlstad, Sweden
Registered: 2005-01-24
Posts: 262
Website

Re: [plugin] [ORPHAN] low_discuss

Justin has made a cross site copy-paste of a relative link.

The right link to download his plugin is this one

Offline

#4 2005-01-26 02:33:45

JustinLow
Plugin Author
From: Singapore
Registered: 2004-04-25
Posts: 57
Website

Re: [plugin] [ORPHAN] low_discuss

My bad. Original post updated. Thanks for pointing that out.


Justin

Offline

#5 2005-02-06 17:52:38

zoeglingjulian
Member
From: London, UK
Registered: 2004-12-23
Posts: 52
Website

Re: [plugin] [ORPHAN] low_discuss

Great plugin, used it for my guestbook, but the links (to the webpage of the person who made the comment) are wrong, take a look at the source of this: http://version4.zoegling.de/gaestebuch

It looks like this:

<pre>
<a href=“http://www.bordeauxx.de” title=“www.bordeauxx.de” rel=“nofollow”><a href=“http://www.bordeauxx.de” title=“www.bordeauxx.de”>Ulrike</a></a>
</pre>

As you can see, there are two a href’s as well as two closing tags… do you thin you could fix this in any way?

Last edited by zoeglingjulian (2005-02-06 17:53:27)

Offline

#6 2005-02-06 18:01:01

JustinLow
Plugin Author
From: Singapore
Registered: 2004-04-25
Posts: 57
Website

Re: [plugin] [ORPHAN] low_discuss

Let me look into this. :)


Justin

Offline

#7 2005-02-06 18:20:43

JustinLow
Plugin Author
From: Singapore
Registered: 2004-04-25
Posts: 57
Website

Re: [plugin] [ORPHAN] low_discuss

Okay. I’ve solved the problem. I’ll release a fixed version of this plugin shortly, but for now, you can do the following:

Edit the plugin in Textpattern, and change these,

if ($web)
$name = '<a href="http://'.$web.'" title="'.$web.'">'.$name.'</a>';

if ($web & $nofollow)
$name = '<a href="http://'.$web.'" title="'.$web.'" rel="nofollow">'.$name.'</a>';

To this:

if ($web) {
if ($nofollow) {
$name = '<a href="http://'.$web.'" title="'.$web.'" rel="nofollow">'.$name.'</a>';
} else {
$name = '<a href="http://'.$web.'" title="'.$web.'">'.$name.'</a>';
}
}

Last edited by JustinLow (2005-02-06 18:21:17)


Justin

Offline

#8 2005-02-06 18:37:22

zoeglingjulian
Member
From: London, UK
Registered: 2004-12-23
Posts: 52
Website

Re: [plugin] [ORPHAN] low_discuss

Thanks. I tried, but it seems something’s messed up somehow leaving me unable to change the code, take a look at this screenshot: http://version4.zoegling.de/screenshot.png

I tried reinstalling your plugin, same thing happens. This problem doesn’t appear with other plugins. Don’t know why.

Offline

#9 2005-02-06 18:41:08

JustinLow
Plugin Author
From: Singapore
Registered: 2004-04-25
Posts: 57
Website

Re: [plugin] [ORPHAN] low_discuss

Aside from having a very nice desktop, I must ask you: what version of Textpattern are you using? I’ve tested it only with Txp 1.0rc2 at the moment.

For earlier versions, I believe there is a problem where the <textarea> tag is called because it interferes with the page.


Justin

Offline

#10 2005-02-06 18:52:41

zoeglingjulian
Member
From: London, UK
Registered: 2004-12-23
Posts: 52
Website

Re: [plugin] [ORPHAN] low_discuss

Oh… I’m using 1.0rc1 :( Would it be too time-consuming for you to put the fix in the low_discuss.txt and mail it to me?
Or are you planning to release the fixed version soon?

Offline

Board footer

Powered by FluxBB