Board Logo

Scroller works on every page on site EXCEPT forums. HAS BEEN FIXED!!!!
los5o7 - 2/26/2005 at 08:52 PM

Trying to get the scroller to work on some forums, I've installed it and it works great on the other pages on the site, but I can't get it to come up on the forums, I've tried placing a duplicate TSfolder in the same directory as the forum is in, and i've tried linking to the top level directory of the site, and am having no success doing so,
here is one of the pages that it is working on;
http://216.127.72.70/~shocker/home.html

and here's the page i'm trying to get it to work on;
http://sv2.accountserverg2.net/~shocker/forums/


I placed an html test page in the same directory as the forum is in and linked to the ts folder within that directory and it comes up fine on the test page, but wont on the forum page, is this some kind of conflict issue? Any ideas on what i'm doing wrong??

any and all assistance is greatly appreciated.
thanks in advance,
los


los5o7 - 2/27/2005 at 07:09 PM

I think that I've pretty much isolated the problem, I think it's the tag that I need to place in the <head> tags at the top of a normal webpage but can't figure out which .tpl file I need to edit to get it to work.


rock - 2/28/2005 at 11:22 AM

It seems the path to the script is incorrect:
<script language="javascript" src="../../../ts_files/scroll.js"></script>
There is no script after the path.


los5o7 - 2/28/2005 at 06:46 PM

I tried copying the ts_files folder to the same directory that the forum is in and changed the path to:
<script language="javascript" src="ts_files/scroll.js"></script>
,as it is on the other pages on the site, but for some reason it still doesn't want to display, the above part of the script goes in between the <head> </head> tags correct?


los5o7 - 2/28/2005 at 07:59 PM

k, I saved a copy of the overall_header.tpl file as an html file, uploaded it to the same directory, and the scroller works,

http://sv2.accountserverg2.net/~shocker/forums/templates/shocker/overall_header.html

but it's not working when the forum calls up the .tpl file...

http://sv2.accountserverg2.net/~shocker/forums/

i'm stumped...


rock - 3/1/2005 at 09:32 AM

I can't find where is your scroller's files are located at the sv2.accountserverg2.net domain. Please mention absolute path to scroll.js file.

At the other server its Ok:
http://216.127.72.70/~shocker/home.html
http://216.127.72.70/~shocker/ts_files/scroll.js


los5o7 - 3/1/2005 at 06:23 PM

http://216.127.72.70/~shocker/forums/templates/shocker/ts_files/scroll.js

would I have to insert it that way?


rock - 3/2/2005 at 08:46 AM

OK. Finaly I can see what is the issue.
You got scroller files at http://sv2.accountserverg2.net/~shocker/ts_files/

So for page http://216.127.72.70/~shocker/home.html use:
<script language="javascript" src="ts_files/scroll.js"></script>
or
<script language="javascript" src="/~shocker/ts_files/scroll.js"></script>

For page http://sv2.accountserverg2.net/~shocker/forums/
<script language="javascript" src="../ts_files/scroll.js"></script>
or
<script language="javascript" src="/~shocker/ts_files/scroll.js"></script>

At scroll.js you should set absolute path to scroller's files, so you could place same scroller at various pages:
// set correct path to Tigra Scroller files
var Tscroll_path_to_files = '/~shocker/ts_files/'


los5o7 - 3/6/2005 at 07:33 AM

K, Set the absolute path at scroll.js as directed:
// set correct path to Tigra Scroller files
var Tscroll_path_to_files ='http://www.shockertoys.com/ts_files/"

Scroller works on all pages. Still no forums, so I tried different combinations of the"
<script language="javascript" src="ts_files/scroll.js"></script>
under the header, tried:
<script language="javascript" src="http://www.shockertoys.com/ts_files/scroll.js"></script>
tried:
<script language="javascript" src="../../ts_files/scroll.js"></script>
even tried:
<script language="javascript" src="http://www.shockertoys.com/forums/templates/shocker/ts_files/scroll.js"></script>
Each one of those brings up the little yellow triangle in the bottom left hand of the browser, when I click on it, it gives this error message:
Problems with the WEb page might prevent it from being displayed properly or functioning properly, In the future, you can display this message by double-clicking the warning icon displayed in the status bar,
the details show:
Line: 78
Char: 2
Error: 'main' is undefined
Code: 0
URL: http://www.shockertoys/ts_files/scroll.html?0

The interesting thing is, when I use this:
<script language="javascript" src="ts_files/scroll.js"></script>
no warning icon, but the scroller still doesn't load.

Tried everything I can possibly think of even retyped the:
<div align="center"> <script language="JavaScript">
<!-- //
Tscroll_init(0);
// -->
</script> </div>
back in the iframe where I have it on the rest of the site, still nothing. Has anyone ever tried using the T-scroller on a phpBB board? I'm thinking maybe i'm editing the wrong .tpl file....

Still stumped...
los


los5o7 - 3/10/2005 at 07:29 PM

Any suggestions on this?


rock - 3/11/2005 at 02:14 PM

Quote:
Originally posted by rock

At scroll.js you should set absolute path to scroller's files, so you could place same scroller at various pages:
// set correct path to Tigra Scroller files
var Tscroll_path_to_files = '/~shocker/ts_files/'


You did not set absolute path in http://www.shockertoys.com/~shocker/ts_files/scroll.js


los5o7 - 3/27/2005 at 12:52 AM

Wouldn'tcha know it... no sooner did i just post this last time and I went in there and changed the inlude in the tpl file and it works!!!
all I did was add a "/" in front of the ts_files/... to the script include:

<script language="javascript" src="/ts_files/scroll.js"></script>

and now it works!!
SCORE!!!!
Thanks for all the assist with this!!!


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/