code doesnt accept code but editor source code does

soaringeagle
@soaringeagle
11 years ago
3,304 posts
i was trying to set up a simple list
it was something like
<div class="forumlistview"> {jrCode_list module="jrForum" order_by="_updated" limit="10"}</div>
1st try to save said something like invalid code must be alphanumeric with acceptable html like and a list wich included div
i tried to save again and my site got all screwed up i went into msql ereset the skin came back reactivated it it was screwed up still
but i was ableto access the edit page button i tried the repair layout then edit layout and clicking 1 of the defaults fixed it
i wentback this time using editor and source code pasted in the exact same code, clicked save got a "system wide error error:
or something like that clicked save again and it worked perfectly

i think its the new construction kit thats a lil buggy still


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 12/22/16 11:55:59AM
michael
@michael
11 years ago
7,822 posts
The issue is that there is no function called jrCode_list. What your after is jrCore_list

Putting in functions that don't exist could break the page.

If you find the page is broken from something you put in a widget, use repair=true in the url to get back to the widget editing screens.

eg:
your-site.com/somepage

use
your-site.com/somepage/repair=true

to load the widget headers without the content.
updated by @michael: 12/22/16 11:55:59AM
soaringeagle
@soaringeagle
11 years ago
3,304 posts
well i know i typesd it right in the code window just not here lol it wiouldnt accept the proper code that i copy and pasted exactly as is intto source code and worked


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 12/22/16 11:55:59AM
michael
@michael
11 years ago
7,822 posts
In order to test it, i need to know the exact code your using in both locations.
updated by @michael: 12/22/16 11:55:59AM
soaringeagle
@soaringeagle
11 years ago
3,304 posts
id have to retry it myself i just gave up on using the code thing and do it all in source code since then but i'll try again tomorow


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 12/22/16 11:55:59AM
soaringeagle
@soaringeagle
11 years ago
3,304 posts
ok this is the code i used it wont accept
<div class="forumlistindexpage">{jrCore_list module="jrForums" order_by="forum_updated" search1="_profile_id = 13331" template="my_forum_template.tpl"}</div>
since it says it accepts divs and the example shows smarty code my guess would be its not accepting the class statement? a guess not tested


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 12/22/16 11:55:59AM
michael
@michael
11 years ago
7,822 posts
What gets output? What did you expect to get output? Whats in my_forum_template.tpl?

-- edit --
you would need to create that template in:
/skins/jrNingja/my_forum_template.tpl

in order to use it.

What Im trying to understand is: is it an issue with the Site Builder 'code' block system or is it an issue with the code your trying to use not working.

-- edit --
try adding HELLO WORLD to the code block and see if it gets output.
updated by @michael: 12/22/16 11:55:59AM
soaringeagle
@soaringeagle
11 years ago
3,304 posts
ok heres the code i used
<div class="forumlistindexpage">{jrCore_list module="jrForum" order_by="forum_updated desc" search="forum_profile_id = 13331" pagebreak="15" pager="true" template="my_forum_list.tpl"}</div>
and heres the screenshot
jpg
 •  205KB




--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 12/22/16 11:55:59AM
soaringeagle
@soaringeagle
11 years ago
3,304 posts
then heres the screenshot from hello world
jpg
 •  173KB




--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 12/22/16 11:55:59AM
soaringeagle
@soaringeagle
11 years ago
3,304 posts
i did say in the other discussion that i had 1 lil javascript for the scrollbars that i havent tried removing

but ive tested it before the script loaded too but i will try removing it temorarily and see if it changes anything


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 12/22/16 11:55:59AM
michael
@michael
11 years ago
7,822 posts
That means that the javascript is not working in that location. Try it on the default skin, see if it works.

I'll check it out from here.

Whats that extra square box on the screen, that shouldn't be there.
updated by @michael: 12/22/16 11:55:59AM
soaringeagle
@soaringeagle
11 years ago
3,304 posts
nevermind that script wsas the 1thing i forgot to copy over into the junk template

so the only possible script that could be interfering is the google adsense responsive ad code
thats the only script i added


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 12/22/16 11:55:59AM
soaringeagle
@soaringeagle
11 years ago
3,304 posts
by default skin u mean slate?


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 12/22/16 11:55:59AM
soaringeagle
@soaringeagle
11 years ago
3,304 posts
or the uncloned unedited version of junk


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 12/22/16 11:55:59AM

Tags