Forum Activity for @michael

michael
@michael
03/21/16 06:05:43PM
7,839 posts

TypeError: $(...).qtip is not a function


Jamroom Developers

.qtip is provided by the jrTips module. If you disable that module it should go away.

If you want it to show, check that there are not other javascript errors in the main compiled javascript file that comes out at:
< script type="text/javascript" src="{jrCore_javascript_src}">< /script >
in your skins meta.tpl
michael
@michael
03/21/16 06:00:26PM
7,839 posts

Replies to Group Discussions don't show in My main page Activity Timeline


Using Jamroom

Yes paul is talking about your index.tpl file. It currently reads:

{jrCore_list module="jrAction" search1="action_module != jrFollower" search2="action_module != jrComment" order_by="_item_id numerical_desc" template="index_activity.tpl" pagebreak=50 page=$_post.p}

Paul is saying to change that to:
{jrCore_list module="jrAction" search1="action_module != jrFollower" search2="action_data NOT_LIKE %\"comment_module\":\"jrProfile\"%" order_by="_item_id numerical_desc" template="index_activity.tpl" pagebreak=50 page=$_post.p}

We are talking about the index.tpl file for your skin.
michael
@michael
03/21/16 03:50:32PM
7,839 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,839 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,839 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,839 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,839 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,839 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,839 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.
  413