MyBB Community Forums

Full Version: if the custom field is compiled displays a message
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi all, I wanted to know if it was possible to do this:
I created a user field, and when compiled will be displayed in the discussion which also contains a link has been inserted in the user field. Example: "www.esempio.com / data entered dall'usercp"
Only if the user enters the user field displays the same link. you can make is that the link is only displayed if the user field is compiled?
(2012-01-12, 06:19 PM)floid Wrote: [ -> ]Hi all, I wanted to know if it was possible to do this:
I created a user field, and when compiled will be displayed in the discussion which also contains a link has been inserted in the user field. Example: "www.esempio.com / data entered dall'usercp"
Only if the user enters the user field displays the same link. you can make is that the link is only displayed if the user field is compiled?

I don't quite understand what your asking here ... does the custom user field contain a link and you wish to add a link somewhere that refers to the value of the user field ? Can you give more information
Yes, the link is something like this: http://example.com/{$post['fid4']}

However, if the user field is empty the link is not out of the last piece, and I wish it were only visible when compiled.
(2012-01-12, 08:33 PM)floid Wrote: [ -> ]Yes, the link is something like this: http://example.com/{$post['fid4']}

However, if the user field is empty the link is not out of the last piece, and I wish it were only visible when compiled.

this may help http://wiki.mybb.com/index.php/Help:Customizing_Postbit
I read the wiki, but found no solution, no one can help me?

Practically I would like that if has been entered custom field is displayed, if it is not inserted does not appear
thanks, i'm solved Wink
Sorry, I was wrong when I edit the template to do as I say comes out this error:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /membri/temibordergame/inc/functions_post.php(399) : eval()'d code on line 75

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /membri/temibordergame/inc/functions_post.php(399) : eval()'d code on line 75

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /membri/temibordergame/inc/functions_post.php(399) : eval()'d code on line 75

and you do not see anything in the postbit. The code I put in the postbit_author_user
(2012-01-13, 10:30 PM)floid Wrote: [ -> ]thanks, i'm solved Wink
Sorry, I was wrong when I edit the template to do as I say comes out this error:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /membri/temibordergame/inc/functions_post.php(399) : eval()'d code on line 75

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /membri/temibordergame/inc/functions_post.php(399) : eval()'d code on line 75

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /membri/temibordergame/inc/functions_post.php(399) : eval()'d code on line 75

and you do not see anything in the postbit. The code I put in the postbit_author_user

Post the code you're adding to the postbit_author_user template.
<hr>


<fieldset style="background: #ffffff ;
 border:1px solid #C7C7C7;
 -moz-border-radius:8px;
 -webkit-border-radius:8px;
width : 74%;
height:24px;
 position: relative;">
<b>Giochi utilizzati :</b> <br /><marquee scrollamount="3" onmouseover="this.stop ()" onmouseout="this.start ()">{$post['fid5']}</marquee></fieldset>


<hr>


<fieldset style="background: #ffffff ;
 border:1px solid #C7C7C7;
 -moz-border-radius:8px;
 -webkit-border-radius:8px;
width : 74%;
height:11px;
 position: relative;"><center><b>{$lang->postbit_posts}</b> {$post['postnum']}</center></fieldset>


<hr>


<fieldset style="background: #ffffff ;
 border:1px solid #C7C7C7;
 -moz-border-radius:8px;
 -webkit-border-radius:8px;
width : 74%;
height:11px;
 position: relative;"><b><center>{$post['replink']}</b></center></fieldset>


<hr>


<fieldset style="background: #ffffff ;
 border:1px solid #C7C7C7;
 -moz-border-radius:8px;
 -webkit-border-radius:8px;
width : 74%;
height:11px;
 position: relative;"><center><b>{$post['onlinestatus']}</b></center></fieldset>


<hr>


<!--
Skype 'Imposta il tuo id skype' button
http://www.skype.com/go/skypebuttons
-->
<script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>
<a href="skype:{$post['fid4']}?chat"><img src="http://mystatus.skype.com/smallclassic/{$post['fid4']}" style="border: none;" width="120" height="20" alt="Imposta il tuo id skype dall'user cp" /></a>




<fieldset style="background: #F3F3F3 ;
 border:1px solid #F3F3F3;
 -moz-border-radius:8px;
 -webkit-border-radius:8px;
width : 74%;
height:15px;
 position: relative;">
 <center><b>{$post['warninglevel']}</b></center></fieldset>

</br>
Pages: 1 2