We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Syntax error | Forum

kyle gore
kyle gore Sep 6 '14
I have updated my landing page but now when i go to publish it I am getting this error message


Syntax Error in template "/home1/thaimode/public_html/ow_system_plugins/base/views/controllers/join_index.html" on line 410 "(function() {OW.ajaxComponentLoaderRsp = "http:\/\/www.thaimodelstudent.com\/base\/ajax-loader\/component\/";" - Unexpected ".", expected one of: "}" , " " , ATTR 



When I am looking at the code this is what i have


(function() {OW.ajaxComponentLoaderRsp = "http:\/\/www.thaimodelstudent.com\/base\/ajax-loader\/component\/";OW.ajaxAttachmentLinkRsp = "http:\/\/www.thaimodelstudent.com\/base\/attachment\/add-link\/";OW.getPing().setRspUrl("http:\/\/www.thaimodelstudent.com\/base\/ping\/index\/");OW.Users = new OW_UsersApi({"rsp":"http:\/\/www.thaimodelstudent.com\/base\/ajax-users-api\/rsp\/"});})();</script><script type="text/javascript">$(function () {(function(_scope) {OW.registerLanguageKey('base', 'join_error_username_not_valid', "Please, enter a valid username");})(window);(function(_scope) {OW.registerLanguageKey('base', 'join_error_username_already_exist', "Sorry, this username already exists");})(window);(function(_scope) {OW.registerLanguageKey('base', 'join_error_email_not_valid', "Please, enter a valid email address");})(window);

I managed to get rid of the orriginal error on line 410 by removing the orriginal "{" but then it was replaced by an error on line 413 stating that it had an unexpected ":" which i removed then it stated there was an error on line 417 that was an unexpected "."
I am new to this. I have touched up the previous landing page that I had up and running fine with Dreamweaver, but when i went to first publish from there it would not let me for some reason then when i copy and pasted the html code into the join_index.html file I am now getting all of these errors..
What have I done wrong?

kyle gore
kyle gore Sep 6 '14

(function() {OW.ajaxComponentLoaderRsp = "http:\/\/www.thaimodelstudent.com\/base\/ajax-loader\/component\/";


OW.ajaxAttachmentLinkRsp = "http:\/\/www.thaimodelstudent.com\/base\/attachment\/add-link\/";


OW.getPing().setRspUrl("http:\/\/www.thaimodelstudent.com\/base\/ping\/index\/");


OW.Users = new OW_UsersApi({"rsp":"http:\/\/www.thaimodelstudent.com\/base\/ajax-users-api\/rsp\/"});

})();

</script><script type="text/javascript">

$(function () {


(function(_scope) {OW.registerLanguageKey('base', 'join_error_username_not_valid', "Please, enter a valid username");})(window);


(function(_scope) {OW.registerLanguageKey('base', 'join_error_username_already_exist', "Sorry, this username already exists");})(window);


(function(_scope) {OW.registerLanguageKey('base', 'join_error_email_not_valid', "Please, enter a valid email address");})(window);


thats the way the coding looks separated by line.

ross Team
ross Sep 7 '14
What do you mean you updated your landing page?
kyle gore
kyle gore Sep 8 '14
I edited the code from the join_index.html file in order to get away from the standard landing page or login page, following some instructions I found on http://www.ewtnet.com/...ll-join-page_19.html in order to try and give my site a bit of individuality. 


I have been able to make it so that it is working now. By using the standard code that is offered on that link for 1.7


 But I am still having troubles trying to configure it. I think it is because there is the theme template then the oxwall template and finally the join-index page so when i change something around on one of them it doesn't change the other. 


How would I remove the Sign up button from the static top menu and change the color of both the side bar and the top menu?


There is also a some text above the profile registration form I just can not seem to figure out how to remove.

ross Team
ross Sep 8 '14
So, as far as I understand the syntax error issue is solved now? 


can you please tell to what theme are you referring to? as to the sidebar, can you please show it on the screenshot what exact place of the sidebar you want to change the color

The Forum post is edited by ross Sep 8 '14
kyle gore
kyle gore Sep 8 '14

You are correct about the syntax error.


I brought it back to the original way through the link that i mentioned earlier. I would like to change the bar at the top as well as the side bar colors. 


Then remove the Join our community as well as the blurb above the registration form. 


I tried pulling the html text from the page when i looked at it in chrome, but when i take out these words/the sign up button and put it back into the join_index.html I get the syntax error. 


ross Team
ross Sep 8 '14
I'm sorry this is a third-party theme, contact theme developer to get this information. 
kyle gore
kyle gore Sep 9 '14
Ok thank you
Ebenezer from Bluetide Webs
Hello kyle,


Were you able to fix this issue?


kyle gore
kyle gore Sep 26 '14
For the most part yes, but i still cannot change the color of the tabs on the side menu or the highlight color for the sing in link on the console menu. 
ross Team
ross Sep 26 '14
Contact theme developer, please to get that info.
kyle gore
kyle gore Sep 26 '14
I did a while ago and he said "it would require to much code just to change the color".. Its ok I will keep on cracking away on that code, maybe i will get it one day!