Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Xthreads lryics site?
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #25
RE: Xthreads lryics site?
Requirement: XThreads
Last Update: 7 October 2012

You can modify this (based on MyBB 1.4):

Custom Thread Fields Setting:
  1. 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:

      HTML Code
      <a href="{$forumurl?}filtertf_xtlyrics_artist={VALUE}" title="View All {VALUE} Songs">{VALUE}</a>

  2. 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:

      HTML Code
      <a href="{$forumurl_q}filtertf_xtlyrics_album={VALUE}" title="View All Songs In {VALUE} Album">{VALUE}</a>

  3. 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.

      HTML Code
      1
      2
      3
      4
      5
      6
      <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:

      HTML Code
      1
      2
      3
      4
      5
      6
      <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>

  4. 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.

      HTML Code
      <div align="center"><strong><em>There is no video for {$thread['subject']} song</em></strong></div>

    • Display Format:

      HTML Code
      <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)

      Code:
      ^(?:([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']}.

  5. 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.

      HTML Code
      <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']}.
  6. 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:

      Code:
      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:

      HTML Code
      <a href="{$forumurl?}filtertf_xtlyrics_cat={VALUE}">{VALUE}</a>

  7. 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:

      HTML Code
      <div align="center"><strong><em>There is no additional info for {$thread['subject']} song</em></strong></div>

    • Display Format:

      HTML Code
      1
      2
      3
      4
      5
      6
      <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']}.

  8. 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:

      HTML Code
      &ndash;

    • Display Format:

      Code:
      <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:
  1. Template Prefix: xtlyrics_
  2. Show first post on every showthread page: Yes
  3. Enable XThreads' Inline Forum Search: Yes
  4. Settings Overrides:
    • Setting: Showthread Options -> Post Layout
      Value: horizontal

      Code:
      postlayout=horizontal

  5. Hide Forum: Yes
    We need to put this forum URL manually in our templates (e.g: header template).
  6. Enable Thread Filters: uid
  7. 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:
  1. xtlyrics_editpost_first

    HTML Code
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    <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}&amp;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>

  2. xtlyrics_forumdisplay_searchforum_inline

    HTML Code
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    <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 />

  3. xtlyrics_forumdisplay_sticky_sep

    HTML Code
    <div><strong>Featured Songs</strong></div>

  4. xtlyrics_forumdisplay_thread

    HTML Code
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    <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>

  5. xtlyrics_forumdisplay_threadlist

    HTML Code
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    <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}&amp;sortby=started&amp;order=desc">Last Added</a></strong>
    					</td>
    				</tr>
    				<tr>
    					<td class="trow1">
    						<strong><a href="{$sorturl}&amp;sortby=replies&amp;order=desc">Most Commented</a></strong>
    					</td>
    				</tr>
    				<tr>
    					<td class="trow1">
    						<strong><a href="{$sorturl}&amp;sortby=views&amp;order=desc">Most Viewed</a></strong>
    					</td>
    				</tr>
    				<tr>
    					<td class="trow1">
    						<strong><a href="{$sorturl}&amp;sortby=lastpost&amp;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>

  6. xtlyrics_forumdisplay_threadlist_rating

    HTML Code
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    <tr>
    	<td class="trow1">
    		<strong><a href="{$sorturl}&amp;sortby=rating&amp;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>

  7. xtlyrics_forumdisplay_threads_sep

    HTML Code
    <div class="clear"><strong>Other Songs</strong></div>

  8. xtlyrics_newthread

    HTML Code
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    <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}&amp;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>

  9. xtlyrics_postbit

    HTML Code
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    {$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>

  10. xtlyrics_postbit_first

    HTML Code
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    {$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>

  11. xtlyrics_postbit_first_posturl

    HTML Code
    <div class="float_right">{$post['inlinecheck']}</div>

  12. xtlyrics_postbit_inlinecheck

    HTML Code
    <input type="checkbox" class="checkbox" name="inlinemod_{$post['pid']}" id="inlinemod_{$post['pid']}" value="1" style="vertical-align: middle;" {$inlinecheck}  />

  13. xtlyrics_postbit_iplogged_hiden

    HTML Code
    <span class="smalltext"><strong><a href="moderation.php?action=getip&amp;pid={$post['pid']}">IP</a></strong></span>

  14. xtlyrics_postbit_posturl

    HTML Code
    <div style="margin-top: 3px;">
    	<span class="smalltext">
    		<strong><a href="{$post['postlink']}#pid{$post['pid']}">#{$postcounter}</a></strong><br />{$post['inlinecheck']}
    	</span>
    </div>

  15. xtlyrics_showthread

    HTML Code
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    <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>&laquo; <a href="{$next_oldest_link}">{$lang->next_oldest}</a> | <a href="{$next_newest_link}">{$lang->next_newest}</a> &raquo;</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}&amp;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}&amp;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}&amp;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}&amp;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>

  16. xtlyrics_showthread_noreplies

    HTML Code
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    <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>

  17. xtlyrics_showthread_ratethread

    HTML Code
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    <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']}&amp;rating=1&amp;my_post_key={$mybb->post_code}">1</a></li>
    				<li><a class="two_stars" title="{$lang->two_stars}" href="./ratethread.php?tid={$thread['tid']}&amp;rating=2&amp;my_post_key={$mybb->post_code}">2</a></li>
    				<li><a class="three_stars" title="{$lang->three_stars}" href="./ratethread.php?tid={$thread['tid']}&amp;rating=3&amp;my_post_key={$mybb->post_code}">3</a></li>
    				<li><a class="four_stars" title="{$lang->four_stars}" href="./ratethread.php?tid={$thread['tid']}&amp;rating=4&amp;my_post_key={$mybb->post_code}">4</a></li>
    				<li><a class="five_stars" title="{$lang->five_stars}" href="./ratethread.php?tid={$thread['tid']}&amp;rating=5&amp;my_post_key={$mybb->post_code}">5</a></li>
    			</ul>
    		</div>
    	</td>
    </tr>



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

