MyBB Hacks

Full Version: Gamer profile ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is this possible with xthreads?

1. Creating another tab in a users profile to a new page.

2. Creating a custom profile page that a user can edit / add own images and info?


[attachment=345]
There is the custom profile thread.... I guess you could try and make a plugin that calls certain data from a thread with XThreads custom fields and display on profile. Thing is, XThreads is for threads - not Profile fields - two very different areas.

Try looking at RateUs custom medals for an idea.
(01-05-2011 05:50 AM)Vapor Wrote: [ -> ]Is this possible with xthreads?

1. Creating another tab in a users profile to a new page.

2. Creating a custom profile page that a user can edit / add own images and info?

Actually, I've tried creating this kind of application in my test forum.
But it doesn't use a javascript tabs.
With a simple "trick", we can use showthread / forumdisplay as the additional profile page (I think).
Unfortunately, we need an additional plugin for this (I think again).
I've tried to "port" the basic of the application to the demo site:
http://www.14.mynie.co.cc/member.php?act...http://www.14.mynie.co.cc/member.php?action=pro
Click the XThreads Profile tabs.
Yes...that is pretty damn close !
That's quite an interesting idea RateU. Smile
Thanks, Yumi Biggrin

Because showthread is one of the main XThreads working area, so, I think we can use almost all of XThreads features in this area for the additional profile page. Each admin can uses various custom thread fields to build and design their additional profile page. And user info in showthread is more detail than user info in threadlist, like formatted username, avatar, user stars, user title and etc (the reason why I didn't use forumdisplay for this).

That is my main idea, Yumi Biggrin

@ Vapor: I hope you are OK to wait, Vapor Biggrin
(01-08-2011 05:28 AM)RateU Wrote: [ -> ]Thanks, Yumi Biggrin
@ Vapor: I hope you are OK to wait, Vapor Biggrin

Sure bud, thanks
I think this template structure is the basic layout:

template_prefix_showthread

HTML Code
<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}
<div>
	{$first_post}
</div>
<br class="clear" />
<div id="posts">
	{$posts}
</div>
<div style="text-align: center;">
	{$multipage}
</div>
{$quickreply}
<br />
<div class="float_right" style="text-align: right;">
	{$moderationoptions}
</div>
<br style="clear: both;" />
{$footer}
</body>
</html>


template_prefix_postbit_first

HTML Code
{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
	<tr>
		<td class="thead largetext" style="text-align: center;" colspan="4">
			Gammer File
		</td>
	</tr>
	<tr>
		<td class="trow1" style="text-align: center;">
			{$GLOBALS['threadfields']['xtprofpic1']['value']}
		</td>
		<td class="trow1" style="text-align: center;">
			{$GLOBALS['threadfields']['xtprofpic2']['value']}
		</td>
		<td class="trow1" style="text-align: center;">
			{$GLOBALS['threadfields']['xtprofpic3']['value']}
		</td>
		<td class="trow1" style="text-align: center;">
			{$GLOBALS['threadfields']['xtprofpic4']['value']}
		</td>
	</tr>
	<tr>
		<td class="tfoot" style="text-align: center;">
			<strong>Favorite Game</strong>
		</td>
		<td class="tfoot" style="text-align: center;">
			<strong>Favorite Map</strong>
		</td>
		<td class="tfoot" style="text-align: center;">
			<strong>Favorite Weapon</strong>
		</td>
		<td class="tfoot" style="text-align: center;">
			<strong>Favorite Comms</strong>
		</td>
	</tr>
</table>
<br />
<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 largetext" colspan="2" style="text-align: center;">
			Gammer Profile
		</td>
	</tr>
	<tr>
		<td class="trow1" style="text-align: center;">
			<strong>Profile Summary</strong>
		</td>
		<td class="tcat" style="text-align: center; width: 25%;">
			<div>{$post['useravatar']}</div>
			<div class="largetext"><strong>{$post['profilelink']}</strong></div>
			<div>{$post['usertitle']}</div>
			<div>{$post['userstars']}</div>
			<div>{$post['groupimage']}</div>
			<div class="trow1" style="text-align: left; padding: 7px; margin: 3px;">
				<div class="float_right">{$post['onlinestatus']}</div>
				{$post['user_details']}
			</div>
		</td>
	</tr>
	<tr>
		<td class="tfoot" colspan="2">
			<div class="author_buttons float_right">{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}</div>
			<div class="post_management_buttons float_left">{$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>		
		</td>
	</tr>
</table>

You can modify it as your need.

You never cease to amaze me Rateu...thank you very much. Going to give this a go later today Smile
Reference URL's