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!
Is it normal for you?
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.4 troubleshooting → 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!
Is it normal for you?
not interesting?
There is one unnecessairly space character (probably) in the post.php file. But it is weird - in my copy of punbb everything is alright.
could i see your site?
i have not found the unnecessary space..
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.
?>
<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.
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.
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
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...
try to add in .htaccess:
AddHandler application/x-httpd-php54 .php
If I add that line in the .htaccess I get 403 error forbidden...
PunBB Forums → PunBB 1.4 troubleshooting → Submit button not aligned correctly
Powered by PunBB, supported by Informer Technologies, Inc.