Forum Activity for @michael

michael
@michael
03/21/16 03:50:32PM
7,832 posts

Using Site Builder To Create A forum


Using Jamroom

here's a screenshot of the forum datastores items. You can see that some items do have a forum_cat and a forum_title and others do not. the ones that do have those fields are the forum holders and the other ones are just forum posts.

Seams like if you're wanting ones that do have a title, then add that as a search option.

So for the second one try:
forum_title_url CONTAINS %

That will look for a title url that is set and contains more than nothing.
screenshot_forum_structure.jpg screenshot_forum_structure.jpg - 180KB
michael
@michael
03/20/16 09:31:14PM
7,832 posts

Using Site Builder To Create A forum


Using Jamroom

your search query should return a list of whatever module you have selected (cant tell from screenshots) and show 20 of that modules items from the datastore.

its limited to 100 total and only going to show 20 per page. Its grouped by the time the item was created.

put a {debug} in and see whats in your list. It being a forum, you might have one post and 99 responses to the post, causing you to not see what you expect to see. what do you expect to see?
michael
@michael
03/20/16 09:23:29PM
7,832 posts

page created in sb (old version) only shows up when logged in


Using Jamroom

The issue has probably been fixed in the latest version of Site Builder. The best thing I would suggest is to clone a current skin, then port your changes to the new skin. It might be easier that way than trying to adjust your current skin for the changes that have been made.

straight up, the old version of sitebuilder isn't going to get updates going forward, the new one will. So its better to get onto that one.
michael
@michael
03/18/16 10:51:18PM
7,832 posts

Requesting group owners have access to send email to group members.


Suggestions

nothing easy enough to outline in steps. building a module would be the easiest way.
michael
@michael
03/18/16 08:27:07PM
7,832 posts

add content depending on the url


Design and Skin Customization

if you want to use the same string over and over, assign it to a variable

This
{if $current_url=="`$jamroom_url`/`$_user.profile_url`/`$entry.module_url`"}
is the same as this:
{$new_url = "`$jamroom_url`/`$_user.profile_url`/`$entry.module_url`"}
{if $current_url == $new_url}

Then you can output {$new_url} just to check what it is:
new_url is: {$new_url}
current_url is: {$current_url}

helps to see if they are as you expect them to be.
michael
@michael
03/18/16 08:21:11PM
7,832 posts

how many users a user is following


Using Jamroom

Sometimes they are documented on the module in the docs:

Docs: Table of Contents


But not everything as once you're getting to the level of needing some of these functions, the best place to understand it is by looking at what its doing.

any function that is intended for use in the templates will be prefixed with smarty_function_?????????? in the include.php file of the module, so jrFollower_following_count user() is found in
/modules/jrFollower/include.php

ctrl+shift+- is the phpstorm quick key to minimize all the functions so you can see whats there. (screenshot attached) its a quick way to see which functions are intended for template use for that module.

Then a look inside that function will show this:
/**
 * Return the number of profiles a user is following
 * @param $params array parameters for function
 * @param $smarty object Smarty object
 * @return string
 */
function smarty_function_jrFollower_following_count($params, $smarty)
{ if (!isset($params['user_id']) || !jrCore_checktype($params['user_id'], 'number_nz')) { return 'jrFollower_following_count: user_id required'; } $_sc = array( 'search' => array( "_user_id = {$params['user_id']}", "follow_active = 1" ), 'return_count' => true, 'exclude_jrUser_keys' => true, 'exclude_jrProfile_keys' => true, 'privacy_check' => false ); $cnt = jrCore_db_search_items('jrFollower', $_sc); $num = 0; if (isset($cnt) && jrCore_checktype($cnt, 'number_nz')) { $num = $cnt; } if (!empty($params['assign'])) { $smarty->assign($params['assign'], $num); return ''; } return $num; }

if there were docs for that it would read "requires the user_id key to be given, if it is given then a search is done for active followers of that user id and the number is returned."
screenshot_jrFollower_min.png screenshot_jrFollower_min.png - 115KB
michael
@michael
03/18/16 08:10:58PM
7,832 posts

Seeing Periodic DB Connection Error


Installation and Configuration

you can restart mysql if something goes wrong by going to your account here on jamroom.net then
HOSTING -> SERVER SETTINGS -> SERVER TOOLS -> Restart MySQL

once thats up again, run the integrity check with all the checkboxes checked so the tables are repaired.

That should fix it.
michael
@michael
03/17/16 06:00:38PM
7,832 posts

were can i find the words Inside these tag keys example {$system_name}


Jamroom Developers

The docs for developers are here:

Docs: Developer -> Table of Contents:
https://www.jamroom.net/the-jamroom-network/documentation/development

The full docs are here:

Docs: Table of contents
https://www.jamroom.net/the-jamroom-network/documentation/contents

You need to describe what you are doing in order to receive help if we cant understand the steps you are taking we can offer no useful advice.
michael
@michael
03/17/16 02:49:08PM
7,832 posts

How to display Profile Statistics - Public visits


Design and Skin Customization

The docs for the counter are here:

Docs: "{jrCore_get_count}"
https://www.jamroom.net/the-jamroom-network/documentation/development/773/jrcore-get-count

If you could let me know what part needs more clarification that would be great.

Youtube and soundcloud are not streamed from your server, so the issue might be that that the streams are not recorded.

You can see what's been recorded in the jr_jrcore_count_ip table in the database. You can access that via
ACP -> DEVELOPER -> DEVELOPER TOOLS -> TOOLS -> DATABASE ADMIN
  415