solved Timeline Posting

Ken Rich
Ken Rich
@ken-rich
11 years ago
926 posts
I just tried to add some content to my timeline with the editor. The submit button is greyed out and no matter what I put in the box it won't save.


--

Ken Rich
indiegospel.net

updated by @ken-rich: 12/26/14 06:25:16AM
michael
@michael
11 years ago
7,772 posts
This is on your profile on your site?
Ken Rich
Ken Rich
@ken-rich
11 years ago
926 posts
Yes... But now that I think of it, that's a MSkin problem someone reported to Nate last July that he didn't fix... I switched profile skins and confirmed it's in MSkin.

I haven't had a chance to style another skin to replace it in profiles, so the bottom line is to get out of trouble quickly I either have to try and clone that style, or fix the bug...


--

Ken Rich
indiegospel.net
brian
@brian
11 years ago
10,148 posts
Ken_Rich:
Yes... But now that I think of it, that's a MSkin problem someone reported to Nate last July that he didn't fix... I switched profile skins and confirmed it's in MSkin.

I haven't had a chance to style another skin to replace it in profiles, so the bottom line is to get out of trouble quickly I either have to try and clone that style, or fix the bug...

The latest Activity Timeline module has a global config check box to "enable editor" that you can use to enable the editor on any JR skin in the profile timeline.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Ken Rich
Ken Rich
@ken-rich
11 years ago
926 posts
Hi Brian,

The editor is enabled but if you type something and "Save Update" it doesn't save.

Unfortunately, this is Nate's bug reported to him last July by another MSkin purchaser, but never fixed.

I confirmed by temporarily switching profile skins. Am I correct in think it has to do with this piece of code?

$('#action_submit').attr('disabled',true);
$('#action_update').keyup(function(){
if ( $('#action_update').val().length > 0 && $('#action_update').val().length $('#action_submit').attr('disabled',false);
}
else {
$('#action_submit').attr('disabled',true);
}
});
});


--

Ken Rich
indiegospel.net
brian
@brian
11 years ago
10,148 posts
As long as the template is using the {jrAction_form} template function it will work - looks like your N8Flex skin is trying to do it manually, which is not going to work.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Ken Rich
Ken Rich
@ken-rich
11 years ago
926 posts
Can I chop out that piece of code and replace it with another to get it working?


--

Ken Rich
indiegospel.net

updated by @ken-rich: 11/23/14 06:27:14PM
brian
@brian
11 years ago
10,148 posts
Ken_Rich:
Can I chop out that piece of code and replace it with another to get it working?

You will need to replace the entire form with:

{jrAction_form}

Check out the modules/jrAction/item_index.tpl file. IF your skin has a skins/SkinName/jrAction_item_index.tpl file you can also delete it (or rename it) so the skin uses the module provided version.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Ken Rich
Ken Rich
@ken-rich
11 years ago
926 posts
OK - I "think" I'm understanding now... I'm a little slow on the uptake - lol...

I'll check into that and see if I can get it working...


--

Ken Rich
indiegospel.net
Ken Rich
Ken Rich
@ken-rich
11 years ago
926 posts
Hi Brian - after spending a several hours on this, I found a fix and this is what I found along the way.

1) What you say should exist for this to work is already there, in the profile_index.tpl
<div class="section"> {jrCore_include module="jrAction" template="item_index.tpl"}
</div>

2) I found profile_item_index.tpl and renamed it in the c-panel like you suggested, and set caches, even integrity check, but if it did start picking up the modules/jrAction/item_index.tpl file, it didn't fix it.
<div class="section">{$profile_item_index_content}<br clear="all" /></div> 

3) The piece of javacode I indicated before, seemed to have something to do with action submit. However, I did't know how it got loaded or called into play. I also didn't find it in another skin I checked. So I took a chance and deleted this whole section - and that fixed the problem lol

 $(function(){
	// main navigation init
	$(".rslides").responsiveSlides({
		auto: true,             // Boolean: Animate automatically, true or false
		speed: 2000,            // Integer: Speed of the transition, in milliseconds
		timeout: 8000
	});
	$('.feature_buttons #sdot_1').removeClass('iskin_btn');
	$('.feature_buttons #sdot_1').addClass('iskin_hilite');
	
	$('#action_submit').attr('disabled',true);
	$('#action_update').keyup(function(){
		if ( $('#action_update').val().length > 0 && $('#action_update').val().length < 141) {
			$('#action_submit').attr('disabled',false);
		}
		else {
			$('#action_submit').attr('disabled',true);
		}
	});
});



--

Ken Rich
indiegospel.net
brian
@brian
11 years ago
10,148 posts
Glad to see you got it working ;)

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net