Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#91 2007-12-31 17:48:15

zooeyripka
Member
Registered: 2007-07-15
Posts: 12

Re: TXPhorum: A simple forum solution for Textpattern

Thanks, but that doesn’t seem to be it. It’s already going to the right page when a post is made, it’s in my textpattern articles tab I can see the posts are attributed to section “index.php?s=txphorum” instead of just “txphorum”.

I did notice that if I change the line Section = ‘$section’, to Section =“txphorum” the posts will go up, but the replies also populate the forum (they get a section of “txphorum” instead of “txphorum_replies”.

There has to be a way to hard code the section the post gets attributed to as “txphorum”…

Offline

#92 2007-12-31 18:02:35

benbruce
Plugin Author
Registered: 2006-01-13
Posts: 328
Website

Re: TXPhorum: A simple forum solution for Textpattern

There is an attribute you can set in the tag itself:

<txp:bab_forum_form type="reply" section="txphorum_replies" />

Set it to the different sections in your Page or Forms.

  • Ben

Offline

#93 2007-12-31 18:47:22

benbruce
Plugin Author
Registered: 2006-01-13
Posts: 328
Website

Re: TXPhorum: A simple forum solution for Textpattern

Here’s a hack to fix the “just type in the edit url to any article”:

function bab_if_author($atts, $thing='') {
	global $thisarticle, $ign_user;
	$bab_author = $thisarticle['authorid'];
	if ($ign_user == $bab_author) {	
		return $thing;
	 } else {
	 	 return "Sorry, you're not authorized.";
	 }
}

You can add this function to your txphorum plugin, and then wrap your edit form in these tags:

<txp:bab_if_author>edit form here</txp:bab_if_author>

Edit return "Sorry, you're not authorized."; to have it display something else (this should be updated to be a regular TXP <txp:else /> function, but as I said this is a hack.

  • Ben

Offline

#94 2008-01-01 14:02:13

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

Re: TXPhorum: A simple forum solution for Textpattern

benbruse,

$ign_user is the old deprecated tag, so should it $ign_current_user instead? And doesn’t that have exploit as it works only in single article / when you have made the topic?

So it must have done with safe_row when edit-form is loaded. Then pulling the $AuthorID and comparing it to $ign_current_user.

Cheers!

Offline

#95 2008-01-29 22:49:04

rsskga
Member
From: San Francisco, CA USA
Registered: 2007-06-23
Posts: 50
Website

Re: TXPhorum: A simple forum solution for Textpattern

I’m using glx_gravatar with my comments. I was hoping to also use it with authors in txphorum. I couldn’t get it to work by using the standard glx_gravatar tag even if I used an email address for every field author field (name, user name and email address) in txphorum. It seems like it should be quite possible, but I don’t really understand how glx_gravatar is working behind the scenes. Any thoughts out there?

BTW… My site is www.pilatesforthepeople.com in case that helps to visualize things, examine code, etc.

*** Figured it out *** I’ll post the plugin soon.

Last edited by rsskga (2008-02-02 23:19:27)


Swim Kitten, A Magento Site
When nothing but incredibly revealing dresses and swimwear will do

Offline

#96 2008-02-04 18:22:58

rsskga
Member
From: San Francisco, CA USA
Registered: 2007-06-23
Posts: 50
Website

Re: TXPhorum: A simple forum solution for Textpattern

Hi Ben,

I just gave Manfre a head’s up. His newest version of mem_self_register won’t work with Txphorum. The “create an account” form goes MIA—probably just because the form or tag names changed and it’s no longer being referenced correctly. I suggested that his change log might point you in the right direction? He sounded pretty excited about the improvements from the previous version.


Swim Kitten, A Magento Site
When nothing but incredibly revealing dresses and swimwear will do

Offline

#97 2008-02-07 11:12:37

helsinkifrostbites
Member
From: Ystad, Sweden
Registered: 2007-11-16
Posts: 47
Website

Re: TXPhorum: A simple forum solution for Textpattern

I’m setting up txphorum on a site and it’s working like a dream apart from one weird thing:

when I post a new thread or reply to an existing one and click “enter”, I get an error page saying “cannot display the webpage” in IE or “this page can’t be found” in Safari, but the url is correct and when I hit refresh, the page is there.

It’s like I get redirected too quickly before the page has been created or something. Has anybody else had this problem?

Offline

#98 2008-02-07 12:10:14

helsinkifrostbites
Member
From: Ystad, Sweden
Registered: 2007-11-16
Posts: 47
Website

Re: TXPhorum: A simple forum solution for Textpattern

Would there be a way to add a delay of one or two seconds to the redirect, could that fix it?
I’m fumbling in the dark here.

Offline

#99 2008-02-17 22:34:33

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,205
Website GitHub

Re: TXPhorum: A simple forum solution for Textpattern

Just tried to register on the demo forum but received an error (Fatal error: Call to undefined function: generate_password() in /home/benbruce/public_html/textpattern/lib/txplib_misc.php(574) : eval()'d code on line 557) when trying to register, so have not been able to try out txphorum or post my question.

1) is there currently a working combination of the most recent txp version and plug-in versions?

2) Gocom posted above he’d made some improvements which sound interesting but his site has been “under maintenance” now for a while so I couldn’t check there either.

3) The question I wanted to ask on the forum as: Have I understood correctly that each reply to a topic on txphorum is an article of its own, i.e. appears on its own in the back-end? In this topic on the demo forum the suggestion is that each thread is an article, so I am slightly confused. If that is so then etz_pg would not work. As txp:article_custom has no pageby attribute, how would one best achieve this?


TXP Builders – finely-crafted code, design and txp

Offline

#100 2008-02-19 23:52:50

linkingarts
Member
Registered: 2006-06-18
Posts: 14

Re: TXPhorum: A simple forum solution for Textpattern

Am getting this error w/4.0.6, & latest plugins:

<txp:bab_forum_form type="post" section="txphorum" /> -> Notice: Undefined variable: thing on line 113

I can create and post topics and replies. Changing password (“edit login info”) throws the following:

Tag error: <txp:mem_change_password_form form="txphorum_mem_change_password_form" /> -> Textpattern Warning: tag does not exist on line 983

Any help much appreciated…!!!

thx,

_pj

Offline

#101 2008-02-20 22:46:24

linkingarts
Member
Registered: 2006-06-18
Posts: 14

Re: TXPhorum: A simple forum solution for Textpattern

The more I look into this the more it looks like somehow bab_if_gps not being called? Otherwise $thing would be defined.

Seems strange that nobody else has this issue?

I’ve got latest plugins as far as I can find. Am using the revised TXPhorum 2 templates, and have updated those per the new mem_form plugin.

thx more,

_pj

Offline

#102 2008-02-20 23:20:05

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,205
Website GitHub

Re: TXPhorum: A simple forum solution for Textpattern

Am using the revised TXPhorum 2 templates …

Perhaps I missed this. Is this thread then not the most recent iteration of TXPhorum?


TXP Builders – finely-crafted code, design and txp

Offline

#103 2008-02-20 23:57:49

linkingarts
Member
Registered: 2006-06-18
Posts: 14

Re: TXPhorum: A simple forum solution for Textpattern

I may have overstated.. It’s just this one

Offline

#104 2008-02-21 01:26:22

benbruce
Plugin Author
Registered: 2006-01-13
Posts: 328
Website

Re: TXPhorum: A simple forum solution for Textpattern

There is an issue with the latest version of mem_self_register, as I understand it. I haven’t had any time to look into it but will when I have a second. Not likely this week, possibly next week. But Linkingarts, that may be your starting point if you are energized …

Gocom pointed out a few faults with TXPhorum, which I’d like to clean up in a new version. That’s what I have in my head — hopefully a very simplified version that’s easier to maintain and theme.

  • Ben

Last edited by benbruce (2008-02-21 01:31:11)

Offline

#105 2008-02-21 02:39:39

linkingarts
Member
Registered: 2006-06-18
Posts: 14

Re: TXPhorum: A simple forum solution for Textpattern

Thanks Ben, I’ll look into mem_self_register. And I had read Gocom’s comments, which sounded cogent. I’m looking forward to seeing what he comes up with.

The error seems pretty basic, guess I’ll just have to step thru the code. Was hoping somebody else might have solved the issue already!

FWIW I’m folding TXPhorum into a larger TXP site that I plan to be able to import/export as templates. Forum, feeds, Postmaster for email lists, etc. Might be able to get my client to donate it; we’ll see.

_peter

Offline

Board footer

Powered by FluxBB