[mod release] Logge...
 
Notifications
Clear all

[mod release] Logged In Block

6 Posts
3 Users
0 Reactions
1,826 Views
(@jacynthe)
Posts: 242
Estimable Member
Topic starter
 

Block Name: Logged In Content (v.3.0)
Block URI: http://www.jacynthedurocher-media.com/efiction/loggedin_v3.zip
Credits: This mod was created by Lazuli for efiction 2.0 and I got her permission to update it to work with efiction 3.0 and over.

Description: When you're logged in, it returns "Welcome back. You are logged in as $username." and then a list of quick account links "beside" that (since I was told it is bad form to use tables, I am using <div> tags and for some weird reason it will not go on the same line of text, but moves to a second line...) It is very simple to move the links below the welcome back message by changing the <div class="quicklinks" align="right"> to <div class="quicklinks"> in loggedin.php. I usually put it beside the login tag so they switch places depending on the user's login status.

Requirements: eFiction 3.0+, with all current patches

Download Link: loggedin_v3.zip

To use, simply add {loggedin_content} to your tpls.  Default CSS is .login and .quicklinks.
Please refer to the readme file for full instructions on how to use this block.

------------------------------------------
Modification History:
------------------------------------------

December 14, 2005: Mod Released

June 23, 2006:  I finally figured out how to make a link to the logged in user's profile.  Rather than update the original, I simply made a second version.  What this second version will do is link the $username part of the welcome message with that person's profile.  You might have to alter some file names if you want to run both versions on your site.

July 08, 2006:  Moved the download location slightly to make room for 3.0 stuff a little later.

November 28, 2006: Released version 2.5

October 30, 2007: Mod Updated. I added a quick link to view your profile, something that wasn't previously implemented (you could edit your profile but not view it) in the 2.0 block. The wording was also slightly modified.


Jacynthe

Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP:  5.3.3
MySQL: 5.0.91-community

 
Posted : 30/10/2007 9:03 pm
 Elle
(@jenny)
Posts: 594
Honorable Member
 

Ooh, nice block!

I'm using something like this already, so I won't be superfluous ... but, question: is it not possible to use the PHP definitions? If a non-English fanfiction website wanted to use it, for example. I'm not sure if it was like that in the original block, or even if they're defined in the language files. :3


archive: dramione.org
site: accio.nu

Available for skin/mod commission! πŸ™‚

 
Posted : 30/10/2007 10:59 pm
(@itanshi)
Posts: 381
Reputable Member
 

Ah, better with its own post. i reinstalled it and it won't stay initialized again hehe.


I am rebuilding efiction! Join us on irc! #efiction at www.mibbit.com Instructions for irc πŸ˜€ Alpha released!

 
Posted : 31/10/2007 9:50 am
(@jacynthe)
Posts: 242
Estimable Member
Topic starter
 

Jenny,

I left the coding as it was, just modified the instances of $loggedin that made the block unusable with 3.0 and added the View Profile in the quick links instead of having it show up by clicking on the penname in the welcome back message... So I couldn't possibly answer you about the PHP definitions and all that. *blush* Sorry, but my coding skills don't go that far yet. I'm trying to get used to it but it's moving slowly.

Itanshi,

I don't think the issue is with the block but maybe with something at your host or your entire efiction install because you also mentioned the skins don't stick as I said and those are not related... but may indicate a problem with your site as opposed to the block in itself.


Jacynthe

Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP:  5.3.3
MySQL: 5.0.91-community

 
Posted : 31/10/2007 10:26 am
(@itanshi)
Posts: 381
Reputable Member
 

it may yet be possible, but its only with one skin and one block so i'm stumped. Although just now since i changed the default skin, it started working again... x_X; Ok, not 100% time to update the other post.


I am rebuilding efiction! Join us on irc! #efiction at www.mibbit.com Instructions for irc πŸ˜€ Alpha released!

 
Posted : 31/10/2007 11:57 am
(@jacynthe)
Posts: 242
Estimable Member
Topic starter
 

Okay, there is a small matter to fix on this, meaning that the way I have it set up right now, you get an error when you're inside the challenges module because of the root access to the file. So here's the very simple fix you need to apply.

Open blocks/loggedin/loggedin.php

Find:


if(file_exists("blocks/loggedin/{$language}.php")) include("blocks/loggedin/{$language}.php");
else include("blocks/loggedin/en.php");

replace with:


if(file_exists(_BASEDIR."blocks/loggedin/{$language}.php")) include(_BASEDIR."blocks/loggedin/{$language}.php");
else include(_BASEDIR."blocks/loggedin/en.php");

adding the _BASEDIR. will take care of that and you'll be error-free.


Jacynthe

Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP:  5.3.3
MySQL: 5.0.91-community

 
Posted : 23/01/2008 1:35 am
Share: