rejetto forum

Shoutbox Problem ...

meph++ · 5 · 5447

0 Members and 1 Guest are viewing this topic.

Offline meph++

  • Occasional poster
  • *
    • Posts: 30
    • View Profile
Hello at all, at in particular at Rejetto "Massimo" for this superlative software, this is the first post, I read the tomplate post but not found the answer  :'( .
I have a problem with the shoutbox in the ToG v 3.0.0 the software hfs is the last, and the problem is that I can not visualize the box on left, i have follow the instraction (README ToG) and I have replace the string in the .tpl and in the ToG-Main.js.
example: ToG-Main.js
...).setAttribute('src','http://1234512345.myshoutbox.com...

example: .tpl
...<iframe src="http://1234512345.myshoutbox.com...


Why non visualize the box ...

Thanks


Offline TSG

  • Moderator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
Did you uncomment the <div> and put your BOX ID in the one that is on the template for non-js users? Once you have done that it should appear in the right column closed. Hit the expand and it will load up the shoutbox.


<!-- Read the README for more information on this... << REMOVE
   <div class=mBrdr>
      <div class=infhdr>
         <span class=infhdrT>Shout Box</span>
         <span class=hide><a href="javascript:pinModule('Shout_Box')" id=Shout_Box_Link title="Hide this module"><img src="/template/images/H.gif" alt=""></a></span>
      </div>
      <div class=iF id=Shout_Box>
         <iframe class=hide id=iF src="" height=250 width=146 frameborder=0></iframe> << This one waits for javascript input.
         <noscript><iframe src="http://**** YOUR BOX ID ****.myshoutbox.com/?extcss=http://%host%/template/code/ToG-Shoutbox.css" height=250 width=146 frameborder=0></iframe></noscript> << This <noscript> Allows for default viewing for people that don't have js on.
      </div>
   </div>
   <script type="text/javascript">hideShow('Shout_Box')</script>
--><< REMOVE


Hope that helps. You seem to have the javascript correct :)
« Last Edit: November 19, 2007, 11:07:27 PM by That_Stevens_Guy »


Offline meph++

  • Occasional poster
  • *
    • Posts: 30
    • View Profile
Thanks That_Stevens_Guy now all work .. my problems was not uncomment the first line ... ;D

I have a curiosity, I tried to make changes to the code and write in the .tpl in ToG v 3.0.0

.... <noscript><iframe src="http://WHATEVER.myshoutbox.com/?extcss=http://%host%/ .....

and shoutbox works fine because it takes the same link from the file ToG-Main.js.

Now the question is why should I change the line "myshoutbox..." in .tpl if ToG read the link in the ToG-Main.js

Thanks and nice day

Agostino
 


Offline TSG

  • Moderator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
<noscript><iframe src="http://**** YOUR BOX ID ****.myshoutbox.com/?extcss=http://%host%/template/code/ToG-Shoutbox.css" height=250 width=146 frameborder=0></iframe></noscript>

Because this line is what shows when a user has javascript disabled.

I will provide some instructions for you to see this functionality... If you have Firefox, disable js temporarily...

Tools > Options > Content

Then refresh the page. You'll notice the template looses a lot of features. And without a proper link in the shoutbox it will not load :D. The <noscript/> tag in HTML hides content when there is javascript on, and shows it when it is off.

Basically its the hide/show module function in the javascript that gives the shoutbox a link to read from. When it is pinned shut the user of your site isn't waiting for an invisible page to load in the background, it can save up to 12 seconds of page load sometimes. An advantage of having javascript on with the ToG :) along with many others.

I might link to this thread from the readme, it will be helpful for others.
« Last Edit: November 20, 2007, 11:25:15 AM by That_Stevens_Guy »


Offline meph++

  • Occasional poster
  • *
    • Posts: 30
    • View Profile
I have proof that I have said now I understand all

Very Very Very Thanks

If in the future you can help counting on me.


 :) That_Stevens_Guy you are the Best  ;)


Agostino