News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

[WIP] SimpleNetwork

Started by Marcus Forsberg, January 08, 2011, 01:40:11 PM

Previous topic - Next topic

kat

Just to let you know that I just installed this on my RC5 - DEV 20110207 site.

Hitting "Social Options", in Admin, brought this to the fore:

Fatal error: Call to undefined function snet_admin_settings_social_options() in /home/playing/public_html/Sources/snet/SN-Admin.php on line 185

(No errors on the install)

Just for info. :)

Spoogs


Arantor

Quote from: Labradoodle-360 on February 08, 2011, 04:46:00 PM
A permissions system shouldn't really be that hard though, right? I mean, more tedious and annoying to have to do than anything. I wouldn't think it'd take you too long, at all.

Depends how complex it is. SimpleDesk 1.1's permissions UI and handling took me 9 days straight to do (from getting up in the morning till going to bed, not just the evenings, and it's about 2k lines of code on its own)
Holder of controversial views, all of which my own.


NanoSector

Quote from: K@ on February 08, 2011, 05:00:08 PM
Just to let you know that I just installed this on my RC5 - DEV 20110207 site.

Hitting "Social Options", in Admin, brought this to the fore:

Fatal error: Call to undefined function snet_admin_settings_social_options() in /home/playing/public_html/Sources/snet/SN-Admin.php on line 185

(No errors on the install)

Just for info. :)
That one was solved a few pages back.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Marcus Forsberg

Quote from: Labradoodle-360 on February 08, 2011, 04:46:00 PM
A permissions system shouldn't really be that hard though, right? I mean, more tedious and annoying to have to do than anything. I wouldn't think it'd take you too long, at all.

No, a permission system isn't hard to do. I mean, the system's already there. I just have to implement it into what I have. And honestly, I already have all the permissions set up. What is hard in this case is making privacy and permissions work together properly. I need to let the admin have the power that they expect to have over their own site, but I also want to give the user a sense of privacy and let them control the content they share and who they want to share it with. And I also need to explain this clearly to the admin so that I don't suffocate in an avalanche of posts all asking me why user's that were set up to do that can't do this while users that were set up not to do that  can do this just because a certain user wanted to keep his or her content protected. The more I think about how I should do this, the more advanced it becomes.

Quote from: K@ on February 08, 2011, 05:00:08 PM
Just to let you know that I just installed this on my RC5 - DEV 20110207 site.

Hitting "Social Options", in Admin, brought this to the fore:

Fatal error: Call to undefined function snet_admin_settings_social_options() in /home/playing/public_html/Sources/snet/SN-Admin.php on line 185

(No errors on the install)

Just for info. :)

A few pages back, kingkingston posted an updated package. I'll fix that with AP1.0.3 when that is ready. Thanks :)

Quote from: Arantor on February 08, 2011, 07:01:42 PM
Quote from: Labradoodle-360 on February 08, 2011, 04:46:00 PM
A permissions system shouldn't really be that hard though, right? I mean, more tedious and annoying to have to do than anything. I wouldn't think it'd take you too long, at all.

Depends how complex it is. SimpleDesk 1.1's permissions UI and handling took me 9 days straight to do (from getting up in the morning till going to bed, not just the evenings, and it's about 2k lines of code on its own)

I won't be doing something that advanced yet. Although, if this grows to be the huge mod it likely has the potential of being, I'll probably have to, at some point. Still not that extensive, though.


[SiNaN]

Haven't checked the code myself but seeing the install script quoted somewhere, you seem to be adding your hooks using updateSettings function. You need to use add/remove_integration_function functions not to break other mods. I posted a sample mod in a related topic in Portals, Bridges, and Integrations board and I guess SimplePokes mod uses the same install script you can check too.
Former SMF Core Developer | My Mods | SimplePortal

Marcus Forsberg

I know, I've added that to the SVN a while ago. I was just lazy while doing that install scripts. Only one of the hundred reasons NOT to use this preview... :P

bbooker01

Love it keep up the good work ;)

Alpay

@Nas : Is there a solution to the Turkish characters?

Marcus Forsberg

It's a tricky one, it seems, I don't know exactly why it does it. I'm looking into it and it will be solved once AP1.0.3 is out.

Alpay

Hımm :

Look at : SMF2-0/Subs-PrettyUrls.php

  $text = strtr($text, chr(231).chr(199).chr(254).chr(222).chr(240).chr(208).chr(253).chr(221).chr(246).chr(214).chr(252).chr(220),
            'cCsSgGiIoOuU');

http://www.simplemachines.org/community/index.php?topic=256572.msg1668140#msg1668140
http://www.simplemachines.org/community/index.php?topic=256572.msg1673170#msg1673170
http://www.simplemachines.org/community/index.php?topic=256572.msg1676133#msg1676133
http://www.simplemachines.org/community/index.php?topic=256572.msg1676254#msg1676254 ( Priority )

Solved :
Subs-PrettyUrls.php :
//   Fix Turkish
   else if ($encoding == 'ISO-8859-9')
   {
      $text = str_replace(array("\xD0", "\xDD", "\xDE", "\xF0", "\xFD", "\xFE"), array('g', 'i', 's', 'g', 'i', 's'), $text);
      $text = utf8_encode($text);
   }

Marcus Forsberg

I've managed to solve this using a library posted online. The input is encoded to HTML entities through JS before it's posted to the server, and then PHP decodes the HTML entities once the input is received. I'll be releasing 1.0.2.1 with this fix in a bit. :)

Marcus Forsberg

SimpleNetwork Alpha Preview 1.0.3

http://marcusforsberg.net/files/SimpleNetwork-Alpha_1.0.3.zip

I had planned to finish permissions before releasing AP1.0.3 but I decided it was better to name this release AP1.0.3 than AP1.0.2.1. The next Alpha Preview will probably be AP1.1 instead. Remember, these numbers only refer to the Alpha Previews. Once I consider this to be a Beta, it will be SimpleNetwork Beta 1.0, etc, and finally once finished it will be SimpleNetwork 1.0 (Gold?).


! Fixed a bug that broke Turkish characters
! If trying to post an empty status update the "Post to wall" button would be disabled, making it impossible to re-post.
! Avatars now properly show up on status updates and comments posted via JQuery.
! Add copyright notice through integrate_buffer instead.
! Hooks should be added through add_integration_function(), duh.
! Made sure notes don't add to the total amount of status updates.
- Removed extra debug alert()s
* Changed the default character limits to 160
+ Added a character counter to the status update form.
! Accidentally removed the social options (thanks to kingkingston)

Alpay


Marcus Forsberg


Marcus Forsberg

I set up a project tracker. Once the mod is released, this website will be replaced by a proper support forum if necessary.

http://simplenetwork.marcusforsberg.net/

Feel free to sign up and report any issue you find with the alpha previews. Doing so would help me a lot since it's easier to keep track of a bug tracker than a forum topic like this. :)

grafitus

There is a design issue on site. I have attached screnshot about this.

[offtopic]Where you download Project Tools v0.6? I also need avalible version? :)[/offtopic]

NanoSector

Quote from: grafitus on February 12, 2011, 02:26:15 PM
There is a design issue on site. I have attached screnshot about this.

[offtopic]Where you download Project Tools v0.6? I also need avalible version? :)[/offtopic]
http://www.smfproject.net/ - It's in the copyright notice.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Marcus Forsberg

Niko has given access to SVN builds to some people, me included. 0.6 hasn't been released publicly yet.

kingkingston


Advertisement: