how to show SMF 2.0.x by TOPIC and POST with standalone script

Started by AngelGirl, August 21, 2018, 03:06:50 AM

Previous topic - Next topic

AngelGirl

hi,
i want to show SMF board in "smf_messages" Table
by subject and body
And Split On Pages


------------------------------
SUBJECT | BODY
-------------------------------
topic1     | yyyyyyyyyyyyyy (first post not need reply)
-------------------------------
topic2     | yyyyyyyyyyyyyy (first post not need reply)
-------------------------------
topic3     | yyyyyyyyyyyyyy (first post not need reply)
-------------------------------
topic4     | yyyyyyyyyyyyyy (first post not need reply)
-------------------------------
topic5     | yyyyyyyyyyyyyy(first post)
-------------------------------------------
page1 2 3 4 5 ..



Now my SMF Have a problem , i want to show that in New Script ,not need any option

have any idea?

or have some example code.

Thanks
:)




AngelGirl


Kindred

then you would have to write your own script...   We support the SMF script here. :P

However - why don't you fix the problem with your php version instead of writing a klutzy interface. Then you can use SMF and SMF functions to access the SMF database. :)

What version of SMF are you running?
What version of php is your host running?
What is the actual error message that you are getting?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

AngelGirl

Quote from: Kindred on August 21, 2018, 08:45:38 AM
then you would have to write your own script...   We support the SMF script here. :P

However - why don't you fix the problem with your php version instead of writing a klutzy interface. Then you can use SMF and SMF functions to access the SMF database. :)

What version of SMF are you running?
What version of php is your host running?
What is the actual error message that you are getting?

Thanks

I try to fix the problem and install new one but cannot use old database.
i don't know what the cause of this case and the code are complex than made the new one
Now i can show it with my new stand alone script :laugh: ,how ever i hope to comeback to SMF again  :'(

Old sever
server  version: 5.6.34 MySQL
web server : Apache php 5.6.36
phpMyadmin 4.7.7

New sever
server  version: 5.6.38 MySQL
web server : Apache php 7.0.30
phpMyadmin 4.8.2

SMF 2.0.15

the error log file ..
Mon Aug 20 17:25:01.778223 2018] [core:notice] [pid 5425] AH00052: child pid 18114 exit signal Segmentation fault (11)
[Mon Aug 20 17:25:01.778244 2018] [core:notice] [pid 5425] AH00052: child pid 18200 exit signal Segmentation fault (11)
[Mon Aug 20 17:25:01.778276 2018] [core:notice] [pid 5425] AH00052: child pid 18303 exit signal Segmentation fault (11)


the error page show

site 1 just show white blank page

site 2 show...

Moved Permanently
The document has moved here
.
here = mydomain.com/usr/share/nginx/html/50x.html [nofollow]

Kindred

that's a host problem and has nothing at all to do with SMF.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

AngelGirl

Quote from: Kindred on August 23, 2018, 06:53:17 AM
that's a host problem and has nothing at all to do with SMF.

host said SMF2.015 not support php7 ::)

d3vcho

Yes, it does. PHP 7 support was introduced in SMF 2.0.14.
"Greeting Death as an old friend, they departed this life as equals"

GigaWatt

However, you'll get a whole lot of "depreciated function" errors in PHP 7.2.

You won't get those if you're using 7.0 or 7.1 ;).
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

Advertisement: