Thread Rating:
  • 2 Votes - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Profile Forum
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #11
RE: Profile Forum
If there is no limit, the level bar will not work "correctly". It will stop to level up at a certain value (when the bar full). It is a bit hard to explain it. You have two choice for the level, using pixel or percentage.

Example I: Use Display Format like this for percent:

HTML Code
1
2
3
4
5
6
7
8
9
10
11
<tr>
<td width="150">Cooking Level</td>
<td width="1">:</td>
<td>
<div class="tcat" style="width: 250px; overflow: hidden;">
<div class="thead" style="width: {VALUE}%; white-space: nowrap;">
<span style="margin-left: 9px;"><strong>Level {VALUE}</strong></span>
</div>
</div>
</td>
</tr>


The level bar will "stop" at level 100 (full bar level), so, it won't break your template. But the level text will continue to level up.

Example II: Use Display Format like this for pixel:

HTML Code
1
2
3
4
5
6
7
8
9
10
11
<tr>
<td width="150">Cooking Level</td>
<td width="1">:</td>
<td>
<div class="tcat" style="width: 250px; overflow: hidden;">
<div class="thead" style="width: {VALUE}px; white-space: nowrap;">
<span style="margin-left: 9px;"><strong>Level {VALUE}</strong></span>
</div>
</div>
</td>
</tr>


Similar as Example I, but the level bar will "stop" at level 250 (full bar level), so, it won't break your template too. But the level text will continue to level up. You can set in what level the the level bar will stop to level up. Change the width value in line #5. Maybe you need to change the layout of your profile thread, so you can set the width value to a bigger value (depends on the width of your theme).


06-24-2010 06:31 AM
Find all posts by this user Quote this message in a reply
Minnemann Offline
Junior Member
**
Posts: 25
Joined: May 2010
Post: #12
RE: Profile Forum
Thank you very much! This is will be very usefull. Thanks ^^
06-24-2010 06:39 AM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #13
RE: Profile Forum
This is very neat RateU. I wonder if it is possible to make this a filter so we can search for top rated threads via this field rather than on the stars system? Hmm.


[Image: leelink.gif]
MYBB1.6 & XThreads
07-05-2010 01:56 AM
Visit this user's website Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #14
RE: Profile Forum
Do you mean like MyBB sorter?

07-05-2010 08:35 AM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #15
RE: Profile Forum
Well, like the categories in your Article Gallery. So we could have an option "choose highest rated thread" using this field rather than the star rating system.


[Image: leelink.gif]
MYBB1.6 & XThreads
07-05-2010 08:45 AM
Visit this user's website Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #16
RE: Profile Forum
If only filtering, I think we can use filtering url in threadlist template ?

HTML Code
<a href="{$forumurl_q}filtertf_key=Option 1">Display Option 1 Only</a>


Example:

HTML Code
<a href="{$forumurl_q}filtertf_profcooking=9">Display Sim's With Cooking Level 9 Only</a>


And don't forget to set Allow Filtering setting to Yes for that field.


07-05-2010 09:15 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #17
RE: Profile Forum
I'm really sorry for bumping this thread. But I think it is better if I post this here, because it is about Profile Forum too.

I have this idea based on this thread: http://mybbhacks.zingaburga.com/showthread.php?tid=668

Basically, we can use showthread / forumdisplay as our Additional Profile page with XThreads. We know that showthread / forumdisplay is one of the main XThreads working area, so, we can modify it as our need. Because user's info loaded in showthread is more detail compared than in forumdisplay, so, I have an idea to use showthread as this Additional Profile page.

Almost all XThreads and MyBB features related to showthread can be used for this.

It means:
  • Has an ability for having "unlimited custom blocks" by using XThreads custom thread fields, like profile video, profile album, personal file download, and etc, depends on whatever custom thread field we want to add for this Additional Profile page.
    And we know that each custom thread fields has its own permission. So, permission for creating and viewing each custom block can be set per usergroup basis.

    For example:
    Lets say that we have 4 image uploader and 1 YouTube video blocks.
    Usergroup A -> Can upload max 3 image for their Additional Profile page.
    Usergroup B -> Can upload 4 image for their Additional Profile page.
    Usergroup C -> Can upload 4 image and add YouTube video for their Additional Profile page.
  • Each block can be styled and placed anywhere in showthread / forumdisplay. We can display it as text, image, video, and etc. Basically, XThreads custom thread fields is the main contents of this Additional Profile page. It means that we need to know how to use it Biggrin
  • MyBB reply system can be used as comments system. Thread rating can be used as user rating. Thread views can be used as user views counter.
  • Permission for having Additional Profile page uses MyBB post thread permission, per usergroup basis. Permission for commenting uses MyBB post reply permission. Permission for viewing Additional Profile page uses MyBB view forum / thread permission, per usergroup basis.
  • Inline Post Moderation and Moderation Options can be used for managing each Additional Profile page, like deleting, unapproved / approved, report, warn and etc.

That's what I've been thinking about this Additional Profile page.

Here is a simple example for a "general" Profile Forum:

XThreads Options settings in edit forum page (this is a basic option only):
AdminCP -> Forum & Posts -> 'edit / create our Profile Forum'
  1. Template Prefix: xtprof_
  2. Thread Grouping: 2
  3. Show first post on every showthread page: Yes
  4. Enable XThreads' Inline Forum Search: Yes
  5. Force Postbit Layout: Force horizontal postbit layout
  6. Hide Forum: Yes
    We need to put this forum URL manually in our templates (e.g: header template).
  7. Custom WOL Text:
    • Forum Display: Viewing List Of Additional Page
    • New Thread: Creating A New Additional Page
    • New Reply: Commenting <a href="{1}">{2}</a> Additional Page
    • Show Thread: Viewing <a href="{1}">{2}</a> Additional Page


And this is a simple example for custom thread fields used for this "general" Additional Profile page:

Custom Thread Fields Setting:
AdminCP -> Configuration -> Custom Thread Fields:
  1. File Input for Main Profile Image:
    We will display this image in threadlist. So, it is a required field.
    • Title: Main Profile Image
    • Key: xtprofmpic
    • Applicable Forums: 'select our Profile Forum'
    • 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 (required)
    • Only accept uploaded images: Yes
    • Image Thumbnail Generation: 75x75|200x200
    • Display Format:

      HTML Code
      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      <if THIS_SCRIPT == 'showthread.php' then>
      <br class="clear" />
      <table border="0" cellspacing="{$GLOBALS['theme']['borderwidth']}" cellpadding="{$GLOBALS['theme']['tablespace']}" class="tborder">
      <tr><td class="thead largetext" style="text-align: center;">Profile Picture</td></tr>
      <tr><td class="trow1" style="text-align: center;">
      <a href="{URL}" target="_blank"><img src="{URL}/thumb200x200" alt="Profile Picture" title="Profile Picture" /></a>
      </td></tr>
      </table>
      </if>
      <if THIS_SCRIPT == 'forumdisplay.php' then>
      <a href="{$threadurl}"><img src="{URL}/thumb75x75" alt="Main Picture" title="Main Picture" /></a>
      </if>

      Variable in template for displaying this field is: {$GLOBALS['threadfields']['xtprofmpic']['value']}.

  2. Multiline Textbox for Wall Note:
    • Title: Wall Note
    • Key: xtprofwn
    • Applicable Forums: 'select the forum above'
    • Input Field Type: Multiline Textbox
    • Field Input Height: 3
    • Editable by / Required Field?: Everyone
    • Display Parsing: Plain text with new lines
    • Display Format:

      HTML Code
      1
      2
      3
      4
      5
      6
      7
      <table border="0" cellspacing="{$GLOBALS['theme']['borderwidth']}" cellpadding="{$GLOBALS['theme']['tablespace']}" class="tborder">
      <tr><td class="thead" style="text-align: center;"><strong>Wall Note</strong></td></tr>
      <tr><td class="trow1">
      {VALUE}
      </td></tr>
      </table>
      <br class="clear" />

      Variable in template for displaying this field is: {$GLOBALS['threadfields']['xtprofwn']}.

  3. File Input for Additional Profile Image:
    Repeat this step as our need. Use a different key. eg: xtprofpic2, xtprofpic3 and etc.
    As said above, we can set the permission for each fields (which usergroup can upload image in which image uploader).
    So, it is not a required fields.
    • Title: Profile Picture 1
    • Key: xtprofpic1
    • Applicable Forums: 'select the 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
      This is where we can set the permission for which usergroup this field can be used.
    • Only accept uploaded images: Yes
    • Image Thumbnail Generation: 120x90
    • Display Format:

      HTML Code
      <a href="{URL}" target="_blank"><img src="{URL}/thumb120x90" alt="" title="" style="margin: 3px;" /></a>

      Variable in template for displaying this field is: {$GLOBALS['threadfields']['xtprofpic1']['value']}. If we repeat this step, we have a similar variable, but with a different key. In this example, we use 4 additional Profile Image with different permission. The key for those fields are: xtprofpic1, xtprofpic2, xtprofpic3, xtprofpic4. So, the variables are {$GLOBALS['threadfields']['xtprofpic1']['value']}, {$GLOBALS['threadfields']['xtprofpic2']['value']}, {$GLOBALS['threadfields']['xtprofpic3']['value']}, {$GLOBALS['threadfields']['xtprofpic4']['value']}

  4. Textbox for Profile Video:
    Again, we can set the permission for this field. Which usergroup can use this field.
    • Title: Profile Video
    • Key: xtprofvid
    • Applicable Forums: 'select the forum above'
    • Editable by / Required Field?: Everyone
      The permission to use this field can be set here.
    • Display Format:

      HTML Code
      1
      2
      3
      4
      5
      6
      7
      8
      <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
      <tr><td class="thead largetext" style="text-align: center;">Profile Video</td></tr>
      <tr><td class="trow1">
      <div align="center">
      	<object type="application/x-shockwave-flash" data="http://www.youtube.com/v/{VALUE$1}{VALUE$2}" width="320" height="280"><param name="movie" value="http://www.youtube.com/v/{VALUE$1}{VALUE$2}" /><param name="FlashVars" value="playerMode=embedded" /><p>Favorite Video</p></object>
      </div>
      </td></tr>
      </table>

    • 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']['xtprofvid']}.



And a simple example template edit for this:

