Sorry, I can't understand what you're saying there.
I don't believe that $postcounter is available in the portal page.
You could do something like this:
Code:
<if $tplvars['not_first_ann'] then>
...
<else>
...
</if>
<setvar not_first_ann>1</setvar>
|
It's work thank you so much
Hello, thanks for your excellent plugin. It has been an amazing addition to our forum.
1. I'm using xthreads and only want to show the extra xthread variables on pid bigger than a certain number (because the values will all be blank on older threads...
And...
Even though have selected only one specific forum for xthreads, xthread fields are showing in all forums.
We are showing xthread fields in the postbit template and within an <if> statement (see problem #1 above)
So we are now using this:
Code:
<if ($postcounter == 1) && in_array($fid, array(68)) && ($post['pid'] > 53109) then>
<hr class="style-four">
<strong>Budget: </strong>{$GLOBALS['threadfields']['budget']}<br />
<strong>Countries: </strong>{$GLOBALS['threadfields']['country']}<br />
<hr class="style-four">
</if>
|
And it works... Is this okay?? Or will cause some problem?
I am not sure if this is a good thread to write this.
How to add a myCode MyBB WYSIWYG editor to custom profile field edition page in ucp (custom profile field type text field). In MyBB 1.8.x?
Having an issue with the following code, IP simply doesn't display and code itself appears greyed out in the editor.
PHP Code:
<span>Connected via:</span> <?php echo $_SERVER['HTTP_X_FORWARDED_FOR']; ?>
|
Nginx and PHP7.0 aren't throwing any errors whatsoever in the logs either...
(05-12-2016 12:04 PM)Marisa Wrote: [ -> ]Having an issue with the following code, IP simply doesn't display and code itself appears greyed out in the editor.
PHP Code:
<span>Connected via:</span> <?php echo $_SERVER['HTTP_X_FORWARDED_FOR']; ?>
|
Nginx and PHP7.0 aren't throwing any errors whatsoever in the logs either...
PHP being grayed out in the MyBB Editor is normal behavior.
Hello !
I'm trying to hide a custom profile field of the user profile, so i just look for help.
fid7 = is a select box required on registration but i don't want to be changed on user profile
Can anyone help me please ?
Sorry for my english, i'm french.