That could work except I'm testing how pages look when there is no logged in user. Also, it implies that there's an issue, and I hate sweeping issues under the rug that I don't understand.
I must be doing it wrong. In my code when I use a function to determine if the current user is authorized to view the current page. The first thing it does is the following:
if (!$CI->fuel->auth->is_logged_in()) { return FALSE; } …
Actually, just ran across a reasonable explanation, so tried it and it worked. I had to give the jquery I was loading a different namespace to use.
// $j is now an alias to the jQuery function var $j = jQuery.noConflict( true );…
It's been like this for me over a month even though I've had it resend the confirmation email and done the revalidation. It doesn't seem to have prevented any functionality.
In one case, where the lat/longs are working, it appears as if they are being treated as strings (arrays converted to JSON):
[{"crew":"Crew 4659","crew_type":"Survey","project":"Calgary_2015_05_06","latitude":"51.002985485829","longitude":"-114.055…
I did it like this, but it's a lot of work. Just wondering if there's an easier way (from the navtech_projects_model):
function is_authorized_user() { $CI =& get_instance(); // check to see if user is logged in if (!$CI->fuel->…
Not exactly. I'm trying to figure out if I can do the following in one step:
select * from fuel_relationships where candidate_table='navtech_companies' and foreign_table='fuel_users' and foreign_key=1
The foreign_key is the fueld_users.id. The sec…
SOLVED:
in my {module}_base_controller::_common_vars() function, I now have the following (and it worked!):
function _common_vars() { $vars = array(); $vars['css'] = array('navtech'); $vars['js'] = array(); $vars['body'] = ''; $vars['p…
I think I got it. Just needed my own css and call the following:
<?=css('navtech')?>
Funny how it's easier to resolve an issue after you ask for help. Sometimes...
I think I found the issue, but I am not sure how to resolve it. If I look at the source for the blog, it has this:
This contains the proper css that I need for the formatting to work correctly.
This exists in: "fuelserver\assets\css" but I was loo…
Found it.
In the $config['modules']['navtech_projects'] I am missing the 'id' column:
'table_headers' => array(
'name',
'last_remote_update',
'published',
),
Argh!
'table_headers' => array(
'id',
'name',
'last_remote_up…
FYI, I created another simple module, added it to the nav menu and pointed the table to my projects table and now I get what I expected. I'll start migrating the code over and see if it's something I've done, which seems like the obvious case. I'll …
I added to module.php in the items() function, just before "if ( ! $this->rows_selectable)":
echo PHP_EOL . "this->rows_selectable:" . PHP_EOL . $this->rows_selectable;
The result is:
this->rows_selectable: 1
I added just before "for…
Ok, I figured it out. My code was calling a new array which was wiping out everything. I just needed to do this instead:
$CI =& get_instance();
$CI->load->module_model(FUEL_FOLDER, 'fuel_users_model');
$user_options = $CI->fuel_users_m…
One other issue in Blogs I haven't been able to track down yet is when you edit a blog and go to the Associations tab, the Category drop down only contains the first category from the fuel_categories, although you may have more than one.
I also made these further modifications:
ALTER TABLE `fuel_categories`
CHANGE COLUMN `name` `name` VARCHAR(255) NOT NULL DEFAULT '' COLLATE 'utf8_unicode_ci' AFTER `id`,
CHANGE COLUMN `slug` `slug` VARCHAR(255) NOT NULL DEFAULT '' COLLATE 'utf8_u…
FYI, because you convinced me to use the developer branch, it looks like your fuel_1.4_schema_changes.sql is missing some updates to the fuel_tags tables.
Specifically:
`description` text COLLATE utf8_unicode_ci NOT NULL,
`context` varchar(100…