Create new templates in Global Template.
The templates below is for example only. Maybe we need to modify it as our need, depends on what design we want for it.
Admin CP -> Templates & Style -> Templates -> Global Templates:
  1. xtprof_forumdisplay_group_sep

    HTML Code
    </tr>
    <tr>

  2. xtprof_forumdisplay_nothreads

    HTML Code
    1
    2
    3
    4
    5
    6
    7
    8
    9
    <td>
    	<table border="0" cellspacing="{$GLOBALS['theme']['borderwidth']}" cellpadding="{$GLOBALS['theme']['tablespace']}" class="fw" style="clear: both;">
    		<tr>
    			<td class="trow1" align="center">
    				There is no Additional Profile Pages
    			</td>
    		</tr>
    	</table>
    </td>

  3. xtprof_forumdisplay_sticky_sep

    HTML Code
    <td class="thead" align="center" colspan="{$colspan}">
    <div><strong>Important Users</strong></div>
    </td>
    </tr>
    <tr>

  4. xtprof_forumdisplay_thread

    HTML Code
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    <td width="50%" valign="top">
    	<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
    		<tr>
    			<td class="{$bgcolor}" width="1">
    				<div align="center">
    					{$GLOBALS['threadfields']['xtprofmpic']['value']}
    				</div>
    			</td>
    			<td class="{$bgcolor}" width="100%">
    				<div><strong><a href="{$thread['threadlink']}" class="{$inline_edit_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a></strong></div>
    				<div>Owner: {$thread['profilelink']}</div>
    				<div>{$thread['views']} Views, {$thread['replies']}{$unapproved_posts} Comments</div>
    			</td>
    			{$modbit}
    		</tr>
    	</table>
    </td>

  5. xtprof_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
    <div class="float_left">
    	{$multipage}
    </div>
    <div class="float_right">
    	{$newthread}
    </div>
    <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both;">
    	<tr>
    		<td class="thead" colspan="{$colspan}">
    			<div align="center">
    				<strong>{$foruminfo['name']}</strong>
    			</div>
    		</td>
    	</tr>
    	<tr>
    		<td class="tcat smalltext" width="100%" colspan="2">
    			<span class="float_right">
    				<strong>Sort By: <a href="{$sorturl}&amp;sortby=subject&amp;order=asc">{$lang->thread}</a> {$orderarrow['subject']} | <a href="{$sorturl}&amp;sortby=starter&amp;order=asc">{$lang->author}</a> {$orderarrow['starter']} | <a href="{$sorturl}&amp;sortby=replies&amp;order=desc">{$lang->replies}</a> {$orderarrow['replies']} | <a href="{$sorturl}&amp;sortby=views&amp;order=desc">{$lang->views}</a> {$orderarrow['views']} | <a href="{$sorturl}&amp;sortby=lastpost&amp;order=desc">{$lang->lastpost}</a> {$orderarrow['lastpost']}</strong>
    			</span>
    		</td>
    		{$inlinemodcol}
    	</tr>
    	<tr>
    		{$threads}{$nullthreads}
    	</tr>
    </table>
    <br class="clear" />
    <div class="float_left">
    	{$multipage}
    </div>
    <div class="float_right" style="margin-top: 4px;">
    	{$newthread}
    </div>
    <br style="clear: both;" />
    <br />
    <div class="float_right" style="text-align: right;">
    	{$searchforum}
    	{$inlinemod}
    </div>
    <br style="clear: both" />
    {$inline_edit_js}
    <div class="smalltext" align="center">
    	{$foruminfo['name']}<br />Powered By <a href="http://mybbhacks.zingaburga.com">XThreads</a> - <a href="http://mybbhacks.zingaburga.com">MyBB Hacks</a>
    </div>

  6. xtprof_forumdisplay_threads_sep

    HTML Code
    1
    2
    3
    4
    5
    6
    7
    </tr>
    <tr>
    	<td class="thead" align="center" colspan="{$colspan}">
    		<div><strong>Normal Profile</strong></div>
    	</td>
    </tr>
    <tr>

  7. xtprof_forumdisplay_thread_null

    HTML Code
    <td width="50%" valign="top">&nbsp;</td>

  8. xtprof_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
    {$ignore_bit}
    <a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
    <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder_article rcorner tborder_article{$post['usergroup']}" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
    	<tbody>
    		<tr>
    			<td class="trow2 post_content {$unapproved_shade}">
    				{$post['posturl']}
    				<div class="float_left smalltext">
    					by: <strong><a href="{$post['profilelink_plain']}" id="profile_{$post['pid']}">{$post['username_formatted']}</a></strong>
    				</div>
    				<div class="float_left smalltext clear">
    					{$post['postdate']}, {$post['posttime']} <span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span>
    				</div>
    				<div class="post_body clear" id="pid_{$post['pid']}">
    					{$post['message']}
    				</div>
    				<div id="profile_{$post['pid']}_popup" class="popup_menu" style="display: none;">
    					<div class="popup_item_container">
    						<table cellspacing="0" cellpadding="0" border="0">
    							<tr>
    								<td class="post_avatar" width="1" style="{$post['avatar_padding']}">
    									{$post['useravatar']}
    								</td>
    								<td class="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>
    				<div class="post_meta" id="post_meta_{$post['pid']}">
    					{$post['iplogged']}
    				</div>
    				<div class="clear">
    					<div class="author_buttons float_left">
    						{$post['button_email']}{$post['button_pm']}
    					</div>
    					<div class="post_management_buttons float_right">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}</div>
    				</div>
    			</td>
    		</tr>
    	</tbody>
    </table>
    <script type="text/javascript">
    // <!--
    	if(use_xmlhttprequest == "1")
    	{
    		new PopupMenu("profile_{$post['pid']}");
    	}
    // -->
    </script>

  9. xtprof_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
    {$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']}">
    	<tr>
    		<td class="thead" style="text-align: center;">
    			<strong>Profile Summary</strong>
    		</td>
    	</tr>
    	<tr>
    		<td class="trow1" style="text-align: center;">
    			<div class="largetext"><strong>{$post['profilelink']}</strong></div>
    			<div>{$post['useravatar']}</div>
    			<div>{$post['usertitle']}</div>
    			<div>{$post['userstars']}</div>
    			<div>{$post['groupimage']}</div>
    		</td>
    	</tr>
    </table>
    <br />
    <div class="post_management_buttons">
    	{$post['button_edit']}
    	{$post['button_quickdelete']}
    	{$post['button_report']}
    	{$post['button_warn']}
    </div>

    Basically, because postbit load some user info, so we can try to design it to make it a bit similar to the default profile page (if we want to make this additional profile page layout similar to our default profile page).

  10. xtprof_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
    <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=1600"></script>
    </head>
    <body>
    {$header}
    <table width="100%" cellspacing="0" cellpadding="0" border="0" align="center">
    	<tr>
    		<td width="250" valign="top">
    			<div>
    				{$first_post}
    			</div>
    			<table border="0" cellspacing="0" cellpadding="{$theme['tablespace']}" class="tborder">
    				<tr><td class="thead largetext" colspan="3" style="text-align: center;">Profile Statistics</td></tr>
    				<tr>
    					<td class="trow1" width="75">Views</td>
    					<td class="trow1" width="1">:</td>
    					<td class="trow1">{$thread['views']}</td>
    				</tr>
    				<tr>
    					<td class="trow1">Comments</td>
    					<td class="trow1">:</td>
    					<td class="trow1">{$thread['replies']}</td>
    				</tr>
    				{$ratethread}
    			</table>
    			{$GLOBALS['threadfields']['xtprofmpic']['value']}
    		</td>
    		<td width="10">
    			<img src="{$theme['imgdir']}/pixel.gif" height="1" width="10" alt=""/>
    		</td>
    		<td valign="top">
    			{$GLOBALS['threadfields']['xtprofwn']}
    			<div class="float_right" style="width: 48%;">
    				<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
    					<tr>
    						<td class="thead largetext" style="text-align: center;">
    							Profile Album
    						</td>
    					</tr>
    					<tr>
    						<td class="trow1" style="text-align: center;">
    							{$GLOBALS['threadfields']['xtprofpic1']['value']}
    							{$GLOBALS['threadfields']['xtprofpic2']['value']}
    							{$GLOBALS['threadfields']['xtprofpic3']['value']}
    							{$GLOBALS['threadfields']['xtprofpic4']['value']}
    						</td>
    					</tr>
    				</table>
    			</div>
    			<div class="float_left">
    				{$GLOBALS['threadfields']['xtprofvid']}
    			</div>
    			<br class="clear" />
    			<div class="largetext float_right">Comments</div>
    			<br class="clear" />
    			<div id="posts">
    				{$posts}
    			</div>
    			<div style="text-align: center;">
    				{$multipage}
    			</div>
    		</td>
    	</tr>
    </table>
    {$quickreply}
    <br />
    <div class="float_right" style="text-align: right;">
    	{$moderationoptions}
    </div>
    <br style="clear: both;" />
    {$footer}
    </body>
    </html>

    Modify it as our needs. Very related to the xtprof_postbit_first template.

  11. xtprof_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">
    					There is no comments
    				</div>
    			</td>
    		</tr>
    	</tbody>
    </table>

  12. xtprof_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">Rating</td>
    	<td class="trow1">:</td>
    	<td class="trow1">
    		<script type="text/javascript" src="jscripts/rating.js?ver=1400"></script>
    		<div id="success_rating_{$thread['tid']}" style="float: left;"></div>
    		<div class="inline_rating float_left">
    			<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>



There is a simple example additional plugin attached.
We need to put this link in our member_profile and / or template_prefix_showthread template:

Link to the default profile page:

HTML Code
<a href="{$xtprofile_link}">{$lang->xtprofile_main_title}</a>

Link to the Additional Profile page:

HTML Code
<a href="{$xtprofile_link}&amp;views=xtprofile">{$lang->xtprofile_title}</a>


Each user is allowed for having one thread / Additional Profile page only in our Profile Forum.

Unapproving a thread in our Profile Forum will "suspend" the Additional Profile page, and will "suspend" the author for creating a new Additional Profile page.
This is an example for a suspended user:
http://www.14.mynie.co.cc/member.php?act...http://www.14.mynie.co.cc/member.php?action=profile&uid=6&views

For user who doesn't have Additional Profile page:
http://www.14.mynie.co.cc/member.php?act...http://www.14.mynie.co.cc/member.php?action=profile&uid=2&views

And this is a simple example of our "general" Additional Profile page:
http://www.14.mynie.co.cc/member.php?act...http://www.14.mynie.co.cc/member.php?action=profile&uid=1&views
   

Forum Display:
   

Of course this is for example only. We need to create our own Additional Profile page, depends on what we want.

Well, that is my idea Biggrin
I'm really sorry if this is useless Biggrin



Attached File(s)
.7z  Additional Profile Page.7z (Size: 1.23 KB / Downloads: 434)

(This post was last modified: 02-04-2011 11:28 AM by RateU.)
01-11-2011 09:50 AM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #18
RE: Profile Forum
I actually like this one, I was writing my own until I saw this, maybe it will help me to extend mine, and the plugin file, just better as I also want to limit one thread by user Biggrin

Thanks RateU!!

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
(This post was last modified: 04-22-2012 09:05 AM by Sama34.)
04-22-2012 09:05 AM
Visit this user's website Find all posts by this user Quote this message in a reply
xensor Offline
Junior Member
**
Posts: 22
Joined: Jan 2014
Post: #19
RE: Profile Forum
for anyone using the newest mybb with this part of the xthreads some things need adjusted.


find:

Code:
<div class="author_buttons float_left">
					{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}
				</div>
				<div class="post_management_buttons float_right">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
				</div>


replace with:

Code:
1
2
3
4
5
6
<div class="postbit_buttons author_buttons float_left">
		{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}
	</div>
	<div class="postbit_buttons post_management_buttons float_right">
		{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quickrestore']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_purgespammer']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
	</div>


if i find anything else i will update with more results. it seems everything else works fine.

also i found that unless the theme you are using uses table layout mostly it will not work correctly. You will either have to modify it for the current theme and add it to the theme template or make sure the theme uses tables to have it set as global template.

(This post was last modified: 04-16-2015 06:31 PM by xensor.)
04-16-2015 06:17 PM
Find all posts by this user Quote this message in a reply
xensor Offline
Junior Member
**
Posts: 22
Joined: Jan 2014
Post: #20
RE: Profile Forum
profile ver 2

i have a idea for this, but i can't figure out how to do it.

i want the profile summary on the left and the post message on the right side with the rest. i am making a anime character profile. this would be perfect for it.

i want to have description on the right as well as the other things
(This post was last modified: 10-07-2016 06:49 AM by xensor.)
10-07-2016 06:47 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: