Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Mys v1.3.x Mods (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=42)
-   -   Mys v1.3.4 News System (http://www.mysidiaadoptables.com/forum/showthread.php?t=4392)

IntoRain 01-16-2015 12:58 PM

Ah, of course you can build on top of it! ^^ It's far from finished, I never got to polish it because of lack of time + motivation @_@ You can also share what you do with it here, if you want to!

Regarding the html thingies, you can go to the format() functions and use htmlentities() I believe, to convert the html characters to html entities.

I'm using my own pagination because at the time I was enchanted with javascript and wanted to try it, so it's not really optimized at all xD

MikiHeart 01-17-2015 03:15 AM

I will share what I make for sure ^^
I want to put more links to the profile and pets and stuff in the comment box.
As well as implant a user siggy kinda thing. But the siggy will come later on when I build the forum.

MikiHeart 01-18-2015 08:32 AM

What Pagination are you using now?
Also, what about comments? Do they use the Pagination too?

CallumCharlton 03-10-2015 12:24 PM

Going to certainly add this to my site, or adapt it somewhat! Thanks so much! :3

IntoRain 03-10-2015 01:48 PM

Quote:

Originally Posted by MikiHeart (Post 31931)
What Pagination are you using now?
Also, what about comments? Do they use the Pagination too?

One I created to learn jQuery at the time, so looking at it now it's not really optimized xD It's pretty much the javascript code in one of the files. The comments don't use pagination
If I had more time, I'd recode it x.x'

CallumCharlton 03-10-2015 04:17 PM

You happen to be looking for work with a VPS? :pleased:

Ittermat 03-30-2016 05:07 PM

I installed this and followed the instructions- but I seem to get this error when I got to create News from the acp

Code:

Strict Standards: Declaration of AdminSidebar::setDivision() should be compatible with Sidebar::setDivision(GUIComponent $module) in /home/atrocity/public_html/classes/class_adminsidebar.php on line 18

Fatal error: Uncaught exception 'Exception' with message 'Database error 1054 - Unknown column 'content' in 'field list'' in /home/atrocity/public_html/classes/class_database.php:213 Stack trace: #0 /home/atrocity/public_html/classes/class_database.php(117): Database->_query('news', Array, 'insert') #1 /home/atrocity/public_html/admincp/view/newsview.php(223): Database->insert('news', Array) #2 /home/atrocity/public_html/classes/class_frontcontroller.php(100): ACPNewsView->create() #3 /home/atrocity/public_html/admincp/index.php(109): FrontController->render() #4 /home/atrocity/public_html/admincp/index.php(113): AdminCP::main() #5 {main} thrown in /home/atrocity/public_html/classes/class_database.php on line 213

Im not entirely sure what i did wrong?

Suzanne 06-15-2016 02:13 PM

Works perfectly. Thank you for offering this :-)

RinLin 08-06-2016 06:20 PM

I get this error when trying to access the news.php page
Fatal error: Class 'AppController' not found in /home/digitalp/public_html/news.php on line 7

NobodysHero 08-29-2016 12:07 AM

Just installed it on MystFell. It works great! I changed it around a little bit, but it works wonderfully! Thanks so much!

SilverDragonTears 01-13-2017 12:23 PM

This works great, however how can I make this the index page?

goofyunicorn 02-27-2018 06:22 AM

I get a fatal error when I try to create news. How do I fix this?

Dinocanid 02-27-2018 08:19 AM

What does the error say?

goofyunicorn 02-27-2018 09:56 AM

Quote:

Originally Posted by Dinocanid (Post 36990)
What does the error say?

Fatal error: Uncaught exception 'Exception' with message 'Fatal Error: Class ACPNewsView either does not exist, or has its include path misconfigured!' in /home/beausavi/public_html/classes/class_loader.php:83 Stack trace: #0 [internal function]: Loader->load('ACPNewsView') #1 /home/beausavi/public_html/classes/class_controller.php(135): spl_autoload_call('ACPNewsView') #2 /home/beausavi/public_html/classes/class_appcontroller.php(115): Controller->loadView(Object(Resource\Native\String)) #3 /home/beausavi/public_html/classes/class_frontcontroller.php(71): AppController->getView() #4 /home/beausavi/public_html/admincp/index.php(108): FrontController->getView() #5 /home/beausavi/public_html/admincp/index.php(113): AdminCP::main() #6 {main} thrown in /home/beausavi/public_html/classes/class_loader.php on line 83

Dinocanid 02-27-2018 10:06 AM

It looks like you're missing ACPNewsView.php. Is it in the view folder?

goofyunicorn 02-27-2018 10:14 AM

Quote:

Originally Posted by Dinocanid (Post 36992)
It looks like you're missing ACPNewsView.php. Is it in the view folder?


Yep I have it. AdminCP and then the View folder in there. :/

Dinocanid 02-27-2018 10:54 AM

When you open the file, does it have this near the top:
PHP Code:

class ACPNewsView extends View

or this?:
PHP Code:

class NewsView extends View


goofyunicorn 02-27-2018 10:57 AM

Quote:

