* * *

Author Topic: About forum suggestions  (Read 13526 times)

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2484
About forum suggestions
« on: April 02, 2012, 03:42:19 pm »
The forum is not developed by the lazarus team itself, but by SMF (with some visual modifications by me)
Any new functionality has to be implemented by SMF. 

If there exists a SMS mod or a config option that I missed, please let me know
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

nsunny

  • Full Member
  • ***
  • Posts: 105
  • Code is magic
    • LazPlanet
Re: About forum suggestions
« Reply #1 on: April 19, 2013, 02:24:01 pm »
Hi Marc,
Fred Vs has posted a suggestion that you may want to consider:


......
At forum profile, there is : Signature:

I propose that Signature: is asked in the page of inscription (not only in option).

With a note like :
Signatures are displayed at the bottom of each post or personal message. Please enter here :
- Your CPU :
- Your OS :
- Your FPC version (if installed) :
- Your Lazarus version (if installed) :


So, people do not forget to add those infos.

By the way, i invite each member to add those infos (if not already done).  ;)

I found a solution (by searching) which can help to implement the feature.

The summary is:
Quote
Unfortunately, I am not that experienced in SMF. I have worked with phpBB before. But a quick search reveals that it is possible:
https://www.google.com.bd/search?q=smf+custom+fields+profile
- http://wiki.simplemachines.org/smf/Features_and_Options#Adding.2FModifying_Custom_Fields
- http://docs.simplemachines.org/index.php?topic=1084.0
(The post is here)
« Last Edit: April 19, 2013, 02:26:12 pm by nsunny »
Lazarus TTS Tutorial | LazPlanet
Lazarus 1.6 | FPC 3.0 | Win10/Ubuntu

shobits1

  • Sr. Member
  • ****
  • Posts: 278
  • .
Re: About forum suggestions
« Reply #2 on: September 29, 2015, 12:14:56 am »
don't know if this is the right thread (sorry if I'm wrong).
I was exploring the forum and one thing kept frustrating me is the Code tag; and thought if there is a way to implement a highlighter for the code would be nice and easier to read.

suggestion: take a look at https://github.com/syntaxhighlighter/syntaxhighlighter
which used by https://theroadtodelphi.wordpress.com/

taazz

  • Hero Member
  • *****
  • Posts: 4348
Re: About forum suggestions
« Reply #3 on: September 29, 2015, 01:25:05 am »
this forums are based on simple machine engine and it needs a module for that engine. I have no experience with javascript or php so I can't really help on how to convert the javascript client you linked to a SMF module but there is a module already http://custom.simplemachines.org/mods/index.php?mod=3070 but I have no idea how well it works with this installation or if its even stable enough to be used so I choose to believe on the maintainer's to do what is needed for now. 
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 648
Re: About forum suggestions
« Reply #4 on: September 29, 2015, 02:14:32 am »
hello,
taazz  this module (cb|GeSHi-mod 1.2) seems to be compatible with the version of the SMF version of this forum (SMF 2.0.11 | SMF © 2015, Simple Machines)
Quote
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.

this module has syntax highlighting for pascal and delphi. 

Friendly J.P

[EDIT] Sorry HeavyUser English is not my natural language and sometimes i have some difficulties to be clear  [i have changed the to this] %)
« Last Edit: September 29, 2015, 02:34:27 am by Jurassic Pork »

HeavyUser

  • Full Member
  • ***
  • Posts: 118
Re: About forum suggestions
« Reply #5 on: September 29, 2015, 02:16:41 am »
hello,
taazz  the module cb|GeSHi-mod 1.2 seems to be compatible with the version of the SMF version of this forum (SMF 2.0.11 | SMF © 2015, Simple Machines)
click the link provided.

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 648
Re: About forum suggestions
« Reply #6 on: September 29, 2015, 06:36:16 am »
l have tried the module on my SMF 2.0.11  Test Forum. See the result in the attachment  :)


taazz

  • Hero Member
  • *****
  • Posts: 4348
Re: About forum suggestions
« Reply #7 on: September 29, 2015, 06:59:17 am »
oh wow thank you for testing it JP, it looks nice. There are a couple of  small irritations as far as I can see
1) the select short cut is missing which makes the process of code selection a bit of a pain
2) the alternate line color should go this is not a grid each line is not Independent from the the others
3) the line numbers although nice to have on my editor in a place easily ignored those are in your face kind of numbers which I'd rather hide them or change the color to something less visible.

