Support Forum

Using Wordpess Comments system to replace Simple press post system

VA varunpp
varunpp
Member

What would be the best way to go about implementing using the WordPress comment system to add topics/posts. I imagine its possible with the way the blog linking works, how would you suggest implementing this solution?

9 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

How would you be able to add a topic from a comment? What would be your plan there?
And if you wanted ALL forum posts to be created via the commenting system then – what is the point of having a forum?

How is the current system of allowing a topic to be created from a blog post and comments to that post be added to the forum topic not enough?

VA varunpp
varunpp
Member

touche. oh sometimes i just don’t think, or over think. cant ever tell.

YS Yellow Swordfish
Yellow Swordfish
Member

well that was not what I meant! I thought you might have stumbled on something we hadn’t thought of… half the good ideas – maybe more – come from our users after all.

VA varunpp
varunpp
Member

I understand, you asked the right questions to clarify the problem for me. But from the scalability aspect of Simple-Press,  the form topic and form post should be separated into separate functions for future purposes if you have to add extra fields through plugins. Just a suggestion that I think would make SP better. I appreciate the work you guys have done with this project, simply amazing job.

YS Yellow Swordfish
Yellow Swordfish
Member

Not sure what you mean by ‘separate functions’ or how they could be separated any further than they are. They have separate database tables, separate views, a complete set of separate template functions, separate templates…! What else is there?

VA varunpp
varunpp
Member

Hi there,

 

I am hoping to get some help with php coding, and applying a filter to sph_topic_editor_header_bottom, in order to remove guest name and guest email. Could anyone lend me a hand with that? I am trying to implement a form of lazy registration, so guests can post their topic as well as register at the same time.

 

Any help, ideas or insights will be very useful to me!

 

Thanks!

 

Edit: I tried using preg_replace, however it doesnt seem to work

YS Yellow Swordfish
Yellow Swordfish
Member

I think you need to go into more detail about what you are planning to do because I will say straight out that if a non-logged in user tries to post without at least a name to identify them then the post will be rejected.

VA varunpp
varunpp
Member

Here is the process. A guest user clicks add topic, and they see the add topic editor (without guest name and guest email fields). They fill in the form with the topic name and topic content. Before the post is processed, I am trying to register and log the user in with the current registration fields I have, either using the fields on the same page or through ajax, maybe there is a better way? Once they register, all the $_GET fields are then processed with the add topic function.

 

Edit: The main reason for this process is because it makes it easier for guests to register and more incentive as they have already put in an effort in creating a topic. Whereas having the user to register first discourages them from posting or using the site.

YS Yellow Swordfish
Yellow Swordfish
Member

You will need to edit the javascript validation as well as that checks for empty guest name and email address using an onsubmit of the form and rejects it if these are empty. So there will be some core code needing changes.