Page 1 of 2

[Tip] Simple User control for a portal box

PostPosted: Mon Feb 04, 2008 1:26 pm
Author: richiebgood
I like this on my site. I used this .script from dynamic drive:
http://www.dynamicdrive.com/dynamicindex17/floatbar.htm

The .script puts a floting static box in your browser than can be configure to close. I have the user block set up on mine. Once a user see's how many posts since last vist and clicks the link. they close the box and it reopens next time they log on.


How to do it:
Then I open the block file that I want, on my site i opend templates/efusion/blocks/user_block

I edited the block to get it how I wanted it to look.

I copied the code and pastes it in between the <div> tage of the .script from above.

Then go to acp/im portal / blocks config to enable user block.

Bang, it works.


Try it out, username: test
password: test

PostPosted: Mon Feb 04, 2008 7:45 pm
Author: spaniel
i think this might be what im' looking for with the news block.

after members have read a news article, will this enable them to close it so they dont keep seeing it every time they go back to the home page?

PostPosted: Mon Feb 04, 2008 8:23 pm
Author: spaniel
ok tried it out on your site - i closed the floating window quickly cos i found it annoying moving about with me.

is there a way to get this to work with the existing blocks so they can be closed even while static?

PostPosted: Mon Feb 04, 2008 8:58 pm
Author: spaniel
now this is more like it :

http://www.dynamicdrive.com/dynamicinde ... llapse.htm

that'd be cool for the news block - once people hav read the news in one session, they dont wanna keep seeing it.


Update: It works perfectly!!! The news block just slides open and closed when the user wants it to.

triple :mrgreen:

we need to sort out your profile page tho - u still have phone number fields - who in their right mind would put their home telephone number on the internet?

PostPosted: Tue Feb 05, 2008 12:07 pm
Author: richiebgood
"spaniel";p="31096" wrote:now this is more like it :

http://www.dynamicdrive.com/dynamicinde ... llapse.htm

that'd be cool for the news block - once people hav read the news in one session, they dont wanna keep seeing it.


Update: It works perfectly!!! The news block just slides open and closed when the user wants it to.

triple :mrgreen:

we need to sort out your profile page tho - u still have phone number fields - who in their right mind would put their home telephone number on the internet?


I can not get that .script to work in IE. It will not stay closed. Did you have any trouble?

PostPosted: Tue Feb 05, 2008 12:49 pm
Author: spaniel
yep - same problem even tho it says IE5+ in the corner <img>

need to contact the website or creator.


works perfectly on firefox tho.

PostPosted: Tue Feb 05, 2008 12:51 pm
Author: richiebgood
Hmm, its a pity because it is a lovel .script.

Although on the website, it works in IE. There must be some conflicting .scripts in IM portal putting it off.

PostPosted: Tue Feb 05, 2008 1:47 pm
Author: spaniel
no it's IE that can't read properly - looking on their forum

http://www.dynamicdrive.com/forums/sear ... id=2283740

we're not alone.

PostPosted: Tue Feb 05, 2008 1:57 pm
Author: richiebgood

PostPosted: Tue Feb 05, 2008 2:19 pm
Author: spaniel
i tried that but i can't find that <xml> line

(and this site won't let me post it in a code box)


do you want to post a message on their forum or shall I?

PostPosted: Tue Feb 05, 2008 2:22 pm
Author: richiebgood
Double post

PostPosted: Tue Feb 05, 2008 2:25 pm
Author: richiebgood
I am still reading through it all. If you go ahead and post it up, Ill bump your thread later.

[Edit]

Bomb, I did it again!

Check this out:
http://www.dynamicdrive.com/forums/show ... ostcount=6

This makes it work, but it messes up my template a little bit.

More trouble.

Re: [Tip] Simple User control for a portal box

PostPosted: Tue Feb 05, 2008 3:16 pm
Author: spaniel
not sure if the code box will let me post it here but my top line is now:

but my page starts with the doctype
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"


and then <head>

then the java.script and the rest of the page.


I deleted the html xmlns="http://www.w3.org/1999/xhtml" line which follows the doctype.


I can't test it out cos i'm on a mac, hav u tried the same in yours and what is the result?

PostPosted: Tue Feb 05, 2008 3:20 pm
Author: richiebgood
You are editing your overall_header.tpl file yes?

PostPosted: Tue Feb 05, 2008 3:46 pm
Author: spaniel
No, this is all in the blocks/news_block.tpl

what shud i put in overall_header.tpl and where hav u put the animatedcollapse.js file?