Any way I'm guessing everything is configurable (and if it is please remove the red color from everywhere especially the strings on the highlighter). I really like what I see so far, thank you again for your efforts.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 648
Re: About forum suggestions
« Reply #8 on: September 29, 2015, 10:44:11 pm »
hello,
who is admin, maintainer of this forum  at this time ?
« Last Edit: September 29, 2015, 10:59:54 pm by Jurassic Pork »

shobits1

  • Sr. Member
  • ****
  • Posts: 278
  • .
Re: About forum suggestions
« Reply #9 on: October 01, 2015, 04:32:02 am »
so no response from admin  :( ...

ok, for those who wants to add highlight ability to code (display only, not when editing) I have created workaround using greasemonky on firefox.

what you need:
on firefox:
1.install greasemonkey addon https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/?src=ss
2.install the usescript `HighlightMe.user.js`(attached) by drag and drop on open firefox.
3.enabled greasmonkey and the script.

on google chrome
1.install Tampermonkey https://chrome.google.com/webstore/detail/dhdgffkkebhmkfjojejmpbldmpobfkfo
2.open `HighlightMe.user.js` with any editor then copy its content.
3.on chrome click the tampermonky icon then Add a new script after that paste the copied script.
4.click setting tab and change `Run at : document-start` and `Run only in top frame : Yes`
5.Save.

EDIT: edited the HighlighterMe.user.js ; to work with changes to the last forum code highlighter.
I'll still use it since the forum code highlighter doesn't work with old posts.

EDIT2: corrected some errors on the script.
« Last Edit: October 01, 2015, 11:28:18 pm by shobits1 »

mercury

  • Full Member
  • ***
  • Posts: 151
Re: About forum suggestions
« Reply #10 on: October 01, 2015, 05:25:18 am »
I hope I can change the theme in profile settings.

There are many here http://custom.simplemachines.org/themes/
« Last Edit: October 01, 2015, 05:28:58 am by mercury »

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2484
Re: About forum suggestions
« Reply #11 on: October 01, 2015, 12:39:31 pm »
Code: Pascal  [Select]
  1. program Highlight;
  2. begin
  3.   WriteLN('This should work now');
  4. end.
  5.  
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 648
Re: About forum suggestions
« Reply #12 on: October 01, 2015, 02:59:35 pm »
hello,
Code: Pascal  [Select]
  1. program thankyou;
  2.  
  3. begin
  4. //  no comment
  5.   WriteLN('Thanks Marc !');
  6.  
  7. end.

shobits1

  • Sr. Member
  • ****
  • Posts: 278
  • .
Re: About forum suggestions
« Reply #13 on: October 01, 2015, 08:22:37 pm »
Test
Code: Pascal  [Select]
  1. function CompareInt(const d1,d2): integer;
  2. var
  3.   i1 : integer absolute d1;
  4.   i2 : integer absolute d2;
  5. begin
  6.   if i1=i2 then Result:=0
  7.   else if i1<i2 then Result:=-1
  8.   else Result:=1;
  9. end;
  10.  
  11. procedure SortArrayInteger(var arr: array of Integer; count: Integer);
  12. begin
  13.   AnySort(arr, Count, sizeof(Integer), @CompareInt);
  14. end;

Code: [Select]
    function CompareInt(const d1,d2): integer;

    var

      i1 : integer absolute d1;

      i2 : integer absolute d2;

    begin

      if i1=i2 then Result:=0

      else if i1<i2 then Result:=-1

      else Result:=1;

    end;

     

    procedure SortArrayInteger(var arr: array of Integer; count: Integer);

    begin

      AnySort(arr, Count, sizeof(Integer), @CompareInt);

    end;

it doesn't work unless you specify 'pascal' in code combo-box; so old posts in forum wont be highlighted; also new posts when user don't specify code dialect (mostly will be posts from newbie and quick posts).

suggestion: admin, make it default to pascal even when code dialect is not selected.
« Last Edit: October 01, 2015, 08:42:26 pm by shobits1 »

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5741
Re: About forum suggestions
« Reply #14 on: October 01, 2015, 09:09:20 pm »
it doesn't work unless you specify 'pascal' in code combo-box;

Does it respect and adapt to {$mode }  ?   O:-)

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus