HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

formatting for badge information page

This discussion is related to the Peregrine Badges addon.

I just downloaded and installed this plugin. fantastic work man. really. and thanks for integrating it with my i like this plugin, bravo.

i noticed a couple of things while playing with it tonight:
1. the url when clicking on a badge does not use a prettified url syntax
2. i get some crazy formatting with my theme on the badge information page

http://homebrewforums.net/badges/index.php?badgetype=LikedBadge

I'll be poking around later this week, but i thought i would ring it to your attention.

Comments

  • peregrineperegrine MVP
    edited April 2013

    @hbf

    try changing line 265

    if ($x % 10 == 0)

    to

    if ($x % 7 == 0)

    it should help you immensely.

    it's a half pretty url :) - I removed the plugin part. but not the badgetype=LikedBadge

    in peregrinebadgesall.php

    check out the new version 3.0, before you start making mods.

    you may want to take the line out that removes custom.css. hard to tell.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

    hgtonight
  • peregrineperegrine MVP
    edited April 2013

    @hbf said

    I just downloaded and installed this plugin. fantastic work man. really. and thanks for integrating it with my i like this plugin, bravo.

    I forgot to say.
    thx, I'm glad you I like this liked my plugin.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • vrijvlindervrijvlinder Papillon-Sauvage MVP
    edited April 2013

    I made this to help you fix it, there is a couple rows that have a line break but it is not breaking, maybe you can change the < br > into < p >

    body.Dashboard.Plugin.PeregrineBadges #Content {
    margin: 0;
    background: 
    whiteSmoke;
    border-radius: 15px;
    width: 980px;
    }
    body.Dashboard.Plugin.PeregrineBadges #Content table {
    border-collapse: separate;
    border-spacing: 0;
    width: 870px;
    display: table-header-group;
    }
    body.Dashboard.Plugin.PeregrineBadges #Content table tbody tr{
    width: 800px;
    height: auto;
    display: table-column;
    }
    
    hgtonightkirkpa31UnderDog
  • peregrineperegrine MVP
    edited April 2013

    You are right! @hbf

    try V's changes - if they don't work

    try changing the code here (with br changed to p as v suggested) and no css changes.

    my changes work on my computer theme. properly breaking rows on 7 pics across

    you also need to change padding in pbtitle and pbmessage to what you want.
    So you NEED to adjust .css according to your NEEDS.

       if ($x % 7 == 0)
                            echo "</tr></tr>";
                        echo '<td class= "pbcell">';
                        if ($photo) {
    
                            echo UserPhoto($User, array('LinkClass' => 'ProfilePhotoCategory', 'ImageClass' => 'ProfilePhotoSmall'));
                            echo "<p>";
                            echo "</p>";
                            echo UserAnchor($User);
                        } else {
                            echo UserAnchor($User);
                        }
                        echo "</td>";
                    }
    

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

    kirkpa31UnderDogvrijvlinder
  • peregrineperegrine MVP
    edited October 2013

    Solved in 4.3 after testing on hbf's large forum.

    fixes in element tags as well as incrementation.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

    hbfvrijvlinderUnderDog
Sign In or Register to comment.