Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Application X
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #1
Application X
Since I don't know what this application for, so let's name it as Application X.
Demo: http://mybb.xp3.biz/newthread.php?fid=3

More details about it:
http://mybbhacks.zingaburga.com/showthre...http://mybbhacks.zingaburga.com/showthread.php?tid=288&pid=1909
  • Create a forum with these settings:
    • Template Prefix: a_
    • Language File Prefix: a_
    • Show first post on every showthread page: Yes
  • Create custom thread fields:
    Note that since there is a possibility that each forum has custom newthread, editpost, postbit and postbit_classic templates, so in this tutorial there is no input fields hidden in showthread and newthread/editpost_fisrt. If you want to re-arrange the input like the demo, you need to hide some input fields from the newthread/editpost_fisrt and hide all of them from showthread, then put it manually inside a_newthread, a_editpost_fisrt, a_postbit_first and a_postbit_first_classic templates.
    If you decide to hide it, put the output by using {$GLOBALS['threadfields']['key']} manually in your postbit_first and/or postbit_first_classic templates, where key is the Key of the custom thread field(s). That variable will "print" the Display Format of the custom thread field(s).
    • Site Link
      • Title: Site Link
      • Key: a_site_link
      • Applicable Forums: Select the forum above
      • Editable by / Required Field?: Everyone (required)
      • Maximum Text Length: 100
        Modify it as your needs
      • Text Mask Filter: URL (HTTP/S)
      • Display Format:

        Code:
        <a href="{VALUE}">{$thread['subject']}</a>

    • Software or Format
      • Title: Software or Format
      • Key: a_sof
      • Applicable Forums: Select the forum above
      • Input Field Type: Listbox
      • Display Order: 2
      • Editable by / Required Field?: Everyone (required)
      • Values List:

        Code:
        1{|}Software
        2{|}Format

        Modify it as your needs

      • Field Input Width: 20
        Modify it as your needs
      • Field Input Height: 1
      • Formatting Map List:

        Code:
        1{|}Software
        2{|}Format

        Modify it as your needs

      • Filtering Mode: Exact Match
      • Underlying Data Type: Integer (unsigned, usually 32-bit)
    • Staff Account
      • Title: Staff Account
      • Key: a_staff_account
      • Applicable Forums: Select the forum above
      • Display Order: 3
      • Editable by / Required Field?: Everyone (required)
      • Maximum Text Length: 100
        Modify it as your needs
      • Text Mask Filter: URL (HTTP/S)
    • Location of RPGD Icon
      • Title: Location of RPGD Icon
      • Key: a_rpgd_icon
      • Applicable Forums: Select the forum above
      • Display Order: 4
      • Editable by / Required Field?: Everyone (required)
      • Maximum Text Length: 100
        Modify it as your needs
    • Directory Category
      • Title: Directory Category
      • Key: a_dir_cat
      • Applicable Forums: Select the forum above
      • Input Field Type: Listbox
      • Display Order: 5
      • Editable by / Required Field?: Everyone (required)
      • Values List:

        Code:
        1{|}Category 1
        2{|}Category 2

        Modify it as your needs

      • Field Input Width: 30
        Modify it as your needs
      • Field Input Height: 1
      • Formatting Map List:

        Code:
        1{|}Category 1
        2{|}Category 2

        Modify it as your needs

      • Filtering Mode: Exact Match
      • Underlying Data Type: Integer (unsigned, usually 32-bit)
    • Activity
      • Title: Activity
      • Key: a_activity
      • Applicable Forums: Select the forum above
      • Input Field Type: Listbox
      • Display Order: 6
      • Editable by / Required Field?: Everyone (required)
      • Values List:

        Code:
        1{|}Activity 1
        2{|}Activity 2

        Modify it as your needs

      • Field Input Width: 25
        Modify it as your needs
      • Field Input Height: 1
      • Formatting Map List:

        Code:
        1{|}Activity 1
        2{|}Activity 2

        Modify it as your needs

      • Filtering Mode: Exact Match
      • Underlying Data Type: Integer (unsigned, usually 32-bit)
    • Sex Rating
      • Title: Sex Rating
      • Key: a_sexrating
      • Applicable Forums: Select the forum above
      • Input Field Type: Listbox
      • Display Order: 7
      • Editable by / Required Field?: Everyone (required)
      • Values List:

        Code:
        0
        1
        2
        3

        Modify it as your needs

      • Field Input Width: 10
        Modify it as your needs
      • Field Input Height: 1
      • Filtering Mode: Exact Match
      • Underlying Data Type: Integer (unsigned, usually 32-bit)
    • Violence Rating
      • Title: Violence Rating
      • Key: a_violencerating
      • Applicable Forums: Select the forum above
      • Input Field Type: Listbox
      • Display Order: 8
      • Editable by / Required Field?: Everyone (required)
      • Values List:

        Code:
        0
        1
        2
        3

        Modify it as your needs

      • Field Input Width: 10
        Modify it as your needs
      • Field Input Height: 1
      • Filtering Mode: Exact Match
      • Underlying Data Type: Integer (unsigned, usually 32-bit)
    • Language Rating
      • Title: Language Rating
      • Key: a_languagerating
      • Applicable Forums: Select the forum above
      • Input Field Type: Listbox
      • Display Order: 9
      • Editable by / Required Field?: Everyone (required)
      • Values List:

        Code:
        0
        1
        2
        3

        Modify it as your needs

      • Field Input Width: 10
        Modify it as your needs
      • Field Input Height: 1
      • Filtering Mode: Exact Match
      • Underlying Data Type: Integer (unsigned, usually 32-bit)
    • Types of Characters/Creatures Allowed
      • Title: Types of Characters/Creatures Allowed
      • Key: a_tofchars
      • Applicable Forums: Select the forum above
      • Display Order: 10
      • Editable by / Required Field?: Everyone (required)
      • Maximum Text Length: 100
        Modify it as your needs
    • Time where the RP is set
      • Title: Time where the RP is set
      • Key: a_time
      • Applicable Forums: Select the forum above
      • Display Order: 11
      • Editable by / Required Field?: Everyone (required)
      • Maximum Text Length: 10
        Modify it as your needs.
      • Field Input Width: 10
        Modify it as your needs
    • Other Notes
      This is an optional field (the user isn't forced to fill it).
      • Title: Other Notes
      • Key: a_notes
      • Applicable Forums: Select the forum above
      • Display Order: 12
      • Maximum Text Length: 250
        Modify it as your needs
    • Contact Details
      This is an optional field (the user isn't forced to fill it).
      • Title: Contact Details
      • Key: a_contact
      • Applicable Forums: Select the forum above
      • Display Order: 13
      • Maximum Text Length: 250
        Modify it as your needs

  • Displaying the image rating:
    This code will display the image rating:

    Code:
    {$GLOBALS['threadfields']['a_sexrating']}_{$GLOBALS['threadfields']['a_violencerating']}_{$GLOBALS['threadfields']['a_languagerating']}.jpg

    It will print something like: a_b_c.jpg, where a = Sex Rating, b = Violence Rating and c = Language Rating.
    Put it manually inside a_showthread template or a_postbit_first and/or a_postbit_first_classic templates.

  • Upload the 3 language files provided in the attachment of this post to your language dir,  by default, inc/languages/english/


Attached File(s)
.7z  inc.7z (Size: 670 bytes / Downloads: 366)

10-26-2015 06:12 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: