Simple Portal

Customization => Blocks and Modifications => Topic started by: [SiNaN] on November 30, 2009, 11:51:06 AM

Title: Custom Portal Mod
Post by: [SiNaN] on November 30, 2009, 11:51:06 AM
This mod allows everyone using your portal (members and guests) to organize their blocks as they want with the nifty drag and drop effect, without any page loads. It uses db for users and a long long lasting cookie for guests. I'm sure most of you know about iGoogle, so this is iSimplePortal.

I just wanted to show that although I named this thing SimplePortal, it can actually be bloated easily. And such complex-in-theory features can be implemented with such few edits to few files when it has a solid base.

The mod works with both SMF 1.1 and 2.0 versions of SP 2.3.6.

You can download the mod here:

http://simpleportal.net/index.php?action=downloads;area=stable_customizations;file=145
Title: Re: Custom Portal Mod
Post by: Eliana Tamerin on November 30, 2009, 12:00:38 PM
Good concept. Nice to know this can be done without much effort. Although it'd be especially nice to turn this into an admin interface as well.

The only think I'd request is a profile option to lock the portal config, so that those satisfied with their current layouts can prevent a stray mouseclick from changing them.

EDIT: Apparently the AJAX connections are constant, always open. CCB informed me of this. I've noticed the changes take a few seconds to take effect, not sure if these two are related.
Title: Re: Custom Portal Mod
Post by: [SiNaN] on November 30, 2009, 12:07:08 PM
If I had another 20 minutes, I could implement that to block management page as well. ;)

Would you move this to the appropriate board?

I'm open to name suggestions for the mod by the way.
Title: Re: Custom Portal Mod
Post by: ccbtimewiz on November 30, 2009, 12:34:30 PM
It doesn't like large sites with over 6000-something members online at the same time.

Any change you could make it a bit lighter, so it doesn't retain a constant connection to the database with queries prepared?
Title: Re: Custom Portal Mod
Post by: [SiNaN] on November 30, 2009, 01:46:53 PM
I guess we can get rid of the AJAX request and handle it all with pure JavaScript. I'll post an update when I get some time.
Title: Re: Custom Portal Mod
Post by: Mithotyn on November 30, 2009, 04:13:17 PM
Magic touches : )
Title: Re: Custom Portal Mod
Post by: simply sibyl on November 30, 2009, 06:33:56 PM
Hi SiNaN,

I downloaded and installed this on my test forum.  It worked fine with no issues  (its very cool)
But -  after updating Java on my computer I find its not liking Java Runtime Environment 1.6.0.17 at all with IE 7.0   (Ive not tested yet with 8.0 - and its fine with Firefox and Opera)     Using 7.0 if you click on any board, topic, post, you'll immediately get a popup from IE stating "Internet Explorer cannot open the Internet Site"   then "Operation Aborted" and you have no choice but to get booted off the page.    It happens to me now on your site and didnt before the Java update.    Even though it may well be some IE7.0 fluke its just something I thought you should know.
Title: Re: Custom Portal Mod
Post by: [SiNaN] on December 01, 2009, 01:56:11 PM
I have updated the package to get rid of the AJAX call and use regular JavaScript instead. It should be a lot faster now, as fast as regular SMF collapse feature.

But -  after updating Java on my computer I find its not liking Java Runtime Environment 1.6.0.17 at all with IE 7.0   (Ive not tested yet with 8.0 - and its fine with Firefox and Opera)     Using 7.0 if you click on any board, topic, post, you'll immediately get a popup from IE stating "Internet Explorer cannot open the Internet Site"   then "Operation Aborted" and you have no choice but to get booted off the page.    It happens to me now on your site and didnt before the Java update.    Even though it may well be some IE7.0 fluke its just something I thought you should know.

There is a similar SMF bug. It might be related to that, rather than this:

http://dev.simplemachines.org/mantis/view.php?id=3304

Try uninstalling this package and see if the issue is still there. If yes, than it certainly has something to do with this package.
Title: Re: Custom Portal Mod
Post by: Eliana Tamerin on December 01, 2009, 03:35:54 PM
It seems much faster.

What about blocks without titles? Would it be possible to make (just on those blocks) the entire block click-and-dragable for moving purposes?

Name suggestion: iCustom mod for SimplePortal? Sounds too long, but it's a place to start.
Title: Re: Custom Portal Mod
Post by: simply sibyl on December 01, 2009, 05:15:00 PM
I have updated the package to get rid of the AJAX call and use regular JavaScript instead. It should be a lot faster now, as fast as regular SMF collapse feature.

But -  after updating Java on my computer I find its not liking Java Runtime Environment 1.6.0.17 at all with IE 7.0   (Ive not tested yet with 8.0 - and its fine with Firefox and Opera)     Using 7.0 if you click on any board, topic, post, you'll immediately get a popup from IE stating "Internet Explorer cannot open the Internet Site"   then "Operation Aborted" and you have no choice but to get booted off the page.    It happens to me now on your site and didnt before the Java update.    Even though it may well be some IE7.0 fluke its just something I thought you should know.

There is a similar SMF bug. It might be related to that, rather than this:

http://dev.simplemachines.org/mantis/view.php?id=3304

Try uninstalling this package and see if the issue is still there. If yes, than it certainly has something to do with this package.

