New Text Formatters setup

brian
@brian
12 years ago
10,149 posts
Thought I would post this here in case Steve wanted to chime in or provide any feedback.

So with today's updated to the Forum, I also pushed out a new change to how "text formatters" work (think all the smarty template modifiers that we normally tack on to the end of say a blog post text, for converting HTML, for expanding embed tags, etc.). I built a new module feature setup for "format_string" that modules can setup in their init() and let the core know that they want to be involved in text formatting.

An example will help - so here's the new setup in jrEmbed:

    // Watch for [embed] strings inside text
    $_tmp = array(
        'wl'    => 'embed',
        'label' => 'Convert Embed Tags',
        'help'  => 'If active, Embed Tags will be converted to the proper HTML to show the embedded item.'
    );
    jrCore_register_module_feature('jrCore', 'format_string', 'jrEmbed', 'jrEmbed_format_string_embed_tags', $_tmp);

Basically this registers a new function (jrEmbed_format_string_embed_tags) which gets called when the jrCore_format_string smarty variable modifier is called, and that gives it a chance to do it's work on the text and return it:

/**
 * Registered core string formatter - Embed Tags
 * @param string $string String to format
 * @param int $quota_id Quota ID for Profile ID
 * @return string
 */
function jrEmbed_format_string_embed_tags($string, $quota_id = 0)
{ // find any [jrEmbed mode="jrAudio" id="30"] and ask the module to replace it if (strpos(' '. $string, '[')) { $pattern = '#\[jrEmbed(([\s|=].*?)*?)\]#i'; $string = preg_replace_callback($pattern, 'jrEmbed_replace_tag', $string); } return $string; }

So ALL the format options now work this way. This allows module and skin designers to simply do something like:

{$item.blog_text|jrCore_format_string:$profile_quota_id}

and then all the text formatting features (HTML, BBCode, Embed, expand @ tags, etc.) will be called by the jrCore_format_string. Modules can then add in new text features (i.e. smilies) and no changes are needed to templates.

This also allows the admin to control which formatting features are active, as they can turn each on/off at the quota level.

Let me know what you guys think.

Thanks!


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

updated by @brian: 06/28/16 07:26:41AM
brian
@brian
12 years ago
10,149 posts
Looks like the code block is messed up - let me see if I can fix that.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
12 years ago
10,149 posts
code formatting is currently broken - I realize my "quick" way of doing it is not going to work, and I'm going to need to rewrite it in the morning. So bbcode "code" formatting is down for the night.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
Just looking at the code formatting


    
        {jrCore_lang module="jrProfile" id="26" default="Profiles"}
    

    

        {jrCore_list module="jrProfile" order_by="_created NUMERICAL_DESC" search1="profile_active = 1" pagebreak="10" page=$_post.p pager=true}

    





--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
Just tried something which didnt work.
ddd


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 09/12/13 02:44:51PM
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
Posting responses in this thread seems broken, I dont see my posts. Also the code above has changed from before I posted - it now shows in narrow boxes


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
brian
@brian
12 years ago
10,149 posts
Are you still not seeing your posts? Everything looks good to me here.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
I see them now.

But previously posted 3 times, submit seemed succesful, but they didnt appear when the page refreshed itself.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
brian
@brian
12 years ago
10,149 posts
Weird - I've not seen that. Can you try a couple more followups here and see if you can replicate it?

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
Seems to be the html in the code I posted - it doesnt show in the code block


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
I'll try it again


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts


    
        {jrCore_lang module="jrProfile" id="26" default="Profiles"}
    

    

        {jrCore_list module="jrProfile" order_by="_created NUMERICAL_DESC" search1="profile_active = 1" pagebreak="10" page=$_post.p pager=true}

    





--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
I see that post, but that isnt all I posted in the code block


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts



{jrCore_lang module="jrProfile" id="26" default="Profiles"}




{jrCore_list module="jrProfile" order_by="_created NUMERICAL_DESC" search1="profile_active = 1" pagebreak="10" page=$_post.p pager=true}






--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
within the code block it seems to be stripping out the html around the smarty


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
Ultrabubble:



{jrCore_lang module="jrProfile" id="26" default="Profiles"}




{jrCore_list module="jrProfile" order_by="_created NUMERICAL_DESC" search1="profile_active = 1" pagebreak="10" page=$_post.p pager=true}







--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
{jrCore_include template="header.tpl"}



    
        {jrCore_lang module="jrProfile" id="26" default="Profiles"}
    

    

        {jrCore_list module="jrProfile" order_by="_created NUMERICAL_DESC" search1="profile_active = 1" pagebreak="10" page=$_post.p pager=true}

    



{jrCore_include template="footer.tpl"}



--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
That's from modules/jrProfile/templates/index.tpl

The html is not appearing


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
The code blocks have gone narrow and lost their formatting again


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
brian
@brian
12 years ago
10,149 posts
ahh hang on - I know what's up - give me 5 mins to fix it


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
I "think" I'm recreating it like this:

Click on update. Click into text area. Press the cancel button. Code has lost formatting.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
test


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
The formatting comes back when I post


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
test


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
Clicking in the text box isnt necessary.

Just click to post and then cancel - formatting is lost.

Post again and it returns


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
brian
@brian
12 years ago
10,149 posts
Ultrabubble:
I "think" I'm recreating it like this:

Click on update. Click into text area. Press the cancel button. Code has lost formatting.

If you just cancel, that does not affect the content of the message. Right now strip_tags is being run on the contents of the code block which is why you are not seeing the HTML. Unfortunately it is very tricky to separate everything properly in the parsing. Let me see if I can get it fixed up.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
test


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
get the formatting back by posting


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
Yes, formatting is back.

I see code boxes at the full width of the thread part of the page with line numbers on the left.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
Clicked to edit a post (plain text one) and then canceled, arrived back here and the code boxes are about one third of the width of the thread part of the page, no line numbers. It stay s like that even if I refresh the page, but formatting returns when I post.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
get formatting back


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
Yes, its every time in FF


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
brian
@brian
12 years ago
10,149 posts
Yep - the root cause is that when the cached page is being shown, the code formatting JS is not being included - fixing it now.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
12 years ago
10,149 posts
Okay - try posting the mixed HTML/smarty again if you would and let me know if that looks better.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
{jrCore_include template="header.tpl"}

<div class="block">

    <div class="title">
        <h1>{jrCore_lang module="jrProfile" id="26" default="Profiles"}</h1>
    </div>

    <div class="block_content">

        {jrCore_list module="jrProfile" order_by="_created NUMERICAL_DESC" search1="profile_active = 1" pagebreak="10" page=$_post.p pager=true}

    </div>

</div>

{jrCore_include template="footer.tpl"}




--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
Looks perfect!


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
And still looks perfect after I edit then cancel


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
brian
@brian
12 years ago
10,149 posts
Ultrabubble:
Looks perfect!

Right on :)

Please try to break it some more if you can - you're help has been awesome. I think it is starting to come together and is going to work out well for the support forum.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
I do love breaking things <-- ?


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
Darn


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
<--<--


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
Ultrabubble:
<--- <----

nothing left to try



--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 09/12/13 02:07:24PM
brian
@brian
12 years ago
10,149 posts
Ultrabubble:
[color=brown] brown

I didn't create a color BBCode plugin - didn't want people going all rainbow. Do you think it is needed? I also did not create right/center/sup/sub plugins either.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
No, I don't think its necessary - if there are colors it should be just the one color (red) for highlighting parts of code. But then you have to use the quote tag for code anyway, so probably best to not have colors altogether.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
I'd tried brown because =b is also a smiley, but there are no smileys anyway :)


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 09/12/13 02:48:27PM
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
It all looks good now


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
If I upload a file (as above) and then click on it:
http://www.jamroom.net/forum/download/forum_file/271
Quote: Error: Invalid media id - no media item found



--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 09/12/13 02:53:37PM
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
Ultrabubble:test
extra text



--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 09/12/13 03:09:30PM
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
It seems a little odd that I can only upload a file when I update a post. But on the other hand I really like that there is only one Post Response button on the thread page.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
I jsut uploaded a file and it didn't appear
extra text


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 09/12/13 03:02:22PM
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
Did that time though. Maybe it doesn't appear if there is a wuote in the post? I'll try it


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
Ultrabubble:
Did that time though. Maybe it doesn't appear if there is a wuote in the post? I'll try it



--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 09/12/13 03:08:15PM
brian
@brian
12 years ago
10,149 posts
Yeah I hear you - if I feel real ambitious I might work on getting it added into the forum template, but it's so easy to have a file field in the normal form handler, and it would add A LOT of logic and stuff to the forum detail template to try and get it working directly here, so for now I think it's OK as it is.

Based on 10+ years of Jamroom.net support forum work, attaching files isn't something you really do very often so I think it is going to be OK.

I did get embedded URLs working now too - i.e.

http://www.jamroom.net

Let me know if you see any issues.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
Ultrabubble:
Did that time though. Maybe it doesn't appear if there is a wuote in the post? I'll try it
extra text



--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 09/12/13 03:09:01PM
brian
@brian
12 years ago
10,149 posts
So image is not coming through if there is also a quote? Weird. Let me check it out.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
No it seems to be. It only happened the once where the file didn't appear.
extra text
_44277495_banksy1.jpg




--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 09/12/13 03:11:42PM
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
Ultrabubble:
No it seems to be. It only happened the once where the file didn't appear.
extra text

try
balloongirl.jpg
balloongirl.jpg  •  261KB




--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 09/12/13 03:12:52PM
brian
@brian
12 years ago
10,149 posts
Yeah I see it working - just need to fix the link to the image as it's an invalid URL.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
A file upload like that is much better than a screenshot using an image tag


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
The page doesn't seem to be loading fully - a script or something. I've got "Transferring data from text.jamroom.net... " bottom left of the browser window.

Also this:

[23:17:33.411] GET http://www.jamroom.net/modules/jrCore/contrib/codemirror/mode/css/clike.js?v=1.1.0 [HTTP/1.0 404 Not Found 817ms]


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
Page seems to fully load in chrome, but this in the console:
Uncaught ReferenceError: CodeMirror is not defined


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
brian
@brian
12 years ago
10,149 posts
Is that on this thread? I guess I need to install Chrome. I got a new laptop last Friday and so far I am 100% Google free which makes me really happy, but as a web developer I need to be able to checkout Chrome, so the good times must end... :)


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
The page not fully loading is in logged in using FF, this is FF as well:
[23:17:33.411] GET http://www.jamroom.net/modules/jrCore/contrib/codemirror/mode/css/clike.js?v=1.1.0 [HTTP/1.0 404 Not Found 817ms]

Chrome (not logged in) seems to load. but with the error in Console


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
brian
@brian
12 years ago
10,149 posts
That was a typo on my part - should be fixed now.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
12 years ago
10,149 posts
Note that right after you modify a post to add an image, the URL to the image is not working due to a caching bug. It won't work until the cache timer expires, and then it will work. This is due to a slight difference in the cache keys being used on the db_get_item versus the db_update_item, so I'm working on a fix for that.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
pages are fully loading in FF now - but I did just quit FF and restart it as well.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
test


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
Still got
Uncaught ReferenceError: CodeMirror is not defined
in Chrome not logged in - I'll try logging in


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
Its a not logged in issue.

Logged out in FF I get:
[23:42:21.940] ReferenceError: CodeMirror is not defined @ http://www.jamroom.net/the-jamroom-network/forum/135/new-text-formatters-setup:253

Logged in in Chrome there is no error


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
12 years ago
2,584 posts
I cant see my posts in the Testing Urls thread.

First couple were tryiing to quote your urls, then just plain text.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

Tags