Ross
eCreations Staff
Posts: 1,768
|
Post by Ross on Sept 29, 2005 19:15:06 GMT
Main FooterThis will turn any board into a remote link so when you click on a board, it will take you to another board (similar effect to what is used here). Just edit/repeat the URLs <script type="text/javascript"> <!-- function remote(board,link) { var td = document.getElementsByTagName("td"); for(i=0; i<td.length; i++) if(td.width=='66%' && td.getElementsByTagName('a')[0].href.match(new RegExp('board='+board+'$'))) { td.getElementsByTagName('a')[0].href = link; td.onclick = function(){ location.href = link; } } } remote('general','http://google.com'); remote('Board ID','Site to link to'); remote('Board ID','Site to link to');
//--> </script>
|
|
intrco
New Member
Warning: Making Pointless Posts
Posts: 19
|
Post by intrco on Nov 10, 2005 2:24:26 GMT
Forum URL: theconfessor.proboards70.com/index.cgiProblem: [CB] Remote Links remote('general','http://google.com'); remote('Board ID','Site to link to'); remote('Board ID','Site to link to');
This I understand ('general','http://Bravomychat.com')
('Board ID','Site to link to'); ('Board ID','Site to link to');
However, Is beyond me, hey at least the stupidest questions are the easiest to answer are they not? code is curently not installed, untill I figure out Red
|
|
Richie
Veteran
^ Yes, That's me V_V
Posts: 624
|
Post by Richie on Nov 10, 2005 15:42:08 GMT
|
|
intrco
New Member
Warning: Making Pointless Posts
Posts: 19
|
Post by intrco on Nov 10, 2005 17:36:40 GMT
OK, so..
remote('general','http://pub13.bravenet.com/chat/show.php?usernum=1039461654&cpv=2') remote('Board ID','theconfessor.proboards70.com/index.cgi?board=livechat'); remote('Board ID','Site to link to');
Why are there 2 'Site to link to'
This I don't understand, what is the 2nd one for?
|
|
Richie
Veteran
^ Yes, That's me V_V
Posts: 624
|
Post by Richie on Nov 10, 2005 17:52:39 GMT
that's only if you want to link another board to a site. if you don't, get rid of the 2nd line.
|
|
intrco
New Member
Warning: Making Pointless Posts
Posts: 19
|
Post by intrco on Nov 10, 2005 20:17:25 GMT
remote('general','http://google.com'); remote('Board ID','Site to link to');
This is how I comperhend the above code
remote('general','http://of remote site');
remote('Board ID','http:// of remote site');
Therfore Is this how it should be?
remote('general','http://pub13.bravenet.com/chat/show.intrcochat~=2 ');
remote('http://theconfessor.proboards70.com/index.cgi?board=livechat', 'http://pub13.bravenet.com/chat/show.intrcochat~=2');
and what goes in 'general' or is it just that 'general' no changes to be made?
|
|
Ross
eCreations Staff
Posts: 1,768
|
Post by Ross on Nov 10, 2005 22:57:30 GMT
General is an example of a board ID (it's the one all forums have when they are created). You can edit that or any of the other lines to create more remote links. But by sounds of things, you'd want to just use: remote('livechat', 'http://pub13.bravenet.com/chat/show.intrcochat~=2');
|
|
intrco
New Member
Warning: Making Pointless Posts
Posts: 19
|
Post by intrco on Nov 11, 2005 6:04:28 GMT
Thank you Elindir It work's flawlessly
|
|
Richie
Veteran
^ Yes, That's me V_V
Posts: 624
|
Post by Richie on Nov 20, 2005 21:18:11 GMT
|
|
Ross
eCreations Staff
Posts: 1,768
|
Post by Ross on Nov 27, 2005 15:19:02 GMT
The whole idea isn't to link to the help area, it's to show an example
|
|
dja
Junior Member
Posts: 38
|
Post by dja on Jan 14, 2006 13:07:23 GMT
is there a way to make the linka random link?
|
|
|
Post by Abhorsen Terciel on Jan 14, 2006 18:55:14 GMT
Like on the Help site, how would you make it say"Remote Link" in the most recent posts box?
|
|