Support Area

As a SobiPro club member you will get ticket support in the support area.
For our former club members we provide a free of charge forum to ask other members.

Powerful search

The SobiPro Search is one of the features that make SobiPro a very powerful tool for site visitors. Almost each field can be configured to show up in the search form.

One for all

With SobiPro you can create as many directories and any other content types on your site as you need with only one single SobiPro component installation.

Responsive

Bring your directory with you on any device. Due to Bootstrap powered templates, you can show your content on any device out of the box

 

Resolved
0 votes
Using SobiPro 1.0.8, I cannot seem to be able to find any settings to limit the number of entries per user. I did find a similar forum post but the access to it is restricted to club members: https://forum.sigsiu.net/community-board-for-sobipro-discussions/one-listing-item-per-user/msg123430/#msg123430 Do I really need to pay for the club membership to get this info? Also, is it possible for users to choose and get listed under multiple categories under SobiPro 1.0.8? Please advise.
Thursday, November 07 2013, 03:35 AM
Responses (3)
  • Accepted Answer

    Friday, November 08 2013, 12:19 AM - #Permalink
    Resolved
    0 votes
    Selection of multiple categories - I figured out it's possible under 1.0.8. My other question still stands: I cannot seem to be able to find any settings to limit the number of entries per user.
    The reply is currently minimized Show
  • Accepted Answer

    User 189
    User 189
    Offline
    Friday, November 08 2013, 01:05 AM - #Permalink
    Resolved
    0 votes
    You can also ask the user 'Poffen' directly. He created the code, thus, it his intellectual property and if he is willing to share, he will make it available to you. https://forum.sigsiu.net/profile/?u=3812 Please note that he might not remember the code anymore as it was posted two years ago...  :ermm: regards goedda76
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, May 01 2018, 06:54 PM - #Permalink
    Resolved
    0 votes
    I just had the same issue with this.. Way I look at this, we all (well most of us here) are fluent in PHP but somewhat know very little about XSLT. Although XSLT is great but I have decided to take the game out of SobiPro on to my backyard where I can seat comfortably with remote control on my hand. Because I am just on a deadline and not in the mood to learn a new thing. Here's what I did:

    1. Install Sourcerer (Free)
    2. Create an article with custom php scripting in it using sourcerer
    3. Create a menu linked to that new article you just made.
    4. Go to Section Template-->Template Setting--->Entry Form Settings then setup a redirect to Login Page to the new menu you've just made in step 3.
    5. Open /templates/Your Templates/common/topmenu.xsl
    6. Change line 209 from

    <a href="/{//menu/add/@url}" tabindex="0" role="menuitem">

    to

    <a href="/{//config/redirectlogin/@value}" tabindex="0" role="menuitem">


    You're all set! All that you need to do now is to create a custom php script in your article. Sample of my php script below:


    {source 0}
    <?php
    $user = JFactory::getUser();
    $status = $user->guest;
    $groups = $user->groups;
    $so_userid = $user->get('id');

    if($status == 1){ //detected Guest user
    header("Location: /login-register"); //Send user to Login page
    die();
    }else{
    if(in_array(13, $groups)) //detected Section Admin user
    {
    header("Location: /add-entry"); //This will allow Section Admin to override the limitation
    die();
    }else if(in_array(10, $groups)){ //detected Free users
    header("Location: /unauthorized-access"); //redirect to unauthorized page
    die();
    }else{ // All other users (Standard & Premium users)
    $db = JFactory::getDBO();

    $query = "SELECT * FROM #__sobipro_field_data WHERE `createdBy` = $so_userid;";
    $db->setQuery($query);
    $result = $db->loadObjectList();

    if(!empty($result)){
    header("Location: /unauthorized-access"); //User already have an entry listed. redirect to unauthorized page
    die();
    }else{
    header("Location: /add-entry"); // Send user to add entry page.
    die();
    }
    }
    }
    ?>
    {/source}


    Please keep in mind, the above script works for me but you may have to twinkle with it a little to suit your needs. Happy coding!
    The reply is currently minimized Show
Your Reply

This forum may be used only to ask questions and give answers for SobiPro component and its applications. Advertising, commercial questions and sharing of software of any kind is not allowed. If you need professional support, feel free to join the club and use the ticket system for subscribers. If you have membership-related questions, please use the contact form.
By using this forum, you accept the standard terms of netiquette on forums as you can find for example here.

to Top