1

Topic: Submit button not aligned correctly

Guys, I don't know if you ever noticed this.
The "Submit", "Submit topic" and "Submit reply" text on the buttons are not aligned on the middle!

http://s9.postimg.org/icbfcbf9n/Immagine.png

Is it normal for you?

2

Re: Submit button not aligned correctly

not interesting?

Re: Submit button not aligned correctly

There is one unnecessairly space character (probably) in the post.php file. But it is weird - in my copy of punbb everything is alright.

If you want to contact me quickly - send e-mail, not PM.
<?php $t='<?php $t=%c%s%c; printf($t,39,$t,39,10);%c'; printf($t,39,$t,39,10);

4

Re: Submit button not aligned correctly

could i see your site?
i have not found the unnecessary space..

Re: Submit button not aligned correctly

There are 2 places, where it can be:

/post.php

/* line 537 */       <div class="frm-buttons">
                <span class="submit primary"><input type="submit" name="submit_button" value="<?php echo ($tid) ? $lang_post['Submit reply'] : $lang_post['Submit topic'] ?>!!HERE!!" /></span>
                <span class="submit"><input type="submit" name="preview" value="<?php echo ($tid) ? $lang_post['Preview reply'] : $lang_post['Preview topic'] ?>" /></span>
            </div>

/lang/English/post.php

/* line 42 */ 'Submit topic'            =>    'Submit topic!!HERE!!', // For submit button

But on my copy of punbb forum (version 1.4.2) everything is OK.

There is very nice debuging tool for websites called  firebug - it is a plugin for firefox browser and looks like this. It allows you to analize html structure, manipulate css styles on the fly, and even debug java script. This is how I found what causes the problem.

If you want to contact me quickly - send e-mail, not PM.
<?php $t='<?php $t=%c%s%c; printf($t,39,$t,39,10);%c'; printf($t,39,$t,39,10);

6 (edited by Lok 2013-04-18 10:09)

Re: Submit button not aligned correctly

?>
            <div class="frm-buttons">
                <span class="submit primary"><input type="submit" name="submit_button" value="<?php echo ($tid) ? $lang_post['Submit reply'] : $lang_post['Submit topic'] ?>" /></span>
                <span class="submit"><input type="submit" name="preview" value="<?php echo ($tid) ? $lang_post['Preview reply'] : $lang_post['Preview topic'] ?>" /></span>
            </div>
        </form>
    </div>
<?php
'Submit reply'            =>    'Invia risposta', // For submit button
'Submit topic'            =>    'Invia discussione', // For submit button

This is my code and i see no space.
The excessive space is also on this official forum.

7 (edited by keeshii 2013-04-18 18:14)

Re: Submit button not aligned correctly

Unfortunately I cannot help you, unless I will be able to reproduce this problem on my own computer. I have downloaded the newest punbb source code from github repository, created new database (fresh install) and there is no space character. I have repeated everyting with 1.4.2 tar.bz2 archive and still nothing.

Maybe an extension, causes the problem? Try to disable all of them...

You have to tell me exacly what version of punbb are you running and what version of php are you using. I noticed that the same problem is in this official forum, then maybe someone from staff may help you.

If you want to contact me quickly - send e-mail, not PM.
<?php $t='<?php $t=%c%s%c; printf($t,39,$t,39,10);%c'; printf($t,39,$t,39,10);

8

Re: Submit button not aligned correctly

Yep, I noticed that this bug doesn't occur on PHP 5.4.
If your host allows that, try to add in .htaccess:

AddHandler application/x-httpd-php54  .php

9 (edited by keeshii 2013-04-18 21:47)

Re: Submit button not aligned correctly

I have been testing on 5.4.8 and 5.2.14 - still no error. Maybe it depends on php configuration? Maybe an extension overwrites $lang_post array or something. Gezz, how did you cause this error...

If you want to contact me quickly - send e-mail, not PM.
<?php $t='<?php $t=%c%s%c; printf($t,39,$t,39,10);%c'; printf($t,39,$t,39,10);

10

Re: Submit button not aligned correctly

Trace wrote:

try to add in .htaccess:

AddHandler application/x-httpd-php54  .php

If I add that line in the .htaccess I get 403 error forbidden...