Register for your free account! | Forgot your password?

Go Back   elitepvpers > Other Online Games > Browsergames > DarkOrbit
You last visited: Today at 05:44

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[In-Orbit][Script] Newspart

Discussion on [In-Orbit][Script] Newspart within the DarkOrbit forum part of the Browsergames category.

Reply
 
Old   #1
 
UND3RW0RLD's Avatar
 
elite*gold: 1
Join Date: Jun 2011
Posts: 1,464
Received Thanks: 1,065
[In-Orbit][Script] Newspart

If you use the In-Orbit CMS you maybe want to have a workings newsletter.

Everything is working well and you can add news by inserting rows to db

requirements: version of in-orbit

SQL

add this to init.php (\KERNEL-DOCMS\)
PHP Code:
require_once 'Class.news.php'
create this file in the same directory (Class.news.php)

go to \KERNEL-DOCMS\Files\en_US\INDEXINTERNAL\internalStart_Body .php
and find
Code:
<div id="homeNewsContent">
replace the whole container with this


that's it
UND3RW0RLD is offline  
Thanks
7 Users
Old 10/20/2014, 20:39   #2
 
sveratus's Avatar
 
elite*gold: 0
Join Date: Sep 2014
Posts: 270
Received Thanks: 21
heheh very nice tutorials , are you gonna release other cool tutos?
sveratus is offline  
Old 10/22/2014, 22:26   #3
 
steppdroid's Avatar
 
elite*gold: 0
Join Date: Sep 2014
Posts: 280
Received Thanks: 42
To fix this error?:

Quote:
Notice: Undefined index: DB in C:\Program Files (x86)\xampp\htdocs\KERNEL-DOCMS\Class.news.php on line 14

Fatal error: Call to a member function prepare() on a non-object in C:\Program Files (x86)\xampp\htdocs\KERNEL-DOCMS\Class.news.php on line 18
image:
steppdroid is offline  
Old 10/23/2014, 05:14   #4
 
UND3RW0RLD's Avatar
 
elite*gold: 1
Join Date: Jun 2011
Posts: 1,464
Received Thanks: 1,065
Lightbulb

Quote:
Originally Posted by steppdroid View Post
To fix this error?:

image:
obviously you do not use the pdo-db-class. prepare() is a method of this class.

Copy this to init.php

create this file (Class.db.php) in the same folder (\KERNEL-DOCMS\) (Change connection-settings)
UND3RW0RLD is offline  
Old 10/23/2014, 12:02   #5
 
steppdroid's Avatar
 
elite*gold: 0
Join Date: Sep 2014
Posts: 280
Received Thanks: 42
Wink

Quote:
Originally Posted by ǝnd1ǝss-ɯonǝʎ View Post
obviously you do not use the pdo-db-class. prepare() is a method of this class.

Copy this to init.php

create this file (Class.db.php) in the same folder (\KERNEL-DOCMS\) (Change connection-settings)
Now Work! Thanks! Do you know how fix also hall of fame ?
steppdroid is offline  
Old 10/23/2014, 21:00   #6

 
Luffa's Avatar
 
elite*gold: 61
Join Date: Oct 2010
Posts: 1,188
Received Thanks: 2,403
I love my PDO class :i<3
Luffa is offline  
Old 10/24/2014, 02:10   #7
 
elite*gold: 0
Join Date: May 2014
Posts: 6
Received Thanks: 0
Parse error: syntax error, unexpected '[' in /home/u723079466/public_html/KERNEL-DOCMS/Init.php on line 16
Sues1de is offline  
Old 10/24/2014, 07:35   #8

 
Luffa's Avatar
 
elite*gold: 61
Join Date: Oct 2010
Posts: 1,188
Received Thanks: 2,403
Quote:
Originally Posted by Sues1de View Post
Parse error: syntax error, unexpected '[' in /home/u723079466/public_html/KERNEL-DOCMS/Init.php on line 16
Use PHP version 5.4 or higher.
Best regards bau
Luffa is offline  
Thanks
1 User
Old 10/24/2014, 08:24   #9
 
UND3RW0RLD's Avatar
 
elite*gold: 1
Join Date: Jun 2011
Posts: 1,464
Received Thanks: 1,065
Basicly the globalspart is obsolete bc it's singleton
UND3RW0RLD is offline  
Thanks
1 User
Old 10/24/2014, 13:02   #10
 
DarkSkiesDO's Avatar
 
elite*gold: 0
Join Date: Oct 2014
Posts: 84
Received Thanks: 100
Very nice tutorial, I look forward to seeing many more releases/tutorials from you in the future.
To Bau, nice CMS release, it's a very good one, I love your work, you're my idol, I don't mean that in any weird way either xD

Best Regards,
DarkSkiesDO
DarkSkiesDO is offline  
Reply




All times are GMT +2. The time now is 05:44.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.