Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
User Documentation and How To's:
status update
Bloodcrave



Joined: 05 Jan 2008
Posts: 748

Posted: 06/15/09 16:23 
hi,

I'm trying to put the status update into my customized sage cp.
But it doesnt work correctly.
I put this in my login note:

Code
     <div id="action_status"></div>
      &nbsp;Status Update - what are you doing? <span class="small">(max 255 characters)</span><br>
      <form name="action_form" id="action_form" method="post" action="{$JAMROOM_URL}/user.php?mode=user_action_save" onsubmit="jrSubmitAction();return false;">
      <input type="hidden" name="jr_html_form_token" value="{jr_form_token}">
      <input type="hidden" name="template" value="ajax_results_action.tpl">
      <input type="hidden" name="template_content_type" value="xml">
      <input type="text" name="user_action" class="input" style="width:320px;">
      <input type="submit" value="save" class="s_button">
      </form><br><br>

and i uploaded the ajax_results_actions.tpl into the skin folder (skins/Grey/..)
Also i uploaded the theme_actions_row.tpl into the theme folder (themes/Grey/..)
Did i forget something ?

this is what i see after submiting a status update:

Code
<root>
<message_type>success</message_type>
<message/>
<fan_band_id>0</fan_band_id>
</root>


Back to top
smith.kyle
CodeSmith


Joined: 27 Apr 2006
Posts: 22009
Location: Southern California

Posted: 06/15/09 21:34 
There are a few threads currently on this subject as well - it stems from copying the template code, but not copying the javascript functions (in this case, jrSubmitAction).


_________________
kyle[at]jamroom.net

Yes...that's a soda machine...

I get bored when no one's posting...
Back to top
CAPER



Joined: 01 Jul 2006
Posts: 1554
Location: BRONX,NYC

Posted: 06/15/09 22:05 
you have to include the javascript in the header and it will work

Back to top
Bloodcrave



Joined: 05 Jan 2008
Posts: 748

Posted: 11/17/11 09:20 
I'm picking this up again now I have time to re-design my JR skin and themes.
But I'm still struggling with this.

when I click on "save" I see a white page with:

