Jump to content

GradientWizzard

Senior Moderator
  • Posts

    454
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by GradientWizzard

  1. This would be a perfect place to learn about statements.
  2. Admin CP > Theme > Forums > Front > Forums > topicRow search for: {{foreach $row->stats(FALSE) as $k => $v}} <li {{if $k == 'num_views'}}class='ipsType_light'{{elseif in_array( $k, $row->hotStats )}}class="ipsDataItem_stats_hot" data-text='{lang="hot_item"}' data-ipsTooltip title='{lang="hot_item_desc"}'{{endif}}> <span class='ipsDataItem_stats_number' {{if $k == 'forums_comments' OR $k == 'answers_no_number'}}itemprop='commentCount'{{endif}}>{number="$v"}</span> <span class='ipsDataItem_stats_type'>{lang="{$k}" pluralize="$v"}</span> {{if ( $k == 'forums_comments' OR $k == 'answers_no_number' ) && \IPS\forums\Topic::modPermission( 'unhide', NULL, $row->container() ) AND $unapprovedComments = $row->mapped('unapproved_comments')}} &nbsp;<a href='{$row->url()->setQueryString( 'queued_posts', 1 )}' class='ipsType_warning ipsType_small ipsPos_right ipsResponsive_noFloat' data-ipsTooltip title='{lang="queued_posts_badge" pluralize="$row->topic_queuedposts"}'><i class='fa fa-warning'></i> <strong>{$unapprovedComments}</strong></a> {{endif}} </li> {{endforeach}} Please note: This code might not be found due to altering codes on different themes, try searching for part of the coding listed above
  3. @Cookie Monster has rewrote the whole code for you and it's working, i'll go ahead and upload it for you
  4. Hopefully this should be able to give you a rough guide
  5. Admin CP > Members > Groups > Group Icon? Also check if you have <li>{expression="\IPS\Member\Group::load( $comment->author()->member_group_id )->formattedName" raw="true"}</li> {{if \IPS\Member\Group::load( $comment->author()->member_group_id )->g_icon }} <li class='ipsResponsive_hidePhone'><img src='{file="$comment->author()->group['g_icon']" extension="core_Theme"}' alt='' class='cAuthorGroupIcon'></li> {{endif}} in you theme > forums > front > topics > postContainer
  6. The question(s) in this support topic have been answered and the topic author has resolved their issue. This topic is now closed. If you have other questions, please open a new topic.
  7. I don't know how your doing it, but usually people basically put the main website in /public_html (ROOT FOLDER FOR THE SITE) then the forum in /forum then they would link it as <a href="/forum">Forum</a>
  8. I wouldn't place the forum files in the same folder with the website files as they might replace some, I'd suggest putting it as /forum
  9. I bought the 1060 6gb and wow, what a fantastic card it is for the money, wouldn't fault it
  10. The question(s) in this support topic have been answered and the topic author has resolved their issue. This topic is now closed. If you have other questions, please open a new topic.
  11. Welcome to the team, @Cookie Monster. Glad to have you on board, Probie!
  12. helpful IF codes In IPS4, logic checks are done using the special {{if}}, {{else}} and {{elseif}} tags. As with standard programming logic, if the expression results in true, the block of code within is executed. If it is false, it isn't (and if there's an else or elseif block, that is tested for a true result instead). So, a block of logic in a template might look like this: {{if member.member_id == 3}} <!-- If the member has ID 3, this will be shown --> {{elseif member.member_id == 9}} <!-- But if the member has ID 9, this will be shown instead --> {{else}} <!-- If the member isn't ID 3 or 9, then this will show --> {{endif}} If you need help constructing a logic check, feel free to check out the Customization Resources forum. Examples. I want to... Check if the user is logged in {{if member.member_id}} <!-- this will show if the member is logged in --> {{endif}} Check if the user isn't logged in {{if !member.member_id}} <!-- this will show if the user is a guest --> {{endif}} Check if the user's ID is one of x, y or z You can check as many values as you like; just add more numbers to the array. {{if in_array( member.member_id, array( 5, 28, 472 ) )}} <!-- Shows if the member's ID is 5, 28 or 472 --> {{endif}} Check if the user is in group x Where x is the group ID number. Note that this also checks secondary member groups. {{if member.inGroup('x')}} <!-- Shows if member is in group 'x' --> {{endif}} Check if the user has more than x posts In IPS4, all content in all apps counts as a 'post'. {{if member.member_posts > 3}} <!-- Shows if the member has more than 3 posts --> {{endif}} Check if the user has fewer than x posts In IPS4, all content in all apps counts as a 'post'. {{if member.member_posts < 3}} <!-- Shows if the member has fewer than 3 posts --> {{endif}} Check if the user is an administrator Note that this also checks if any of the user's secondary member groups has admin permissions. {{if member.isAdmin()}} <!-- Shows if the user is an administrator --> {{endif}} Check if the user is banned {{if member.isBanned()}} <!-- Shows if the user is banned --> {{endif}} Check if the current page is part of app x You need to check the application key. Most are obvious (e.g. forums is the forums app), but there are some others to be aware of. For custom/third-party apps, ask the author which app key they use. - core = Any system page that isn't part of another app, e.g. search, login/registration, profiles etc. - cms = Pages - nexus = Commerce {{if request.app == 'forums'}} <!-- Shows if the user is viewing any page in the 'forums' app --> {{endif}} Check if a system setting has value x You can check whether system settings have a given value, although you will need to know the setting key used by the backend. Values may not be simple to check, depending on their type - consult our Customization Resources forum if you aren't sure how to check a particular setting. {{if settings.auto_polling_enabled}} <!-- Shows if the 'auto_polling_enabled' setting is true (i.e. enabled) --> {{endif}} Check a variable in a template has value x Template bits in IPS4 may receive one or more variables from the backend code. You can check the values of these within the template to do something based on the value. This only works within the template into which the variable you are checking is passed - they are not inherited. {{if $myVariable == 'some_value'}} <!-- Shows if $myVariable is equal to 'some_value' --> {{endif}} Check if the current forum is forum ID x Within the forums app, you can check whether the current page is showing the forum with ID x {{if request.app == 'forums' && request.module == 'forums' && request.id == 3}} <!-- Shows if the user is in the forums app, viewing a forum with the ID 3 --> {{endif}} .
  13. @emartinez111 Under the posting section on our community guidelines page "Please avoid replying to "dead" topics (typically topics older than 1-2 weeks are considered dead)." Please remember to follow the Community Guidelines when replying to old topics, Thanks.
  14. Thank you so much for the opportunity @Davlin. Becoming apart of the team again has always been a fantastic thing to achieve, thank you to everyone else on giving me the chance Thanks @Cookie Monster
  15. Wow, fantastic work Cookie! This should help alot of people out
  16. Bare in mind, google is a massive website, it took a week for mine to update
  17. System > Search Engine Optimization > Meta Tags. If that doesn't work <meta name="description" content="Description you want on google to show."> <meta property="og:title" content="Site name title"> <meta property="og:description" content="Description"> <meta property="og:site_name" content="Site Name Title"> add that in the html Don't forget it always takes a bit of time for google to update, it wont update it instantly, check if it works by viewing source
  18. Also from the FAQ: 5. Am I allowed to share my account with other people, or have more than one account? No and no. While we cannot prevent you from sharing your account with other users, we will ban your account if we detect that you are. Any violations committed by individuals using your account is still your responsibility. If you are in need of another account for family or spouses living under the same roof, you may contact a Senior Moderator or Administrator.
×
×
  • Create New...