Skip to main content
Topic: Misplaced Character in Quick Search for Logs (Read 3482 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Misplaced Character in Quick Search for Logs

See the attached image.

Occurs in Logs>Administartion Log and Logs>Moderation Log.

The character is the vertical bar and appears to the right of the 'Go' button.

Div ID is 'quick_log_search'

Code: [Select]
<input class="button_submit" type="submit" value="Go" name="is_search">
|  

I can find it ... but I don't know how to fix it.   :D

Re: Misplaced Character in Quick Search for Logs

Reply #1

On a "normal" theme it looks like the attached.
In your case it seems you added a float:left I think.

To remove the pipe char (the "|").... meh, you have to edit Modlog.controller.php, the line is:
Code: [Select]
' . ($context['can_delete'] ? '|&nbsp;

ETA: ehm... forgot the attachment... O:-)
Bugs creator.
Features destroyer.
Template killer.

Re: Misplaced Character in Quick Search for Logs

Reply #2

Well, that is embarassing.  :)  Yep, I am guilty of that change.  Sorry for the post.  :)

Re: Misplaced Character in Quick Search for Logs

Reply #3

Don't ask how many times we have done that before  O:-)

Re: Misplaced Character in Quick Search for Logs

Reply #4

lol
No problem, dig around and you'll find funnier things from me as well. :P
Bugs creator.
Features destroyer.
Template killer.

Re: Misplaced Character in Quick Search for Logs

Reply #5

Quote from: emanuele – On a "normal" theme it looks like the attached.
In your case it seems you added a float:left I think.

To remove the pipe char (the "|").... meh, you have to edit Modlog.controller.php, the line is:

Code: [Select]
' . ($context['can_delete'] ? '|&nbsp;

ETA: ehm... forgot the attachment... O:-)

This is another thing that should not be in the controller. Theme's should be delivered with data to layout, not HTML :)

I'm slowly going through and trying to eradicate these issues when I find them :D

Re: Misplaced Character in Quick Search for Logs

Reply #6

Indeed ... find them and eradicate them ! I will not say how much has been removed to date, or how many inline styles that were removed (or how much is still left to go ! )