Forum Activity for @softdesigns

SoftDesigns
@softdesigns
02/18/17 02:17:52PM
242 posts

Verify User is Profile Owner


Jamroom Developers

We have been searching for simple Smarty code sample that can go into: profile_header.tpl
--
GOAL: Check if the current logged in user is the owner of the current profile being viewed
If Yes - then execute custom JS code
--
Any samples of smart code that could achieve that?
updated by @softdesigns: 05/21/17 10:11:35PM
SoftDesigns
@softdesigns
02/18/17 06:30:26AM
242 posts

Execute JS after User Login


Jamroom Developers

Thanks for the reply:
Yes, your idea is good :)
We will work on your advice and try update code method to "redirect" User to new page.
It may take some time, but we will update this post with new results...
Great Support...
updated by @softdesigns: 02/18/17 06:32:58AM
SoftDesigns
@softdesigns
02/18/17 04:46:17AM
242 posts

Execute JS after User Login


Jamroom Developers

The page after SignIn goes to logged in users profile.
Searched page source, and that page does not contain our JS code below:
	//2017.02.17: TEST:  How to open JS Message Window after user login? :
	$_aJS = array("alert('TEST: Alert On SignIn');");
	jrCore_create_page_element('javascript_ready_function', $_aJS );
Quite strange, as all the code seems correct, so it should simply display a JS alert box?
--
Seems a bit difficult to execute JS after SignIn
--
We did clear cache, but could this have anything to do with code cached, or not up to date?
We must be missing something?
updated by @softdesigns: 02/18/17 04:57:40AM
SoftDesigns
@softdesigns
02/18/17 03:03:30AM
242 posts

Execute JS after User Login


Jamroom Developers

Thanks for the reply:
We searched “index” and “user profile" pages for "TEST:" did not find the JS code :(
--
From the last code above, onto which page should the JS be written?
Also jrCore_logger does not show the value of $_aJS
Could the JS code be lost because of redirect after SignIn?
updated by @softdesigns: 02/18/17 03:15:51AM
SoftDesigns
@softdesigns
02/18/17 02:50:20AM
242 posts

Execute JS after User Login


Jamroom Developers

Thanks for the reply:
We have updated the code to use “javascript_ready_function” but still not working :(
jrCore_logger creates new activity log, so code executed after each SignIn, but no JS alert box firing.
function sdContestMWUser_login_success_listener($_data,$_user,$_conf,$_args,$event)
{ $_sModule = "sdContestMWUser"; $_sUser = $_sModule.":Param-User:".var_dump($_user); // jrCore_logger("INF", $_sUser, ""); // //2017.02.17: TEST: How to open JS Message Window after user login? : $_aJS = array("alert('TEST: Alert On SignIn');"); jrCore_create_page_element('javascript_ready_function', $_aJS ); // javascript_ready_function // javascript_footer_function jrCore_logger("INF", $_sModule.":DEBUG:JS:05:23:JS=".var_dump($_aJS), ""); // return $_data; }
We have tested both "javascript_footer_function" and "javascript_ready_function", everything seems correct, but still no JS alert box firing.
--
Seems like we are missing something to make the JS fire consistently after user SignIn?
updated by @softdesigns: 02/18/17 03:04:57AM
SoftDesigns
@softdesigns
02/17/17 06:23:21PM
242 posts

Execute JS after User Login


Jamroom Developers

Thanks for the reply: We have updated the code, but still not working:
function sdContestMWUser_login_success_listener($_data,$_user,$_conf,$_args,$event)
{ $_sModule = "sdContestMWUser"; // //2017.02.17: TEST: How to open JS Message Window after user login? : $_js = array("alert('TEST: Alert On SignIn');"); jrCore_create_page_element('javascript_footer_function', $_js ); // jrCore_logger("INF", $_sModule.":DEBUG:JS:18:25:JS=".var_dump($_js), ""); // return $_data; }
No alert window shows after SignIn.
Also the value of $_js not showing in logs.
We must be missing something - any ideas?
updated by @softdesigns: 02/17/17 06:26:03PM
SoftDesigns
@softdesigns
02/17/17 10:19:55AM
242 posts

Execute JS after User Login


Jamroom Developers

GOAL: Execute JS after user SignIn, to prompt users with various dynamic messages.
--
We have the SignIn event firing, and logging, but cannot get JS alert to work.
function sdContestMWUser_init(){
	jrCore_register_event_listener('jrUser','login_success',
			'sdContestMWUser_login_success_listener');
}
function sdContestMWUser_login_success_listener($_data,$_user,$_conf,$_args,$event)
{ $_Log1 = "sdContestMWUser"; $_Log2 = $_Log1.":Param-User:".var_dump($_user); // jrCore_logger("INF", $_Log2, ""); // //2017.02.17: TEST: How to open JS Message Window after user login? : $_sJS = "<script>" ."alert('TEST: Alert On SignIn');" ."</script>"; echo $_sJS; jrCore_logger("INF", "DEBUG:JS:13:14", ""); // return $_data; }
--
Any advice or samples, on how to execute custom JS after SignIn - to open custom JS window?
updated by @softdesigns: 05/25/17 04:59:27PM
SoftDesigns
@softdesigns
02/17/17 09:14:00AM
242 posts

FoxyCart or PayPal


Using Jamroom

Thanks :) Based on your info above, we will move forward with FoxyCart.
Great Support - resolved...
updated by @softdesigns: 02/17/17 09:14:32AM
SoftDesigns
@softdesigns
02/17/17 08:58:02AM
242 posts

FoxyCart or PayPal


Using Jamroom

Before we activate our FoxyCart store, and start paying monthly subscription to Foxy, we want to make sure we are on the right track.
--
We have seen some JR support for PayPal, but it seems more JR integration support for Foxy. We want to make sure we focus on the most powerful payment options for JR.
--
Which payment platform:
- Allows us to setup : recurring subscriptions, and affiliate / commission options for pro users?
- Is already the most integrated with JR, with least amount of code effort?
- Offers most advanced Payment processing, that we can code flexible custom solutions?
- Is the best - most integrated - and offers most functions with JR platform?
--
Based on info above, which does the JamRoom staff advise: PayPal or Foxy?
updated by @softdesigns: 05/20/17 09:07:16AM
SoftDesigns
@softdesigns
02/01/17 10:30:09AM
242 posts

Support Ticket Enhancements


Suggestions

RE: Edit: Yes, makes sense about edit challenge. Only solution would be to wait 15 minutes after hit Submit before sending email. Another ticket system we use does allow edit for 15 minutes after submit, which really helps if you make typos, or forget something. No worries :)
--
RE: Close CheckBox: We see no visible button or checkbox to close ticket - are we missing something?
See Image: https://www.screencast.com/t/NsRmqIilPYcA
updated by @softdesigns: 02/01/17 10:34:27AM
  23