|
Welcome Panel
|
| jford2282 |
Posted on 23-02-2011 17:30
|

Junior Member

Posts: 36
Joined: 18/02/2011
|
Hello, is it possible to display the welcome panel for so many seconds then have it go away? |
| |
|
|
| Ankur |
Posted on 24-02-2011 14:18
|

Admin

Posts: 1291
Joined: 02/11/2010
|
I don't think so... This Javascript will Hide the Welcome panel text if you have given some id in the div of welcome introduction... But not the Tab showing Welcome, i.e having class as capmain
add_to_head("<script type='text/javascript'>
function hide()
{
document.getElementById('welcome').style.display = 'none';
}
window.setTimeout(hide,2000);
</script>");
|
| |
|
|
| Craig |
Posted on 24-02-2011 14:40
|

Fusioneer

Posts: 3980
Joined: 27/09/2005
|
what's wrong with using...
Just copy the js name it something else and change the time.
Code<div id='close-message'>blah</div>
|
| |
|
|
| jford2282 |
Posted on 24-02-2011 14:42
|

Junior Member

Posts: 36
Joined: 18/02/2011
|
Alright thanks Ankur, i'll take a look into that |
| |
|
|
| Ankur |
Posted on 24-02-2011 14:43
|

Admin

Posts: 1291
Joined: 02/11/2010
|
But how will we Close the Title...? I mean the Capmain where title of Panel is displayed ?
|
| |
|
|
| jford2282 |
Posted on 24-02-2011 14:45
|

Junior Member

Posts: 36
Joined: 18/02/2011
|
Fangree_Craig wrote:
what's wrong with using...
Just copy the js name it something else and change the time.
Code<div id='close-message'>blah</div>
This looks like it will just close just the message thats in the welcome panel or if the message closes then the welcome panel will close with it? |
| |
|
|
| MarcusG |
Posted on 24-02-2011 14:45
|

Admin

Posts: 189
Joined: 13/08/2010
|
Codeecho "<div id='close-message'>";
opentable("Welcome");
echo "blah";
closetable();
echo "</div>";
Ex Senior Dev.
|
| |
|
|
| Craig |
Posted on 24-02-2011 14:50
|

Fusioneer

Posts: 3980
Joined: 27/09/2005
|
Upload and overwrite welcome_message_panel.php with this one....
Code
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2010 Nick Jones
| http://www.php-fu...
+--------------------------------------------------------+
| Filename: welcome_message_panel.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licen... Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
echo "<div id='close-message'>\n";
opentable($locale['global_035']);
echo stripslashes($settings['siteintro'])."\n";
closetable();
echo"</div>\n";
?>
|
| |
|
|
| jford2282 |
Posted on 24-02-2011 14:51
|

Junior Member

Posts: 36
Joined: 18/02/2011
|
MarcusG wrote:
Codeecho "<div id='close-message'>";
opentable("Welcome");
echo "blah";
closetable();
echo "</div>";
so many different responses!
this seems pretty reasonable and easy i'll give this a shot as well
And thanks again for all your help. Always get the help i need from the Staff team and Admins. |
| |
|
|
| Ankur |
Posted on 24-02-2011 14:51
|

Admin

Posts: 1291
Joined: 02/11/2010
|
Oh Yeah !
I forgot that there also exist some kinda Welcome Panel :P LOL me !
Yeah ! It must work ! ;)
----------------------------------
Edited :
Also, you can set the time in milliseconds ! Default is 2000 = 2 Seconds !
window.setTimeout(hide,2000);
----------------------------------
Edited :
No No ! You can use Fangree's Code if you are using the default welcome panel !
|
| |
|
|
| Craig |
Posted on 24-02-2011 14:53
|

Fusioneer

Posts: 3980
Joined: 27/09/2005
|
The one in my post is for the Welcome message panel like you asked.
|
| |
|
|
| jford2282 |
Posted on 24-02-2011 16:34
|

Junior Member

Posts: 36
Joined: 18/02/2011
|
Fangree_Craig wrote:
The one in my post is for the Welcome message panel like you asked.
Trying it out now |
| |
|
|
| Craig |
Posted on 24-02-2011 16:50
|

Fusioneer

Posts: 3980
Joined: 27/09/2005
|
Let me know if you need any improvements, I a am always up for a new challange and if it means I learn how to write something new then all the better.
Does that mean I will need to learn how to code that JavaScript Stuff or what do you call it Ajaz?
|
| |
|
|
| jford2282 |
Posted on 24-02-2011 16:52
|

Junior Member

Posts: 36
Joined: 18/02/2011
|
jford2282 wrote:
Fangree_Craig wrote:
The one in my post is for the Welcome message panel like you asked.
Trying it out now
I tried that Fangree and it didn't seem to work, the welcome panel still sits on the page. |
| |
|
|
| Craig |
Posted on 24-02-2011 16:59
|

Fusioneer

Posts: 3980
Joined: 27/09/2005
|
Let's try this bad boy. ;)
Code<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2010 Nick Jones
| http://www.php-fu...
+--------------------------------------------------------+
| Filename: welcome_message_panel.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at http://www.gnu.or...agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
add_to_head("<script type='text/javascript' src='".INCLUDES."admin-msg.js'></script>");
echo "<div id='close-message'>\n";
opentable($locale['global_035']);
echo stripslashes($settings['siteintro'])."\n";
closetable();
echo"</div>\n";
?>
|
| |
|
|
| jford2282 |
Posted on 24-02-2011 17:39
|

Junior Member

Posts: 36
Joined: 18/02/2011
|
Worked Perfect, Thanks alot...check it out at www.pcknowledge.info, sry for the slowness..it's a free host what can u expect!! |
| |
|
|
| Craig |
Posted on 24-02-2011 17:42
|

Fusioneer

Posts: 3980
Joined: 27/09/2005
|
Yeh nice man.
BTW you really need a new host, I can never get on your site when I try and when I eventually get on I go to releoad and I must wait another 10 days for it to load. lol
|
| |
|
|
| jford2282 |
Posted on 24-02-2011 17:48
|

Junior Member

Posts: 36
Joined: 18/02/2011
|
Fangree_Craig wrote:
Yeh nice man.
BTW you really need a new host, I can never get on your site when I try and when I eventually get on I go to releoad and I must wait another 10 days for it to load. lol
Lol sry about that, i have tried other free hosts and seems they are all the same for speed, once i get situated and comfortable spending the money and approved by the wife it will be on a better hosting service cause i am actually getting annoyed with it as well.
If anyone has a free host site where the speed is nice, please let me know..For now i just have to keep testing and making the site how i want it with this free host. Unlimited space was the reason why i took this host btw.. www.squareserve.com |
| |
|
|
| Craig |
Posted on 24-02-2011 17:49
|

Fusioneer

Posts: 3980
Joined: 27/09/2005
|
Here you go man...
http://www.php-fu...rowstart=0
|
| |
|
|
| jford2282 |
Posted on 24-02-2011 18:03
|

Junior Member

Posts: 36
Joined: 18/02/2011
|
Thanks, i see one that i'm gonna try out. |
| |
|