Author Prefs for Br...
 
Notifications
Clear all

Author Prefs for Bridged SMF users

7 Posts
3 Users
0 Reactions
1,866 Views
(@olandir)
Posts: 44
Eminent Member
Topic starter
 

URL to your eFiction: http://www.mendala.com/mentantrealm/stories
Test Account: testuser - password: fakeuser
Version of eFiction: 3.2.1
Have you bridged eFiction, if so with what?: Yes - SMF
Have you searched for your problem: Yes. .
If so, what terms did you try: smf bridged preferences/prefs

When an SMF user goes to my efiction section, there are no author prefs for them, so they end up with the wrong skin and absolutely no preferences (like whether or not to use tinymice etc) until they go to actually setup their prefs.

The main problem I have right now is that these users have no skin set... so they don't see anything properly. I only have one skin for my site and it is set as the defaul (guests see this skin when someone goes and they are not logged in) but for some reason, users with no author prefs seem to have no skin whatsoever.

I would like some help to correct this: I want to be able to do one of two things

1) If a user does not have a row in the authorprefs table, then when they go to any efiction page they are automatically redirected to the "Edit Preferences" page so that they are forced to save changes before continuing

OR

2) be able to set "default" settings (most importantly set the skin) for users with no author preferences so that they will at least be able to navigate the efiction part of my site. Without at least setting the default skin to my site's only skin, they can't see the efiction menu. So if I can at least set that for them that would be helpful.

Update:
I have figured out a pretty easy way to set the default skin for everyone (since I have only one skin for the entire site) I just set $_SESSION[$sitekey."_skin"] at the very top of the get_session_vars file. That at least solves the problem temporarily... I would still like some help with the first option if anyone knows how to do that.


A. W. G. Coleman
Visit the World of Mendala
Home of the Fantasy/Adventure Series "Quest of the Seal Bearers"
Fanfiction, fanart, contests, prizes!

 
Posted : 10/04/2007 3:12 pm
(@kylieh)
Posts: 24
Eminent Member
 

Hi, You mentioned in your update that you fixed the problem by setting the get_session_vars file to a default skin, would you be able to tell me how you did this, i put a post in for help about the same problem but no one has bee able to help.

I also only use the one skin, and after i bridged SMF and efiction I ran into the same problem 'once a user logs in and goes back to the efiction site it loses the skin altogether.

If you or anyone could help that would be great. Please Please.

Thanks!!


 
Posted : 28/05/2007 8:16 am
(@darklight)
Posts: 170
Estimable Member
 

I'd like to use your fix too. Would you mind posting it here? I had to go into the database to add skin settings for a number of my new members.


 
Posted : 28/05/2007 12:10 pm
(@olandir)
Posts: 44
Eminent Member
Topic starter
 

Well I haven't gone back to actually take a look at setting the database settings automatically when a user signs up. This is because the skin settings were the most important (you literarly can't navigate the site without the skin). So once I figured out how to set the skin settings, I basically just put a note telling people to set their preferences before trying to use the efiction archive. (I"m actually working on a way to incroporate those preferences into SMF so that they can be set through the SMF control panel.)

Anyway, setting the skin to be the same for everyone is really easy. But what it does is force a skin setting no matter what. EVERYBODY will have this skin setting. This works perfectly for me because my skin is integrated with my whole site, so I only want people to see the one skin. It won't work if you like for people to be able to choose thier skin.

At the very top of get_session_vars.php, right underneath this code.

if(!defined("_CHARSET")) exit( );

you add this code

$_SESSION[$sitekey."_skin"] = "YourSkin";

where "YourSkin" is of course the name of your skin.

I hope this helps. When I get to the point where you can set the eFiction variables through SMF or something along those lines, I will defintiely let you know. But I've been so busy with just making my site grow that I stopped looking at customization for the time being.


A. W. G. Coleman
Visit the World of Mendala
Home of the Fantasy/Adventure Series "Quest of the Seal Bearers"
Fanfiction, fanart, contests, prizes!

 
Posted : 28/05/2007 1:53 pm
(@darklight)
Posts: 170
Estimable Member
 

Thanks olandir! It seems to be working just as you said it would. If you come up with anything else on this or with your SMF mod, please let us know. And thank you again. You have no idea how much easier you just made things for me!


 
Posted : 28/05/2007 5:17 pm
(@olandir)
Posts: 44
Eminent Member
Topic starter
 

you may want to see this post where I talk about my site. There are some other things I've done.

https://efiction.org/forums/index.php?topic=5081.0

Might be some helpful info... might not. But another guy was asking me some questions and I'm answering them there.


A. W. G. Coleman
Visit the World of Mendala
Home of the Fantasy/Adventure Series "Quest of the Seal Bearers"
Fanfiction, fanart, contests, prizes!

 
Posted : 28/05/2007 6:38 pm
(@kylieh)
Posts: 24
Eminent Member
 

Thank you Olandir, I put in the code like you said then signed up a new user and it worked perfectly. It had been driving me crazy trying to fix it, thank you, thank you!


 
Posted : 28/05/2007 7:31 pm
Share: