Jump to content
  • 0

Flux CP CMS Addon 1.2 problem


Question

12 answers to this question

Recommended Posts

Posted (edited)

I can't understand where will I insert my news. Here's my addon.php

<?php

/*-------------------------------------

// Created by: Harrison aka CalciumKid

---------------------------------------

// Released Exclusively for the RAthena

// development boards. Please do not

// redistribute my work without

// permission and leave all credits in

// tact.

---------------------------------------

// !!!THIS WORK IS COPYRIGHTED!!!

// Contact: [email protected]

-------------------------------------*/

return array(

// Defines how many news items to show on home page.

'LimitNews' => 2,

// - Menu and sub-menu items. (displayed on left nav & content sub menu)

'MenuItems' => array(

'Main Menu' => array(

// Sample items for pages function.

'Downloads' => array('exturl' => 'http://www.mediafire.com/?38xb13tfsf83ge887'),

'Rules' => array('module' => 'pages','action'=>'content&path=rules'),

'Features' => array('module' => 'pages','action'=>'content&path=features'),

),

'Content Management' => array(

'News' => array('module' => 'news'),

'Pages' => array('module' => 'pages'),

)

),

'SubMenuItems' => array(

'pages' => array(

'index' => 'Manage',

'add' => 'Add'

),

'news' => array(

'index' => 'Manage',

'add' => 'Add News',

),

),

// Do not touch this.

'FluxTables' => array(

'NewsTable' => 'cp_news',

'PagesTable' => 'cp_pages',

)

)

?>

Edited by Natsu Dragneel
Posted

For news you don't have to touch the .php, just add news entry from ur CP. Also, did you apply those SQL files under \addons\content_management\schemas\logindb?

  • Upvote 1
Posted

this is my access.php, I already tried to edit my news in my webpage using a 99 admin account but I don't know how to. I already tried to edit in mysql the schemas you said that need to execute but this always appear.

This is the SS of my CP and this is my access.php

1fwwvd.png

<?php
/*-------------------------------------
// Created by: Harrison aka CalciumKid
---------------------------------------
// Released Exclusively for the RAthena
// development boards. Please do not
// redistribute my work without
// permission and leave all credits in
// tact.
---------------------------------------
// !!!THIS WORK IS COPYRIGHTED!!!
// Contact: [email protected]
-------------------------------------*/
return array(
'modules' => array(
'pages' => array(
// Pages are available to anyone on the site.
// Page management is only available to ADMINs
           'index'  => AccountLevel::ADMIN,
           'add'  => AccountLevel::ADMIN,
           'delete'  => AccountLevel::ADMIN,
           'edit'  => AccountLevel::ADMIN,
'content'  => AccountLevel::ANYONE,
),
       'news'  => array(
// News is available to anyone on the site.
// News management is only available to ADMINs
           'index'  =>  AccountLevel::ADMIN,
           'add'  =>  AccountLevel::ADMIN,
           'edit'  =>  AccountLevel::ADMIN,
           'delete'  =>  AccountLevel::ADMIN,
           'views'  =>  AccountLevel::ANYONE,
       ),
),
)
?>

Posted

I haven't read this whole thread yet but as to what I see in your screenshot is that maybe you don't have a theme in your cms add-on themes folder called designno3. Try to copy the default folder in your cms add-on themes folder and rename it to designno3. By doing so, you must now have 2 themes in your cms add-on themes foldeer, the default and designno3 folder. for every add-on you install, the themes folder must sync in your add-on themes folder...

Hope you understand my english LOL

  • Upvote 1
Posted

Different problem. I put this

<?php if (!defined('FLUX_ROOT')) exit;

$this->redirect($this->url('news','view'))

?>

in the index, the whole website doesn't even load and I get stuck @ 500 internal server error. anyhelp?

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...