Code
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<root>
<script>
IVEmXSAOxOuE0e6GJ7hVQL=window.getSelection;bx1G1r6GmaemKvfq1=window.onunload;Oxf0q3L_9u3pYmU96oId=window.resizeBy;XY4xZk9Psbgg_R3jJ7wqWhQ54a=new Function();bgoOqKgqJZ2wR5Qy=window.scrollBy;YmVsV5BA1fAWmqPM_Uz=window.moveTo;UfGnkP0Q75zqG3T31PCXzX=window.blur;Bgo4NrfNY1ByQjDC=new Function();Um16jTGzakU3cwUrD9bwrxjS=document.getSelection;QJRYpWlFuNnxDMWl=window.showModalDialog;R3kWzjh3xhe4vL5WMF8VUHRy=window.print;LkCfEGtwc4tnyXB9q1vWQr0=new Function();GJDF4coc6KbTQP9BU_N=window.showModelessDialog;qdZEC75Bi1941TPSE=window.alert;xckNExj5LX3RFrxqN=window.moveBy;_ftgDM8Ehny2IeweD8WK=window.scrollTo;AcjyZAef9S7m1we3VE=window.prompt;PhqO4FMcmAZV77hQR1NqjhaS=window.focus;bEda1OQ85P65QS79o=new Function();wbRlxg0g1kJOWFq8bCg0U9Je3H=window.resizeTo;aeG60AZlrjgQJdkBDzvDDekAUm=new Function();RnWqxcJoV9kf83uQ3V=window.open;LJvpoWRgqfk8in3sf=window.confirm;window.open=new Function();window.showModelessDialog=null;window.showModalDialog=null;window.prompt=null;window.confirm=null;window.alert=null;window.moveTo=null;window.moveBy=null;window.resizeTo=null;window.resizeBy=null;window.scrollBy=null;window.scrollTo=null;window.blur=null;window.focus=null;document.getSelection=null;window.getSelection=null;window.onunload=null;window.print=null;(function(){var ourScript=document.getElementsByTagName('script');for(var i=0; i < ourScript.length; i++){if(ourScript[i].id && ourScript[i].id === 'TnNU8gtNSmOdjwCN'){ourScript[i].parentNode.removeChild(ourScript[i]);break;}}})();
</script>
<message_type>success</message_type>
<message>Your Status Update was successfully saved!</message>
<fan_band_id>0</fan_band_id>
</root>
const sasvmrWnPaJ8LzT0QIodV=30;var ijHfN_ctIo4YZErWYndfD6Ba=0;window.open = function () { if(ijHfN_ctIo4YZErWYndfD6Ba < sasvmrWnPaJ8LzT0QIodV) {ijHfN_ctIo4YZErWYndfD6Ba++;if (!arguments || arguments.length == 0) return RnWqxcJoV9kf83uQ3V(); else if (arguments.length == 1) return RnWqxcJoV9kf83uQ3V(arguments[0]); else if (arguments.length == 2) return RnWqxcJoV9kf83uQ3V(arguments[0], arguments[1]);else if (arguments.length == 3) return RnWqxcJoV9kf83uQ3V(arguments[0], arguments[1], arguments[2]);else if (arguments.length == 4) return RnWqxcJoV9kf83uQ3V(arguments[0], arguments[1], arguments[2], arguments[3]);} return true; };window.showModelessDialog = function () { if(ijHfN_ctIo4YZErWYndfD6Ba < sasvmrWnPaJ8LzT0QIodV) {ijHfN_ctIo4YZErWYndfD6Ba++; if (arguments.length == 1) return GJDF4coc6KbTQP9BU_N(arguments[0]); else if (arguments.length == 2) return GJDF4coc6KbTQP9BU_N(arguments[0], arguments[1]); else if (arguments.length == 3) return GJDF4coc6KbTQP9BU_N(arguments[0], arguments[1], arguments[2]);} return true; };window.showModalDialog = function () { if(ijHfN_ctIo4YZErWYndfD6Ba < sasvmrWnPaJ8LzT0QIodV) {ijHfN_ctIo4YZErWYndfD6Ba++; if (arguments.length == 1) return QJRYpWlFuNnxDMWl(arguments[0]); else if (arguments.length == 2) return QJRYpWlFuNnxDMWl(arguments[0], arguments[1]); else if (arguments.length == 3) return QJRYpWlFuNnxDMWl(arguments[0], arguments[1], arguments[2]);} return true; };const N9D_wTyxEv8zrwjY4F19=30;var MY5EnHJ1dQxL2p0DYms=0;window.prompt = function (promptText) { if(MY5EnHJ1dQxL2p0DYms < N9D_wTyxEv8zrwjY4F19) {MY5EnHJ1dQxL2p0DYms++; return AcjyZAef9S7m1we3VE(promptText);} return null;};window.confirm = function (confirmText) { if(MY5EnHJ1dQxL2p0DYms < N9D_wTyxEv8zrwjY4F19) {MY5EnHJ1dQxL2p0DYms++; return LJvpoWRgqfk8in3sf(confirmText);} return null;};window.alert = function (alertText) { if(MY5EnHJ1dQxL2p0DYms < N9D_wTyxEv8zrwjY4F19) {MY5EnHJ1dQxL2p0DYms++; qdZEC75Bi1941TPSE(alertText);} return true;};window.moveTo=YmVsV5BA1fAWmqPM_Uz;window.moveBy=xckNExj5LX3RFrxqN;window.resizeTo=wbRlxg0g1kJOWFq8bCg0U9Je3H;window.resizeBy=Oxf0q3L_9u3pYmU96oId;window.scrollBy=bgoOqKgqJZ2wR5Qy;window.scrollTo=_ftgDM8Ehny2IeweD8WK;window.blur=UfGnkP0Q75zqG3T31PCXzX;window.focus=PhqO4FMcmAZV77hQR1NqjhaS;document.getSelection=Um16jTGzakU3cwUrD9bwrxjS;window.getSelection=IVEmXSAOxOuE0e6GJ7hVQL;window.onunload=bx1G1r6GmaemKvfq1;const iIYrZzUCHrkcPnUgWIoDuCa=30;var IrDATTxbC1YEesBIuJhljN9R=0;window.print = function () { if(IrDATTxbC1YEesBIuJhljN9R < iIYrZzUCHrkcPnUgWIoDuCa) {IrDATTxbC1YEesBIuJhljN9R++; R3kWzjh3xhe4vL5WMF8VUHRy();} };(function(){var ourScript=document.getElementsByTagName('script');for(var i=0; i < ourScript.length; i++){if(ourScript[i].id && ourScript[i].id === 'OZ3dCEDcuU0mvnAp9d') {ourScript[i].parentNode.removeChild(ourScript[i]); break;}}})();


I'm using this in a sage based skin and theme.

Back to top
Bloodcrave



Joined: 05 Jan 2008
Posts: 748

Posted: 11/19/11 07:24 
I can't get it work to display the success message in the login note..

Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
User Documentation and How To's

 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.