1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Gang bbCode layout

Discussion in 'Suggestions and Updates' started by Malo, Jan 15, 2017.

Tags:
  1. Malo

    Malo YakTribe Mechanicum
    Staff Member Yak Founder

    Map
    I've implemented an automated gang display for the forums which will allow us to display a gang simply by using a bb code with the gang id. I'm finalizing the layout and would like suggestions or criticisms.

    I had originally created a similar function ages ago that I never finished which would display the gang upon viewing the post. However, the problem there is that it would display the current version of the gang as it retrieved the data when the post was requested, as that's how bbcodes work. Coming back to the post in the thread a year later, the discussion of the gang becomes irrelevant as what is being displayed will have likely changed a lot.

    This new implementation replaces the bbcode with the current version of the gang when the post is submitted, effectively taking a snapshot. You could "update" the gang by removing all the code it adds to the post and inputting the bbcode again.

    Here's the current layout I'm working on. Keep in mind I'm very limited in display functionality as I can't display pure HTML with this method.

    Edit: The code is now in place.

    Demo
    Brothers of Shadow

    DelaqueRating 2687Credits 9
    TerritoriesStash
    Slag
    Settlement
    Holestead
    Workshop
    Settlement
    Knife
    Knife
    Gangers

    Ghar Portson - Ganger
    MWSBSSTWIALDXP
    455432318181
    EquipmentSkillsInjuries
    Knife
    Weapon Reload
    Needle Pistol
    Plasma Pistol
    Big Gunn
    Combat Master
    Gunfighter
    Marksman
    Bitter Emnity
    Blinded (Right)
    Herman Lovechild - Heavy
    MWSBSSTWIALDXP
    444341428201
    EquipmentSkillsInjuries
    Shotgun
    Flak Armor
    Carapace Armor
    Stinger Pouch
    Plasma Gun
    Dodge
    Captured (Rescued)
    Captured (Ransom)
    Old Battle Wound
    Barry the Binge - Heavy
    MWSBSSTWIALDXP
    435432417254
    EquipmentSkillsInjuries
    Shotgun
    Heavy Stubber
    Man-stopper Shotgun Shell
    Knife
    Flak Armor
    Concealed Blade
    Grav Chute
    Suspensor
    Gunhulk
    Medic
    Perforator
    None
    Horatio Dűggenbũrg - Ganger
    MWSBSSTWIALDXP
    454341327163
    EquipmentSkillsInjuries
    Knife
    Flak Armor
    Bolt Pistol x2
    Gunfighter
    Hip Shooting
    Leap
    Medic
    Head Wound
    Head Wound
    Francios II - Ganger
    MWSBSSTWIALDXP
    443431417132
    EquipmentSkillsInjuries
    Autopistol x2
    Knife
    Armourer
    Gunfighter
    Hip Shooting
    Leap
    Chest Wound
    Leg Wound (Left)
    Hopeless Jones - Juve
    MWSBSSTWIALDXP
    43344231799
    EquipmentSkillsInjuries
    Knife
    Silencer
    Hunting Rifle
    Crack Shot
    Fast Shot
    Rapid Fire
    Leg Wound (Right)
    Partially Defeaned
    Jervis Trend - Juve
    MWSBSSTWIALDXP
    42644142687
    EquipmentSkillsInjuries
    Autopistol
    Autogun
    Knife
    Escape Artist
    Leg Wound (Left)
    Barry Jr. - Juve
    MWSBSSTWIALDXP
    43233251786
    EquipmentSkillsInjuries
    Autopistol
    Lasgun
    Knife
    Hotshot Laser Power Pack
    Crack Shot
    Fast Shot
    Marksman
    Rapid Fire
    None
    Yuslav Polinski - Juve
    MWSBSSTWIALDXP
    42434131767
    EquipmentSkillsInjuries
    Shotgun
    Man-stopper Shotgun Shell
    Lobo-chip
    Knife
    Escape Artist
    Evade
    Leap
    Horrible Scars
    Head Wound (Lobo-chipped)
    Survival Against The Odds
    Mikel Maggote - Juve
    MWSBSSTWIALDXP
    44334241762
    EquipmentSkillsInjuries
    Stub Gun x2
    Knife
    Leap
    Head Wound
    Infected Wound (Healed)
    Billy Hob Morton - Juve
    MWSBSSTWIALDXP
    44533131642
    EquipmentSkillsInjuries
    Stub Gun
    Dum-dum Bullets
    Knife
    Fixer
    Shell Shock
    Infected Wound (Healed)
     
    #1 Malo, Jan 15, 2017
    Last edited: Feb 3, 2017
  2. Blood Donor

    Blood Donor Executive Officer in Charge of the 2014 Bake Sale
    Staff Member Necromunda Custodian Yak Philanthropist

    Map
    Interesting. So if I came up with a Custom Gang called Forum Post Examples, I could then just copy and paste their bbCode into posts and have all the information presented as such?
     
  3. Malo

    Malo YakTribe Mechanicum
    Staff Member Yak Founder

    Map
    No, all you would do (once it's implemented) is post this bbcode:

    Code:
    [gang]####[/gang]
    Where #### is your gang ID. Once you post the message, it immediately retrieves the data and converts that bbcode into the full display.
     
    oGRE3, KungFuPanda, Wiisper and 2 others like this.
  4. Blood Donor

    Blood Donor Executive Officer in Charge of the 2014 Bake Sale
    Staff Member Necromunda Custodian Yak Philanthropist

    Map
  5. Malo

    Malo YakTribe Mechanicum
    Staff Member Yak Founder

    Map
    The Gang forum post bbcode is now in place and I've added a new icon to the editor to input the bbcode. Simply enter your gang's ID into the bbcode to insert a snapshot of your gang into the post.

    Code:
    [GANG]742[/GANG]
    Totemic Disorder

    DelaqueRating 3518Credits 9
    TerritoriesStash
    Wastes
    Gangers

    Mortalis OxMWSBSSTWIALDXP
    Ratskin Leader465333415202
    EquipmentSkillsInjuries
    Blindsnake Pouch (Ratskin)
    Knife
    Power Sword
    Mesh Armor
    OIAM Bolt Pistol
    Combat Master
    Disarm
    None
    Skrull MoonaxeMWSBSSTWIALDXP
    Ratskin Totem463541413184
    EquipmentSkillsInjuries
    Blindsnake Pouch (Ratskin)
    Maul
    Knife
    Arm Bionic
    Spirit Totem
    Hurl Opponent
    Impetuous
    None
    MysterioMWSBSSTWIALDXP
    Ratskin Totem443341513124
    EquipmentSkillsInjuries
    Blindsnake Pouch (Ratskin)
    Knife
    Spirit Staff
    Killer Reputation
    Shell Shock
    RodentusMWSBSSTWIALDXP
    Ratskin444441414129
    EquipmentSkillsInjuries
    Autogun
    Frag Grenades
    Massive Axe
    Blindsnake Pouch (Ratskin)
    Catfall
    None
    Son of OwlMWSBSSTWIALDXP
    Ratskin444331424113
    EquipmentSkillsInjuries
    Autopistol
    Lasgun
    Blindsnake Pouch (Ratskin)
    Knife
    Jump Back
    Marksman
    None
    Kronar the BladeMWSBSSTWIALDXP
    Ratskin435333325127
    EquipmentSkillsInjuries
    Autopistol
    Autogun
    Frag Grenades
    Blindsnake Pouch (Ratskin)
    Knife
    Rad Counter
    Spur
    Quick Draw
    None
    Sump RangerMWSBSSTWIALDXP
    Ratskin44433232497
    EquipmentSkillsInjuries
    Laspistol
    Maul
    Lasgun
    Blindsnake Pouch (Ratskin)
    Medi-pack
    Rad Counter
    NoneNone
    BoomerMWSBSSTWIALDXP
    Ratskin Brave422241312101
    EquipmentSkillsInjuries
    Autopistol
    Blindsnake Pouch (Ratskin)
    Club
    Concealed Blade
    Blunderbuss
    Spur
    Holo Projector
    Ambush
    Dive
    Dodge
    Evade
    Infiltration
    Leap
    Quick Draw
    Sprint
    Arm Wound (Right)
    Loud BillMWSBSSTWIALDXP
    Ratskin Brave43243151281
    EquipmentSkillsInjuries
    Stub Gun
    Autogun
    Blindsnake Pouch (Ratskin)
    Knife
    Leg Bionic
    Combat Master
    Step Aside
    True Grit
    Horrible Scars
    Impressive Scars
    Ooze HoundMWSBSSTWIALDXP
    Ratskin Brave42233231242
    EquipmentSkillsInjuries
    Autopistol x2
    Blindsnake Pouch (Ratskin)
    Club
    Infiltration
    Jump Back
    None
    Ghost DogMWSBSSTWIALDXP
    Ratskin43433131449
    EquipmentSkillsInjuries
    Stub Gun
    Lasgun
    Blindsnake Pouch (Ratskin)
    Knife
    Dodge
    None
    BovinusMWSBSSTWIALDXP
    Ratskin43333231353
    EquipmentSkillsInjuries
    Autopistol
    Shotgun
    Man-stopper Shotgun Shell
    Blindsnake Pouch (Ratskin)
    NoneNone
    Chef HaystackMWSBSSTWIALDXP
    Ratskin43333131325
    EquipmentSkillsInjuries
    Autopistol
    Autogun
    Knife
    NoneNone
    Black MouserMWSBSSTWIALDXP
    Ratskin Brave42233132219
    EquipmentSkillsInjuries
    Stub Gun
    Dum-dum Bullets
    Knife
    NoneNone
    Peeky JoeMWSBSSTWIALDXP
    Ratskin Brave42233131211
    EquipmentSkillsInjuries
    Autopistol
    Maul
    Knife
    Blade Venom
    Infiltration
    None
    Shadowed OneMWSBSSTWIALDXP
    Ratskin Brave4223313128
    EquipmentSkillsInjuries
    Hand Bow
    Knife
    True Grit
    Old Battle Wound
     
    Llewy, Blood Donor, djmothra and 3 others like this.
  6. Malo

    Malo YakTribe Mechanicum
    Staff Member Yak Founder

    Map
    The icon kinda looks like Google+, I'll have to come up with something different.
     
    spafe likes this.
  7. spafe

    spafe Executive Officer in charge of Hats
    Staff Member Necromunda Custodian Yak Philanthropist Yak Comp 2nd Place

    Map
    yeah boy!!! work that cog boy magic!
     
    Blood Donor likes this.
  8. djmothra

    djmothra Magister Competere
    Yak Supporter Yak Comp 2nd Place

    Map
    This is cool Boss! Only for necro right now?
     
    Blood Donor likes this.
  9. Malo

    Malo YakTribe Mechanicum
    Staff Member Yak Founder

    Map
    Until the Mordheim and Gorkamorka systems are finalized, yes.
     
    Blood Donor, spafe and djmothra like this.
  10. Llewy

    Llewy Gang Champion
    Yak Comp 1st Place

    Map
    Hey @Malo, as someone who knows the forums back and front, what's your sense of how this would be used?

    I guess my first thoughts are it would be useful for campaign reports, but then I also wonder would it be helpful to have a function whereby you can put the stats for a single ganger as well as for the whole gang?

    My thoughts about layout are, when it's showing the whole gang maybe it would be better to have an extra line of space between each of the gangers? Since Peeky Joe is made up of two boxes (his straight up stats and also his equipment, skills, injuries), for my blurry eyes, his profile is easily confused with the one below him, that of Shadowed One.

    The other thing about layout, looking down the list, is that because of the difference in length of names of characters, the M, WS, BS stats of one ganger don't line up with the same stats of the ganger below. You don't get the same problem in the rosters as each new line always starts with M, WS, BS etc.. That doesn't really matter at all (neither does the thing about gaps between gangers) but I just thought I would mention it as that is what came to mind.

    Capture.PNG

    Sorry if I'm too late with this feedback. As usual, thanks a lot!
     
    Ptrix and Malo like this.
  11. scavvyjay

    scavvyjay Gang Champion

    Map
    This is very cool.
     
  12. Malo

    Malo YakTribe Mechanicum
    Staff Member Yak Founder

    Map
    Campaign reports are an obvious choice but there's lots of instances over the years where members have posted a thread asking for opinions on their gang, posting either the link or actually trying to add in the stats themselves. A link won't help as time goes by because that gang will change so the original reference is lost. With this method, the gang info posted will be there forevermore. I'll actually be adding a different version as well which retrieves the gang info when the post is viewed, therefore the latest version.

    That's not a bad idea. The content is quite long so if you're just referencing one ganger it could help.

    I'll see what I can do about more visual separation, maybe without an extra space and making it even longer.

    I'm very limit for the layout as I can't use any kind of HTML or CSS. I could put the name and type above in a separate table or outside of the table, i'll play with it.

    Not at all. Thank you for the feedback.
     
    Llewy and spafe like this.
  13. almic85

    almic85 Ganger

    Map
    This looks like fantastic.

    As a forum noob is there any way to get it rolled up into one of those spoiler boxes that Trollmeat seems to always use. Maybe with the word spoiler replaced with the gang name?

    Unfortunately my bbcode skills are not all that great.
     
    stealthvulture and scavvyjay like this.
  14. Malo

    Malo YakTribe Mechanicum
    Staff Member Yak Founder

    Map
    Jeez why didn't I think of that! I should be wrapped in a spoiler by default.
     
  15. Malo

    Malo YakTribe Mechanicum
    Staff Member Yak Founder

    Map
    Updated the original post with the latest version of the plugin
    • Wrapped the entire output in a SPOILER tag and added gang name to tag title
    • Removed ganger name and type from stats table
    • Added ganger name and type as header above stats
     
    spafe and Llewy like this.
  16. scavvyjay

    scavvyjay Gang Champion

    Map
    OK dumb question I'm sure, but where do I find my gang Id number?
     
  17. spafe

    spafe Executive Officer in charge of Hats
    Staff Member Necromunda Custodian Yak Philanthropist Yak Comp 2nd Place

    Map
    When you click on your gang, look in the url bit at the top... it will say necromunda/gang/edit/ then a 5 digit number... that's what you want. (I've highlighted the bit in at the top of that print screen)

    upload_2017-2-1_10-11-10.png
     
    Malo and scavvyjay like this.
  18. scavvyjay

    scavvyjay Gang Champion

    Map
    Cheers, got it.:)
     
    spafe likes this.
  19. scavvyjay

    scavvyjay Gang Champion

    Map
    @Malo check out the leadership values of my Genestealer gang;
    The Venerable Family of Father Ollifarch

    DelaqueRating 1647Credits 9
    TerritoriesStash
    Chemical Production
    Disgruntled Bank Clerk
    Survaillance Officer
    Talent Recruiter
    Tradesman
    Autogun
    Gangers

    Magus Excreedius - Human Magus (GEN)
    MWSBSSTWIALDXP
    433331313114
    EquipmentSkillsInjuries
    Autogun
    Knife
    Deux Ex Machina
    Dive
    Embolden
    Escape Artist
    Impending Doom
    Mind war
    Impressive Scars
    Cruddix - Human 1st Gen Hybrid
    MWSBSSTWIALDXP
    44143131144
    EquipmentSkillsInjuries
    Sword
    Berserk Charge
    Chitin Armour
    Dive
    Extra Arm
    None
    Uncle Ick - Purestrain Genesteal
    MWSBSSTWIALDXP
    650551530110
    EquipmentSkillsInjuries
    NoneChitin Armour
    Infiltration
    Old Battle Wound
    Bethselemin - Human 3rd gen Hybrid
    MWSBSSTWIALDXP
    43433131481
    EquipmentSkillsInjuries
    Heavy Stubber
    NoneNone
    Gorazk - Human 4th Gen Hybrid
    MWSBSSTWIALDXP
    43333131344
    EquipmentSkillsInjuries
    Autogun
    Knife
    Ambush
    Deux Ex Machina
    Infiltration
    Shell Shock
    Aothanp - Human 4th Gen Hybrid
    MWSBSSTWIALDXP
    43433231477
    EquipmentSkillsInjuries
    Longlas
    Beastmaster
    Iron Will
    Specialist
    None
    Antwoord - Brood Brother
    MWSBSSTWIALDXP
    42233151222
    EquipmentSkillsInjuries
    Stub Gun
    Knife
    Escape Artist
    Bitter Emnity
    Deekon - Brood Brother
    MWSBSSTWIALDXP
    42433131419
    EquipmentSkillsInjuries
    Stub Gun
    Knife
    Medic
    Hand Injury (Left)
    Farg - Brood Brother
    MWSBSSTWIALDXP
    42333131315
    EquipmentSkillsInjuries
    Stub Gun
    Knife
    Impetuous
    Shell Shock
    Qualid - Brood Brother
    MWSBSSTWIALDXP
    42334231316
    EquipmentSkillsInjuries
    Stub Gun
    Knife
    NonePartially Defeaned
    Blinded (Left)
    Blug - Brood Brother
    MWSBSSTWIALDXP
    42333141325
    EquipmentSkillsInjuries
    NoneDive
    Nerves of Steel
    Bitter Emnity


    Does the problem have anything to do with it being a custom gang (even though it says Delaque).
     
    #19 scavvyjay, Feb 1, 2017
    Last edited: Feb 2, 2017
  20. Malo

    Malo YakTribe Mechanicum
    Staff Member Yak Founder

    Map
    Oops, fixed :)
     
    scavvyjay likes this.

Share This Page