I'll check into that.     I uninstalled it..  the issue immediately went away.
Are you using the new pkg on your site?  It still does it to me there.
Title: Re: Custom Portal Mod
Post by: Sordell Media on December 01, 2009, 08:52:57 PM
Looks great, cant wait to implement it and stop my members bickering about how the portal should be arranged lol

This should be a standard option with simple portal IMO :P
Title: Re: Custom Portal Mod
Post by: Blokey on December 02, 2009, 05:34:23 PM
Caused me a problem today with IE7 would not let me view any page in my forum and kept telling me it couldnt open the page
Title: Re: Custom Portal Mod
Post by: [SiNaN] on December 03, 2009, 08:51:27 AM
What about blocks without titles? Would it be possible to make (just on those blocks) the entire block click-and-dragable for moving purposes?

You just don't move them. :P

I don't really want to add another tag just for that, but not sure.

I'll check into that.     I uninstalled it..  the issue immediately went away.
Are you using the new pkg on your site?  It still does it to me there.

Caused me a problem today with IE7 would not let me view any page in my forum and kept telling me it couldnt open the page

I have updated the package which fixes this issue.
Title: Re: Custom Portal Mod
Post by: Blokey on December 03, 2009, 01:56:20 PM
Fantastic

I will go and play with it now
thanks
Title: Re: Custom Portal Mod
Post by: simply sibyl on December 03, 2009, 07:22:06 PM
That fixed it..   this mods really cool!  thanks!
Title: Re: Custom Portal Mod
Post by: Farjo on December 10, 2009, 11:46:21 AM
Hi, I am getting the same problem as Blokey using IE7, however I have installed the latest version (the link from the original post) and it is still causing the error:

Internet Explorer cannot open the Internet site hxxp://domain.tld/index.php/topic,107.0.html.
Operation aborted

Indeed I note that I first downloaded this file on 5th Dec, so I always had the latest version.

I am certain it is this mod as when I uninstall it the problem goes away, then when I install it again it is back.

I hope that this problem can be fixed as it is really very cool and solved the "can't this / that block go over here / there" squabbling and am gutted I'll have to leave it uninstalled :(
Title: Re: Custom Portal Mod
Post by: royalduke on January 01, 2010, 11:34:27 AM
Can some one make this work with Simple Portal 2.3 and SMF 2.0 RC 1. I really need something like this.


Thank You!
Title: Re: Custom Portal Mod
Post by: Eliana Tamerin on January 01, 2010, 11:37:55 AM
Can some one make this work with Simple Portal 2.3 and SMF 2.0 RC 1. I really need something like this.


Thank You!

No, rather we're going to recommend that you upgrade. There are several security vulnerabilities in RC1 that have been fixed in RC2 (remember, there were two patch versions, RC1-1 and RC1.2 between them), and there have been several bugs fixed from SP 2.3 to 2.3.1.

If you don't wish to upgrade, that's your choice, but no mod is going to be made backwards compatible for RC1 at this point. Sorry.
Title: Re: Custom Portal Mod
Post by: royalduke on January 01, 2010, 12:03:36 PM
Can some one make this work with Simple Portal 2.3 and SMF 2.0 RC 1. I really need something like this.


Thank You!

No, rather we're going to recommend that you upgrade. There are several security vulnerabilities in RC1 that have been fixed in RC2 (remember, there were two patch versions, RC1-1 and RC1.2 between them), and there have been several bugs fixed from SP 2.3 to 2.3.1.

If you don't wish to upgrade, that's your choice, but no mod is going to be made backwards compatible for RC1 at this point. Sorry.

Not even for me <3 :P upgrading is not an option. We can't convert database to RC 2.

My forum: xadro.net
Title: Re: Custom Portal Mod
Post by: Eliana Tamerin on January 01, 2010, 05:31:41 PM
If you're having problems upgrading, I'd advise you to request support over at simplemachines.org.
Title: Re: Custom Portal Mod
Post by: royalduke on January 01, 2010, 07:47:38 PM
If you're having problems upgrading, I'd advise you to request support over at simplemachines.org.

I did and according to them it's un-doable.
 :| :| :|
Title: Re: Custom Portal Mod
Post by: ccbtimewiz on January 01, 2010, 08:42:38 PM
If you're having problems upgrading, I'd advise you to request support over at simplemachines.org.

I did and according to them it's un-doable.
 :| :| :|

I'm sure it's possible. As an alternative, you can have the crew over at SMF Services (http://smfservices.org/index.php) update your forum for a reasonable price, as well as upgrade your mods and other things.

/shameless plug :P
Title: Re: Custom Portal Mod
Post by: royalduke on January 02, 2010, 07:22:38 PM
The thing is, I with someone else, pay for the forum and spend time on it. Even with 2,300+ users and hundreds of thousands of page views, I am not making money. I tried to get people donating an they did, recently I'm trying the subscription method. I have no Ads on the forum.

As you can see, I really don't want to spend more money on the forum...
Title: Re: Custom Portal Mod
Post by: gcflats on January 07, 2010, 04:07:18 PM
iPortal, it's very cool.
Title: Re: Custom Portal Mod
Post by: [SiNaN] on January 08, 2010, 10:54:14 AM
If you're having problems upgrading, I'd advise you to request support over at simplemachines.org.

I did and according to them it's un-doable.
 :| :| :|

If the topic you have started was the one here (http://www.simplemachines.org/community/index.php?topic=352731.msg2395035#msg2395035), the response you got wasn't correct. I have replied to the topic.
Title: Re: Custom Portal Mod
Post by: royalduke on January 10, 2010, 02:58:37 PM
I have a question, will it kill the mods? I have over 20 modification installed in that forum.
Title: Re: Custom Portal Mod
Post by: [SiNaN] on January 11, 2010, 05:34:16 AM
Yes, there is no way you can keep them with Large Upgrade Package. You will need to install them again.
Title: Re: Custom Portal Mod
Post by: N-Joy on January 20, 2010, 12:49:30 PM
How can I let It work on the overview theme?
I installed it succesfully.
Title: Re: Custom Portal Mod
Post by: [SiNaN] on January 20, 2010, 01:21:39 PM
You need to apply the edit to the index.template.php manually.
Title: Re: Custom Portal Mod
Post by: N-Joy on January 20, 2010, 03:34:22 PM
You need to apply the edit to the index.template.php manually.
there are no edits to index.template.php? ;(
Title: Re: Custom Portal Mod
Post by: [SiNaN] on January 20, 2010, 03:38:05 PM
Hmmm, I'm pretty sure I added an edit to index.template.php to fix the issues with Internet Explorer. I probably didn't update the post. I'll update it as soon as possible. So be sure you check this topic in a few days.
Title: Re: Custom Portal Mod
Post by: N-Joy on January 23, 2010, 01:41:38 PM
Okay
Title: Re: Custom Portal Mod
Post by: N-Joy on January 30, 2010, 01:54:31 PM
Hello?
Title: Re: Custom Portal Mod
Post by: ccbtimewiz on January 30, 2010, 01:55:25 PM
Hi?
Title: Re: Custom Portal Mod
Post by: MultiformeIngegno on February 05, 2010, 06:16:37 PM
Thank you for this awesome mod!! It's beautiful!!

I've noticed a small issue... sometimes (I think mostly the first time I visit the portal, then it fixes refreshing), my blocks appear "near"! They're one on the other, this is the screenshot (sorry for italian language..):

(http://img211.imageshack.us/img211/6066/near.png)

When I refresh the page the problem is fixed, and this is when they're shown properly:

(http://img38.imageshack.us/img38/6021/farh.png)

P.S.:
Is there a way to have in admin settings a "reset all choices" button? It would be useful!! ;)

P.P.S.: Is there a way to reduce the size of interface.js? It's almost 80kb!!!
Title: Re: Custom Portal Mod
Post by: MultiformeIngegno on February 09, 2010, 04:46:06 PM
No one..?
Title: Re: Custom Portal Mod
Post by: c23_Mike on March 18, 2010, 05:35:59 PM
Hi there !

Just wonderful! Sinan, if you wouldn´t be a man I would kiss you!! I love this mod, it is wonderful!! Implement it as feature in SP!
Title: Re: Custom Portal Mod
Post by: xSteelRat on April 02, 2010, 11:10:29 AM
This does not work on my forum (SMF Version: 2 RC3 SP Version: 2.3.1)
This mod supports SMF 2 RC3?
Title: Re: Custom Portal Mod
Post by: [SiNaN] on April 02, 2010, 03:50:37 PM
I don't remember testing it on RC3. I have updated it for both SMF versions and SP 2.3.2 though. I'll release it with SP 2.3.2 version.

Oh, btw; Araragi-kun! He's cool. ;)
Title: Re: Custom Portal Mod
Post by: MultiformeIngegno on April 02, 2010, 04:06:08 PM
@sinan: a chance to have it directly implemented in sp with an option to enable it..?
Title: Re: Custom Portal Mod
Post by: [SiNaN] on April 02, 2010, 04:11:59 PM
I doubt that would happen. It's better to keep it as a mod. Since it only edits SimplePortal files, I doubt it will be an issue.
Title: Re: Custom Portal Mod
Post by: MultiformeIngegno on April 02, 2010, 04:56:12 PM
Ok.. and a prevision for the release of 2.3.2..? :P
Title: Re: Custom Portal Mod
Post by: c23_Mike on April 02, 2010, 06:30:39 PM
Hi there !

I think since there are no more issues open at the bug tracker for 2.3.2 there are only some ending tests ... few days? Next week? Easter present?
Title: Re: Custom Portal Mod
Post by: MultiformeIngegno on April 03, 2010, 02:56:40 AM
Our question has been replied..!! xD
Title: Re: Custom Portal Mod
Post by: Nothingness on April 03, 2010, 03:31:40 AM
Our question has been replied..!! xD
It's implemented?
Title: Re: Custom Portal Mod
Post by: MultiformeIngegno on April 03, 2010, 03:34:24 AM
No, no ( :( ), I was referring to my previous post about the release date for 2.3.2! :D
Title: Re: Custom Portal Mod
Post by: Nothingness on April 03, 2010, 03:37:56 AM
I was hoping for this drag-in-drop feature to be update or at least in 2.3.2. :P
Title: Re: Custom Portal Mod
Post by: MultiformeIngegno on April 03, 2010, 04:43:25 AM
me too!
Title: Re: Custom Portal Mod
Post by: Nathaniel on April 03, 2010, 06:28:40 AM
There is an update, hopefully Sinan will post it here later. Until the, be patient. :P
Title: Re: Custom Portal Mod
Post by: MultiformeIngegno on April 03, 2010, 08:10:05 AM
Thanks! :)
Is there a chance to reduce the size of the javascript loaded (~75kb)..?
Title: Re: Custom Portal Mod
Post by: Nathaniel on April 03, 2010, 08:25:43 AM
Thanks! :)
Is there a chance to reduce the size of the javascript loaded (~75kb)..?

Not really, its implemented using Jquery and a js library for it (which have been compressed by removing all whitespace).

If you have time to implement the required features using less space then go for it. :P
Title: Re: Custom Portal Mod
Post by: [SiNaN] on April 03, 2010, 12:03:36 PM
I have added it to the Downloads > Customizations area:

http://simpleportal.net/index.php?action=downloads;area=cat3;file=77
Title: Re: Custom Portal Mod
Post by: Nothingness on April 03, 2010, 03:00:41 PM
I was not able to get it to work.
Title: Re: Custom Portal Mod
Post by: Nathaniel on April 03, 2010, 06:56:58 PM
I was not able to get it to work.

Any more specific issues/feedback than that?
Title: Re: Custom Portal Mod
Post by: Nothingness on April 03, 2010, 10:19:01 PM
I was not able to get it to work.

Any more specific issues/feedback than that?
Sorry, the problem was it does not drag, is there a setting I am missing?
Title: Re: Custom Portal Mod
Post by: jimbouk1977 on April 16, 2010, 05:04:07 PM
Good concept. Nice to know this can be done without much effort. Although it'd be especially nice to turn this into an admin interface as well.

The only think I'd request is a profile option to lock the portal config, so that those satisfied with their current layouts can prevent a stray mouseclick from changing them.

EDIT: Apparently the AJAX connections are constant, always open. CCB informed me of this. I've noticed the changes take a few seconds to take effect, not sure if these two are related.

I agree be nice if it was admin only or at least have an option for admin only  ;D  would make it a lot easier although it's not that hard to click them arrows  ;) But for the lazy peoples like myself great but wouldn't want my members / guest moving the site around  :o

(if you have addressed this sorry I didn't read all the thread )
Title: Re: Custom Portal Mod
Post by: kcmartz on April 16, 2010, 07:38:25 PM
Nice! I don't expect to get 6000 members anytime soon tho...
Title: Re: Custom Portal Mod
Post by: johncccccc on April 21, 2010, 05:00:52 PM
I got some failed tests, really weird, since SP files are never modified ???

    ./Sources/Subs-Portal.php fail (1 edit)
    ./Themes/default/Portal.template.php fail (2 edits)
Title: Re: Custom Portal Mod
Post by: [SiNaN] on April 22, 2010, 06:13:53 AM
Sorry, the problem was it does not drag, is there a setting I am missing?

The WOW stuff you have installed doesn't seem to be compatible with this mod. They both use JQuery.

I got some failed tests, really weird, since SP files are never modified ???

    ./Sources/Subs-Portal.php fail (1 edit)
    ./Themes/default/Portal.template.php fail (2 edits)

Are you using 2.3.2 version?
Title: Re: Custom Portal Mod
Post by: johncccccc on April 22, 2010, 09:17:40 AM
Sorry, the problem was it does not drag, is there a setting I am missing?

The WOW stuff you have installed doesn't seem to be compatible with this mod. They both use JQuery.

I got some failed tests, really weird, since SP files are never modified ???

    ./Sources/Subs-Portal.php fail (1 edit)
    ./Themes/default/Portal.template.php fail (2 edits)

Are you using 2.3.2 version?

Nope lol, going to update later with that edit you sent me on smf site, to make it more "non curve" friendly.
Using 2.3.1 for now.
Title: Re: Custom Portal Mod
Post by: Nothingness on April 22, 2010, 11:04:39 AM
Sorry, the problem was it does not drag, is there a setting I am missing?

The WOW stuff you have installed doesn't seem to be compatible with this mod. They both use JQuery.
What stuff? Anyway it's working now as should be...
Title: Re: Custom Portal Mod
Post by: Afro on April 30, 2010, 07:45:03 AM
This is very cool.
Title: Re: Custom Portal Mod
Post by: Nothingness on May 02, 2010, 06:58:22 AM
I am not sure if this had been mention before but if you tick "No Title:" you cannot drag blocks.
Is there a work around?
Title: Re: Custom Portal Mod
Post by: Deezel on May 20, 2010, 09:22:19 AM
Giving me errors when i try to install

Title: Re: Custom Portal Mod
Post by: Afro on May 20, 2010, 09:25:54 AM
Your screenshot attachment is too small. no one can view that
Title: Re: Custom Portal Mod
Post by: Deezel on May 20, 2010, 11:19:05 PM
Thanks bud...i was having issues with my db...so i updated everything and it works like a charm now.
Title: Re: Custom Portal Mod
Post by: Manuel on June 10, 2010, 03:25:51 PM
Cool concept. Does it save the users layout in a cookie or config file so Its the same whenever they come back? Just installing it now. :thumbsup:
Title: Re: Custom Portal Mod
Post by: grafitus on June 10, 2010, 04:06:27 PM
It uses db for users and a long long lasting cookie for guests.
Title: Re: Custom Portal Mod
Post by: AngelinaBelle on June 14, 2010, 08:17:07 AM
if you tick "No Title:" you cannot drag blocks.
Is there a work around?

Yes, this has been brought up:
http://simpleportal.net/index.php?topic=3990.msg25292#msg25292 (http://simpleportal.net/index.php?topic=3990.msg25292#msg25292)
 
The mod does not have a workaround.
Title: Re: Custom Portal Mod
Post by: Farjo on September 08, 2010, 03:13:20 PM
Hi, I am getting the same problem as Blokey using IE7, however I have installed the latest version (the link from the original post) and it is still causing the error:

Internet Explorer cannot open the Internet site hxxp://domain.tld/index.php/topic,107.0.html.
Operation aborted

Indeed I note that I first downloaded this file on 5th Dec, so I always had the latest version.

I am certain it is this mod as when I uninstall it the problem goes away, then when I install it again it is back.

I hope that this problem can be fixed as it is really very cool and solved the "can't this / that block go over here / there" squabbling and am gutted I'll have to leave it uninstalled :(
Hi, just to confirm that the latest version has solved this problem and I am using the mod on my installs :)
Title: Re: Custom Portal Mod
Post by: Ahmad Rasyid Ismail on September 19, 2010, 11:04:07 AM
I am trying to use this but nothing seems working. Do I have to enable this anywhere after installation cause I couldn't find it anywhere, so far.
Title: Re: Custom Portal Mod
Post by: Osiristi on November 26, 2010, 03:42:37 PM
Hi! Thanks for this great mod! It works very well on my curve-based theme, although there is one problem. Whenever a user moves ALL blocks away from the middle (=top/bottom) section, they can't put blocks back there. The dash line just wont appear. And if the same is done to either of the sidebars, the whole sidebar disappears, as well as the open/close buttons (the little plus and minus). Is there a fix for this? Even a reset button (to reset one's own block modifications) would do. Thanks!

EDIT: One solution would be to add one no title block to every column but that's not very practical.
Title: Re: Custom Portal Mod
Post by: phantomm on January 31, 2011, 03:49:15 PM
When i move block and refresh site i don't have any blocks.
Checked on Opera 11.01, FF 3.6.13 and Chrome 8.0.552.237
Title: Re: Custom Portal Mod
Post by: inf2211 on March 14, 2011, 01:36:03 PM
is this working with smf 2 RC5, SP 2.3.3.?
Title: Re: Custom Portal Mod
Post by: skotinos on May 25, 2011, 07:01:39 PM
When i move block and refresh site i don't have any blocks.
Checked on Opera 11.01, FF 3.6.13 and Chrome 8.0.552.237

same to me :'( :'( :'( :'( :'( :'(
Title: Re: Custom Portal Mod
Post by: Neekiinh0 on June 05, 2011, 02:08:15 PM
Install the mod correctly and place the folder js script but does not the mod, or do not know where to activate and configure

Sorry but my language is Spanish


THEME: DEFAULT
VERSION PORTAL: 2.3.3
Title: Re: Custom Portal Mod
Post by: MArdok on August 02, 2011, 05:50:33 PM
to [SiNaN]
You're still working on add-on? Forum Version 2.0 for a long time, and Portal 2.3.3. I tried to install the add-on version, which you have in the first message. But when I move the blocks, they disappear after a page refresh. Completed yet begun to end, please. Or tell me where to look for errors.

///from google translator
Title: Re: Custom Portal Mod
Post by: Shadow Queen on August 22, 2011, 07:24:59 PM
The site aint there.
Title: Re: Custom Portal Mod
Post by: AngelinaBelle on August 23, 2011, 07:51:13 AM
Yes.  That is an old post, and that demo is not there at the moment.
Still, you can download the mod and give it a try.
Title: Re: Custom Portal Mod
Post by: Shadow Queen on August 23, 2011, 09:37:20 PM
Sure will,

Umm, This is going to kindly neat to try this out.
Title: Re: Custom Portal Mod
Post by: infostrides on September 21, 2011, 12:34:29 AM
This is really nice and cool mod. I will give it a try!
Title: Re: Custom Portal Mod
Post by: c23_Mike on November 26, 2011, 05:15:39 PM
Hi there!

@Sinan: Can you make this wonderful mod ready for SP 2.3.4?
Title: Re: Custom Portal Mod
Post by: c23_Mike on December 01, 2011, 04:08:45 PM
Hi there!

*bump* I really would like to use this any longer, since it is genius and I think it would be easy to adopt.
Title: Re: Custom Portal Mod
Post by: iulyz on December 19, 2011, 01:45:30 PM
You have attached fixed version
Title: Re: Custom Portal Mod
Post by: Slack on December 19, 2011, 06:38:48 PM
Cool mod and the above version works with 2.3.4 -- be aware however if you have set, in Block Settings, "Hide Blocks in forum Areas" and have the Admin section checked, the blocks will disappear when you go to admin and will not come back when you return to the forum.   :0
Title: Re: Custom Portal Mod
Post by: c23_Mike on December 20, 2011, 03:54:10 PM
Hi there!

Tnx a lot!! Now its a dream! Perfect version!
Title: Re: Custom Portal Mod
Post by: hcfwesker on March 01, 2012, 04:02:30 PM
Hello, I, om s,f 2.0.2 and using the latest portal release.

I added this custom portal mod onto simple portal.  Problem is, i clicked some stuff around, and for some reason i'm only seeing the recent posts , nothing else on the portal.  I've tried uninstalling reinstalling everything.  Where in the db can i remove my settings for this so its back to default?

Thank you

PS, is it necessary to have the captcha on?  its annoying with the line through the letters.
Title: Re: Custom Portal Mod
Post by: andy on March 02, 2012, 06:49:05 AM
Made a database backup before trying new stuff? If you have a backup then import it back  into the server database for smf using phpmyadmin in cpanel.

Or
...usually cpanel on the server will restore a backup from yesterday, for example.

If you didnt backup or dont have access to the database and then changed many settings, there is no way back except manually going through settings again.

Last resort is deleting all the simple portal database fields using phpmyadmin and starting over  with simple portal= drastic action.

Im guessing this is a problem with permissions settings. There is still a bug in SP 2.3.4 I think ... it resets all group permissions to 'disallow' if you use preview - blocks and pages. That would make a lot of stuff disappear perhaps.
I dont know what you did so hard to say whats best for you. Try checking the custom permissions for the blocks again - see if they are set to 'allow' for your groups (and admin), or if the general permission setting is for 'everyone'.
Avoid using preview for blocks and pages until new release.

If I have trouble I cant fix, I start by restoring a database backup.
Still no luck, I reinstalling smf with a large upgrade package and then use the reset_settings.php files (smf site) if Im using custom themes etc.
Try installing simple portal before any other mods.

If still not right then you have to keep trying to change the settings manually or uninstall simple portal and try risking deleting the database tables for SP and starting over from the begining installing the portal - all data lost for pages and blocks... not the best way.


Title: Re: Custom Portal Mod
Post by: hcfwesker on March 02, 2012, 04:03:37 PM
Yeah, when I uninstalled, I selected the "Renove all data associated with this MOD" , and tried it again.

Also, one thing I found out is, when you move a block to the middle, it's almost impossible to get it back on the left/right side blocks.  and if you accidentally grab a block and scroll off screen and un-click, the block is gone forever lol.

Had to remove this MOD just so i could see my stuff.

The first post says this makes changes to the db per user, I'd like to know which table this makes those changes in per user.
Title: Re: Custom Portal Mod
Post by: andy on March 03, 2012, 09:43:11 AM
I havent used it so dont know anything about the mod really.  Dont know if it alters the user fields (I guess it does) or uses its own new ones.

Sinan can tell you.

I hope at least your site is back to normal...    :)

Title: Re: Custom Portal Mod
Post by: hcfwesker on March 03, 2012, 12:05:21 PM
yeah, it is, and only affected me, but uninstalling the MOD put it back to normal.  but i'd still love this feature, members loved it while they got to test it.
Title: Re: Custom Portal Mod
Post by: andy on April 01, 2012, 06:27:33 AM
Let us know if this is a closed/solved topic... you can also mark it solved.
Andy

OOPS... didnt see the top - thought this was a support topic  :-[
Title: Re: Custom Portal Mod
Post by: N-Joy on October 02, 2012, 04:24:49 PM
Any news on this one? Any update for the latest version / fix for the disappearing blocks?
Title: Re: Custom Portal Mod
Post by: velorooms on October 02, 2012, 06:21:27 PM
Not working with 2.3.4 for me. Failing on install, coming up with four parse errors. Did a manual parse to see the lines and the problem lines are as follows

edit: solved, think it was me being retarded
Title: Re: Custom Portal Mod
Post by: N-Joy on October 03, 2012, 12:55:42 PM
Don't try, it doesn't seem to work on 2.3.4. All blocks are gone when I activate customportal. :(
Title: Re: Custom Portal Mod
Post by: velorooms on October 08, 2012, 11:53:18 AM
Phew got this working on 2.3.4 eventually, dont know why it was playing up.

Hello, I, om s,f 2.0.2 and using the latest portal release.

I added this custom portal mod onto simple portal.  Problem is, i clicked some stuff around, and for some reason i'm only seeing the recent posts , nothing else on the portal.  I've tried uninstalling reinstalling everything.  Where in the db can i remove my settings for this so its back to default?

Thank you

PS, is it necessary to have the captcha on?  its annoying with the line through the letters.

Ive found the database line. This took serious hunting, searched through all the code and struggled.. eventually found it.

the table you are looking for is the themes table (this will be preceded in phpmyadmin by your forum prefix)

the variable will be shown as sp_block_layout

removing that line for the member number will revert their block arrangement to default.

tested this by zapping all my blocks and then removing that line. Worked fine.

Please however dont go into PhpMyAdmin unless you really know what you are doing.

ok. scrub this.. as soon as you visit the forum and go back to portal, the blocks have vanished again...

edit 2: just cleared that line again, then went back, went to portal, went to forum, admin, and back to portal, and everyting is still there.

 3: nope, as soon as you make a change on the portal, visit the forum or any other page, go back to portal, your blocks are gone. its fine at setting the line in the database that has your block layout, but it doesnt seem able to retrieve from the database your existing block layout. Been playing with this for a couple of hours, all I can say is it does not work on 2.3.4 with smf 2.0.2
[/color]
Title: Re: Custom Portal Mod
Post by: velorooms on October 08, 2012, 12:22:53 PM
oh, cookie for guests doesnt work at all, guests cant move the blocks around whatsoever
Title: Re: Custom Portal Mod
Post by: N-Joy on October 16, 2012, 06:49:35 PM
Does anyone have an idea what the cause of the problem could be? It would really help if I had a clue where to look for a possible fix.  :nervous-happy:
Title: Re: Custom Portal Mod
Post by: velorooms on October 17, 2012, 03:16:56 PM
the problem appears to be, it doesnt seem to be able to fetch the current layout from the database.

+ When you move the layout arount it saves the details to the database fine. There are two issues.

+ It saves a new database line everytime you make any changes creating multiple lines which isnt idea

+ It doesnt seem to be able to get the layout information from the database hence why they all appear to vanish.

This thread really needs moving out of working blocks and into development.
Title: Re: Custom Portal Mod
Post by: velorooms on October 17, 2012, 03:56:14 PM
|To further expand on the above

+ It IS saving the information to the database for the theme in use

+ it IS then extracting the data for the theme in use

(i have multiple themes and its only losing the blocks in the themes i move blocks around in)

+ it ISNT then able to take the database information and arrange the blocks somewhere

I have the feeling it is a really tiny tiny little bug.

the database line in question is

member no
theme no
sp_block_layout

and then data 48,136,62,143,141,35,52|150,135,152,142,140||137,107,145

now trying to work out what those numbers mean.. im guessing column 1, column 2 column 3..  think the double | between two and three is an issue..

my header blocks are 15,116,43
left blocks 48,136,62,143,141,35,52 so thats the first section
top blocks 150,135,152,142,140 so thats the middle section
right blocks 137,107,145 etc so thats the right section.

so header blocks  cant be moved, neither can bottom blocks. you can only move left top and right blocks.
i have tried manually editing the database to trim the || down to a single | but that made no odds.. in fact ive tried doing all sorts with that line.. so its going wrong where it tries to apply the DB info

Title: Re: Custom Portal Mod
Post by: froome19 on November 01, 2012, 04:08:51 PM
 A couple of tips..

You can also merely revert the layout of the blocks by enabling "Display blocks on forum" then by moving a block on the forum, and then going back to the portal.. the blocks will magically appear..

Also you can move the blocks with everything working fine.. if you delete either the layout function in the Subs-Portalphp. under "Load headers if necessary" or the subsequent code using the layout function  , the one hitch with this being that the blocks dont keep in place and revert to their original layout afterwards
Title: Re: Custom Portal Mod
Post by: froome19 on November 01, 2012, 04:25:12 PM
Also I do not believe it is a problem with the database as the same thing occurs when a guest tries to move the panels and that does not involve the database but rather cookies..


Title: Re: Custom Portal Mod
Post by: N-Joy on November 13, 2012, 03:05:11 PM
Did anyone manage to fix this in meantime?
Title: Re: Custom Portal Mod
Post by: froome19 on November 14, 2012, 10:16:22 AM
Do not believe so..
Does anyone have the old version of the mod available?
Title: Re: Custom Portal Mod
Post by: FireDitto on November 15, 2012, 01:52:10 AM
SMF 2.0.2
SP 2.3.5

I'm getting a heap of errors;

Quote
*    1.    Execute Modification    ./Sources/Subs-Portal.php    Test failed
      1.    Replace    ./Sources/Subs-Portal.php    Test failed
      2.    Replace    ./Sources/Subs-Portal.php    Test successful
*    2.    Execute Modification    ./Themes/default/Portal.template.php    Test failed
      1.    Replace    ./Themes/default/Portal.template.php    Test successful
      2.    Replace    ./Themes/default/Portal.template.php    Test successful
      3.    Replace    ./Themes/default/Portal.template.php    Test successful
      4.    Replace    ./Themes/default/Portal.template.php    Test failed
      5.    Replace    ./Themes/default/Portal.template.php    Test successful
      6.    Replace    ./Themes/default/Portal.template.php    Test successful
      7.    Replace    ./Themes/default/Portal.template.php    Test failed
      8.    Replace    ./Themes/default/Portal.template.php    Test failed
      9.    Replace    ./Themes/default/Portal.template.php    Test successful
      10.    Replace    ./Themes/default/Portal.template.php    Test failed
      11.    Replace    ./Themes/default/Portal.template.php    Test failed
*    3.    Execute Modification    ./Themes/default/css/portal.css    Test successful
   4.    Extract File    ./Themes/default/scripts/jquery.js    
   5.    Extract File    ./Themes/default/scripts/interface.js    
   6.    Extract File    ./Themes/default/scripts/customportal.js


I would love to install this, though. I think my members would find it fantastic.
Title: Re: Custom Portal Mod
Post by: velorooms on November 15, 2012, 10:13:35 AM
SMF 2.0.2
SP 2.3.5

I'm getting a heap of errors;



I would love to install this, though. I think my members would find it fantastic.

Ok.. first up. When you get a bunch of errors like that the only option is to use the package parser, find out what changes it makes and manually code the package.

However

AS IT STANDS THIS MOD DOES NOT WORK WITH SP 2.3.4 AND SMF 2.0.2

Despite the best efforts of Froome and Myself we have not been able to get it working.

What does work:
It is possible to move the blocks around
It does save the block structure information to the database

What doesnt work:
it doesnt seem able to pull the block layout from the database and as a result either
a) You lose all the blocks when you go back to the portal page
b) by adjusting the code you can move the blocks and not have them dissapear but at the same time it doesnt remember your layout.

at the moment this mod needs developing/fixing. Neither Froome or myself have managed to fix it, and the original author seems to have given up on it, although Sinan still seems to be around the forum. Will drop him/her a pm and see if we can get anywhere.
Title: Re: Custom Portal Mod
Post by: froome19 on November 15, 2012, 11:46:34 AM
Indeed it seems like it may in fact be something got to do with the layout of how the blocks are moved, but I do not know enough about Php in order to identify and then fix the problem.

Indeed FireDitto, certainly for 2.3.5 the mod will not function as it was last updated for it to be compatible with 2.3.4 therefore you may just have to wait and see whether Sinan decides to upgrade it when he has the time to be compatible with 2.3.5

From what I have seen it is interesting that members have their blocks erased, whilst guests merely have their blocks reverted back to their original positions. This is obviously I assume as the guests cookie used to work the block is obviously not working at all, but the members are pulling something from the database just that something is evidently faulty. Also moving any blocks will recall other blocks. For example by minimizing one set of blocks you can keep those blocks when you move around the panels and then when you move those blocks the original blocks you moved suddenly become visible. Yet it is obviously a long way from anything as nothing is pulling the block positions subsequent to you moving them.

Also Sinan I believe could easily fix this mod, but unfortunately he seems at the moment  not to be available to really work on this mod..
Title: Re: Custom Portal Mod
Post by: froome19 on November 15, 2012, 03:09:03 PM
The underlying fact is that there seems to be some error in how the cookie/database is saving the information and therefore the information is not being accessed properly and is creating the current error.
Title: Re: Custom Portal Mod
Post by: froome19 on November 18, 2012, 06:07:24 PM
Experimenting with cookies and what is most interesting is that it seems to save the structure including the moves to the cookies... but for example if you removed one block from the list on the cookie it will appear as it is not being messed up by the mod ruining everything when it pulls the data..

What is interesting is that it still saves the info to the cookies and database if you delete the layout function but the whole problem does not occur, merely they do not get removed..
Title: Re: Custom Portal Mod
Post by: demlak on December 25, 2012, 01:34:10 PM
the idea of this mod is great!
please fix it to work with newest versions of smf and SP =)
Title: Re: Custom Portal Mod
Post by: velorooms on December 28, 2012, 04:27:58 PM
i think this mod is dead. pm'd sinan ages ago and heard nothing. :(
Title: Re: Custom Portal Mod
Post by: demlak on January 06, 2013, 03:44:04 AM
what a pity  D:
Title: Re: Custom Portal Mod
Post by: froome19 on April 29, 2013, 05:52:42 PM
bump
Title: Re: Custom Portal Mod
Post by: Old Fossil on April 29, 2013, 07:43:11 PM
bump

Why the bump?

Can you explain the problem you are having please.
Title: Re: Custom Portal Mod
Post by: demlak on April 29, 2013, 07:59:26 PM
as you can read in this thread since severel month.. it´s not working with recent versions of smf and sp..
Title: Re: Custom Portal Mod
Post by: Old Fossil on April 29, 2013, 08:07:52 PM
Quote
Can you explain the problem you are having please.

What do you mean by not working?
Title: Re: Custom Portal Mod
Post by: demlak on April 29, 2013, 08:11:59 PM
im sorry.. but.. should i repost the last page of this thread? i dont understand your question.. because problems are discussed in this thread..
for example: http://simpleportal.net/index.php?topic=3990.msg60850#msg60850
Title: Re: Custom Portal Mod
Post by: Old Fossil on April 29, 2013, 08:14:48 PM
If it is just a case of moving blocks where you want them to show then that can be done with 2.3.5
Title: Re: Custom Portal Mod
Post by: demlak on April 29, 2013, 08:16:23 PM
for each user individually?
Title: Re: Custom Portal Mod
Post by: Old Fossil on April 29, 2013, 08:19:18 PM
Ah sadly no.

Thought ya meant from the admin side of things.

 :-[
Title: Re: Custom Portal Mod
Post by: demlak on April 29, 2013, 08:21:21 PM
nope.. this is a mod for adding features that are not default..

moving blocks from user-side.. for each user individually.. and "with the nifty drag and drop effect".. like discribed at the first post..
Title: Re: Custom Portal Mod
Post by: [SiNaN] on May 01, 2013, 05:23:02 AM
Yeah, I guess I need to update this. However, I'm not sure if I can get it to work with the addition of header and footer blocks. I'll try it though.
Title: Re: Custom Portal Mod
Post by: Uhehesh on November 06, 2014, 02:42:30 PM
Hello. Could you _really_ update this please? My users want this so much.

P.S. Your captcha is horrible. :D
Title: Re: Custom Portal Mod
Post by: The Asian on February 09, 2016, 04:50:27 AM
Sorry for the ancient bump, was looking if there was a fix to this plugin.
Title: Re: Custom Portal Mod
Post by: [SiNaN] on June 20, 2016, 05:26:53 PM
Finally got around to updating this mod. It should now work properly on both SMF 1.1 and 2.0 versions of SP 2.3.6 and it now users jQuery UI.

You can download the updated package from here:

http://simpleportal.net/index.php?action=downloads;area=stable_customizations;file=145