Forum Activity for @brian

brian
@brian
04/28/20 06:47:32AM
10,149 posts

Fixing Errant HTML Content


Jamroom Developers

Yeah - just use jrCore_clean_html() - it will fix up errant HTML for the most part - i.e.

$corrected_html = jrCore_clean_html($malformed_html);

It uses DOMDocument:

https://www.php.net/DOMDocument

to basically "rewrite" the HTML which ensures everything gets closed.

If you are loading offsite URLs and need to get the HTML, I would highly recommend not using cURL yourself directly and instead just use the jrUrlScan_get_url_with_wget() function that is provided by the Media URL Scanner module - it does a lot of extra work to look like a "real" browser to the remote site. If you are just using curl you will find a lot of sites that will not load properly and/or will just "hang" - these sites use 3rd party CDN's and accelerators like Cloudflare that see the curl call like a "bot" and will reject it. The jrUrlScan_get_url_with_wget() module is setup to work like a "real" browser in that it fully accepts cookies, session cookies, uses a real user agent, accepts gzipped content, etc. - all the headers and stuff it sends out masquerades as a real browser and you will get the HTML. So I would do this:

if ($possibly_bad_html =  jrUrlScan_get_url_with_wget('https://someurl.com')) {
    $cleaned_up_html =  jrCore_clean_html($possibly_bad_html);
}

Let me know if that helps.
brian
@brian
04/27/20 11:06:39AM
10,149 posts

Many youtube videos not showing up in search results?


Using Jamroom

Zachary Moonshine:
When i search, i get this ?

That is GLOBAL search results. You likely have more matching videos than the 6 it can show. In our skins we have a "show all results" for each category, which then takes you to the per module search like I linked above.
brian
@brian
04/27/20 11:04:38AM
10,149 posts

Many youtube videos not showing up in search results?


Using Jamroom

Zachary Moonshine:
How did you find it?

I went to the YouTube index:

https://metaldevastationradio.com/youtube

And searched for it. My suspicion would be that this page:

https://metaldevastationradio.com/metal-videos

may not be using the correct search or is not showing enough results.
brian
@brian
04/27/20 11:00:01AM
10,149 posts

Many youtube videos not showing up in search results?


Using Jamroom

OK so there should be a "stand alone" youtube entry for a video with them from 2017 - let me check.
brian
@brian
04/27/20 10:54:25AM
10,149 posts

Any Changes To Site Comments?


Using Jamroom

Dazed:
No on logs.

Running an integrity check again after updating to the newer core.

OK if you still see an issue open a ticket and I can check it out on your site.
brian
@brian
04/27/20 10:51:02AM
10,149 posts

Any Changes To Site Comments?


Using Jamroom

OK yeah comments not showing would be something else. that SQL query error is weird. If you clear your debug log are you seeing it come back?
brian
@brian
04/27/20 10:44:35AM
10,149 posts

Proxima suggestion


Proxima

MetalScene:
Can we remove the Google + social media icon an dlinks and replace it with Twitter or Instagram.
As far as i know google + has closed down as a platform.

The Proxima skin is a really stripped down skin designed to work with the set of Proxima modules - i.e. you are building a back end as a service.

We have site updates rolling out tomorrow that is going to change things up a bit - Proxima and Genosis are moving on to their own systems, so you will see that soon.

Sorry for the hassle!
brian
@brian
04/27/20 10:42:47AM
10,149 posts

Many youtube videos not showing up in search results?


Using Jamroom

Are you still not seeing some of the videos in your site search? If so, give me a link to a search that does not return the video you feel it should.

Thanks!
  19