Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
coding-topic
Using Wordpess Comments system to replace Simple press post system
Avatar
VT
Member
Free Members
sp_UserOfflineSmall Offline
Mar 3, 2012 - 2:57 pm

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?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 3, 2012 - 5:29 pm

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?

andy-signature.png
YELLOW
SWORDFISH
Avatar
VT
Member
Free Members
sp_UserOfflineSmall Offline
Mar 4, 2012 - 1:17 am

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

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 4, 2012 - 3:29 am

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
VT
Member
Free Members
sp_UserOfflineSmall Offline
Mar 4, 2012 - 9:54 am

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.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 4, 2012 - 10:58 am

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?

andy-signature.png
YELLOW
SWORDFISH
Avatar
VT
Member
Free Members
sp_UserOfflineSmall Offline
Mar 7, 2012 - 12:07 am

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

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 7, 2012 - 6:01 am

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
VT
Member
Free Members
sp_UserOfflineSmall Offline
Mar 7, 2012 - 8:11 am

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.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 7, 2012 - 9:54 am

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.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626