Sub Menu
Links Menu
Online Users

In total there are 321 users online :: 3 registered, 0 hidden and 318 guests

Most users ever online was 1091 on Wed Aug 16, 2023 5:27 pm

Registered users: Bing [Bot], Google [Bot], Majestic-12 [Bot] based on users active over the past 60 minutes

[Tip] Simple User control for a portal box

If you have any helpful hints and/or tips in the use of IntegraMOD, you can post it here to help other members of the IntegraMOD community.

Moderator: Integra Moderator

[Tip] Simple User control for a portal box

PostAuthor: richiebgood » Mon Feb 04, 2008 1:26 pm

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
Last edited by richiebgood on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

richiebgood
Sr Integra Member
Sr Integra Member
 
Posts: 329
Likes: 0 post
Liked in: 0 post
Joined: Tue Aug 08, 2006 12:01 am
Cash on hand: 0.00
Location: Ireland

PostAuthor: spaniel » Mon Feb 04, 2008 7:45 pm

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?
Last edited by spaniel on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

spaniel
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 3:29 pm
Cash on hand: 0.00

PostAuthor: spaniel » Mon Feb 04, 2008 8:23 pm

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?
Last edited by spaniel on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

spaniel
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 3:29 pm
Cash on hand: 0.00

PostAuthor: spaniel » Mon Feb 04, 2008 8:58 pm

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?
Last edited by spaniel on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

spaniel
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 3:29 pm
Cash on hand: 0.00

PostAuthor: richiebgood » Tue Feb 05, 2008 12:07 pm

"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?
Last edited by richiebgood on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

richiebgood
Sr Integra Member
Sr Integra Member
 
Posts: 329
Likes: 0 post
Liked in: 0 post
Joined: Tue Aug 08, 2006 12:01 am
Cash on hand: 0.00
Location: Ireland

PostAuthor: spaniel » Tue Feb 05, 2008 12:49 pm

yep - same problem even tho it says IE5+ in the corner <img>

need to contact the website or creator.


works perfectly on firefox tho.
Last edited by spaniel on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

spaniel
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 3:29 pm
Cash on hand: 0.00

PostAuthor: richiebgood » Tue Feb 05, 2008 12:51 pm

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.
Last edited by richiebgood on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

richiebgood
Sr Integra Member
Sr Integra Member
 
Posts: 329
Likes: 0 post
Liked in: 0 post
Joined: Tue Aug 08, 2006 12:01 am
Cash on hand: 0.00
Location: Ireland

PostAuthor: spaniel » Tue Feb 05, 2008 1:47 pm

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.
Last edited by spaniel on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

spaniel
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 3:29 pm
Cash on hand: 0.00

PostAuthor: richiebgood » Tue Feb 05, 2008 1:57 pm

Last edited by richiebgood on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

richiebgood
Sr Integra Member
Sr Integra Member
 
Posts: 329
Likes: 0 post
Liked in: 0 post
Joined: Tue Aug 08, 2006 12:01 am
Cash on hand: 0.00
Location: Ireland

PostAuthor: spaniel » Tue Feb 05, 2008 2:19 pm

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?
Last edited by spaniel on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

spaniel
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 3:29 pm
Cash on hand: 0.00

PostAuthor: richiebgood » Tue Feb 05, 2008 2:22 pm

Double post
Last edited by richiebgood on Tue Feb 05, 2008 2:25 pm, edited 1 time in total.

richiebgood
Sr Integra Member
Sr Integra Member
 
Posts: 329
Likes: 0 post
Liked in: 0 post
Joined: Tue Aug 08, 2006 12:01 am
Cash on hand: 0.00
Location: Ireland

PostAuthor: richiebgood » Tue Feb 05, 2008 2:25 pm

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.
Last edited by richiebgood on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

richiebgood
Sr Integra Member
Sr Integra Member
 
Posts: 329
Likes: 0 post
Liked in: 0 post
Joined: Tue Aug 08, 2006 12:01 am
Cash on hand: 0.00
Location: Ireland

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

PostAuthor: spaniel » Tue Feb 05, 2008 3:16 pm

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?
Last edited by spaniel on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

spaniel
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 3:29 pm
Cash on hand: 0.00

PostAuthor: richiebgood » Tue Feb 05, 2008 3:20 pm

You are editing your overall_header.tpl file yes?
Last edited by richiebgood on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

richiebgood
Sr Integra Member
Sr Integra Member
 
Posts: 329
Likes: 0 post
Liked in: 0 post
Joined: Tue Aug 08, 2006 12:01 am
Cash on hand: 0.00
Location: Ireland

PostAuthor: spaniel » Tue Feb 05, 2008 3:46 pm

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?
Last edited by spaniel on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

spaniel
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 3:29 pm
Cash on hand: 0.00

Next

Return to Hints and Tips

Who is online

Registered users: Bing [Bot], Google [Bot], Majestic-12 [Bot]

cron