Page 1 of 1
[Tip] Simple User control for a portal box

Posted:
Mon Feb 04, 2008 2:26 pm
Author: richiebgood
I like this on my site. I used this .script from dynamic drive:
http://www.dynamicdrive.com/dynamicindex17/floatbar.htmThe .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

Posted:
Mon Feb 04, 2008 8: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?

Posted:
Mon Feb 04, 2008 9: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?

Posted:
Mon Feb 04, 2008 9:58 pm
Author: spaniel
now this is more like it :
http://www.dynamicdrive.com/dynamicinde ... llapse.htmthat'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

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?

Posted:
Tue Feb 05, 2008 1:07 pm
Author: richiebgood
"spaniel";p="31096" wrote:now this is more like it :
http://www.dynamicdrive.com/dynamicinde ... llapse.htmthat'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

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?

Posted:
Tue Feb 05, 2008 1: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.

Posted:
Tue Feb 05, 2008 1: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.

Posted:
Tue Feb 05, 2008 2:47 pm
Author: spaniel
no it's IE that can't read properly - looking on their forum
http://www.dynamicdrive.com/forums/sear ... id=2283740we're not alone.

Posted:
Tue Feb 05, 2008 2:57 pm
Author: richiebgood

Posted:
Tue Feb 05, 2008 3: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?

Posted:
Tue Feb 05, 2008 3:22 pm
Author: richiebgood
Double post

Posted:
Tue Feb 05, 2008 3: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=6This makes it work, but it messes up my template a little bit.
More trouble.
Re: [Tip] Simple User control for a portal box

Posted:
Tue Feb 05, 2008 4: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?

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

Posted:
Tue Feb 05, 2008 4: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?

Posted:
Tue Feb 05, 2008 5:11 pm
Author: richiebgood
hmm, there is no:
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"
At the start of any of my block tpl files. Did you just press 'view source' in your browser?

Posted:
Tue Feb 05, 2008 5:13 pm
Author: spaniel
no, i added that doctype into blocks/news_block.tpl

Posted:
Tue Feb 05, 2008 5:16 pm
Author: richiebgood
ah rite, ill try it now

Posted:
Tue Feb 05, 2008 5:30 pm
Author: richiebgood
No difference.
I am kind of moving away from that .script cause I want one that remembers the open or closed position as they move from page to page.

Posted:
Tue Feb 05, 2008 5:57 pm
Author: spaniel
Auke created something like that for the forum on [url=http]IntegraMod.nl[/url]
perhaps it could also be made to work with the blocks?

Posted:
Tue Feb 05, 2008 6:20 pm
Author: spaniel
ok putting the doctype and the <head> java.script in the overall_header.tpl and the same again in the blocks/news_block.tpl seems to work as i just had a new user on IE7 describe it as working exactly as it works in FF.
btw, that js thing does hav memory of a sort... it's open for a new login, but once u change page and go back to the home page, it closes automatically, which is exactly what i want it to do.
if people want to read it after they've first logged in, they can choose to open it and if they forget to close it before moving to another page, it'll close itself when they come back again.
the problem i find with memory is that people forget what they set then can't find it lol.
but Auke's thing in IntegraMod.nl would be well worth checking out.

Posted:
Mon Feb 11, 2008 2:26 pm
Author: richiebgood
whats the ctracker biz all about?