Author Topic: .phpcode causes this forum to get a vertical scrollbar..  (Read 485 times)

Offline Axeia

  • Semi-Newbie
  • *
  • Posts: 29
.phpcode causes this forum to get a vertical scrollbar..
« on: November 07, 2009, 06:27:38 AM »
You might want to add
Code: [Select]
, .phpcode behind the code selector in the stylesheet used for this forum.
As you can see here:
http://www.simplemachines.org/community/index.php?topic=345437.0
it has some overflow issues at  1024*768 as it is.

[edit]
http://www.simplemachines.org/community/index.php?topic=346515.msg2344547#msg2344547
Seems like I'm not the only one who finds the used font too small, so perhaps change the font-size to small instead of x-small as well?
« Last Edit: November 07, 2009, 06:38:40 AM by Axeia »

Offline Arantor

  • Customizer
  • Simple Machines Super Hero
  • *
  • Posts: 19,412
  • Gender: Male
  • Through the fire and flames we carry on.
    • World of Thoughts
Re: .phpcode causes this forum to get a vertical scrollbar..
« Reply #1 on: November 07, 2009, 07:03:04 AM »
That's not just this forum, then. That's RC2's Curve theme in general that needs editing.

Btw, the PHP class is supposed to cause a scrollbar since it's not supposed to wrap, just like code in general.
Customizer, SMF Team
My mods [22]
Current to-do list
Developer of Atrinik

No unsolicited PMs, thank you.
Current project:
Writing an OpenSearch integration for SMF.

Quote
Telling me "it doesn't work" is like a blunt pencil: pointless.
Why doesn't it work? What do you expect it to do?

Offline Axeia

  • Semi-Newbie
  • *
  • Posts: 29
Re: .phpcode causes this forum to get a vertical scrollbar..
« Reply #2 on: November 07, 2009, 09:12:23 AM »
Alright, now I see what I actually wanted to do is supposed to be done with
[code=php]
<?php
  echo "fancyString";
?>
[/code]

Offline Arantor

  • Customizer
  • Simple Machines Super Hero
  • *
  • Posts: 19,412
  • Gender: Male
  • Through the fire and flames we carry on.
    • World of Thoughts
Re: .phpcode causes this forum to get a vertical scrollbar..
« Reply #3 on: November 07, 2009, 10:49:35 AM »
Or even just this would work:
[code]
<?php
  echo "fancyString";
?>
[/code]

It picks up the entry of <?php and ?> inside the code tag. If it doesn't have <?php, you would need =php to highlight it.
Customizer, SMF Team
My mods [22]
Current to-do list
Developer of Atrinik

No unsolicited PMs, thank you.
Current project:
Writing an OpenSearch integration for SMF.

Quote
Telling me "it doesn't work" is like a blunt pencil: pointless.
Why doesn't it work? What do you expect it to do?

Offline Motoko-chan

  • Advertising Manager
  • On Hiatus
  • Simple Machines Super Hero
  • *
  • Posts: 12,275
  • 戦場ヶ原、蕩れ
    • Motoko's Pagoda
Re: .phpcode causes this forum to get a vertical scrollbar..
« Reply #4 on: November 07, 2009, 12:55:43 PM »
You could also be able to use the php bbcode tag (although it doesn't have the code box around it:


echo 'Hello there';
die(
'Goodbye!');


[php]
echo 'Hello there';
die('Goodbye!');
[/php]
Motoko-chan
Simple Machines, LLC

On hiatus due to real-world issues (mainly my paying job). Still around, just posting slower.

You say it's getting better / You say it's all right / But I never felt darkness / Like I feel it tonight

Personal Links:
AnimeNeko Network | Static-Subs | Lililicious

Offline Axeia

  • Semi-Newbie
  • *
  • Posts: 29
Re: .phpcode causes this forum to get a vertical scrollbar..
« Reply #5 on: November 07, 2009, 04:01:45 PM »
You could also be able to use the php bbcode tag (although it doesn't have the code box around it:


echo 'Hello there';
die(
'Goodbye!');


[php]
echo 'Hello there';
die('Goodbye!');
[/php]
That's exactly what I did in thread I linked to (the one that caused the overflow issue ;))
I'll leave it as is instead of using [code=php], might come in handy as a testbed for the fix.