Forum News

  1. 3 years ago
    Edited 3 years ago by Firestarter

    Hello.
    Another my little plugin for this GREAT forum cms.
    -image-

    Guys, please help to change plugins labels, like "add new new". Realy I dont know how is correctly "Add news" or "Add new"))).
    P.S.:Check my code please.

  2. Edited 3 years ago by RIscRIpt

    GJ. But still you can use a separate channel for news :3

    "title"        => "First new",

    У news нет единственного числа в английском языке ^_^

    Переехал с Vanilla

    Мы так-же с vanilla на esoTalk переехали (уже почти год) =D

  3. @RIscRIpt У news нет ед. числа в англ. яз. ^_^

    Таки да, стыдно, потом переделаю.
    Приятно видеть наших людей. Прекрасный движок. Есть "моменты", но доделывать его куда приятнее, чем phpbb или даже ваниллу.

  4. aak.. i didnt understand what u guys are saying. XD
    btw, is this plugin works on toby's g3?

  5. Should work fine.

  6. Fatal Error

    message.fatalError

    =(

  7. Please, in \config\config.php
    $config["esoTalk.debug"] = true;
    And show me errors

  8. esoTalk v1.0.0g3

  9. Are you trying to import a phpBB forum into an existing esoTalk forum with already existing posts?

  10. 39 line of \addons\plugins\News\plugin.php please delete "newId"=>1.

    protected function createDefaultNews()
    	{
    		$time = time();
    		$model = ET::getInstance("newsModel");
    		$model->setData(array(			
    			"title"        => "First new",
    			"content" => "We are open.",
    			"hideFromGuests"        => 0,
    			"position"        => 1,
    			"startTime" =>$time
    		));
    		
    		return true;
    	}
  11. Parse error: syntax error, unexpected 'public' (T_PUBLIC) in /var/www/user41978/data/www/dayzplay.ru/f/addons/plugins/News/plugin.php on line 51

  12. Edited 3 years ago by Firestarter

    Maybe you forget "}" At the end of function.
    Updated plugin;

  13. Hello,
    I did not see the "Add News" on admin page,
    I saw this code:

    public function handler_initAdmin($sender, $menu)
    	{
    		print_r($sender);
    		
    		
    		$menu->add("news", "<a href='".URL("admin/news")."'><i class='icon-pencil'></i> ".T("News")."</a>");
    	}

    But seem when i fixed, i does not print any result,

  14. Edited 3 years ago by Tristan

    @Firestarter After disabling and enabling the plugin I get:

    SQL Error (23000, 1062): Duplicate entry '1' for key 'PRIMARY'
    INSERT INTO et_new (newId, title, content, hideFromGuests, position, startTime) VALUES (1, 'First new', 'We are open.', 0, 1, 1398333395)
  15. Please, edit protected function createDefaultNews() in plugin.php to:

    protected function createDefaultNews()
    	{
    		$time = time();
    		$model = ET::getInstance("newsModel");
    		$model->setData(array(			
    			"title"        => "First new",
    			"content" => "We are open.",
    			"hideFromGuests"        => 0,
    			"position"        => 1,
    			"startTime" =>$time
    		));
    		
    		return true;
    	}
  16. Please update the plugin instead and update the link in the attachment for everybody to be able to download the fix. Thanks!

  17. And by the way; I recommend you to replace every instance of new with news for better code understanding.

  18. Too many hotfixes here, why you don't update the code or clone it on github so people can help you improve it :)

  19. I Have ERROR Updated plugin;

    Fatal error: Call to undefined method ETPlugin_News::getResource() in /home/u865554682/public_html/talk/addons/plugins/News/plugin.php on line 80
  20. @twixi I Have ERROR Updated plugin;
    Fatal error: Call to undefined method ETPlugin_News::getResource() in /home/u865554682/public_html/talk/addons/plugins/News/plugin.php on line 80

    This plugin is currently not compatible with esoTalk 1.0.0g4.

  21. Newer ›
 

or Sign Up to reply!