MyBB Hacks

Full Version: PHP in Templates / Complex Templates
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
hi. I want to portal page is last treaht big order is small
I'm trying tish but don't work
<if $postcounter == 1 then>
<else>
</if>

I want this type
http://www.mangavadisi.org/demo/index.html
Sorry, I can't understand what you're saying there.
Sorry. my english is very bad Biggrin

http://www.mangavadisi.org/demo/index.html
I want to my portal page like this but how make like this. last post big and older post little.
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... Erf

(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... Erf


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.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
Reference URL's