(This post was last modified: 10-08-2012 02:46 AM by RateU.)
11-19-2010 08:01 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Xthreads lryics site? - Mark2x - 11-01-2010, 06:11 AM
RE: Xthreads lryics site? - ZiNgA BuRgA - 11-01-2010, 09:31 AM
RE: Xthreads lryics site? - 1master1 - 11-02-2010, 05:39 PM
RE: Xthreads lryics site? - RateU - 11-03-2010, 02:06 AM
RE: Xthreads lryics site? - 1master1 - 11-03-2010, 05:45 PM
RE: Xthreads lryics site? - leefish - 11-04-2010, 12:48 AM
RE: Xthreads lryics site? - Mark2x - 11-04-2010, 01:03 PM
RE: Xthreads lryics site? - Mark2x - 11-06-2010, 05:20 AM
RE: Xthreads lryics site? - RateU - 11-06-2010, 05:29 AM
RE: Xthreads lryics site? - 1master1 - 11-06-2010, 04:10 PM
RE: Xthreads lryics site? - Mark2x - 11-08-2010, 01:01 PM
RE: Xthreads lryics site? - ZiNgA BuRgA - 11-08-2010, 01:51 PM
RE: Xthreads lryics site? - leefish - 11-08-2010, 07:18 PM
RE: Xthreads lryics site? - Mark2x - 11-12-2010, 10:43 AM
RE: Xthreads lryics site? - ZiNgA BuRgA - 11-12-2010, 01:29 PM
RE: Xthreads lryics site? - RateU - 11-14-2010, 07:42 AM
RE: Xthreads lryics site? - 1master1 - 11-14-2010, 07:12 PM
RE: Xthreads lryics site? - ZiNgA BuRgA - 11-14-2010, 07:49 PM
RE: Xthreads lryics site? - 1master1 - 11-14-2010, 09:24 PM
RE: Xthreads lryics site? - Mark2x - 11-15-2010, 10:18 AM
RE: Xthreads lryics site? - RateU - 11-17-2010, 12:15 PM
RE: Xthreads lryics site? - 1master1 - 11-17-2010, 03:17 PM
RE: Xthreads lryics site? - RateU - 11-18-2010, 06:54 AM
RE: Xthreads lryics site? - 1master1 - 11-18-2010, 07:26 PM
RE: Xthreads lryics site? - RateU - 11-19-2010 08:01 AM
RE: Xthreads lryics site? - leefish - 11-19-2010, 08:23 AM
RE: Xthreads lryics site? - ZiNgA BuRgA - 11-19-2010, 09:36 AM
RE: Xthreads lryics site? - 1master1 - 11-19-2010, 09:56 AM
RE: Xthreads lryics site? - Glas - 11-19-2010, 01:37 PM
RE: Xthreads lryics site? - RateU - 11-20-2010, 05:20 AM
RE: Xthreads lryics site? - Glas - 11-20-2010, 06:04 AM
RE: Xthreads lryics site? - RateU - 11-20-2010, 06:31 AM
RE: Xthreads lryics site? - ZiNgA BuRgA - 11-20-2010, 08:12 AM
RE: Xthreads lryics site? - RateU - 11-20-2010, 08:42 AM
RE: Xthreads lryics site? - Bumiayu - 11-28-2010, 01:45 PM
RE: Xthreads lryics site? - ZiNgA BuRgA - 11-28-2010, 02:34 PM
RE: Xthreads lryics site? - Bumiayu - 11-28-2010, 07:01 PM
RE: Xthreads lryics site? - leefish - 11-28-2010, 07:28 PM
RE: Xthreads lryics site? - RateU - 05-30-2011, 03:22 AM
RE: Xthreads lryics site? - terzier - 03-10-2012, 06:35 PM
RE: Xthreads lryics site? - ZiNgA BuRgA - 03-10-2012, 07:13 PM
RE: Xthreads lryics site? - terzier - 03-10-2012, 07:59 PM
RE: Xthreads lryics site? - ZiNgA BuRgA - 03-11-2012, 10:20 AM
RE: Xthreads lryics site? - terzier - 03-17-2012, 08:13 PM
RE: Xthreads lryics site? - ZiNgA BuRgA - 03-17-2012, 11:04 PM
RE: Xthreads lryics site? - terzier - 03-18-2012, 02:14 PM
RE: Xthreads lryics site? - ZiNgA BuRgA - 03-18-2012, 08:46 PM
RE: Xthreads lryics site? - Sama34 - 05-07-2012, 02:04 PM
RE: Xthreads lryics site? - RateU - 05-08-2012, 06:33 AM
RE: Xthreads lryics site? - Sama34 - 05-08-2012, 01:45 PM
RE: Xthreads lryics site? - RateU - 10-08-2012, 02:44 AM

 Standard Tools
Forum Jump: