Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - codebirth

Pages: [1] 2 3
1
Testing area / just a test
« on: November 12, 2016, 03:42:56 PM »
Ok, just testing

2
cb|GeSHi-mod / Re: What have I done wrong? ;-)
« on: May 18, 2013, 08:21:09 AM »
Hi, it's hard to say why it was not installed properly. Permissions could be a reason.

Anyway I'm glad to hear you got it working :)

3
Hi Se7en, the mod has now been updated on SMF mods site.

Thanks for your patience and support! :)

4
I already have a fix and will update the mod by the weekend.

Thank you.

5
Thanks Se7en, that sure helps :) I'll let you know as soon as I can test a fix for PHP 5.4

6
Hello Se7en,

I have just installed the mod on a fresh SMF 2.0.4 and I got no errors, but I'm using PHP 5.3. I think the error can be related with new changes in PHP 5.4, but unfortunately I can't test it at the moment  :( I'll try to take a look to this in the following days.

Thank you.

7
cb|GeSHi-mod / Re: Default language
« on: August 05, 2012, 12:37:30 PM »
Sorry for late reply, I've been quite busy the last months.

That sounds like a nice feature, will try to add it to the next release.

Thank you

8
cb|GeSHi-mod / Re: is version for SMF 2.0 RC3 exist?
« on: March 10, 2012, 10:13:39 AM »
No, sorry that's not possible :(

SMF versions prior to 2.0 Final were not distributed under a GNU compatible license and GeSHi mods were not allowed for that reason.

9
cb|Emailogin / cb|Emailogin 0.63
« on: January 28, 2012, 01:02:18 PM »
cb|Emailogin 0.63

This MOD will force your forum members to login using their email address instead of username. This behaviour can be useful in many situations.

The package will also change some language strings to adapt to the new behaviour.

Compatible with SMF versions 1.1.x, 2.0.x

Languages: English, Spanish ES, Turkish, Danish, German

IMPORTANT: This MOD may not be compatible with previous SMF versions.


Changelog
============

0.63

    Bug fixed: Admin can now change username from user's Profile->Account settings.

0.62

  • Bug fixed: When clicking on activation link the username was shown in the login form instead of the email address.
  • Compatible with SMF 1.1.16 and 2.0.2

0.61

  • Fixed a bug that was affecting users of the SMF 2.0 version of this mod. An error was given when users with a secret question set on their profile tried to request or set a new password.
  • The mod is now released under the GNU General Public License v3.0
  • A copyright is added to the credits section of SMF 2.0

0.6

  • Updated to SMF 1.1.14 and 2.0

0.52

  • Added changes to Register template on SMF 1.1.13. The Hide email address from public? checkbox is now checked by default (thanks to forumuser)
  • Added German language (thanks to ranseyer)
  • Added ISO-8859-1 versions of all languages

0.51

  • Added changes to Wireless template
  • Added changes to ssi_login()
  • Added Turkish language (thanks to PLAYBOY)
  • Added Danish language (thanks to Jesna)

0.5

  • Updated to SMF 1.1.13 and 2.0 RC5

0.4

  • Updated to SMF 2.0 RC3

0.3

  • Updated to SMF 1.1.11 and 2.0 RC2, and so with the new Curve theme

0.2

  • Updated to SMF 1.1.10 and 2.0 RC1.2
  • Fixed some glitches when login forced on unauthorized boards and on maintenance mode

0.1.a

  • Added compatibility with SMF 1.1.8

0.1

  • Initial release for SMF 2.0 RC1

10
cb|GeSHi-mod / Re: SMF 2.0.1 or SMF 2.0.2
« on: January 11, 2012, 11:22:46 PM »
Hi!  :)

A new version of the mod, compatible with SMF 2.0.2, is now available here

http://custom.simplemachines.org/mods/index.php?mod=3070


11
cb|GeSHi-mod / Re: SMF 2.0.1 or SMF 2.0.2
« on: January 09, 2012, 11:39:00 PM »
Thanks for your post :)

It should be an easy update. I will take a look to it as soon as possible.

12
cb|Emailogin / cb|Emailogin 0.61
« on: June 27, 2011, 12:05:17 AM »
cb|Emailogin 0.61

This MOD will force your forum members to login using their email address instead of username. This behaviour can be useful in many situations.

The package will also change some language strings to adapt to the new behaviour.

Compatible with SMF versions 1.1.14, 2.0

Languages: English, Spanish ES, Turkish, Danish, German

IMPORTANT: This MOD may not be compatible with previous SMF versions.


Changelog
============

0.61

  • Fixed a bug that was affecting users of the SMF 2.0 version of this mod. An error was given when users with a secret question set on their profile tried to request or set a new password.
  • The mod is now released under the GNU General Public License v3.0
  • A copyright is added to the credits section of SMF 2.0

0.6

  • Updated to SMF 1.1.14 and 2.0

0.52

  • Added changes to Register template on SMF 1.1.13. The Hide email address from public? checkbox is now checked by default (thanks to forumuser)
  • Added German language (thanks to ranseyer)
  • Added ISO-8859-1 versions of all languages

0.51

  • Added changes to Wireless template
  • Added changes to ssi_login()
  • Added Turkish language (thanks to PLAYBOY)
  • Added Danish language (thanks to Jesna)

0.5

  • Updated to SMF 1.1.13 and 2.0 RC5

0.4

  • Updated to SMF 2.0 RC3

0.3

  • Updated to SMF 1.1.11 and 2.0 RC2, and so with the new Curve theme

0.2

  • Updated to SMF 1.1.10 and 2.0 RC1.2
  • Fixed some glitches when login forced on unauthorized boards and on maintenance mode

0.1.a

  • Added compatibility with SMF 1.1.8

0.1

  • Initial release for SMF 2.0 RC1

13
cb|GeSHi-mod / 2. Using cb|GeSHi-mod
« on: June 20, 2011, 02:01:38 PM »
2. Using cb|GeSHi-mod

Simple C++ example
Code: [Select]
[code=cpp]
Code: C++
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5.    std::cout << "Hello, world!\n";
  6. }

PHP example highlighting line 6
Code: [Select]
[code=php,6]
Code: PHP
  1. class Person {
  2.    public $firstName;
  3.    public $lastName;
  4.  
  5.    public function __construct($firstName, $lastName = '') { //Optional parameter
  6.        $this->firstName = $firstName;
  7.        $this->lastName = $lastName;
  8.    }
  9.  
  10.    public function greet() {
  11.        return "Hello, my name is " . $this->firstName . " " . $this->lastName . ".";
  12.    }
  13.  
  14.    static public function staticGreet($firstName, $lastName) {
  15.        return "Hello, my name is " . $firstName . " " . $lastName . ".";
  16.    }
  17. }
  18.  
  19. $he = new Person('John', 'Smith');
  20. $she = new Person('Sally', 'Davis');
  21. $other= new Person('Joe');
  22.  
  23. echo $he->greet(); // prints "Hello, my name is John Smith."
  24. echo '<br />';
  25. echo $she->greet(); // prints "Hello, my name is Sally Davis."
  26. echo '<br />';
  27. echo $other->greet(); // prints "Hello, my name is Joe  ."
  28. echo '<br />';
  29. echo Person::staticGreet('Jane', 'Doe'); // prints "Hello, my name is Jane Doe."
  30.  

