06-17-2012, 06:36 AM
06-17-2012, 06:38 AM
In which line you use the is_array? Line #729?
06-17-2012, 07:08 AM
Yes, just before the foreach().
06-17-2012, 07:11 AM
May I know how you put it there? This is the line #729 from the plugin:
PHP Code:
|
06-17-2012, 07:54 AM
You got me there RateU, will check the latest version.
06-19-2012, 04:09 AM
Hi RateU,
Thanks very much for your support. I was able to add a few things. However, for example, I don't understand how to add variable to a plugin file like you did for "threads per page." I don't know any PHP at all ...
Can you please post how you did it just for those two? Hopefully, I can learn how to do it for the rest from your example.
Thanks very much for your support. I was able to add a few things. However, for example, I don't understand how to add variable to a plugin file like you did for "threads per page." I don't know any PHP at all ...
Can you please post how you did it just for those two? Hopefully, I can learn how to do it for the rest from your example.
06-19-2012, 08:20 AM
You can find most of them in usercp.php file.
This is for example only:
usercp template:
This is for example only:
- Bio custom profile field (fid2) - {$xtpf_minp['fid2']}:
- Custom Input:
HTML Code<br /> <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder"> <tr><td class="thead"><strong>{$xtpf_data['name']}</strong></td></tr> <tr><td class="trow2">{INPUT}</td></tr> </table>
- Display Format:
Code:
{VALUE}
- Custom Input:
- Sex custom profile field (fid3) - {$xtpf_minp['fid3']}:
- Custom Input:
HTML Code<tr> <td class="trow2">{$xtpf_data['name']}:</td> <td class="trow2">{INPUT}</td> </tr>
- Display Format:
Code:
{VALUE}
- Custom Input:
- Facebook custom profile field (fid4) - {$xtpf_minp['fid4']}:
- Regular Expression:
Code:
^[A-Za-z0-9]{5,}$
- Custom Input:
HTML Code<tr> <td style="width:1px"> <img src="images/facebook.png" alt="" title="<func htmlspecialchars_uni>{$xtpf_data['description']}</func>" /> </td> <td>{INPUT}</td> </tr>
- Display Format:
HTML Code<a href="http://facebook.com/{VALUE}" target="_blank"><img src="images/facebook_button.png" alt="" /></a>
- Regular Expression:
- Twitter custom profile field (fid5) - {$xtpf_minp['fid5']}:
- Regular Expression:
Code:
^[A-Za-z0-9_]+$
- Custom Input:
HTML Code<tr> <td style="width:1px"> <img src="images/twitter.png" alt="" title="<func htmlspecialchars_uni>{$xtpf_data['description']}</func>" /> </td> <td>{INPUT}</td> </tr>
- Display Format:
HTML Code<a href="http://twitter.com/{VALUE}" target="_blank"><img src="images/twitter_button.png" alt="" /></a>
- Regular Expression:
usercp template:
HTML Code
|
06-19-2012, 10:42 PM
Great, thank you so much! I'll spend some time with this.
For what it's worth, here's where I'm at right now:
![[Image: ob56W.png]](http://i.imgur.com/ob56W.png)
For what it's worth, here's where I'm at right now:
![[Image: ob56W.png]](http://i.imgur.com/ob56W.png)
06-20-2012, 08:05 AM
Using RateU's file, here's what I've created so far:
![[Image: RjGUAl.png]](http://i.imgur.com/RjGUAl.png)
![[Image: Y2t8El.png]](http://i.imgur.com/Y2t8El.png)
Would be happy to share the template and css with anyone who is interested -- just send me a message.
Now, I am wondering if it's possible to do Avatar upload and Signature edit in this page as well ... since these are other form calls I have no clue how to do it. I feel bad to ask for any more help here as well, so maybe I'll just leave it as is for now ... haha.
RateU, you should consider contracting yourself as an xThreads developer, I'm sure many MyBB admins are interested!
![[Image: RjGUAl.png]](http://i.imgur.com/RjGUAl.png)
![[Image: Y2t8El.png]](http://i.imgur.com/Y2t8El.png)
Would be happy to share the template and css with anyone who is interested -- just send me a message.
Now, I am wondering if it's possible to do Avatar upload and Signature edit in this page as well ... since these are other form calls I have no clue how to do it. I feel bad to ask for any more help here as well, so maybe I'll just leave it as is for now ... haha.
RateU, you should consider contracting yourself as an xThreads developer, I'm sure many MyBB admins are interested!

06-20-2012, 03:02 PM
Alright, the problem seems to be gone But a new one arises.
This:
This:
PHP Code:
|
Since "$pa['xt_proffields_fml']" is not aa array, I had to change it to this:
PHP Code:
|
Since , but I don't know if that is really a fix or it just hides the error.
The same happens at line #580 and I suppose the same will happen in lines #598, #627, and #711.
Also, just noticed that "Editable By Usergroup" only hides the input code in the UCP, but users are still able to save it (ie: user was editing his/her options while you changed the setting).