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:
Kod:
<a href="{$forumurl?}filtertf_xtlyrics_artist={VALUE}" title="View All {VALUE} Songs">{VALUE}</a>
- 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:
Kod:
<a href="{$forumurl_q}filtertf_xtlyrics_album={VALUE}" title="View All Songs In {VALUE} Album">{VALUE}</a>
- 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.
Kod:
<if THIS_SCRIPT == 'forumdisplay.php' then>
<a href="{$threadurl}"><img src="images/default_avatar.gif" alt="" title="View {$thread['subject']} Song Lyric" style="width: 80px; height: 60px;" /></a>
</if>
<if THIS_SCRIPT == 'showthread.php' then>
<img src="images/default_avatar.gif" alt="" title="" style="width: 120px; height: 90px;" />
</if>
- Display Format:
Kod:
<if THIS_SCRIPT == 'forumdisplay.php' then>
<a href="{$threadurl}"><img src="{URL}/thumb80x60" alt="" title="View {$thread['subject']} Song Lyric" /></a>
</if>
<if THIS_SCRIPT == 'showthread.php' then>
<a href="{URL}" target="_blank"><img src="{URL}/thumb120x90" alt="" title="Click To View Full Size" /></a>
</if>
- Textbox for YouTube Video:
- Title: YouTube Video
- Key: xtlyrics_ytv
- Applicable Forums: 'select a forum above'
- Editable by / Required Field?: Everyone
Modify it as our needs. Select Everyone (required) if this is a required field.
- Display Order: 4
- Blank Replacement Value: Ignore this setting if we set this field as required field.
Kod:
<div align="center"><strong><em>There is no video for {$thread['subject']} song</em></strong></div>
- Display Format:
Kod:
<div align="center">
<object type="application/x-shockwave-flash" data="http://www.youtube.com/v/{VALUE$1}{VALUE$2}" width="360" height="270"><param name="movie" value="http://www.youtube.com/v/{VALUE$1}{VALUE$2}" /><param name="FlashVars" value="playerMode=embedded" /><p>{$thread['subject']}</p></object>
</div>
- Text Mask Filter: Custom (regex)
Kod:
^(?:([a-zA-Z0-9_\-+]{8,16})$|http\://(?:[a-z]{1,4}\.)?youtube\.com/watch\?v=([a-zA-Z0-9_\-+]{8,16}))
Variable in template for displaying this field is: {$GLOBALS['threadfields']['xtlyrics_ytv']}.
- 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.
Kod:
<div align="center">There is no audio for this song</div>
- 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:
- Title: Music Category
- Key: xtlyrics_cat
- Applicable Forums: 'select the forum above'
- Input Field Type: Listbox
- Field Input Height: 1
- Values List:
Kod:
Band Group
Artist Solo
Modify it as our needs. In this example, we use category, not genre. I just want to make it a bit different with Music Gallery.
- Editable by / Required Field?: Everyone (required)
- Display Order: 6
- Allow Filtering: Yes
- Display Format:
Kod:
<a href="{$forumurl?}filtertf_xtlyrics_cat={VALUE}">{VALUE}</a>
- Multiline Textbox for Additional Info:
- Title: Additional Info
- Key: xtlyrics_addinfo
- Applicable Forums: 'select a forum above'
- Input Field Type: Multiline Textbox
- Editable by / Required Field?: Everyone
- Display Parsing: Plain text with new lines
- Display Order: 7
- Blank Replacement Value:
Kod:
<div align="center"><strong><em>There is no additional info for {$thread['subject']} song</em></strong></div>
- Display Format:
Kod:
<div class="float_left" style="margin-right: 11px;">
{$GLOBALS['threadfields']['xtlyrics_photo']['value']}
</div>
<div class="post_body">
{VALUE}
</div>
Variable in template for displaying this field is: {$GLOBALS['threadfields']['xtlyrics_addinfo']}.
- 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:
Kod:
<setvar xtl_sid>THIS_SCRIPT == 'showthread.php' ? get_thread(intval({VALUE})) : ''</setvar>
<setvar xtl_rsid>$tplvars['xtl_sid'] && $tplvars['xtl_sid']['fid'] == $fid ? '<a href="'.get_thread_link(intval($tplvars['xtl_sid']['tid'])).'">'.htmlspecialchars_uni($tplvars['xtl_sid']['subject']).'</a>' : ''</setvar>
- 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
Kod:
postlayout=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
Kod:
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->edit_post}</title>
{$headerinclude}
<script type="text/javascript" src="jscripts/post.js?ver=1400"></script>
</head>
<body>
{$header}
{$preview}
{$post_errors}
{$attacherror}
<form action="editpost.php?pid={$pid}&processed=1" method="post" enctype="multipart/form-data" name="input">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>Edit Lyric</strong></td>
</tr>
<tr>
<td class="trow1" valign="top">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="trow1">
<strong>Song Lyric</strong>
</td>
</tr>
<tr>
<td class="trow1">
<textarea name="message" id="message" rows="23" cols="50" tabindex="3">{$message}</textarea>
</td>
</tr>
</table>
</td>
<td class="trow1" valign="top">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="trow1" width="30%">
<strong>Song Title</strong>
</td>
<td class="trow1">
<input type="text" class="textbox" name="subject" size="40" maxlength="85" value="{$subject}" tabindex="1" />
</td>
</tr>
{$extra_threadfields}
{$subscriptionmethod}
</table>
</td>
</tr>
</table>
<br />
<div align="center">
<input type="submit" class="button" name="submit" value="{$lang->update_post}" tabindex="3" />
<input type="submit" class="button" name="previewpost" value="{$lang->preview_post}" tabindex="4" />
</div>
<input type="hidden" name="action" value="do_editpost" />
<input type="hidden" name="posthash" value="{$posthash}" />
<input type="hidden" name="attachmentaid" value="" />
<input type="hidden" name="attachmentact" value="" />
</form>
<br />
<form action="editpost.php" method="post" name="editpost">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="3"><strong>{$lang->delete_post}</strong></td>
</tr>
<tr>
<td class="trow1" style="white-space: nowrap"><input type="checkbox" class="checkbox" name="delete" value="1" tabindex="9" /> <strong>{$lang->delete_q}</strong></td>
<td class="trow1" width="100%">{$lang->delete_1}<br /><span class="smalltext">{$lang->delete_2}</span></td>
<td class="trow1"><input type="submit" class="button" name="submit" value="{$lang->delete_now}" tabindex="10" /></td>
</tr>
</table>
<input type="hidden" name="action" value="deletepost" />
<input type="hidden" name="pid" value="{$pid}" />
</form>
{$footer}
</body>
</html>
- xtlyrics_forumdisplay_searchforum_inline
Kod:
<table border="0" cellspacing="{$GLOBALS['theme']['borderwidth']}" cellpadding="{$GLOBALS['theme']['tablespace']}" class="tborder">
<tr>
<td class="thead largetext" align="center">
<strong>Search Lyrics</strong>
</td>
</tr>
<tr>
<td class="trow1" align="center">
<form action="forumdisplay.php" method="get">
<input type="text" class="textbox" name="search" size="25" value="{$searchval}" /> {$gobutton}
<input type="hidden" name="fid" value="{$fid}" />
<input type="hidden" name="sortby" value="{$sortby}" />
<input type="hidden" name="order" value="{$sortordernow}" />
<input type="hidden" name="datecut" value="{$datecut}" />
</form>
</td>
</tr>
</table>
<br />
- xtlyrics_forumdisplay_sticky_sep
Kod:
<div><strong>Featured Songs</strong></div>
- xtlyrics_forumdisplay_thread
Kod:
<div class="float_left" style="width: 50%; height: 89px;">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" width="100%">
<tr>
<td align="center" class="{$bgcolor}">
{$GLOBALS['threadfields']['xtlyrics_photo']['value']}
</td>
<td class="{$bgcolor} smalltext" width="100%" title="{$thread['views']} Views, {$thread['replies']} Comments">
<div>
<strong><a href="{$thread['threadlink']}" class="{$inline_edit_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a></strong>
</div>
<div>
<span>{$GLOBALS['threadfields']['xtlyrics_artist']}</span>
</div>
<div>
<a href="{$forumurl_q}filterxt_uid={$thread['uid']}" title="View All Songs Submitted By This User">by</a>: {$thread['profilelink']}
</div>
</td>
{$modbit}
</tr>
</table>
</div>
- xtlyrics_forumdisplay_threadlist
Kod:
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" style="clear: both; width: 100%;">
<tr>
<td width="70%" valign="top">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead">
<div align="center" class="largetext">
<strong><a href="{$forumurl}">{$foruminfo['name']}</a></strong>
</div>
</td>
{$inlinemodcol}
</tr>
<tr>
<td class="trow1" colspan="2">
{$threads}{$nullthreads}
</td>
</tr>
</table>
<div class="float_left">
{$multipage}
</div>
<div class="float_right" style="margin-top: 4px;">
{$newthread}
</div>
</td>
<td valign="top">
{$searchforum}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead">
<div align="center" class="largetext">
<strong>Song Category</strong>
</div>
</td>
</tr>
<tr>
<td class="trow1">
<strong><a href="{$forumurl_q}filtertf_xtlyrics_cat=Band Group">Band Group</a></strong>
</td>
</tr>
<tr>
<td class="trow1">
<strong><a href="{$forumurl_q}filtertf_xtlyrics_cat=Artist Solo">Artist Solo</a></strong>
</td>
</tr>
</table>
<br />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead">
<div align="center" class="largetext">
<strong>Song Sorter</strong>
</div>
</td>
</tr>
<tr>
<td class="trow1">
<strong><a href="{$sorturl}&sortby=started&order=desc">Last Added</a></strong>
</td>
</tr>
<tr>
<td class="trow1">
<strong><a href="{$sorturl}&sortby=replies&order=desc">Most Commented</a></strong>
</td>
</tr>
<tr>
<td class="trow1">
<strong><a href="{$sorturl}&sortby=views&order=desc">Most Viewed</a></strong>
</td>
</tr>
<tr>
<td class="trow1">
<strong><a href="{$sorturl}&sortby=lastpost&order=desc">Last Commented</a></strong>
</td>
</tr>
{$ratingcol}
</table>
</td>
</tr>
</table>
<br class="clear" />
<div class="float_right" style="text-align: right;">
{$inlinemod}
{$forumjump}
</div>
<br style="clear: both" />
{$inline_edit_js}
<div class="tc smalltext">
{$foruminfo['name']}<br />
Powered By: <a href="http://mybbhacks.zingaburga.com">XThreads</a> - <a href="http://mybbhacks.zingaburga.com">MyBB Hacks</a>
</div>
- xtlyrics_forumdisplay_threadlist_rating
Kod:
<tr>
<td class="trow1">
<strong><a href="{$sorturl}&sortby=rating&order=desc">Most Rated</a></strong>
<script type="text/javascript" src="jscripts/rating.js?ver=1400"></script>
<script type="text/javascript">
<!--
lang.stars = new Array();
lang.stars[1] = "{$lang->one_star}";
lang.stars[2] = "{$lang->two_stars}";
lang.stars[3] = "{$lang->three_stars}";
lang.stars[4] = "{$lang->four_stars}";
lang.stars[5] = "{$lang->five_stars}";
// -->
</script>
</td>
</tr>
- xtlyrics_forumdisplay_threads_sep
Kod:
<div class="clear"><strong>Other Songs</strong></div>
- xtlyrics_newthread
Kod:
<html>
<head>
<title>{$lang->newthread_in}</title>
{$headerinclude}
<script type="text/javascript" src="jscripts/post.js?ver=1400"></script>
</head>
<body>
{$header}
{$preview}
{$thread_errors}
{$attacherror}
<form action="newthread.php?fid={$fid}&processed=1" method="post" enctype="multipart/form-data" name="input">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>New Lyrics</strong></td>
</tr>
<tr>
<td class="trow1" valign="top">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="trow1">
<strong>Song Lyric</strong>
</td>
</tr>
<tr>
<td class="trow1">
<textarea name="message" id="message" rows="24" cols="50" tabindex="2">{$message}</textarea>
</td>
</tr>
</table>
</td>
<td class="trow1" valign="top">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="trow1" width="30%">
<strong>Song Title</strong>
</td>
<td class="trow1">
<input type="text" class="textbox" name="subject" size="40" maxlength="85" value="{$subject}" tabindex="1" />
</td>
</tr>
{$extra_threadfields}
{$modoptions}
{$subscriptionmethod}
{$captcha}
</table>
</td>
</tr>
</table>
<br />
<div style="text-align:center">
<input type="submit" class="button" name="submit" value="{$lang->post_thread}" tabindex="4" accesskey="s" />
<input type="submit" class="button" name="previewpost" value="{$lang->preview_post}" tabindex="5" />
</div>
<input type="hidden" name="action" value="do_newthread" />
<input type="hidden" name="posthash" value="{$posthash}" />
<input type="hidden" name="attachmentaid" value="" />
<input type="hidden" name="attachmentact" value="" />
<input type="hidden" name="quoted_ids" value="{$quoted_ids}" />
<input type="hidden" name="tid" value="{$tid}" />
{$editdraftpid}
</form>
{$forumrules}
{$footer}
</body>
</html>
- xtlyrics_postbit
Kod:
{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<table width="100%" border="0">
<tr>
<td width="1" valign="top" align="center">
{$post['posturl']}
<div class="post_meta" id="post_meta_{$post['pid']}">
{$post['iplogged']}
</div>
</td>
<td valign="top">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
<tbody>
<tr>
<td class="trow2 post_content {$unapproved_shade}">
<span class="smalltext"><em>by: <a href="{$post['profilelink_plain']}" id="profile_{$post['pid']}" title="View User Info">{$post['username_formatted']}</a>, {$post['postdate']} at {$post['posttime']}</em></span>
<div id="profile_{$post['pid']}_popup" class="trow1" style="display: none;">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" align="center" colspan="2">
<span class="largetext"><strong>User Info</strong></span>
</td>
</tr>
<tr>
<td class="trow1 post_avatar" width="1" style="{$post['avatar_padding']}">
{$post['useravatar']}
</td>
<td class="trow1 post_author">
<strong><span class="largetext">{$post['profilelink']}</span></strong>
{$post['onlinestatus']}<br />
<span class="smalltext">
{$post['usertitle']}<br />
{$post['userstars']}
{$post['groupimage']}
</span>
</td>
</tr>
</table>
</div>
<div class="post_body" id="pid_{$post['pid']}">
<div class="my_font">{$post['message']}</div>
</div>
<div>
{$post['button_edit']}{$post['button_quickdelete']}{$post['button_report']}{$post['button_warn']}
</div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
<script type="text/javascript">
// <!--
if(use_xmlhttprequest == "1")
{
new PopupMenu("profile_{$post['pid']}");
}
// -->
</script>
- xtlyrics_postbit_first
Kod:
{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
<tbody>
<tr>
<td class="thead {$unapproved_shade}" align="center">
<span class="largetext"><strong>{$post['subject']} Lyrics</strong></span>
</td>
</tr>
<tr>
<td class="trow2 post_content {$unapproved_shade}">
{$post['posturl']}
<div class="post_meta float_right" id="post_meta_{$post['pid']}">
{$post['iplogged']}
</div>
<div class="float_left">
<span class="smalltext"><em>Submitted by: <a href="{$post['profilelink_plain']}" id="profile_{$post['pid']}" title="View Submitter Info">{$post['username_formatted']}</a><br />{$post['postdate']}, {$post['posttime']}</em></span>
<div id="profile_{$post['pid']}_popup" class="trow1" style="display: none;">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" align="center" colspan="2">
<span class="largetext"><strong>Submitter Info</strong></span>
</td>
</tr>
<tr>
<td class="trow1 post_avatar" width="1" style="{$post['avatar_padding']}">
{$post['useravatar']}
</td>
<td class="trow1 post_author">
<strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
<span class="smalltext">
{$post['usertitle']}<br />
{$post['userstars']}
{$post['groupimage']}
</span>
</td>
</tr>
</table>
</div>
</div>
<br class="clear" />
<div class="post_body" id="pid_{$post['pid']}">
<div class="my_font">{$post['message']}</div>
</div>
<div>
{$post['button_edit']}{$post['button_quickdelete']}{$post['button_report']}{$post['button_warn']}
</div>
</td>
</tr>
</tbody>
</table>
<script type="text/javascript">
// <!--
if(use_xmlhttprequest == "1")
{
new PopupMenu("profile_{$post['pid']}");
}
// -->
</script>
- xtlyrics_postbit_first_posturl
Kod:
<div class="float_right">{$post['inlinecheck']}</div>
- xtlyrics_postbit_inlinecheck
Kod:
<input type="checkbox" class="checkbox" name="inlinemod_{$post['pid']}" id="inlinemod_{$post['pid']}" value="1" style="vertical-align: middle;" {$inlinecheck} />
- xtlyrics_postbit_iplogged_hiden
Kod:
<span class="smalltext"><strong><a href="moderation.php?action=getip&pid={$post['pid']}">IP</a></strong></span>
- xtlyrics_postbit_posturl
Kod:
<div style="margin-top: 3px;">
<span class="smalltext">
<strong><a href="{$post['postlink']}#pid{$post['pid']}">#{$postcounter}</a></strong><br />{$post['inlinecheck']}
</span>
</div>
- xtlyrics_showthread
Kod:
<html>
<head>
<title>{$thread['subject']}</title>
{$headerinclude}
<script type="text/javascript">
<!--
var quickdelete_confirm = "{$lang->quickdelete_confirm}";
// -->
</script>
<script type="text/javascript" src="jscripts/thread.js?ver=1400"></script>
</head>
<body>
{$header}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" width="100%">
<tr>
<td valign="top" width="54%">
<div>{$first_post}</div><br />
<div align="center">
<strong>« <a href="{$next_oldest_link}">{$lang->next_oldest}</a> | <a href="{$next_newest_link}">{$lang->next_newest}</a> »</strong>
</div>
<br />
<div id="posts">{$posts}</div>
<br class="clear" />
<div class="float_left">{$multipage}</div>
<div style="padding-top: 4px;" class="float_right">{$newreply}</div>
</td>
<td valign="top">
<table border="0" cellspacing="0" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" align="center" colspan="3">
<span class="largetext"><strong>Song Info</strong></span>
</td>
</tr>
<tr>
<td class="trow1" valign="top">Song ID</td>
<td class="trow1" valign="top">:</td>
<td class="trow1" valign="top">{$thread['tid']}</td>
</tr>
<tr>
<td class="trow1" valign="top" width="100">Title</td>
<td class="trow1" valign="top" width="1">:</td>
<td class="trow1" valign="top"><a href="{$threadurl}">{$thread['subject']}</a></td>
</tr>
<tr>
<td class="trow1" valign="top">Artist</td>
<td class="trow1" valign="top">:</td>
<td class="trow1" valign="top">{$GLOBALS['threadfields']['xtlyrics_artist']}</td>
</tr>
<tr>
<td class="trow1" valign="top">Album</td>
<td class="trow1" valign="top">:</td>
<td class="trow1" valign="top">{$GLOBALS['threadfields']['xtlyrics_album']}</td>
</tr>
<tr>
<td class="trow1" valign="top">Category</td>
<td class="trow1" valign="top">:</td>
<td class="trow1" valign="top">{$GLOBALS['threadfields']['xtlyrics_cat']}</td>
</tr>
{$ratethread}
<tr>
<td class="trow1" valign="top">Related Song</td>
<td class="trow1" valign="top">:</td>
<td class="trow1" valign="top">{$GLOBALS['tplvars']['xtl_rsid']}</td>
</tr>
<tr>
<td class="trow1" valign="top">Miscellaneous</td>
<td class="trow1" valign="top">:</td>
<td class="trow1" valign="top">{$thread['views']} Views, {$thread['replies']} Comments, {$thread['numratings']} Rated</td>
</tr>
<tr>
<td class="trow1" colspan="3">
<div class="smalltext">
<em><a href="{$forumurl_q}filterxt_uid={$thread['uid']}">View All Songs Submitted By {$thread['username']}</a><br /><a href="#" id="share_{$thread['tid']}" title="Share {$thread['subject']}" style="display: none;">Share {$thread['subject']} Song Lyric</a></em>
</div>
<div id="share_{$thread['tid']}_popup" class="trow1" style="display: none;">
<table border="0" cellspacing="0" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" align="center" colspan="2">
<span class="largetext"><strong>Share</strong></span>
</td>
</tr>
<tr>
<td class="trow1" align="center" valign="middle">
<a title="Twitter" href="http://twitter.com/home?status={$thread['subject']} - {$mybb->settings['bburl']}/{$threadurl}" target="_blank"><img src="images/mnimages/twitter.png" alt="Twitter" /></a>
<a title="Facebook" href="http://www.facebook.com/share.php?u={$mybb->settings['bburl']}/{$threadurl}" target="_blank"><img src="images/mnimages/facebook.png" alt="Facebook" /></a>
<a title="Digg" href="http://digg.com/submit?url={$mybb->settings['bburl']}/{$threadurl}" target="_blank"><img src="images/mnimages/digg.png" alt="Digg" /></a>
<a title="Reddit" href="http://reddit.com/submit?url={$mybb->settings['bburl']}/{$threadurl}&title={$thread['subject']}" target="_blank"><img src="images/mnimages/reddit.png" alt="Reddit" /></a>
<a title="Delicious" href="http://del.icio.us/post?url={$mybb->settings['bburl']}/{$threadurl}&title={$thread['subject']}" target="_blank"><img src="images/mnimages/delicious.png" alt="Delicious" /></a>
<a title="StumbleUpon" href="http://www.stumbleupon.com/submit?url={$mybb->settings['bburl']}/{$threadurl}" target="_blank"><img src="images/mnimages/stumbleupon.png" alt="StumbleUpon" /></a>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<br />
<table border="0" cellspacing="0" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" align="center" colspan="3">
<span class="largetext"><strong>Song Box</strong></span>
</td>
</tr>
<tr>
<td class="trow1" colspan="3" align="center">
{$GLOBALS['threadfields']['xtlyrics_audio']}
</td>
</tr>
</table>
<noscript>
<br />
<table border="0" cellspacing="0" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" align="center" colspan="2">
<span class="largetext"><strong>Share</strong></span>
</td>
</tr>
<tr>
<td class="trow1" align="center">
<a title="Twitter" href="http://twitter.com/home?status={$thread['subject']} - {$mybb->settings['bburl']}/{$threadurl}" target="_blank"><img src="images/mnimages/twitter.png" alt="Twitter" /></a>
<a title="Facebook" href="http://www.facebook.com/share.php?u={$mybb->settings['bburl']}/{$threadurl}" target="_blank"><img src="images/mnimages/facebook.png" alt="Facebook" /></a>
<a title="Digg" href="http://digg.com/submit?url={$mybb->settings['bburl']}/{$threadurl}" target="_blank"><img src="images/mnimages/digg.png" alt="Digg" /></a>
<a title="Reddit" href="http://reddit.com/submit?url={$mybb->settings['bburl']}/{$threadurl}&title={$thread['subject']}" target="_blank"><img src="images/mnimages/reddit.png" alt="Reddit" /></a>
<a title="Delicious" href="http://del.icio.us/post?url={$mybb->settings['bburl']}/{$threadurl}&title={$thread['subject']}" target="_blank"><img src="images/mnimages/delicious.png" alt="Delicious" /></a>
<a title="StumbleUpon" href="http://www.stumbleupon.com/submit?url={$mybb->settings['bburl']}/{$threadurl}" target="_blank"><img src="images/mnimages/stumbleupon.png" alt="StumbleUpon" /></a>
</td>
</tr>
</table>
</noscript>
<br />
<table border="0" cellspacing="0" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" align="center">
<span class="largetext"><strong>{$thread['subject']} Video</strong></span>
</td>
</tr>
<tr>
<td class="trow1" align="center">
{$GLOBALS['threadfields']['xtlyrics_ytv']}
</td>
</tr>
</table>
<br />
<table border="0" cellspacing="0" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" align="center">
<span class="largetext"><strong>Additional Info</strong></span>
</td>
</tr>
<tr>
<td class="trow1">
{$GLOBALS['threadfields']['xtlyrics_addinfo']}
</td>
</tr>
</table>
</td>
</tr>
</table>
<br style="clear: both;" />
{$quickreply}
<br />
<div class="float_right" style="text-align: right;">
{$moderationoptions}
</div>
<br style="clear: both;" />
<div class="tc smalltext">
{$forum['name']}<br />
Powered By: <a href="http://mybbhacks.zingaburga.com">XThreads</a> - <a href="http://mybbhacks.zingaburga.com">MyBB Hacks</a>
</div>
<script type="text/javascript">
// <!--
if(use_xmlhttprequest == "1")
{
new PopupMenu("share_{$thread['tid']}");
}
$("share_{$thread['tid']}").style.display = "";
// -->
</script>
{$footer}
</body>
</html>
- xtlyrics_showthread_noreplies
Kod:
<table border="0" cellspacing="{$GLOBALS['theme']['borderwidth']}" cellpadding="{$GLOBALS['theme']['tablespace']}" class="tborder" id="xthreads_noreplies">
<tbody>
<tr>
<td class="trow2 post_content">
<div class="post_body">
<div class="my_font">There is no comment in {$GLOBALS['thread']['subject']} song lyric.</div>
</div>
</td>
</tr>
</tbody>
</table>
- xtlyrics_showthread_ratethread
Kod:
<tr>
<td class="trow1" valign="top">Rate</td>
<td class="trow1" valign="top">:</td>
<td class="trow1" valign="top">
<script type="text/javascript" src="jscripts/rating.js?ver=1400"></script>
<div id="success_rating_{$thread['tid']}"></div>
<div class="inline_rating">
<ul class="star_rating{$not_rated}" id="rating_thread_{$thread['tid']}">
<li style="width: {$thread['width']}%" class="current_rating" id="current_rating_{$thread['tid']}">{$ratingvotesav}</li>
<li><a class="one_star" title="{$lang->one_star}" href="./ratethread.php?tid={$thread['tid']}&rating=1&my_post_key={$mybb->post_code}">1</a></li>
<li><a class="two_stars" title="{$lang->two_stars}" href="./ratethread.php?tid={$thread['tid']}&rating=2&my_post_key={$mybb->post_code}">2</a></li>
<li><a class="three_stars" title="{$lang->three_stars}" href="./ratethread.php?tid={$thread['tid']}&rating=3&my_post_key={$mybb->post_code}">3</a></li>
<li><a class="four_stars" title="{$lang->four_stars}" href="./ratethread.php?tid={$thread['tid']}&rating=4&my_post_key={$mybb->post_code}">4</a></li>
<li><a class="five_stars" title="{$lang->five_stars}" href="./ratethread.php?tid={$thread['tid']}&rating=5&my_post_key={$mybb->post_code}">5</a></li>
</ul>
</div>
</td>
</tr>
Change Logs: 30 May 2011