YesNoOk

Recent Posts

    
Re: User tagging
 May 24, 2013, 14:19:32 View in topic context
#16
avatar  Posted by Suki  in User tagging (Started by Nightwish October 28, 2011, 23:43:11
 Board: Showcase

yeah, most likely a spam user :(

Anyways, for my neeeds I end up using a really nice plugin for notifications: https://github.com/ichord/At.js

The script fetches a list of possible eligible users whenever the textarea is focused using jquery focus() (of course the list is cached) the query returns a json list of users, the noty then inserts the data using a predefined format @(username, ID)  that can be easily converted to a link when parsing. Thats how I solved the space on names issue, of course having a lit of possible users whenever you type @ sure is a nice plus to have :)
    
Re: User tagging
 May 24, 2013, 13:41:33 View in topic context
#17
avatar  Posted by CamKrist  in User tagging (Started by Nightwish October 28, 2011, 23:43:11
 Board: Showcase

I decided to give a hand and sent a post into social bookmarks. I hope the popularity will rise in.
    
Re: got some install problems
 May 18, 2013, 12:05:16 View in topic context
#18
avatar  Posted by Suki  in got some install problems  (Started by samozin April 20, 2013, 10:03:03
 Board: Testing Board

Cool, I noticed the 404 pages too, anyway I'm glad this isn't dead :)
1 Thank You 
    
Re: got some install problems
 May 18, 2013, 01:15:56 View in topic context
#19
 Posted by Nightwish  in got some install problems  (Started by samozin April 20, 2013, 10:03:03
 Board: Testing Board

yay  you're back :)  I noticed you were gone from github and for a moment I regret that I never really got a chance to play with EoS  but I'm glad you're back :D
Huh, gone from Github?

Well, no, not really. I wasn't really active for the past few weeks/months (busy with lots of other things), but not really gone. Maybe a Github screwup, noticed some weird things recently, like getting 404 errors when clicking on (valid) commit links.

Project isn't dead, just slow progress at the moment :)
    
Re: got some install problems
 May 18, 2013, 00:20:27 View in topic context
#20
avatar  Posted by Suki  in got some install problems  (Started by samozin April 20, 2013, 10:03:03
 Board: Testing Board

yay  you're back :)  I noticed you were gone from github and for a moment I regret that I never really got a chance to play with EoS  but I'm glad you're back :D
    
Re: got some install problems
 May 08, 2013, 20:12:23 View in topic context
#21
 Posted by Nightwish  in got some install problems  (Started by samozin April 20, 2013, 10:03:03
 Board: Testing Board

sorry i couldnt do it manually iam haveno  idea about such sql codes :(
i just liked the its features i wanted to my site based on something like that modified smf fork
i got some own codes to make frontpage dynamic slideshow for the boads i want
looks like my codes wont work with this fork ?
Addons written for SMF will not work with EoS - there are way too many differences and incompatibilities. However, data structures and core functionality are similar, so in theory, it should be possible to port SMF addons to EoS if you know enough PHP.
Quote
can i take some features from this fork to my ordinary smf script ?
Well, since it is open source, you can of course use the code (or just parts of it) for your own project(s).
    
Re: got some install problems
 May 08, 2013, 13:22:29 View in topic context
#22
avatar  Posted by samozin  in got some install problems  (Started by samozin April 20, 2013, 10:03:03
 Board: Testing Board

sorry i couldnt do it manually iam haveno  idea about such sql codes :(
i just liked the its features i wanted to my site based on something like that modified smf fork
i got some own codes to make frontpage dynamic slideshow for the boads i want
looks like my codes wont work with this fork ?
i dont know
can i take some features from this fork to my ordinary smf script ?
    
Re: got some install problems
 April 20, 2013, 11:47:36 View in topic context
#23
 Posted by Nightwish  in got some install problems  (Started by samozin April 20, 2013, 10:03:03
 Board: Testing Board

AT the display.template it give me this problem while viewing the topics
Table 'sitename_try.samo_topicbans' doesn't exist
File: /home/sitename/public_html/EosAlpha-master/Sources/Display.php
Line: 259
Basically, this software isn't ready for installation / usage yet (but thanks for trying it :) ).

The install script has not been updated for a while and basically it's still the original SMF 2.0 installer (+ a few changes). It probably contains a lot of other issues, not only with the db scheme, but also with new or obsolete settings among other things that are differently handled in EoS.

The only thing you could do is to manually create/modify the missing tables. Table structure is documented in table-changes.sql (differences to a standard SMF 2.0 table scheme) and install_2-0_mysql.sql (full table scheme).

The topicbans table is required at this time since the topicban feature can not (yet) be optional.
    
got some install problems
 April 20, 2013, 10:03:03 View in topic context
#24
avatar  Posted by samozin  in got some install problems  (Started by samozin April 20, 2013, 10:03:03
 Board: Testing Board

hello guys i got some problems while i was installing
here they R
1-
Your settings have now been saved and the database has been populated with all the data required to get your forum up and running. Summary of population:

Created 75 tables.
Inserted 779 rows.
Some of the queries were not executed properly. This could be caused by an unsupported (development or old) version of your database software.

Technical information about the queries:
Line #1966: Column count doesn't match value count at row 29
Line #2217: Incorrect table definition; there can be only one auto column and it must be defined as a key
Click "Continue" to progress to the admin account creation page.

====================================================
2-
sitename.com/EosAlpha-master/install.php?step=5
Hacking attempt...

===================================================
3-
AT the display.template it give me this problem while viewing the topics
Table 'sitename_try.samo_topicbans' doesn't exist
File: /home/sitename/public_html/EosAlpha-master/Sources/Display.php
Line: 259

Note: It appears that your database may require an upgrade. Your forum's files are currently at version EosAlpha 1.0pre, while your database is at version 1.0pre. The above error might possibly go away if you execute the latest version of upgrade.php.
    
Re: Database changes
 March 22, 2013, 16:52:08 View in topic context
#25
 Posted by Nightwish  in Database changes (Started by Nightwish July 27, 2012, 01:05:13
 Board: Change logs

Columns likes_received and likes_given are removed from the member table.
Code: (mysql)
ALTER TABLE {$db_prefix}members DROP likes_given;
ALTER TABLE {$db_prefix}members DROP likes_received;

They have been replaced with ratings_given and ratings_received respectively. Both are TEXT columns and their purpose is to record more details rating stats for each member.

The column ratings_given records all ratings the member has given to other member's posts. Likewise, ratings_received records stats for all ratings a member has received.

Code: (mysql)
ALTER TABLE {$db_prefix}members ADD ratings_given text NOT NULL default '';
ALTER TABLE {$db_prefix}members ADD ratings_received text NOT NULL default '';


      Posted: April 20, 2013, 14:37:43
Commit: 5af5274549272b72ef1e15bc6e1f720a0475b72c
Code: (mysql)
ALTER TABLE {db_prefix}prefixes ADD css VARCHAR(20) NOT NULL default '';
This field holds the css class(es) used to format the prefix. It allows to apply backgrounds (or even images) to topic prefixes in the message index display.

The CSS classes can be defined in the override CSS for any given theme.
    
Testing - show avatars in quotes
 March 19, 2013, 23:28:49 View in topic context
#26
 Posted by Nightwish  in Testing - show avatars in quotes (Started by Nightwish March 19, 2013, 23:28:49
 Board: Showcase

Quotes now show the avatar of the original post's author if the member id of the author is given in the [quote] tag. The avatar can be clicked to show the member card for the user. If the user doesn't have an avatar, nothing will be shown and quotes will appear as normal (text-only).
^^ quote (including avatar)

The BBCode syntax for the QUOTE tag has changed a bit but remains compatible with the old syntax.
Code: (plain)
[quote author=Name link=topiclink date=timestamp uid=X]
or
[quote author=Name uid=X]

The uid parameter contains the member's ID and is an optional parameter. Only if present, the avatar will be added to the quote. Quoting a post in the editor will automatically insert the uid parameter.

Note to myself (todo): There should be an option to disable this forum-wide. A per-user profile option would be difficult and inefficient because the output of the BBC parser is usually cached to improve performance in busy threads. A per-user option to show these avatar would therefore require multiple cached copies of the same post.
1 Like It  | 1 Thank You 
    
Re: Database changes
 February 24, 2013, 15:26:15 View in topic context
#27
 Posted by Nightwish  in Database changes (Started by Nightwish July 27, 2012, 01:05:13
 Board: Change logs

https://github.com/silvercircle/SMF/commit/79dad0a832024a19e3cc01c7cc11f5144e40fe2b

Code: (mysql)
ALTER TABLE {$db_prefix}membergroups ADD rating_pool int(10) unsigned NOT NULL default '0';

Add rating points pool to member groups. A rating may or may not cost a given number of points and the pool specifies the number of points a member can spend on rating posts within a given period of time (usually, one day).

Rating costs are totally optional - ratings can have their costs set to 0 in which case they can be used without any limitations, but costs may be useful to avoid "rating abuse" in any form.

If a user is member in multiple member groups, the highest pool value of these groups is the effective one.

Ratings which cost more points than the member currently can spend, cannot be used.

NOTE: This is WIP, not everything works (yet).
    
Re: To twig or not to twig
 February 24, 2013, 06:21:14 View in topic context
#28
 Posted by Nightwish  in To twig or not to twig (Started by Nightwish June 22, 2012, 23:05:24
 Board: EosAlpha Bulletin Board System - development

I don't know if forum templates can be light enough for a template system to really works without issues
Well, it can. Look at XenForo :) It pretty much uses MVC design patterns for everything and its templates are lightweight. If you want this in SMF, you basically have only one option: Rewrite the entire software from scratch - probably a task that would result in enough work to keep a couple of good fulltime developers busy for a year or more :) It's not something I plan to do though.
Quote
I agree with re-usage, I always wondered why SMF have separate templates for private messages and normal messages since they are the same, I also wondered why the user info in messages was printed with every message, that is static data that is been fetched and displayed multiple times, you can have a separate template for that and just call the template one time and print it as many tmes as you want/need.
Most likely performance reasons and limitations by technology. About 10 years ago, PHP was a very different thing and lacked a lot of today's features. Since SMF's templates are pure hand-written PHP code, they come with practically zero overhead. Template engines like Twig or smarty are also compiling their code into pure PHP, but the resulting code is less efficient. The performance impact is acceptable with today's hardware resources, but 10 years ago things were different.

Having the full power of PHP available in your templates is a tempting thing and results in templates doing lots of things that should better be done by the backend code (something that happens quite often in SMF). It's not so much a question of using MVC - just a very simple thing of separating the display process from the program logic. You can do this without ever spending a single thought on MVC or any other design approach, such patterns will only help you to make things easier and more organized but they are not a requirement for a strict separation of logic and presentation. In fact, SMF's way of populating the huge $context[] array and then using templates to output what's inside $context is a very simple (and efficient) method of separation. In SMF, it's just not enforced strictly enough.

    
Re: To twig or not to twig
 February 24, 2013, 01:35:40 View in topic context
#29
avatar  Posted by Suki  in To twig or not to twig (Started by Nightwish June 22, 2012, 23:05:24
 Board: EosAlpha Bulletin Board System - development

Well, in my case I also discovered that twig doesn't play nice with code that doesn't follow proper MVC patterns :P   my blog pages had too much code that should be in a controller but I was lazy and I only wanted to try out silex so I didn't care that much about that.

I don't know if forum templates can be light enough for a template system to really works without issues, a forum by definition holds lots and lots of data, as much as you cleverly show stuff or try to keep as less logic as possible, there will still be lots of data to display and lots of logic that just can't be moved out of the view, unless you have control of absolutely everything which somehow reduces the possibility of what can be done with the software itself (extensibility, scalability, plugins, themes, all that stuff.)

I agree with re-usage, I always wondered why SMF have separate templates for private messages and normal messages since they are the same, I also wondered why the user info in messages was printed with every message, that is static data that is been fetched and displayed multiple times, you can have a separate template for that and just call the template one time and print it as many tmes as you want/need.
1 Like It 
    
Re: To twig or not to twig
 February 23, 2013, 14:48:32 View in topic context
#30
 Posted by Nightwish  in To twig or not to twig (Started by Nightwish June 22, 2012, 23:05:24
 Board: EosAlpha Bulletin Board System - development

oh! I wish I had read this before :P I also take a look at twig and had the same results, I jut checked it against an experimental blog code, using a framework contributed to the slow times as well.
Twig is actually pretty cool, it's just not well-suited (and probably not designed) for the heavy duty usage in a forum, especially SMF where templates are heavy, with lots of if/else and loop constructs.

The reason why I have chosen to use a template engine is because it's easier to write and debug templates. With smarty, it's just HTML code (with some special tags embedded) instead of endless echo() constructs which are sometimes hard to read. Also, smarty is easily extendable with custom functions and tags and the modular concept of blocks makes it easy to assemble larger pages made of many smaller sub-templates.

For example, there are template bits for topic rows which are re-used in many places - the same template block that displays a topic row in messageindex is also being used in search results, unread topics and elsewhere. Chainable template hooks (important for addons) are also easy to implement and the goal is to have a plugin system that do not require any changes to existing templates.