The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(287) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/printthread.php(287) : eval()'d code 2 errorHandler->error
/printthread.php 287 eval
/printthread.php 117 printthread_multipage



UserSpice
Sistem news - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23)
+--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26)
+--- Thread: Sistem news (/showthread.php?tid=676)

Pages: 1 2 3


Sistem news - shoropio - 08-20-2017

I have been following the project for a long time and I would like to know how far away is a news system like blogspot, post or input.


Sistem news - mudmin - 08-20-2017

Can you tell me what you would like the news system to do?


Sistem news - shoropio - 08-20-2017

A place where you can write an article, edit the article, call from anywhere on the site that article as recent articles. I currently use a separate script from my userspice in my / blog folder. It would be a dream that Userspice would incorporate that. I attach the escript I use. here.


Sistem news - Brandin - 08-20-2017

Can you give us a dump of your DB structure to help?

Although there isn't a drag and drop plugin anyone has made, this can be accomplished. A lot of manual coding and building it yourself though unfortunately.


Sistem news - shoropio - 08-20-2017

Hi brandin, This is the script and this is my database. The problem is that I have to log in to the blog to post. Could you do everything in one of userspice and this script?


Sistem news - Brandin - 08-20-2017

Do you require the comment and sharing functionality? I can make a script for you pretty quickly for just the blog post part.

Let me know and I'll help out.


Sistem news - shoropio - 08-21-2017

Brandin would be fantastic, I'm dying to see your work.


Sistem news - Brandin - 08-21-2017

Hello,

On insertpost.php, how does:
Code:
$image = $_FILES['image']['name'];
Code:
$image_tmp = $_FILES['image']['tmp_name'];

work?

I've never worked with uploading images other than using systems that had the function built in...I will do some research, but wanted to know if you knew off hand where the
Code:
name
and
Code:
tmp_name
is defined?


Sistem news - shoropio - 08-21-2017


The function of this line
Code:
['tmp_name']
is responsible for giving a name to the image, and this other line
Code:
$_FILES['image']
is to upload the image to the container folder.
<pre>
Code:
$image_tmp = $_FILES['image']['tmp_name'];
move_uploaded_file($image_tmp,"postimages/$image");
</pre>



Sistem news - shoropio - 08-21-2017

The script works very well, I do not know if it is the best practice or the safest but it works. The admin area is the one I want to integrate with userspice, in simple words, a single admin for blog and userspice.