rejetto forum
May 24, 2012, 11:20:26 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Shoutbox Problem ...  (Read 1504 times)
0 Members and 1 Guest are viewing this topic.
meph++
Experienced poster
***
Offline Offline

Italy Italy

Posts: 30


View Profile
« on: November 19, 2007, 04:09:04 PM »

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  Cry .
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
Logged
TSG
Moderator
Insane poster
*****
Offline Offline

Australia Australia

Posts: 1919



View Profile WWW
« Reply #1 on: November 19, 2007, 05:03:49 PM »

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 Smiley
« Last Edit: November 19, 2007, 05:07:27 PM by That_Stevens_Guy » Logged

meph++
Experienced poster
***
Offline Offline

Italy Italy

Posts: 30


View Profile
« Reply #2 on: November 20, 2007, 04:25:05 AM »

Thanks That_Stevens_Guy now all work .. my problems was not uncomment the first line ... Grin

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
 
Logged
TSG
Moderator
Insane poster
*****
Offline Offline

Australia Australia

Posts: 1919



View Profile WWW
« Reply #3 on: November 20, 2007, 05:22:09 AM »

<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 Cheesy. 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 Smiley along with many others.

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

meph++
Experienced poster
***
Offline Offline

Italy Italy

Posts: 30


View Profile
« Reply #4 on: November 20, 2007, 08:02:06 AM »

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.


 Smiley That_Stevens_Guy you are the Best  Wink


Agostino
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 07, 2012, 09:52:54 PM