Forum Activity for @michael

michael
@michael
01/15/19 07:51:12PM
7,822 posts

Modify the guestbook module or build a custom module?


Jamroom Developers

:thumbs-up:

Hit us with specific questions where you get stuck. Open a thread for each question, let us solve it and open another thread for the next problem.

Mammoth threads never get read and quickly get confusing. :)

Start by setting up the module structure with an include.php file, then try to turn your module on in the ACP.

Look at the other modules as a guide.

--edit--
ah, and turn on developer mode so you dont get caching issues
ACP -> TOOLS -> DEVELOPER TOOLS -> GLOBAL CONFIG -> RUN IN DEVELOPER MODE
updated by @michael: 01/15/19 07:52:18PM
michael
@michael
01/15/19 07:47:29PM
7,822 posts

Video Poster Background Not Showing


Using Jamroom

SoftDesigns:
...
Question: If I host this Video on a different public server, how can I embed this video into the "bio" field of the profile?
...

iframe?
michael
@michael
01/15/19 07:38:54PM
7,822 posts

Moving a media image file


Jamroom Developers

There's a module that moves stuff from one profile to another. Im looking for it now. Cant remember the name. That will have how to do it in it.

--edit--
Found it, its called jrChangeOwner.

Look in the index.php view_jrChangeOwner_change_save() function.

The bit on moving files around is this:

                    // Check for and move any files
                    $_files = jrCore_get_directory_files(jrCore_get_media_directory($_xt['_profile_id']));
                    if ($_files && is_array($_files) && count($_files) > 0) {
                        foreach ($_files as $file) {
                            if (strstr($file, "{$_post['module']}_{$_xt['_item_id']}")) {
                                $sdir = jrCore_get_media_directory($_xt['_profile_id']);
                                rename("{$sdir}/{$file}", "{$tdir}/{$file}");
                            }
                        }
                    }

updated by @michael: 01/15/19 07:44:29PM
michael
@michael
01/15/19 07:35:45PM
7,822 posts

Modify the guestbook module or build a custom module?


Jamroom Developers

Better to make your own custom module. They're not that difficult to build and all follow the same basic structure, so once you know how to build a simple one like your thinking about you'll see that you can build any other one fairly easily.

You'll need:
* an index.php file to hold your create and update views
* an include.php file to hold your modules _init() function
* a schema.php file to initiate the datastore

Then depending on where you want the output to come out, maybe
* a /templates/item_index.tpl (to show a list of them on a profile index)
* a /templates/item_list.tpl (to show what they look like when called in a list by jrCore_list )
* a /templates/item_detail.tpl (to show them individually on their own page.)
michael
@michael
01/13/19 09:28:14PM
7,822 posts

Make Custom Module Pages Searchable


Jamroom Developers

adding the URL's to the datastore doesn't feel right to me. The datastore stores data and the search function searches the data. so if you want the page to be found by the search function you need to add the data that is searched to the datastore.

however the data got to the pages, its probably stored somewhere, so cant you take that and put it into the datastore?
michael
@michael
01/13/19 07:54:52PM
7,822 posts

ffgpeg not executable after update.


Installation and Configuration

Try changing it to
$_conf['jrSystemTools_ffmpeg_binary'] = '/usr/bin/ffmpeg';
michael
@michael
01/13/19 07:50:13PM
7,822 posts

Mobile Menu Not Working


Installation and Configuration

Check a default skin, see if it works there. If it does work on the default skin, see if there is anything that has changed between your base default skin and the most recent version
michael
@michael
01/12/19 08:43:13PM
7,822 posts

Can't get SSL to work


Using Jamroom

If you're going to force SSL in the ACP settings, make sure
$_conf['jrCore_base_url'] = 'http://XXX.co.uk'; 
is changed to https://
michael
@michael
01/12/19 01:27:56AM
7,822 posts

Can't get SSL to work


Using Jamroom

You don't seem to have a server on Jamroom Hosting

Your Profile -> Hosting
https://www.jamroom.net/hello77957/hosting/overview

So enabling SSL is something you setup with your server hosting company. You need an SSL certificate added to your server first so your site is visible on https://your-site.com then you can change the settings in your ACP.

If its just the cache you want to clear, use the manual method described here:

Docs: "Somethings wrong what do I do: Manually Clearing Caches"
https://www.jamroom.net/the-jamroom-network/documentation/troubleshooting/114/somethings-wrong-what-do-i-do
michael
@michael
01/11/19 11:11:46AM
7,822 posts

Video Poster Background Not Showing


Using Jamroom

What that say to me is chrome/android is either caching the image from when you were logged in and serving it to you when logged out, or bypassing the checks somehow. But since the checks are on the server, that seems very unlikely.

open:
https://wuji.zone/video/image/video_image/21/xxxlarge/image.jpg/crop=807:452?debug=1

in chrome and see what you get.

For me in chrome, i see the same error: (screenshot)
chrome.jpg chrome.jpg - 71KB
  97