forum

MySQL Query, problems with with duplicates on insert into

拈花ヽ惹草 提交于 2021-02-11 12:14:06
问题 So I'm using the forum software Xenforo and I need help with a SQL query which will be executed periodically. The forum will have approximately 300-500 active users. So nothing too big. The goal: All users xf_users need to be subscribed to node_id 71 except users which are part of certain user_group_id . Now users can unsubscribe from the forum or change the notify_on and send_alert & send_email fields. I do not want that. So if users 'unsubscribe' they need to be added again. The only

forum software with a simple RESTful API support

梦想与她 提交于 2020-01-15 10:52:04
问题 I'm searching for a forum software which offers REST like API. It should be able to respond to simple calls like retrieve-post, add-new-post etc. and return the result set in JSON or XML format. Those that immediately come to mind are phpBB, Vanilla, and/or vBulletin. But I don't know if they have REST API. Also I don't intend to deploy the forum for a website. I intend to integrate a forum like feature inside the Android and iPhone apps. Edit: I don't intend to host the server on mobile.

Creating a forum in phpBB3 from PHP and settings permissions

僤鯓⒐⒋嵵緔 提交于 2020-01-13 03:44:07
问题 I'm attempting to create a new forum on an existing forum. I can create the new forum quite easily and view it from the admin console. The problem is I need it to show up at the front end as well for users. This is done via permissions. What I am attempting to do therefore is copy the permissions of the parent forum (which is public) to the forum I create. However the forum still doesn't appear to be showing up on the public facing side. Here's my code (please note the phpBB include files

How to create a forum topic programmatically?

烈酒焚心 提交于 2020-01-12 10:39:50
问题 I just gone through how to create forums and containers programmatically with the below link http://www.unibia.com/unibianet/drupal/how-create-drupal-forums-and-containers-programmatically But never see any post(google) which create forum topic pro-grammatically, whether i should go with node_save() or any alternative. please help me guys, Thanks, Edvin 回答1: A quick, safe and easy way to create new nodes programmatically is to use node_save(): <?php // Construct the new node object. $node =

How to integrate djangobb in an existing project?

纵然是瞬间 提交于 2020-01-07 09:26:09
问题 wget https://bitbucket.org/slav0nic/djangobb_project/get/tip.tar.gz tar zxvf tip.tar.gz cd slav0nic-djangobb_project-tip/ pip install -r requirements.txt cd basic_project/ touch local_settings.py #set DATABASE ./manage.py syncdb --all ./manage.py collectstatic ./manage.py runserver This is the installation guidelines mentioned on djangobb support. I'm stuck after installing the requirements.txt. How do I integrate djangobb to my existing project. Django noob here hence the need of help. 回答1:

How to print a MySQL database table in PHP using PDO [closed]

风流意气都作罢 提交于 2020-01-07 05:49:06
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . I want to print all the rows on the table. Every row is an answer to a question in a forum. The user can delete rows. I can get the whole table in the database. But i don't know how to get every row. The controller: for ($idAnswer=1; $idAnswer<=?; $idAnswer++){ $data=getData(

angular2 pipe for multiple arguments

[亡魂溺海] 提交于 2020-01-04 01:51:27
问题 I have a array of thread objects, each thread object with the properties unit:number task:number subtask:number I want to create a pipe to filter after these threads, so far I have a working pipe like below. I'm not really satisfied with it yet and wanted to ask you guys if there is a more elegant solution? HTML: <div class="thread-item" *ngFor="#thread of threadlist | threadPipe:unitPipe:taskPipe:subtaskPipe"></div> Pipe.ts export class ThreadPipe implements PipeTransform{ threadlistCopy

angular2 pipe for multiple arguments

荒凉一梦 提交于 2020-01-04 01:51:09
问题 I have a array of thread objects, each thread object with the properties unit:number task:number subtask:number I want to create a pipe to filter after these threads, so far I have a working pipe like below. I'm not really satisfied with it yet and wanted to ask you guys if there is a more elegant solution? HTML: <div class="thread-item" *ngFor="#thread of threadlist | threadPipe:unitPipe:taskPipe:subtaskPipe"></div> Pipe.ts export class ThreadPipe implements PipeTransform{ threadlistCopy

Accessing IPB Classes Externally From Main Website

余生长醉 提交于 2020-01-03 05:49:25
问题 Hello I have been working with IPB3.4 and I am trying to have some sort of correlation between my main website and forum, specifically users. I am aware that you can use the IPBMembers class to simply create a new user however I am unsure how I can initialise that class outside of IPB forum base directory. If anyone has any experience on this topic I would appreciate any advice. Thanks 回答1: The problem I had from the above script is after the init() method it would redirect me to the forum or

Extract the thread head and thread reply from a forum

无人久伴 提交于 2020-01-03 04:46:04
问题 I want to extract only the views and replies of the user and the title of the head from a forum. In this code when you supply a url the code returns everything. I just want only the thread heading which is defined in title tag and the user reply which is in between the div content tag. Help me how extract. Explain how to print this in a txt file package extract; import java.io.*; import org.jsoup.*; import org.jsoup.nodes.*; public class TestJsoup { public void SimpleParse() { try { Document