Originally Posted by Dinocanid (Post 36995)
When you open the file, does it have this near the top:
PHP Code:

class ACPNewsView extends View

or this?:
PHP Code:

class NewsView extends View


PHP Code:

class NewsView extends View

It has this!

Dinocanid 02-27-2018 11:03 AM

Oh! You put it in the wrong place then. (I figured that might be the issue, since both files have the exact same name)
Just copy-paste the code for the view file under the "Part 4: The AdminCP" section of the OP and it should work.
"ACPNewsView" needs to be in the view subfolder located in the adminCP folder, while "NewsView" needs to go in the main view folder located under public_html.

goofyunicorn 02-27-2018 11:16 AM

Quote:

Originally Posted by Dinocanid (Post 36997)
Oh! You put it in the wrong place then. (I figured that might be the issue, since both files have the exact same name)
Just copy-paste the code for the view file under the "Part 4: The AdminCP" section of the OP and it should work.
"ACPNewsView" needs to be in the view subfolder located in the adminCP folder, while "NewsView" needs to go in the main view folder located under public_html.

It still doesn't come up. New error I think:

Fatal error: Uncaught exception 'Exception' with message 'Fatal Error: Class ACPNewsView either does not exist, or has its include path misconfigured!' in /home/beausavi/public_html/classes/class_loader.php:83 Stack trace: #0 [internal function]: Loader->load('ACPNewsView') #1 /home/beausavi/public_html/classes/class_controller.php(135): spl_autoload_call('ACPNewsView') #2 /home/beausavi/public_html/classes/class_appcontroller.php(115): Controller->loadView(Object(Resource\Native\String)) #3 /home/beausavi/public_html/classes/class_frontcontroller.php(71): AppController->getView() #4 /home/beausavi/public_html/admincp/index.php(108): FrontController->getView() #5 /home/beausavi/public_html/admincp/index.php(113): AdminCP::main() #6 {main} thrown in /home/beausavi/public_html/classes/class_loader.php on line 83

Dinocanid 02-27-2018 11:27 AM

If you download the RAR file, the error still appears if you do this?:
  • Take the file from "Mys134 - News System\admincp\view\newsview.php" and place it in "public_html\admincp\view" (make sure to overwrite the existing file if it asks)
  • Take the file from "Mys134 - News System\views\newsview.php" and place it in "public_html\view"

I'm sure error has something to do with where you placed it, since the script itself runs fine without changes.

goofyunicorn 02-27-2018 11:45 AM

Quote:

Originally Posted by Dinocanid (Post 37000)
If you download the RAR file, the error still appears if you do this?:
  • Take the file from "Mys134 - News System\admincp\view\newsview.php" and place it in "public_html\admincp\view" (make sure to overwrite the existing file if it asks)
  • Take the file from "Mys134 - News System\views\newsview.php" and place it in "public_html\view"

I'm sure error has something to do with where you placed it, since the script itself runs fine without changes.

Yay! We are working :D

One more thing, now when I go to my website it comes up with this to do with the themes:
Fatal error: Uncaught exception 'SmartyException' with message 'Unable to load template file 'template.tpl'' in /home/beausavi/public_html/inc/smarty/sysplugins/smarty_internal_templatebase.php:127 Stack trace: #0 /home/beausavi/public_html/inc/smarty/sysplugins/smarty_internal_templatebase.php(374): Smarty_Internal_TemplateBase->fetch('template.tpl', NULL, NULL, NULL, true) #1 /home/beausavi/public_html/classes/class_template.php(135): Smarty_Internal_TemplateBase->display('template.tpl') #2 /home/beausavi/public_html/classes/class_view.php(280): Template->output() #3 /home/beausavi/public_html/classes/class_frontcontroller.php(102): View->render() #4 /home/beausavi/public_html/index.php(74): FrontController->render() #5 /home/beausavi/public_html/index.php(78): IndexController::main() #6 {main} thrown in /home/beausavi/public_html/inc/smarty/sysplugins/smarty_internal_templatebase.php on line 127

Dinocanid 02-27-2018 11:52 AM

What page does this show up on?

goofyunicorn 02-27-2018 11:56 AM

Quote:

Originally Posted by Dinocanid (Post 37002)
What page does this show up on?

When I type in the webaddress on any page.

Dinocanid 02-27-2018 12:37 PM

The site appears fine for me, and I tried all 3 of the themes from the changestyle page. If you go to phpMyAdmin and look under the user settings table, what does it say for your chosen theme?

goofyunicorn 02-27-2018 01:09 PM

Quote:

Originally Posted by Dinocanid (Post 37004)
The site appears fine for me, and I tried all 3 of the themes from the changestyle page. If you go to phpMyAdmin and look under the user settings table, what does it say for your chosen theme?


It seems to be just on my laptop. One more question, how do I make a support ticket page?

Dinocanid 02-27-2018 05:35 PM

Quote:

Originally Posted by goofyunicorn (Post 37005)
It seems to be just on my laptop. One more question, how do I make a support ticket page?

I actually have code lying around for that, which I haven't even used tbh. I'll look for it and make a topic for it


All times are GMT -5. The time now is 08:23 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.