1
billo
Page loading script
  • 2005/7/8 23:43

  • billo

  • Just popping in

  • Posts: 20

  • Since: 2004/10/17


Found a page loading script on the XOOPS china site, the code is their but I can't understand the instructions. If anybody knows the instructions can you please post them.

https://xoops.org.cn/modules/newbb/viewtopic.php?topic_id=2714&forum=16

2
pegasus00321
Re: Page loading script

Please search the site before you post, as it says time for you and us

https://xoops.org/modules/smartfaq/faq.php?faqid=445
Pegasus00321


I would appricate it if you click this link
TuFat.com PHP Scripts and etc

3
billo
Re: Page loading script
  • 2005/7/9 0:20

  • billo

  • Just popping in

  • Posts: 20

  • Since: 2004/10/17


Thank You for the response, I did find that post that you mentioned before I posted, but I am still uncertain as to where exactly I should include the code in the theme.html file. Any help would be appreciated

4
pegasus00321
Re: Page loading script

Oh ok
In that case

Find the body <body> tag in your XOOPS theme.html file for the themes you want to add this to.
Delete the body tag and put this in its place

<body onLoad="StatusLauftext();return true">
<
div id="waitDiv" style="position:absolute; right:0%; top:50%; visibility:hidden; text-align:center;">
<
table cellpadding="3" cellspacing="3" class="waitbox"><tr>
<
td align="center">
<
b><big>Loading...</big></b>
<
br />Please Wait.</td></tr>
</
table>    
<
script type='text/javascript'>
<!--
toggle_visibility('waitDiv'1);
//-->
</script>
</
div>


You can change it as you like.

Now, find the </body> tag

Add this just before it
<script type='text/javascript'>
<!--
toggle_visibility('waitDiv'0);
//-->
</script>


Update your theme file and it should work.
Pegasus00321


I would appricate it if you click this link
TuFat.com PHP Scripts and etc

5
billo
Re: Page loading script
  • 2005/7/9 0:50

  • billo

  • Just popping in

  • Posts: 20

  • Since: 2004/10/17


Tried it does not work, I know I am not inserting it in the right place. Guess I am getting fustrated. I will include the theme.html, if you would be kind enough in inserting the code in the right place I would deeply apprecite it.So I will be able to see where exactly to position it for my other themes, and I save my monitor by not throwing it out the window LOL

Thank You



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<{$xoops_langcode}>" lang="<{$xoops_langcode}>">
<head>
<meta http-equiv="content-type" content="text/html; charset=<{$xoops_charset}>" />
<meta http-equiv="content-language" content="<{$xoops_langcode}>" />
<meta name="robots" content="<{$xoops_meta_robots}>" />
<meta name="keywords" content="<{$xoops_meta_keywords}>" />
<meta name="description" content="<{$xoops_meta_description}>" />
<meta name="rating" content="<{$xoops_meta_rating}>" />
<meta name="author" content="<{$xoops_meta_author}>" />
<meta name="copyright" content="<{$xoops_meta_copyright}>" />
<meta name="generator" content="XOOPS" />
<title><{$xoops_sitename}> - <{$xoops_pagetitle}></title>
<link href="<{$xoops_url}>/favicon.ico" rel="SHORTCUT ICON" />
<link rel="stylesheet" type="text/css" media="all" href="<{$xoops_url}>/xoops.css" />
<link rel="stylesheet" type="text/css" media="all" href="<{$xoops_themecss}>" />
<!-- RMV: added module header -->
<{$xoops_module_header}>
<script type="text/javascript">
<!--
<{$xoops_js}>
//-->
</script>
</head>
<body bgcolor=#000000>
<table cellspacing="1" cellpadding="0" bgcolor="#666666">
<tr>
<td bgcolor="#222222">
<table cellspacing="0" cellpadding="0">
<tr>
<td width="285"><a href="<{$xoops_url}>"><img src="<{$xoops_imageurl}>images/logo.gif" alt="logo" align="middle" /></a></td>
<td width="100%" align="center"><div style="text-align: center; padding-top: 5px;"><{$xoops_banner}></div></td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#000000">
<table cellspacing="0" cellpadding="0">
<tr>
<td width="20%" bgcolor="#111111">
<!-- Start left blocks loop -->
<{foreach item=block from=$xoops_lblocks}>
<table cellspacing="0" cellpadding="2">
<tr>
<td class="blockTitle">&nbsp;<{$block.title}></td>
</tr>
<tr>
<td class="blockContent"><{$block.content}></td>
</tr>
</table>
<{/foreach}>
<!-- End left blocks loop -->
</td>
<td style="padding: 0px 5px 0px;" align="center">
<!-- Display center blocks if any -->
<{if $xoops_showcblock == 1}>

<table cellspacing="0">
<tr>
<td width="100%" colspan="2">

<!-- Start center-center blocks loop -->
<{foreach item=block from=$xoops_ccblocks}>
<table cellspacing="1" cellpadding="5">
<tr>
<td class="blockTitle">&nbsp;<{$block.title}></td>
</tr>
<tr>
<td class="blockContent"><{$block.content}></td>
</tr>
</table>
<{/foreach}>
<!-- End center-center blocks loop -->

</td>
</tr>
<tr>
<td width="50%">

<!-- Start center-left blocks loop -->
<{foreach item=block from=$xoops_clblocks}>
<table cellspacing="1" cellpadding="5">
<tr>
<td class="blockTitle">&nbsp;<{$block.title}></td>
</tr>
<tr>
<td class="blockContent"><{$block.content}></td>
</tr>
</table>
<{/foreach}>
<!-- End center-left blocks loop -->

</td><td width="50%">

<!-- Start center-right blocks loop -->
<{foreach item=block from=$xoops_crblocks}>
<table cellspacing="1" cellpadding="5">
<tr>
<td class="blockTitle">&nbsp;<{$block.title}></td>
</tr>
<tr>
<td class="blockContent"><{$block.content}></td>
</tr>
</table>
<{/foreach}>
<!-- End center-right blocks loop -->

</td>
</tr>
</table>

<{/if}>
<!-- End display center blocks -->

<div id="content">
<{$xoops_contents}>
</div>
</td>

<{if $xoops_showrblock == 1}>
<td width=20% bgcolor=#000000 align=center>
<!-- Start right blocks loop -->
<{foreach item=block from=$xoops_rblocks}>
<table cellspacing="0" cellpadding="2">
<tr>
<td class="blockTitle">&nbsp;<{$block.title}></td>
</tr>
<tr>
<td class="blockContent"><{$block.content}></td>
</tr>
</table>
<br />
<{/foreach}>
<!-- End right blocks loop -->
<{/if}>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="30" valign="middle" bgcolor="#222222" align="center"><div style="text-align: center; padding-top: 2px; font-size: 10px"><{$xoops_footer}></div></td>
</tr>
</table>
</body>
</html>

6
carnuke
Re: Page loading script
  • 2005/7/9 9:00

  • carnuke

  • Home away from home

  • Posts: 1955

  • Since: 2003/11/5


Just a thought here ... ALWAYS make sure that your theme update is set to 'yes' in system admin, AND clear your browser cache. As a good measure I always delete contents of templates_c also.

Richard
http://houseofstrauss.co.uk Resource for alternative health and holistic lifestyle
search xoops

7
billo
Re: Page loading script
  • 2005/7/9 13:57

  • billo

  • Just popping in

  • Posts: 20

  • Since: 2004/10/17


Did all that, when I enter the above code in the theme.htnl, not only does the page loader script not work it also messes up the whole theme, so that is why I think I am inserting the code in the wrong place. If any one could help I would appreciate it.

Thank You

8
billo
Re: Page loading script
  • 2005/7/11 0:35

  • billo

  • Just popping in

  • Posts: 20

  • Since: 2004/10/17


Can someone please help in getting the script to work? Would be deeply appreciated.

9
billo
Re: Page loading script
  • 2005/7/12 19:15

  • billo

  • Just popping in

  • Posts: 20

  • Since: 2004/10/17


Not much support for a support forum.

10
Shine
Re: Page loading script
  • 2005/7/12 20:56

  • Shine

  • Just can't stay away

  • Posts: 822

  • Since: 2002/7/22


The given support was very good,....

Ok here it comes:
Take a look at your theme, you;ll see:<body bgcolor=#000000>
Exactly within this tag you should paste the firstly given code.
Now second, look for the tag </body>
Exactly right above this tag you should paste the second code.


Grtz., Shine

Login

Who's Online

149 user(s) are online (92 user(s) are browsing Support Forums)


Members: 0


Guests: 149


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits