Requirement:
XThreads
Last Update:
7 October 2012
You can modify this (based on MyBB 1.4):
Custom Thread Fields Setting:
- Textbox for Artist:
- Title: Name
- Key: xtlyrics_artist
- Applicable Forums: 'select a forum that we will apply this modification'
- Editable by / Required Field?: Everyone (required)
Variable in template for displaying this field is: {$GLOBALS['threadfields']['xtlyrics_artist']}.
Additional Info:
If we want user to be able to filter thread/song by Artist:
- Allow Filtering: Yes
- Display Format:
- Textbox for Album:
- Title: Album
- Key: xtlyrics_album
- Applicable Forums: 'select a forum above'
- Editable by / Required Field?: Everyone (required)
- Display Order?: 2
Variable in template for displaying this field is: {$GLOBALS['threadfields']['xtlyrics_album']}.
Additional Info:
If we want user to be able to filter thread/song by Album:
- Allow Filtering: Yes
- Display Format:
- File Input for Artist Photo / Album Cover:
- Title: Artist Photo
- Key: xtlyrics_photo
- Applicable Forums: 'select a forum above'
- Input Field Type: File
- Valid File Extensions: gif|png|jpg|jpeg
Modify it as our needs. It is the extensions of image that can be uploaded.
- Maximum File Size: 1048576
Modify it as our needs. It is a maximum file size (in bytes) that can be uploaded. In this example, 1 Mb.
- Editable by / Required Field?: Everyone
Modify it as our needs. Select Everyone (required) if this is a required field.
- Display Order: 3
- Only accept uploaded images: Yes
- Image Thumbnail Generation: 80x60|120x90
- Blank Replacement Value: Ignore this setting if we set this field as required field.
- Display Format:
- Textbox for YouTube Video:
- Textbox for Music URL:
I leave the decision to Admin, what audio widget to be used, especially if user is not allowed to upload an audio for the song they submitted.
- Title: Music URL
- Key: xtlyrics_audio
- Applicable Forums: 'select the forum above'
- Editable by / Required Field?: Everyone
Modify it as our needs. Select Everyone (required) if this is a required field.
- Display Order: 5
- Blank Replacement Value: Ignore this setting if we set this field as required field.
- Display Format: Depends on what sharing audio widget site be used. Learn how the sharing URL scheme.
Variable in template for displaying this field is: {$GLOBALS['threadfields']['xtlyrics_audio']}.
- Listbox for Category/Genre:
- Multiline Textbox for Additional Info:
- Textbox for Related Song ID:
This is an optional only. Only support 1 related song. And user need to fill this textbox with Song ID (actually, it is a thread ID).
- Title: Related Song ID
- Key: xtlyrics_rsid
- Applicable Forums: 'select a forum above'
- Editable by / Required Field?: Everyone
- Blank Replacement Value:
- Display Format:
- Text Mask Filter: Digits
Edit the selected forum with this XThreads Options settings:
- Template Prefix: xtlyrics_
- Show first post on every showthread page: Yes
- Enable XThreads' Inline Forum Search: Yes
- Settings Overrides:
- Setting: Showthread Options -> Post Layout
Value: horizontal
- Hide Forum: Yes
We need to put this forum URL manually in our templates (e.g: header template).
- Enable Thread Filters: uid
- Custom WOL Text:
- Forum Display: Viewing Lyrics
- New Thread: Submitting A New Lyric
- New Reply: Commenting <a href="{1}">{2}</a> Lyric
- Show Thread: Viewing <a href="{1}">{2}</a> Lyric
Now, we need to create new templates in Global Template.
Admin CP -> Templates & Style -> Templates -> Global Templates:
- xtlyrics_editpost_first
- xtlyrics_forumdisplay_searchforum_inline
- xtlyrics_forumdisplay_sticky_sep
- xtlyrics_forumdisplay_thread
- xtlyrics_forumdisplay_threadlist
- xtlyrics_forumdisplay_threadlist_rating
- xtlyrics_forumdisplay_threads_sep
- xtlyrics_newthread
- xtlyrics_postbit
- xtlyrics_postbit_first
- xtlyrics_postbit_first_posturl
- xtlyrics_postbit_inlinecheck
- xtlyrics_postbit_iplogged_hiden
- xtlyrics_postbit_posturl
- xtlyrics_showthread
- xtlyrics_showthread_noreplies
- xtlyrics_showthread_ratethread
Change Logs: 30 May 2011
Screenshot (depends on our theme):
Threadlist:
Showthread:
Newthread:
Live Demo:
http://www.14.mynie.co.cc/forumdisplay.php?fid=39