Advertisement:

Author Topic: cb|GeShi-mod  (Read 10761 times)

Offline codebirth

  • Jr. Member
  • **
  • Posts: 125
  • Gender: Male
  • Dark Knight
cb|GeShi-mod
« on: July 01, 2011, 10:39:45 AM »
Link to Mod

cb|GeSHi-mod 1.2

cb|GeSHi-mod adds code syntax highlighting to your forum. Powered by GeSHi, the mod supports +200 different languages and is fully customizable for each of your themes.

Compatible with SMF 2.0 and later.

What's new in 1.2?

- GeSHi sources updated to 1.0.8.11 which includes some new languages
- Minor fix to avoid error notices in the logs when running on PHP 5.4



GNU General Public License v3.0

cb|GeSHi-mod - Syntax Highlighter mod for SMF powered by GeSHi
Copyright (C) 2012-2013, codebirth
Website: http://www.codebirth.com

Powered by GeSHi - http://qbnz.com/highlighter/

 
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program.  If not, see <http://www.gnu.org/licenses/>



More info

Help about customization and usage
http://codebirth.com/index.php?topic=81.0

Feel free to try the mod in the Testing area of my forum and please let me know if you find any issue!

http://codebirth.com/
« Last Edit: April 20, 2013, 03:35:42 AM by codebirth »

Offline npiccoli

  • Semi-Newbie
  • *
  • Posts: 35
Re: cb|GeShi-mod
« Reply #1 on: July 13, 2011, 02:50:49 PM »
I hope one day GeShi will support the PAWN language. This is nice though, very helpful for my forum. Thanks!

Offline acsieben

  • Semi-Newbie
  • *
  • Posts: 88
Re: cb|GeShi-mod
« Reply #2 on: September 03, 2011, 09:44:05 AM »
Hi,

I have several errors like the ones below, do you have any idea why?

Quote
http://myforum.com/index.php?topic=2841.msg343698: Undefined offset: 1File: /myforum/Sources/geshi.php
Line: 3513

Quote
http://myforum.com/index.php?topic=6523.msg720028: Constant GESHI_SEARCH already definedFile: /myforum/Sources/geshi/geshi.php
Line: 133

The second one varies a lot on the constant. I have 300 error entries for just one day after installation, with lots of different constants.

Thanks
« Last Edit: September 03, 2011, 09:47:31 AM by acseven »

Offline codebirth

  • Jr. Member
  • **
  • Posts: 125
  • Gender: Male
  • Dark Knight
Re: cb|GeShi-mod
« Reply #3 on: September 11, 2011, 01:12:33 PM »
Sorry, I have no idea why you get those errors. Maybe you have other mods not compatible with this one? I don't know.

Offline acsieben

  • Semi-Newbie
  • *
  • Posts: 88
Re: cb|GeShi-mod
« Reply #4 on: September 11, 2011, 03:55:53 PM »
Sorry, I have no idea why you get those errors. Maybe you have other mods not compatible with this one? I don't know.

Thanks for the reply.

No, I don't think so - this is almost a clean install of 2.0 ..

Offline Roxor666

  • Newbie
  • *
  • Posts: 2
Re: cb|GeShi-mod
« Reply #5 on: September 25, 2011, 03:14:59 PM »
where i can find queries to install into database? can anybody post it here?

Offline Apllicmz

  • SMF Hero
  • ******
  • Posts: 2,642
  • Gender: Male
  • Suporte SmfPT
    • apllicmz on Facebook
    • apllicmz on GitHub
    • https://www.linkedin.com/in/aplic on LinkedIn
    • @aplichosting on Twitter
    • Webdesign
Re: cb|GeShi-mod
« Reply #6 on: December 26, 2011, 07:45:55 AM »
When Update dont forget portuguese

Code: [Select]
<file name="$themedir/languages/Themes.portuguese_pt.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
$txt['geshi_code_container'] = 'GeSHi Code Container';
$txt['geshi_code_container_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#the-code-container" target="_blank">3.1 O Container C&oacute;digo</a>.';
$txt['geshi_line_numbers'] = 'N&uacute;meros de linha';
$txt['geshi_line_numbers_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#line-numbers" target="_blank">3.2 N&uacute;meros de Linha</a>.';
$txt['geshi_fancy_line_number'] = 'Fantasia n&uacute;meros de linha';
$txt['geshi_fancy_line_number_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#line-numbers" target="_blank">3.2 N&uacute;meros de Linha</a>.';
$txt['geshi_line_style'] = 'Line style';
$txt['geshi_line_style_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styling-line-numbers" target="_blank">3.2.2 Styling N&uacute;meros de Linha</a>.';
$txt['geshi_line_style_fancy'] = 'Fancy line style';
$txt['geshi_line_style_fancy_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styling-line-numbers" target="_blank">3.2.2 Styling N&uacute;meros de Linha</a>.';
$txt['geshi_highlight_lines_extra_style'] = 'Linhas em destaque style';
$txt['geshi_highlight_lines_extra_style_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styles-for-highlighted-lines" target="_blank">3.15.2 Destaque para as Linhas de Styles</a>.';
$txt['geshi_enable_pre_header'] = 'Show header above GeSHi Code Container';
$txt['geshi_enable_pre_header_desc'] = '';
$txt['geshi_pre_header'] = 'Header above GeSHi Code Container';
$txt['geshi_pre_header_desc'] = 'Voc&ecirc; pode usar {CODE}, {TAG} and {LANGUAGE} keywords. Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
$txt['geshi_enable_header'] = 'Mostrar cabe&ccedil;alho dentro GeSHi C&oacute;digo Container';
$txt['geshi_enable_header_desc'] = '';
$txt['geshi_header'] = 'Header inside GeSHi Code Container';
$txt['geshi_header_desc'] = 'Voc&ecirc; pode usar <a href="http://qbnz.com/highlighter/geshi-doc.html#keyword-substitution" target="_blank">these keywords</a>. Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#setting-header-content" target="_blank">3.12.2 Conte&uacute;do Header defini&ccedil;&atilde;o</a>.';
$txt['geshi_enable_footer'] = 'Mostrar Rodap&eacute; dentro GeSHi C&oacute;digo Container';
$txt['geshi_enable_footer_desc'] = '';
$txt['geshi_footer'] = 'Rodap&eacute; dentro GeSHi C&oacute;digo Container';
$txt['geshi_footer_desc'] = 'Voc&ecirc; pode usar <a href="http://qbnz.com/highlighter/geshi-doc.html#keyword-substitution" target="_blank">these keywords</a>. Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#setting-footer-content" target="_blank">3.12.3 Setting Footer Content</a>.';
$txt['geshi_enable_language_selector'] = 'Mostrar o selector de l&iacute;nguas';
$txt['geshi_enable_language_selector_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
$txt['geshi_language_selector'] = 'L&iacute;nguas selecion&aacute;veis';
$txt['geshi_language_selector_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
]]></add>
        </operation>
    </file>
    <file name="$themedir/languages/Themes.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
$txt['geshi_code_container'] = 'GeSHi Code Container';
$txt['geshi_code_container_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#the-code-container" target="_blank">3.1 O Container C&oacute;digo</a>.';
$txt['geshi_line_numbers'] = 'N&uacute;meros de linha';
$txt['geshi_line_numbers_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#line-numbers" target="_blank">3.2 N&uacute;meros de Linha</a>.';
$txt['geshi_fancy_line_number'] = 'Fantasia n&uacute;meros de linha';
$txt['geshi_fancy_line_number_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#line-numbers" target="_blank">3.2 N&uacute;meros de Linha</a>.';
$txt['geshi_line_style'] = 'Line style';
$txt['geshi_line_style_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styling-line-numbers" target="_blank">3.2.2 Styling N&uacute;meros de Linha</a>.';
$txt['geshi_line_style_fancy'] = 'Fancy line style';
$txt['geshi_line_style_fancy_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styling-line-numbers" target="_blank">3.2.2 Styling N&uacute;meros de Linha</a>.';
$txt['geshi_highlight_lines_extra_style'] = 'Linhas em destaque style';
$txt['geshi_highlight_lines_extra_style_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styles-for-highlighted-lines" target="_blank">3.15.2 Destaque para as Linhas de Styles</a>.';
$txt['geshi_enable_pre_header'] = 'Show header above GeSHi Code Container';
$txt['geshi_enable_pre_header_desc'] = '';
$txt['geshi_pre_header'] = 'Header above GeSHi Code Container';
$txt['geshi_pre_header_desc'] = 'Voc&ecirc; pode usar {CODE}, {TAG} and {LANGUAGE} keywords. Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
$txt['geshi_enable_header'] = 'Mostrar cabe&ccedil;alho dentro GeSHi C&oacute;digo Container';
$txt['geshi_enable_header_desc'] = '';
$txt['geshi_header'] = 'Header inside GeSHi Code Container';
$txt['geshi_header_desc'] = 'Voc&ecirc; pode usar <a href="http://qbnz.com/highlighter/geshi-doc.html#keyword-substitution" target="_blank">these keywords</a>. Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#setting-header-content" target="_blank">3.12.2 Conte&uacute;do Header defini&ccedil;&atilde;o</a>.';
$txt['geshi_enable_footer'] = 'Mostrar Rodap&eacute; dentro GeSHi C&oacute;digo Container';
$txt['geshi_enable_footer_desc'] = '';
$txt['geshi_footer'] = 'Rodap&eacute; dentro GeSHi C&oacute;digo Container';
$txt['geshi_footer_desc'] = 'Voc&ecirc; pode usar <a href="http://qbnz.com/highlighter/geshi-doc.html#keyword-substitution" target="_blank">these keywords</a>. Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#setting-footer-content" target="_blank">3.12.3 Setting Footer Content</a>.';
$txt['geshi_enable_language_selector'] = 'Mostrar o selector de l&iacute;nguas';
$txt['geshi_enable_language_selector_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
$txt['geshi_language_selector'] = 'L&iacute;nguas selecion&aacute;veis';
$txt['geshi_language_selector_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
]]></add>
        </operation>
    </file>
    <file name="$themedir/languages/Themes.portuguese_brazilian.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
$txt['geshi_code_container'] = 'GeSHi Code Container';
$txt['geshi_code_container_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#the-code-container" target="_blank">3.1 O Container C&oacute;digo</a>.';
$txt['geshi_line_numbers'] = 'N&uacute;meros de linha';
$txt['geshi_line_numbers_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#line-numbers" target="_blank">3.2 N&uacute;meros de Linha</a>.';
$txt['geshi_fancy_line_number'] = 'Fantasia n&uacute;meros de linha';
$txt['geshi_fancy_line_number_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#line-numbers" target="_blank">3.2 N&uacute;meros de Linha</a>.';
$txt['geshi_line_style'] = 'Line style';
$txt['geshi_line_style_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styling-line-numbers" target="_blank">3.2.2 Styling N&uacute;meros de Linha</a>.';
$txt['geshi_line_style_fancy'] = 'Fancy line style';
$txt['geshi_line_style_fancy_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styling-line-numbers" target="_blank">3.2.2 Styling N&uacute;meros de Linha</a>.';
$txt['geshi_highlight_lines_extra_style'] = 'Linhas em destaque style';
$txt['geshi_highlight_lines_extra_style_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styles-for-highlighted-lines" target="_blank">3.15.2 Destaque para as Linhas de Styles</a>.';
$txt['geshi_enable_pre_header'] = 'Show header above GeSHi Code Container';
$txt['geshi_enable_pre_header_desc'] = '';
$txt['geshi_pre_header'] = 'Header above GeSHi Code Container';
$txt['geshi_pre_header_desc'] = 'Voc&ecirc; pode usar {CODE}, {TAG} and {LANGUAGE} keywords. Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
$txt['geshi_enable_header'] = 'Mostrar cabe&ccedil;alho dentro GeSHi C&oacute;digo Container';
$txt['geshi_enable_header_desc'] = '';
$txt['geshi_header'] = 'Header inside GeSHi Code Container';
$txt['geshi_header_desc'] = 'Voc&ecirc; pode usar <a href="http://qbnz.com/highlighter/geshi-doc.html#keyword-substitution" target="_blank">these keywords</a>. Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#setting-header-content" target="_blank">3.12.2 Conte&uacute;do Header defini&ccedil;&atilde;o</a>.';
$txt['geshi_enable_footer'] = 'Mostrar Rodap&eacute; dentro GeSHi C&oacute;digo Container';
$txt['geshi_enable_footer_desc'] = '';
$txt['geshi_footer'] = 'Rodap&eacute; dentro GeSHi C&oacute;digo Container';
$txt['geshi_footer_desc'] = 'Voc&ecirc; pode usar <a href="http://qbnz.com/highlighter/geshi-doc.html#keyword-substitution" target="_blank">these keywords</a>. Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#setting-footer-content" target="_blank">3.12.3 Setting Footer Content</a>.';
$txt['geshi_enable_language_selector'] = 'Mostrar o selector de l&iacute;nguas';
$txt['geshi_enable_language_selector_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
$txt['geshi_language_selector'] = 'L&iacute;nguas selecion&aacute;veis';
$txt['geshi_language_selector_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
]]></add>
        </operation>
    </file>
    <file name="$themedir/languages/Themes.portuguese_brazilian-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
$txt['geshi_code_container'] = 'GeSHi Code Container';
$txt['geshi_code_container_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#the-code-container" target="_blank">3.1 O Container C&oacute;digo</a>.';
$txt['geshi_line_numbers'] = 'N&uacute;meros de linha';
$txt['geshi_line_numbers_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#line-numbers" target="_blank">3.2 N&uacute;meros de Linha</a>.';
$txt['geshi_fancy_line_number'] = 'Fantasia n&uacute;meros de linha';
$txt['geshi_fancy_line_number_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#line-numbers" target="_blank">3.2 N&uacute;meros de Linha</a>.';
$txt['geshi_line_style'] = 'Line style';
$txt['geshi_line_style_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styling-line-numbers" target="_blank">3.2.2 Styling N&uacute;meros de Linha</a>.';
$txt['geshi_line_style_fancy'] = 'Fancy line style';
$txt['geshi_line_style_fancy_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styling-line-numbers" target="_blank">3.2.2 Styling N&uacute;meros de Linha</a>.';
$txt['geshi_highlight_lines_extra_style'] = 'Linhas em destaque style';
$txt['geshi_highlight_lines_extra_style_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styles-for-highlighted-lines" target="_blank">3.15.2 Destaque para as Linhas de Styles</a>.';
$txt['geshi_enable_pre_header'] = 'Show header above GeSHi Code Container';
$txt['geshi_enable_pre_header_desc'] = '';
$txt['geshi_pre_header'] = 'Header above GeSHi Code Container';
$txt['geshi_pre_header_desc'] = 'Voc&ecirc; pode usar {CODE}, {TAG} and {LANGUAGE} keywords. Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
$txt['geshi_enable_header'] = 'Mostrar cabe&ccedil;alho dentro GeSHi C&oacute;digo Container';
$txt['geshi_enable_header_desc'] = '';
$txt['geshi_header'] = 'Header inside GeSHi Code Container';
$txt['geshi_header_desc'] = 'Voc&ecirc; pode usar <a href="http://qbnz.com/highlighter/geshi-doc.html#keyword-substitution" target="_blank">these keywords</a>. Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#setting-header-content" target="_blank">3.12.2 Conte&uacute;do Header defini&ccedil;&atilde;o</a>.';
$txt['geshi_enable_footer'] = 'Mostrar Rodap&eacute; dentro GeSHi C&oacute;digo Container';
$txt['geshi_enable_footer_desc'] = '';
$txt['geshi_footer'] = 'Rodap&eacute; dentro GeSHi C&oacute;digo Container';
$txt['geshi_footer_desc'] = 'Voc&ecirc; pode usar <a href="http://qbnz.com/highlighter/geshi-doc.html#keyword-substitution" target="_blank">these keywords</a>. Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#setting-footer-content" target="_blank">3.12.3 Setting Footer Content</a>.';
$txt['geshi_enable_language_selector'] = 'Mostrar o selector de l&iacute;nguas';
$txt['geshi_enable_language_selector_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
$txt['geshi_language_selector'] = 'L&iacute;nguas selecion&aacute;veis';
$txt['geshi_language_selector_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
]]></add>
        </operation>
    </file>



Offline codebirth

  • Jr. Member
  • **
  • Posts: 125
  • Gender: Male
  • Dark Knight
Re: cb|GeShi-mod
« Reply #7 on: December 26, 2011, 08:03:36 AM »
Obrigado!

When Update dont forget portuguese

Code: [Select]
<file name="$themedir/languages/Themes.portuguese_pt.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
$txt['geshi_code_container'] = 'GeSHi Code Container';
$txt['geshi_code_container_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#the-code-container" target="_blank">3.1 O Container C&oacute;digo</a>.';
$txt['geshi_line_numbers'] = 'N&uacute;meros de linha';
$txt['geshi_line_numbers_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#line-numbers" target="_blank">3.2 N&uacute;meros de Linha</a>.';
$txt['geshi_fancy_line_number'] = 'Fantasia n&uacute;meros de linha';
$txt['geshi_fancy_line_number_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#line-numbers" target="_blank">3.2 N&uacute;meros de Linha</a>.';
$txt['geshi_line_style'] = 'Line style';
$txt['geshi_line_style_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styling-line-numbers" target="_blank">3.2.2 Styling N&uacute;meros de Linha</a>.';
$txt['geshi_line_style_fancy'] = 'Fancy line style';
$txt['geshi_line_style_fancy_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styling-line-numbers" target="_blank">3.2.2 Styling N&uacute;meros de Linha</a>.';
$txt['geshi_highlight_lines_extra_style'] = 'Linhas em destaque style';
$txt['geshi_highlight_lines_extra_style_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styles-for-highlighted-lines" target="_blank">3.15.2 Destaque para as Linhas de Styles</a>.';
$txt['geshi_enable_pre_header'] = 'Show header above GeSHi Code Container';
$txt['geshi_enable_pre_header_desc'] = '';
$txt['geshi_pre_header'] = 'Header above GeSHi Code Container';
$txt['geshi_pre_header_desc'] = 'Voc&ecirc; pode usar {CODE}, {TAG} and {LANGUAGE} keywords. Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
$txt['geshi_enable_header'] = 'Mostrar cabe&ccedil;alho dentro GeSHi C&oacute;digo Container';
$txt['geshi_enable_header_desc'] = '';
$txt['geshi_header'] = 'Header inside GeSHi Code Container';
$txt['geshi_header_desc'] = 'Voc&ecirc; pode usar <a href="http://qbnz.com/highlighter/geshi-doc.html#keyword-substitution" target="_blank">these keywords</a>. Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#setting-header-content" target="_blank">3.12.2 Conte&uacute;do Header defini&ccedil;&atilde;o</a>.';
$txt['geshi_enable_footer'] = 'Mostrar Rodap&eacute; dentro GeSHi C&oacute;digo Container';
$txt['geshi_enable_footer_desc'] = '';
$txt['geshi_footer'] = 'Rodap&eacute; dentro GeSHi C&oacute;digo Container';
$txt['geshi_footer_desc'] = 'Voc&ecirc; pode usar <a href="http://qbnz.com/highlighter/geshi-doc.html#keyword-substitution" target="_blank">these keywords</a>. Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#setting-footer-content" target="_blank">3.12.3 Setting Footer Content</a>.';
$txt['geshi_enable_language_selector'] = 'Mostrar o selector de l&iacute;nguas';
$txt['geshi_enable_language_selector_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
$txt['geshi_language_selector'] = 'L&iacute;nguas selecion&aacute;veis';
$txt['geshi_language_selector_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
]]></add>
        </operation>
    </file>
    <file name="$themedir/languages/Themes.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
$txt['geshi_code_container'] = 'GeSHi Code Container';
$txt['geshi_code_container_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#the-code-container" target="_blank">3.1 O Container C&oacute;digo</a>.';
$txt['geshi_line_numbers'] = 'N&uacute;meros de linha';
$txt['geshi_line_numbers_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#line-numbers" target="_blank">3.2 N&uacute;meros de Linha</a>.';
$txt['geshi_fancy_line_number'] = 'Fantasia n&uacute;meros de linha';
$txt['geshi_fancy_line_number_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#line-numbers" target="_blank">3.2 N&uacute;meros de Linha</a>.';
$txt['geshi_line_style'] = 'Line style';
$txt['geshi_line_style_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styling-line-numbers" target="_blank">3.2.2 Styling N&uacute;meros de Linha</a>.';
$txt['geshi_line_style_fancy'] = 'Fancy line style';
$txt['geshi_line_style_fancy_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styling-line-numbers" target="_blank">3.2.2 Styling N&uacute;meros de Linha</a>.';
$txt['geshi_highlight_lines_extra_style'] = 'Linhas em destaque style';
$txt['geshi_highlight_lines_extra_style_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styles-for-highlighted-lines" target="_blank">3.15.2 Destaque para as Linhas de Styles</a>.';
$txt['geshi_enable_pre_header'] = 'Show header above GeSHi Code Container';
$txt['geshi_enable_pre_header_desc'] = '';
$txt['geshi_pre_header'] = 'Header above GeSHi Code Container';
$txt['geshi_pre_header_desc'] = 'Voc&ecirc; pode usar {CODE}, {TAG} and {LANGUAGE} keywords. Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
$txt['geshi_enable_header'] = 'Mostrar cabe&ccedil;alho dentro GeSHi C&oacute;digo Container';
$txt['geshi_enable_header_desc'] = '';
$txt['geshi_header'] = 'Header inside GeSHi Code Container';
$txt['geshi_header_desc'] = 'Voc&ecirc; pode usar <a href="http://qbnz.com/highlighter/geshi-doc.html#keyword-substitution" target="_blank">these keywords</a>. Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#setting-header-content" target="_blank">3.12.2 Conte&uacute;do Header defini&ccedil;&atilde;o</a>.';
$txt['geshi_enable_footer'] = 'Mostrar Rodap&eacute; dentro GeSHi C&oacute;digo Container';
$txt['geshi_enable_footer_desc'] = '';
$txt['geshi_footer'] = 'Rodap&eacute; dentro GeSHi C&oacute;digo Container';
$txt['geshi_footer_desc'] = 'Voc&ecirc; pode usar <a href="http://qbnz.com/highlighter/geshi-doc.html#keyword-substitution" target="_blank">these keywords</a>. Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#setting-footer-content" target="_blank">3.12.3 Setting Footer Content</a>.';
$txt['geshi_enable_language_selector'] = 'Mostrar o selector de l&iacute;nguas';
$txt['geshi_enable_language_selector_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
$txt['geshi_language_selector'] = 'L&iacute;nguas selecion&aacute;veis';
$txt['geshi_language_selector_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
]]></add>
        </operation>
    </file>
    <file name="$themedir/languages/Themes.portuguese_brazilian.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
$txt['geshi_code_container'] = 'GeSHi Code Container';
$txt['geshi_code_container_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#the-code-container" target="_blank">3.1 O Container C&oacute;digo</a>.';
$txt['geshi_line_numbers'] = 'N&uacute;meros de linha';
$txt['geshi_line_numbers_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#line-numbers" target="_blank">3.2 N&uacute;meros de Linha</a>.';
$txt['geshi_fancy_line_number'] = 'Fantasia n&uacute;meros de linha';
$txt['geshi_fancy_line_number_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#line-numbers" target="_blank">3.2 N&uacute;meros de Linha</a>.';
$txt['geshi_line_style'] = 'Line style';
$txt['geshi_line_style_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styling-line-numbers" target="_blank">3.2.2 Styling N&uacute;meros de Linha</a>.';
$txt['geshi_line_style_fancy'] = 'Fancy line style';
$txt['geshi_line_style_fancy_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styling-line-numbers" target="_blank">3.2.2 Styling N&uacute;meros de Linha</a>.';
$txt['geshi_highlight_lines_extra_style'] = 'Linhas em destaque style';
$txt['geshi_highlight_lines_extra_style_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styles-for-highlighted-lines" target="_blank">3.15.2 Destaque para as Linhas de Styles</a>.';
$txt['geshi_enable_pre_header'] = 'Show header above GeSHi Code Container';
$txt['geshi_enable_pre_header_desc'] = '';
$txt['geshi_pre_header'] = 'Header above GeSHi Code Container';
$txt['geshi_pre_header_desc'] = 'Voc&ecirc; pode usar {CODE}, {TAG} and {LANGUAGE} keywords. Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
$txt['geshi_enable_header'] = 'Mostrar cabe&ccedil;alho dentro GeSHi C&oacute;digo Container';
$txt['geshi_enable_header_desc'] = '';
$txt['geshi_header'] = 'Header inside GeSHi Code Container';
$txt['geshi_header_desc'] = 'Voc&ecirc; pode usar <a href="http://qbnz.com/highlighter/geshi-doc.html#keyword-substitution" target="_blank">these keywords</a>. Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#setting-header-content" target="_blank">3.12.2 Conte&uacute;do Header defini&ccedil;&atilde;o</a>.';
$txt['geshi_enable_footer'] = 'Mostrar Rodap&eacute; dentro GeSHi C&oacute;digo Container';
$txt['geshi_enable_footer_desc'] = '';
$txt['geshi_footer'] = 'Rodap&eacute; dentro GeSHi C&oacute;digo Container';
$txt['geshi_footer_desc'] = 'Voc&ecirc; pode usar <a href="http://qbnz.com/highlighter/geshi-doc.html#keyword-substitution" target="_blank">these keywords</a>. Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#setting-footer-content" target="_blank">3.12.3 Setting Footer Content</a>.';
$txt['geshi_enable_language_selector'] = 'Mostrar o selector de l&iacute;nguas';
$txt['geshi_enable_language_selector_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
$txt['geshi_language_selector'] = 'L&iacute;nguas selecion&aacute;veis';
$txt['geshi_language_selector_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
]]></add>
        </operation>
    </file>
    <file name="$themedir/languages/Themes.portuguese_brazilian-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
$txt['geshi_code_container'] = 'GeSHi Code Container';
$txt['geshi_code_container_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#the-code-container" target="_blank">3.1 O Container C&oacute;digo</a>.';
$txt['geshi_line_numbers'] = 'N&uacute;meros de linha';
$txt['geshi_line_numbers_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#line-numbers" target="_blank">3.2 N&uacute;meros de Linha</a>.';
$txt['geshi_fancy_line_number'] = 'Fantasia n&uacute;meros de linha';
$txt['geshi_fancy_line_number_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#line-numbers" target="_blank">3.2 N&uacute;meros de Linha</a>.';
$txt['geshi_line_style'] = 'Line style';
$txt['geshi_line_style_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styling-line-numbers" target="_blank">3.2.2 Styling N&uacute;meros de Linha</a>.';
$txt['geshi_line_style_fancy'] = 'Fancy line style';
$txt['geshi_line_style_fancy_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styling-line-numbers" target="_blank">3.2.2 Styling N&uacute;meros de Linha</a>.';
$txt['geshi_highlight_lines_extra_style'] = 'Linhas em destaque style';
$txt['geshi_highlight_lines_extra_style_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styles-for-highlighted-lines" target="_blank">3.15.2 Destaque para as Linhas de Styles</a>.';
$txt['geshi_enable_pre_header'] = 'Show header above GeSHi Code Container';
$txt['geshi_enable_pre_header_desc'] = '';
$txt['geshi_pre_header'] = 'Header above GeSHi Code Container';
$txt['geshi_pre_header_desc'] = 'Voc&ecirc; pode usar {CODE}, {TAG} and {LANGUAGE} keywords. Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
$txt['geshi_enable_header'] = 'Mostrar cabe&ccedil;alho dentro GeSHi C&oacute;digo Container';
$txt['geshi_enable_header_desc'] = '';
$txt['geshi_header'] = 'Header inside GeSHi Code Container';
$txt['geshi_header_desc'] = 'Voc&ecirc; pode usar <a href="http://qbnz.com/highlighter/geshi-doc.html#keyword-substitution" target="_blank">these keywords</a>. Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#setting-header-content" target="_blank">3.12.2 Conte&uacute;do Header defini&ccedil;&atilde;o</a>.';
$txt['geshi_enable_footer'] = 'Mostrar Rodap&eacute; dentro GeSHi C&oacute;digo Container';
$txt['geshi_enable_footer_desc'] = '';
$txt['geshi_footer'] = 'Rodap&eacute; dentro GeSHi C&oacute;digo Container';
$txt['geshi_footer_desc'] = 'Voc&ecirc; pode usar <a href="http://qbnz.com/highlighter/geshi-doc.html#keyword-substitution" target="_blank">these keywords</a>. Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#setting-footer-content" target="_blank">3.12.3 Setting Footer Content</a>.';
$txt['geshi_enable_language_selector'] = 'Mostrar o selector de l&iacute;nguas';
$txt['geshi_enable_language_selector_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
$txt['geshi_language_selector'] = 'L&iacute;nguas selecion&aacute;veis';
$txt['geshi_language_selector_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
]]></add>
        </operation>
    </file>

Offline tranq

  • Semi-Newbie
  • *
  • Posts: 13
Re: cb|GeShi-mod
« Reply #8 on: December 15, 2012, 08:18:13 AM »
Hi, trying to install GeSHi mod.
  • patched the required files
  • downloaded the module, copied the entire directory Sources/ into the smf root directory

Now I am stuck at db_install.php.
Quote
This file should not be able to execute standalone. You may have to run the following queries manually.
Ok, standalone executing gives me "Hacking attemp". What queries do I have to run? Where are they?
I dont have mods installed, its almost running on default options
 ???


Offline codebirth

  • Jr. Member
  • **
  • Posts: 125
  • Gender: Male
  • Dark Knight
Re: cb|GeShi-mod
« Reply #9 on: December 17, 2012, 01:59:59 AM »
Hi,

Why don't you install the MOD in the usual way? I mean, uploading the package through the Package Manager of your Admin Center. That would mofify the files for you and run the needed queries. And most important, you'll have the option to uninstall the MOD.

Offline tranq

  • Semi-Newbie
  • *
  • Posts: 13
Re: cb|GeShi-mod
« Reply #10 on: December 20, 2012, 01:16:45 PM »
Didn't know about that. thanks.

Offline Hondo

  • Full Member
  • ***
  • Posts: 513
  • Gender: Male
    • Access-o-Mania
Re: cb|GeShi-mod
« Reply #11 on: January 07, 2014, 05:17:17 AM »
Thank you for Geshi update
Here is a small change by me to add the Codeselector to Geshi:

Search in Subs.php:
Code: [Select]
$pre_header = "";
if ($settings[\'geshi_enable_pre_header\']) {
$pre_header = \'<div class="codeheader">\' . str_replace(array("{CODE}", "{TAG}", "{LANGUAGE}"), array($txt[\'code\'], strtoupper($lang), $geshi->get_language_name()), $settings[\'geshi_pre_header\']) . "</div>";
}

Replace
Code: [Select]
$pre_header = "";
if ($settings[\'geshi_enable_pre_header\']) {
$codeselector = $geshi->get_language_name() . \'&nbsp;&nbsp;<a href="javascript:void(0);" onclick="return smfSelectText(this);" class="codeoperation">\' . $txt[\'code_select\'] . \'</a>\';
$pre_header = \'<div class="codeheader">\' . str_replace(array("{CODE}", "{TAG}", "{LANGUAGE}"), array($txt[\'code\'], strtoupper($lang), $codeselector), $settings[\'geshi_pre_header\']) . "</div>";
}

Regards
Andreas

Offline T3CHN0

  • Full Member
  • ***
  • Posts: 630
  • Gender: Male
  • knowledge is power
    • Tarago Pravia Estima
Re: cb|GeShi-mod
« Reply #12 on: June 21, 2014, 03:10:58 PM »
could someone please post some screen shots
I would like to see that this mods does and looks like!

Thank You

Offline alkisg

  • Semi-Newbie
  • *
  • Posts: 28
Re: cb|GeShi-mod
« Reply #13 on: February 21, 2021, 05:59:40 AM »
Hi, is anyone still using GeSHi?
I managed to update the code to run in SMF 2.0.18:
https://github.com/alkisg/smf-geshi

...it works, but PHP isn't my forte.
Has anyone made a better version?