Topic: Code Repository [rewritten]

Since I was not happy at all with Symfony2 and the way it over-complicates stuff I've got to work and rewritten the whole Repository (like... lets say 90% of it's code). We're now on Codeigniter + HMVC. If you're starting a site I highly recommend using those two.

Here's what happened thanks to the rewrite:

  • A ton of changes in design:

  • Added more status messages when using the repo

  • Fixed navigation bar

  • Added breadcrumbs all over the site for easy navigation

  • Added descriptions of the main pages

  • Easy to see Download buttons

  • Correct stats in Lists

  • Make the repo look like the rest of the site as much as possible

  • ---------------------------------------

  • Added a portal-like Index page

  • Added XML listings for Indicators and Addons (now let's have some patience and wait for Popov to make use of those in FSB/FST) wink

  • Urls are looking similar in the different parts of the repo for less confusion with structure

  • Loads like 10xfaster compared to old version

  • Rating works on all sections

  • Rating is now easier to understand

  • Comments work on all sections

  • Fixed XML values bug when listing for FSB

  • Avatars of comments appear correctly now, no broken image links

  • You can one-click copy strategies to clipboard and Ctrl+v to FSB

  • You can upload new version of a strategy, without deleting the repository record. Just make sure it has the same title in the XML

  • You can also update C# files (addons and indicators) without deleting their page

  • You can even more easily add comments

  • You can sort strategies/addons/indicators by their most important stats

  • You can NOT upload a strategy/indicator/addon with the same name as another file from that type. That is done to avoid confusion. Strategies use strategy name from the xml conents. Addons and indicators use name from the Name field you are entering manually in the repository.

  • Repository has been included in the main site menu and moved from http://repo.forexsb.com/ to http://forexsb.com/repository/ (if you pasted a link somewhere, don't worry. I've put a redirect from repo.forexsb.com to every page on the new address and your "old" link will continue to work flawlessly!

  • Popov has uploaded a bunch of indicators from the forum to the repository with reference to their respected authors along with links to the forum threads. (Thanks!)

Feel free to come up with ideas and comments on the repository. We will consider those for sure when we get to brainstorm for upgrades.
smile

Re: Code Repository [rewritten]

I'm very happy with the new repo.
Excellent job !!!!


What I want to see more is better integration with the website and the software.
- RSS feed for content and comments
- Notification on new comment by email or forum PM
- One click install of indicators from FSB Pro
- One click upload of a strategy from FSB Pro
- Review of the strategy indicators on the strategy detailed page. Same as in the Overview in FSB.
- Search ??
- formatting buttons on the comment box and description box. It can be in BBCode.
- Image upload ?? Integration of postimage.org
- Version control smile
- Statistics
- Hot water ...
- Button for ordering of Grapefruit fresh

smile)

I think the repo is fully functional now. We'll see if there is a user interest to it. Lets say if there are 100 uploaders, we'll proceed with this list..


Please post your strategies and indicators there. We love to hear your feedback.

Thank you and have a nice weekend!

Re: Code Repository [rewritten]

A small issue found, but can break the whole repo.

When there is a short comment with a link, the excerpt of the comment on the index page is broken. This is because the script cuts first n symbols  of the html code and breaks the tags.

Here there is a tiny html2text php script that may help.

Re: Code Repository [rewritten]

Popov wrote:

A small issue found, but can break the whole repo.

When there is a short comment with a link, the excerpt of the comment on the index page is broken. This is because the script cuts first n symbols  of the html code and breaks the tags.

Here there is a tiny html2text php script that may help.

http://php.net/manual/en/function.strip-tags.php

Re: Code Repository [rewritten]

Another issue:

when I uploaded a new version of an indicator, I received the following errors:


http://s23.postimg.org/q77mfpylj/screenshot_6.jpg

Despite the errors, the indicator was successfully updated smile

Re: Code Repository [rewritten]

Tested on localhost as well as on live repository. Could not reproduce bug. All looks fine.

Popov wrote:

Another issue:

when I uploaded a new version of an indicator, I received the following errors:


http://s23.postimg.org/q77mfpylj/screenshot_6.jpg

Despite the errors, the indicator was successfully updated smile

Re: Code Repository [rewritten]

Tested on localhost as well as on live repository. Could not reproduce bug. All looks fine.

Hmm, It continues giving these errors when I reupload a file. You should come to my office to check the problem. (With a pizza and Аyran)

Re: Code Repository [rewritten]

Fixed

http://s21.postimg.org/hgbhjrj5f/screenshot_8.jpg

Should I see html tags?

...
Sorry, I deleted your post incidentally sad

Re: Code Repository [rewritten]

Fixed

Popov wrote:

Fixed

http://s21.postimg.org/hgbhjrj5f/screenshot_8.jpg

Should I see html tags?

...
Sorry, I deleted your post incidentally sad

Re: Code Repository [rewritten]

Thank you!

Re: Code Repository [rewritten]

Yesterday I and Yavor carried out 6 hours brainstorming session. We translated 154 lines of intricate C# code to PHP smile.
As a result Repository shows the strategy slots in a way very similar to what we see in the programs.

Multi-strategies-same-pair-1

Re: Code Repository [rewritten]

Indicators and Addons Download button will now give you the original filename instead of Title.cs

Re: Code Repository [rewritten]

The code review doesn't work right, a lot is missing. Screenshots show what I mean.


http://s4.postimg.org/iw0rxtlc9/repo.jpg


http://s21.postimg.org/6i4myspmr/image.jpg

Re: Code Repository [rewritten]

are you 100% this is the same file?

Re: Code Repository [rewritten]

There is some other problem. The recently added indicators cannot be downloaded from FSB Pro.
I'll debug the program to see where is the reason.

Re: Code Repository [rewritten]

The recently added indicators cannot be downloaded from FSB Pro.

Actually FSB Pro loads indicators successfully. After downloading it checks if the indicator is in the indicators list. For these indicators FSB Pro shows error because the indicator name set in the repo is different than the name set in the cs file. It not a problem. I'll remove that check from the program.