Java example starting numbering lines from 9 and highlighting lines 2 and 6
Code: [Select]
[code=java.9,2,6]
Code: Java
  1. // OddEven.java
  2. import javax.swing.JOptionPane;
  3.  
  4. public class OddEven {
  5.     // "input" is the number that the user gives to the computer
  6.     private int input; // a whole number("int" means integer)
  7.  
  8.     /*
  9.      * This is the constructor method. It gets called when an object of the OddEven type
  10.      * is being created.
  11.      */
  12.     public OddEven() {
  13.     /*
  14.      * In most Java programs constructors can initialize objects with default values, or create
  15.      * other objects that this object might use to perform its functions. In some Java programs, the
  16.      * constructor may simply be an empty function if nothing needs to be initialized prior to the
  17.      * functioning of the object.  In this program's case, an empty constructor would suffice, even if
  18.      * it is empty. A constructor must exist, however if the user doesn't put one in then the compiler
  19.      * will create an empty one.
  20.      */
  21.     }
  22.  
  23.     // This is the main method. It gets called when this class is run through a Java interpreter.
  24.     public static void main(String[] args) {
  25.         /*
  26.          * This line of code creates a new instance of this class called "number" (also known as an
  27.          * Object) and initializes it by calling the constructor.  The next line of code calls
  28.          * the "showDialog()" method, which brings up a prompt to ask you for a number
  29.          */
  30.         OddEven number = new OddEven();
  31.         number.showDialog();
  32.     }
  33.  
  34.     public void showDialog() {
  35.         /*
  36.          * "try" makes sure nothing goes wrong. If something does,
  37.          * the interpreter skips to "catch" to see what it should do.
  38.          */
  39.         try {
  40.             /*
  41.              * The code below brings up a JOptionPane, which is a dialog box
  42.              * The String returned by the "showInputDialog()" method is converted into
  43.              * an integer, making the program treat it as a number instead of a word.
  44.              * After that, this method calls a second method, calculate() that will
  45.              * display either "Even" or "Odd."
  46.              */
  47.             input = Integer.parseInt(JOptionPane.showInputDialog("Please Enter A Number"));
  48.             calculate();
  49.         } catch (NumberFormatException e) {
  50.             /*
  51.              * Getting in the catch block means that there was a problem with the format of
  52.              * the number. Probably some letters were typed in instead of a number.
  53.              */
  54.             System.err.println("ERROR: Invalid input. Please type in a numerical value.");
  55.         }
  56.     }
  57.  
  58.     /*
  59.      * When this gets called, it sends a message to the interpreter.
  60.      * The interpreter usually shows it on the command prompt (For Windows users)
  61.      * or the terminal (For Linux users).(Assuming it's open)
  62.      */
  63.     private void calculate() {
  64.         if (input % 2 == 0) {
  65.             System.out.println("Even");
  66.         } else {
  67.             System.out.println("Odd");
  68.         }
  69.     }
  70. }
  71.  

14
cb|GeSHi-mod / 1. Customizing cb|GeSHi-mod
« on: June 20, 2011, 01:25:40 PM »
1. Customizing cb|GeSHi-mod

You can customize the appearance of highlighted code for each of your themes by going to Configuration -> Themes and Layout -> Theme Settings and clicking on the theme name. Scroll down and you will see the customizable options.

If you want to customize the active theme just go to Configuration -> Current Theme and scroll down.

List of customizable options

GeSHi Code Container

For reference please see 3.1 The Code Container.


Line numbers

For reference please see 3.2 Line Numbers.


Fancy line numbers

For reference please see 3.2 Line Numbers.


Line style

For reference please see 3.2.2 Styling Line Numbers.


Fancy line style

For reference please see 3.2.2 Styling Line Numbers.


Highlighted lines style

For reference please see 3.15.2 Styles for the Highlighted Lines.


Show header above GeSHi Code Container

If enabled, it will show the header specified in the next option.


Header above GeSHi Code Container

This header is similar to the headers that SMF shows above QUOTE and simple CODE containers when you use those bbc tags in a post. You can do your custom header and there are three keyword available that you can use.

{CODE} is the localized translation of Code for the active language, so if your forum users are using english they will see Code, if they are using spanish they will see Código, and so on...

{TAG} is the bbcode tag for the specified language. If you are highlighting C++ code with the tag code=cpp, it will show CPP

{LANGUAGE} is the full name of the specified programming language. If you are highlighting C++ code with the tag code=cpp, it will show C++


Show header inside GeSHi Code Container

If enabled, it will show the header specified in the next option.


Header inside GeSHi Code Container

You can use these keywords. For reference please see 3.12.2 Setting Header Content.


Show footer inside GeSHi Code Container

If enabled, it will show the footer specified in the next option.


Footer inside GeSHi Code Container

You can use these keywords. For reference please see 3.12.3 Setting Footer Content.


Show language selector

If enabled, there will be an additional select box in the text editor you see when posting a message. Since there are +200 programming languages supported and there are only a few that you will use often you can make a list with a set of predefined language that, when selected, will add the corresponding bbcode to the text area of your post.


Selectable languages

Here you can set the languages that will be available in the language selector. The format to add a new language is code:language_name. Since it would be a tedious task I'm not posting all them here at this moment. You can find a wide list here with their respective code and language name.

So for Visual Basic we'll do vb:Visual Basic and for C++ we'll do cpp:C++ and so on with all the languages you want to be shown in the select box. Separate them by commas and everything will work as expected.

cpp:C++,vb:Visual Basic


15
Testing area / Here we go!
« on: June 20, 2011, 12:36:28 PM »
Simple C++ example

Code: C++
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5.    std::cout << "Hello, world!\n";
  6. }

PHP example highlighting line 6

Code: PHP
  1. class Person {
  2.    public $firstName;
  3.    public $lastName;
  4.  
  5.    public function __construct($firstName, $lastName = '') { //Optional parameter
  6.        $this->firstName = $firstName;
  7.        $this->lastName = $lastName;
  8.    }
  9.  
  10.    public function greet() {
  11.        return "Hello, my name is " . $this->firstName . " " . $this->lastName . ".";
  12.    }
  13.  
  14.    static public function staticGreet($firstName, $lastName) {
  15.        return "Hello, my name is " . $firstName . " " . $lastName . ".";
  16.    }
  17. }
  18.  
  19. $he = new Person('John', 'Smith');
  20. $she = new Person('Sally', 'Davis');
  21. $other= new Person('Joe');
  22.  
  23. echo $he->greet(); // prints "Hello, my name is John Smith."
  24. echo '<br />';
  25. echo $she->greet(); // prints "Hello, my name is Sally Davis."
  26. echo '<br />';
  27. echo $other->greet(); // prints "Hello, my name is Joe  ."
  28. echo '<br />';
  29. echo Person::staticGreet('Jane', 'Doe'); // prints "Hello, my name is Jane Doe."
  30.  

Java example starting numbering lines from 9 and highlighting lines 2 and 6

Code: Java
  1. // OddEven.java
  2. import javax.swing.JOptionPane;
  3.  
  4. public class OddEven {
  5.     // "input" is the number that the user gives to the computer
  6.     private int input; // a whole number("int" means integer)
  7.  
  8.     /*
  9.      * This is the constructor method. It gets called when an object of the OddEven type
  10.      * is being created.
  11.      */
  12.     public OddEven() {
  13.     /*
  14.      * In most Java programs constructors can initialize objects with default values, or create
  15.      * other objects that this object might use to perform its functions. In some Java programs, the
  16.      * constructor may simply be an empty function if nothing needs to be initialized prior to the
  17.      * functioning of the object.  In this program's case, an empty constructor would suffice, even if
  18.      * it is empty. A constructor must exist, however if the user doesn't put one in then the compiler
  19.      * will create an empty one.
  20.      */
  21.     }
  22.  
  23.     // This is the main method. It gets called when this class is run through a Java interpreter.
  24.     public static void main(String[] args) {
  25.         /*
  26.          * This line of code creates a new instance of this class called "number" (also known as an
  27.          * Object) and initializes it by calling the constructor.  The next line of code calls
  28.          * the "showDialog()" method, which brings up a prompt to ask you for a number
  29.          */
  30.         OddEven number = new OddEven();
  31.         number.showDialog();
  32.     }
  33.  
  34.     public void showDialog() {
  35.         /*
  36.          * "try" makes sure nothing goes wrong. If something does,
  37.          * the interpreter skips to "catch" to see what it should do.
  38.          */
  39.         try {
  40.             /*
  41.              * The code below brings up a JOptionPane, which is a dialog box
  42.              * The String returned by the "showInputDialog()" method is converted into
  43.              * an integer, making the program treat it as a number instead of a word.
  44.              * After that, this method calls a second method, calculate() that will
  45.              * display either "Even" or "Odd."
  46.              */
  47.             input = Integer.parseInt(JOptionPane.showInputDialog("Please Enter A Number"));
  48.             calculate();
  49.         } catch (NumberFormatException e) {
  50.             /*
  51.              * Getting in the catch block means that there was a problem with the format of
  52.              * the number. Probably some letters were typed in instead of a number.
  53.              */
  54.             System.err.println("ERROR: Invalid input. Please type in a numerical value.");
  55.         }
  56.     }
  57.  
  58.     /*
  59.      * When this gets called, it sends a message to the interpreter.
  60.      * The interpreter usually shows it on the command prompt (For Windows users)
  61.      * or the terminal (For Linux users).(Assuming it's open)
  62.      */
  63.     private void calculate() {
  64.         if (input % 2 == 0) {
  65.             System.out.println("Even");
  66.         } else {
  67.             System.out.println("Odd");
  68.         }
  69.     }
  70. }
  71.  

Pages: [1] 2 3