Thread: Invision Power Board (3.4) Tutorial Suggestions

Results 1 to 8 of 8
  1. #1 Invision Power Board (3.4) Tutorial Suggestions 
    Registered Member

    Join Date
    Dec 2011
    Posts
    1,622
    Thanks given
    1,984
    Thanks received
    830
    Rep Power
    1049
    Alright, I've decided to post a few tutorials and code snippets for Invision Power Board 3.4 (not going to get into the 4 beta yet) so if you have any questions or things you'd like to see done for IPBoard post it below and let me know. I'll do my best to post tutorials for whatever is asked. I'll be posting them into the tutorials sub-forum (logical, I know) so keep an eye out for them there. I only intend on doing this over the course of the weekend but if the response is good I'll possibly carry on posting different tutorials. There's a good chunk of ones out there already admittedly, but I'll be happy to either re-write, or re-explain ones located elsewhere.

    The Web Dev section is where I spend most of my Rune-Server browsing, so I figured I'd leave a bit of a mark and contribute useful content to it!

    • [Only registered and activated users can see links. ]
    Reply With Quote  
     

  2. Thankful users:


  3. #2  
    Registered Member

    Join Date
    Sep 2014
    Posts
    2,102
    Thanks given
    3,020
    Thanks received
    1,091
    Rep Power
    5000
    Using css code in user titles, like how yours says 'Designer & Counquer'.
    In IP.B you have to do quite some work to get it working and finding it is a pain in the ass.

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  4. #3  
    Registered Member

    Join Date
    Dec 2011
    Posts
    1,622
    Thanks given
    1,984
    Thanks received
    830
    Rep Power
    1049
    Quote Originally Posted by Quacked View Post
    Using css code in user titles, like how yours says 'Designer & Counquer'.
    In IP.B you have to do quite some work to get it working and finding it is a pain in the ass.

    There is a setting in the ACP to allow users to set their own titles, the ACP won't allow for HTML usertitles though, however, using my other tutorial you could target a user's title using CSS selectors.
    Reply With Quote  
     

  5. #4  
    Donator
    Sonico's Avatar
    Join Date
    May 2008
    Posts
    1,175
    Thanks given
    93
    Thanks received
    65
    Rep Power
    349
    I would love to see a tutorial for custom postibit background IPB 4.1
    Reply With Quote  
     

  6. #5  
    Registered Member

    Join Date
    Dec 2011
    Posts
    1,622
    Thanks given
    1,984
    Thanks received
    830
    Rep Power
    1049
    Quote Originally Posted by Sonico View Post
    I would love to see a tutorial for custom postibit background IPB 4.1
    Templates > Forums > Front > Topic > postContainer

    Change
    Code:
    <article itemscope {{if $item->isQuestion() && !$comment->new_topic}}itemprop="suggestedAnswer {{if $comment->post_bwoptions['best_answer']}}acceptedAnswer{{endif}}" itemtype="http://schema.org/Answer"{{else}}itemtype="http://schema.org/Comment"{{endif}} id='elComment_{$comment->$idField}' class='cPost ipsBox {{if $otherClasses}}{$otherClasses}{{endif}} ipsComment {{if settings.reputation_highlight and $comment->reputation() >= settings.reputation_highlight}}ipsComment_popular{{endif}} ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone {{if $comment->isIgnored()}}ipsHide{{endif}} {{if $comment->hidden()}}ipsModerated{{endif}}'>
    to

    Code:
    <article itemscope {{if $item->isQuestion() && !$comment->new_topic}}itemprop="suggestedAnswer {{if $comment->post_bwoptions['best_answer']}}acceptedAnswer{{endif}}" itemtype="http://schema.org/Answer"{{else}}itemtype="http://schema.org/Comment"{{endif}} id='elComment_{$comment->$idField}' class='cPost ipsBox {{if $otherClasses}}{$otherClasses}{{endif}} ipsComment {{if settings.reputation_highlight and $comment->reputation() >= settings.reputation_highlight}}ipsComment_popular{{endif}} ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone {{if $comment->isIgnored()}}ipsHide{{endif}} {{if $comment->hidden()}}ipsModerated{{endif}} member_{$comment->author()->member_id} member_group_{$comment->author()->member_group_id}'>
    Now the CSS you'd want to use would be structured like this:

    .ipsComment.member_{$id} <--- Member specific
    .ipsComment.member_group_{$id} <--- Group specific
    Reply With Quote  
     

  7. Thankful user:


  8. #6  
    Donator
    Sonico's Avatar
    Join Date
    May 2008
    Posts
    1,175
    Thanks given
    93
    Thanks received
    65
    Rep Power
    349
    Quote Originally Posted by Mur View Post
    Templates > Forums > Front > Topic > postContainer

    Change
    Code:
    <article itemscope {{if $item->isQuestion() && !$comment->new_topic}}itemprop="suggestedAnswer {{if $comment->post_bwoptions['best_answer']}}acceptedAnswer{{endif}}" itemtype="http://schema.org/Answer"{{else}}itemtype="http://schema.org/Comment"{{endif}} id='elComment_{$comment->$idField}' class='cPost ipsBox {{if $otherClasses}}{$otherClasses}{{endif}} ipsComment {{if settings.reputation_highlight and $comment->reputation() >= settings.reputation_highlight}}ipsComment_popular{{endif}} ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone {{if $comment->isIgnored()}}ipsHide{{endif}} {{if $comment->hidden()}}ipsModerated{{endif}}'>
    to

    Code:
    <article itemscope {{if $item->isQuestion() && !$comment->new_topic}}itemprop="suggestedAnswer {{if $comment->post_bwoptions['best_answer']}}acceptedAnswer{{endif}}" itemtype="http://schema.org/Answer"{{else}}itemtype="http://schema.org/Comment"{{endif}} id='elComment_{$comment->$idField}' class='cPost ipsBox {{if $otherClasses}}{$otherClasses}{{endif}} ipsComment {{if settings.reputation_highlight and $comment->reputation() >= settings.reputation_highlight}}ipsComment_popular{{endif}} ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone {{if $comment->isIgnored()}}ipsHide{{endif}} {{if $comment->hidden()}}ipsModerated{{endif}} member_{$comment->author()->member_id} member_group_{$comment->author()->member_group_id}'>
    Now the CSS you'd want to use would be structured like this:

    .ipsComment.member_{$id} <--- Member specific
    .ipsComment.member_group_{$id} <--- Group specific
    Tyvm for this!

    I changed the line in the template, and added this to my custom.css file:

    Code:
    .ipsComment.member_1 .author_info{
      background-image: url(http://i.imgur.com/AJu0ysc.png);
      background-repeat: no-repeat;
    }
    But the image didn't show up, did I do something wrong in the css?
    Reply With Quote  
     

  9. #7  
    Registered Member

    Join Date
    Dec 2011
    Posts
    1,622
    Thanks given
    1,984
    Thanks received
    830
    Rep Power
    1049
    Quote Originally Posted by Sonico View Post
    Tyvm for this!

    I changed the line in the template, and added this to my custom.css file:

    Code:
    .ipsComment.member_1 .author_info{
      background-image: url(http://i.imgur.com/AJu0ysc.png);
      background-repeat: no-repeat;
    }
    But the image didn't show up, did I do something wrong in the css?
    Code:
    .ipsComment.member_1 .ipsComment_author {
        background: url(http://i.imgur.com/AJu0ysc.png) no-repeat;
    }
    Reply With Quote  
     

  10. Thankful user:


  11. #8  
    Registered Member
    Join Date
    Dec 2018
    Posts
    1
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Mur View Post
    Templates > Forums > Front > Topic > postContainer

    Change
    Code:
    <article itemscope {{if $item->isQuestion() && !$comment->new_topic}}itemprop="suggestedAnswer {{if $comment->post_bwoptions['best_answer']}}acceptedAnswer{{endif}}" itemtype="http://schema.org/Answer"{{else}}itemtype="http://schema.org/Comment"{{endif}} id='elComment_{$comment->$idField}' class='cPost ipsBox {{if $otherClasses}}{$otherClasses}{{endif}} ipsComment {{if settings.reputation_highlight and $comment->reputation() >= settings.reputation_highlight}}ipsComment_popular{{endif}} ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone {{if $comment->isIgnored()}}ipsHide{{endif}} {{if $comment->hidden()}}ipsModerated{{endif}}'>
    to

    Code:
    <article itemscope {{if $item->isQuestion() && !$comment->new_topic}}itemprop="suggestedAnswer {{if $comment->post_bwoptions['best_answer']}}acceptedAnswer{{endif}}" itemtype="http://schema.org/Answer"{{else}}itemtype="http://schema.org/Comment"{{endif}} id='elComment_{$comment->$idField}' class='cPost ipsBox {{if $otherClasses}}{$otherClasses}{{endif}} ipsComment {{if settings.reputation_highlight and $comment->reputation() >= settings.reputation_highlight}}ipsComment_popular{{endif}} ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone {{if $comment->isIgnored()}}ipsHide{{endif}} {{if $comment->hidden()}}ipsModerated{{endif}} member_{$comment->author()->member_id} member_group_{$comment->author()->member_group_id}'>
    Now the CSS you'd want to use would be structured like this:

    .ipsComment.member_{$id} <--- Member specific
    .ipsComment.member_group_{$id} <--- Group specific


    Hello how can I do this like cover photo? I mean, user upload a cover photo from his profile page, and that photo comes to postbit as background, behind avatar.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Invision Power Board w/ XML-RPC API
    By Sonicforce41 in forum Snippets
    Replies: 3
    Last Post: 03-02-2013, 01:17 AM
  2. Custom Invision Power Board Theme (Might be selling?)
    By 23286027318020 in forum Website Development
    Replies: 26
    Last Post: 01-24-2013, 08:30 PM
  3. Replies: 2
    Last Post: 05-22-2012, 11:55 PM
  4. Buying Invision Power Board PreOwned
    By Rag3 in forum Buying
    Replies: 2
    Last Post: 03-28-2012, 01:46 AM
  5. Invision Power Board. Yar.
    By blitzduck in forum Suggestions
    Replies: 6
    Last Post: 01-17-2009, 01:11 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •