| Author |
Message |
Gremmie Former Moderator in Good Standing

Joined: Apr 06, 2006 Posts: 2401 Location: Iowa, USA
|
Posted:
Tue Mar 20, 2007 2:47 pm |
|
I think I know how to left justifiy it again. Stay tuned. |
|
|
|
 |
FireATST Life Cycles Becoming CPU Cycles

Joined: Jun 12, 2004 Posts: 511 Location: Ohio
|
Posted:
Tue Mar 20, 2007 2:57 pm |
|
Nice....good luck!  |
|
|
 |
 |
Gremmie Former Moderator in Good Standing

Joined: Apr 06, 2006 Posts: 2401 Location: Iowa, USA
|
Posted:
Tue Mar 20, 2007 5:33 pm |
|
To make it left justified again under IE, find this line of code in blocks/block-Shout_Box.php:
(note that I had to alter the s~cript tags to post this; ignore that)
| Code: |
$content .= "<div align=\"center\"><s~cript type=\"text/javascript\">document.write(SBtxt);</s~cript></div>\n";
|
Change it to
| Code: |
$content .= "<div align=\"left\"><s~cript type=\"text/javascript\">document.write(SBtxt);</s~cript></div>\n";
|
|
|
|
|
 |
FireATST Life Cycles Becoming CPU Cycles

Joined: Jun 12, 2004 Posts: 511 Location: Ohio
|
Posted:
Tue Mar 20, 2007 7:54 pm |
|
That did it Gremmie....thank you! |
|
|
 |
 |
zlmark Regular


Joined: Sep 25, 2006 Posts: 57
|
Posted:
Wed Mar 21, 2007 3:21 pm |
|
Help!! same shout box problem. Trying to do whats suggested
here is what i have currently
| Code: | <scr!pt type="text/javascr!pt">
//<![CDATA[
var SBheight = '<?php echo "$ShoutMarqueeheight"; ?>';
var SBcontent = new String('<?php echo "$mid_content"; ?>');
//]]>
</scr!pt>
<scr!pt type="text/javascript" src="shoutbox.js"></scr!pt> |
What else do i need here? |
|
|
|
 |
Gremmie Former Moderator in Good Standing

Joined: Apr 06, 2006 Posts: 2401 Location: Iowa, USA
|
Posted:
Wed Mar 21, 2007 5:15 pm |
|
You don't need to do that. Follow the instructions that were posted in my messages on these dates:
Wed Mar 14, 2007 7:04 pm
Tue Mar 20, 2007 6:33 pm |
|
|
|
 |
zlmark Regular


Joined: Sep 25, 2006 Posts: 57
|
Posted:
Wed Mar 21, 2007 7:02 pm |
|
Using the find all your posts function, those times are not there. | Quote: |
Wed Mar 14, 2007 7:04 pm
Tue Mar 20, 2007 6:33 pm
|
|
|
|
|
 |
wiz Client

Joined: Oct 09, 2006 Posts: 357 Location: UK
|
Posted:
Wed Mar 21, 2007 7:24 pm |
|
Wow 82 posts on this topic in a little over a week..what monster did i un-earth?
 |
|
|
|
 |
Gremmie Former Moderator in Good Standing

Joined: Apr 06, 2006 Posts: 2401 Location: Iowa, USA
|
Posted:
Wed Mar 21, 2007 8:05 pm |
|
Oh, I'm sorry, the times are probably specific to my time zone. Okay, to summarize the two things I did, I will repost them.
| Gremmie wrote: |
Ok, here is all you have to do to fix this for RavenNuke 2.10.
Open up shoutbox.js and find this line:
(Please ignore the ~ characters I introduced in the event handlers to avoid triggering Sentinel on this message)
| Code: |
SBtxt='<div style="position:relative;width:100%;height:'+SBheight+';overflow:hidden" on~mouseover="SBspeed=0" on~mouseout="SBspeed=1"><div id="SBiemarquee" style="position:absolute;left:0px;top:0px;width:100%;"></div></div>';
|
Change this to: (again, you don't need the ~ characters)
| Code: |
SBtxt='<div style="position:relative;width:100%;height:'+SBheight+'px;overflow:hidden" on~mouseover="SBspeed=0" on~mouseout="SBspeed=1"><div id="SBiemarquee" style="position:absolute;left:0px;top:0px;width:100%;"></div></div>';
|
All I did was to change ;overflow to px;overflow.
All that talk about CDATA, etc., was not needed to make it scroll (although it probably should be added for XHTML compliance). But we will save that for another day.
I have some other observations but I'll post those to another thread.
|
And
| Gremmie wrote: |
To make it left justified again under IE, find this line of code in blocks/block-Shout_Box.php:
(note that I had to alter the s~cript tags to post this; ignore that)
| Code: |
$content .= "<div align=\"center\"><s~cript type=\"text/javascript\">document.write(SBtxt);</s~cript></div>\n";
|
Change it to
| Code: |
$content .= "<div align=\"left\"><s~cript type=\"text/javascript\">document.write(SBtxt);</s~cript></div>\n";
|
|
|
|
|
|
 |
zlmark Regular


Joined: Sep 25, 2006 Posts: 57
|
Posted:
Thu Mar 22, 2007 4:18 am |
|
Thanks Gremmie, will fix it tonight when i get home. |
|
|
|
 |
CodyG PHP-Portal Project

Joined: Jan 02, 2003 Posts: 635 Location: Vancouver Island
|
Posted:
Thu Mar 22, 2007 6:40 am |
|
Wow 82 posts on this topic in a little over a week..what monster did i un-earth?
Shoutbox is hugely popular on my womens community site. It's a front and center block and is used almost as much as PMs. It has gone down a couple of times and I seriously don't get any sleep until it's fixed.
Over the years I've added many smilies to this mod and now, unfortunately, there are about 100 of them. I wish there was a way to cache these things, because each page reload goes on and on with loading these darn smilies. I even bought an ajax book, thinking I could write a better block, but alas, my programming skills are still not up to it and maybe it isn't even possible.
Once I removed all but 10 smilies ... bad move. My users went into revolt mode and I got about 100 emails decrying my authoritarianism, calling for even more smilies, and warning me that if I didn't return the smilies I would suffer the consequences of a mass exodus.
Of all the modules on this one site, the Shoutbox is definitely the most loved. I think that is because it's easy instant gratification.
Have a happy nuking day. |
|
|
|
 |
zlmark Regular


Joined: Sep 25, 2006 Posts: 57
|
Posted:
Thu Mar 22, 2007 6:39 pm |
|
Thanks!!!!!!!!!! works like a charm! you da man gremmie!  |
|
|
|
 |
bugsTHoR Worker


Joined: Apr 05, 2006 Posts: 187
|
Posted:
Sat Mar 31, 2007 1:51 pm |
|
nothing changed with mine either , any news on a fix guys |
|
|
|
 |
Gremmie Former Moderator in Good Standing

Joined: Apr 06, 2006 Posts: 2401 Location: Iowa, USA
|
Posted:
Sat Mar 31, 2007 2:18 pm |
|
The fixes are posted above. They didn't work for you? |
|
|
|
 |
bugsTHoR Worker


Joined: Apr 05, 2006 Posts: 187
|
Posted:
Sat Mar 31, 2007 6:26 pm |
|
no m8, i still blank txt when i enter them on on e of the test sites, sry for that |
|
|
|
 |
Gremmie Former Moderator in Good Standing

Joined: Apr 06, 2006 Posts: 2401 Location: Iowa, USA
|
Posted:
Sat Mar 31, 2007 6:38 pm |
|
Clear your cache after changing the .js file. Go over the edits again carefully... |
|
|
|
 |
bugsTHoR Worker


Joined: Apr 05, 2006 Posts: 187
|
Posted:
Sat Mar 31, 2007 7:57 pm |
|
from this in HEADER.PHP | Quote: |
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"'."\n".' "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n";
echo '<html xmlns="http://www.w3.org/1999/xhtml">'."\n";
// echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
// echo "<html>\n"; |
to this worked,comment out first two lines and uncomment out second two lines, starting on line 41 echo '<!DOCTYPE html PUBLIC
| Quote: |
// echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"'."\n".' "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n";
// echo '<html xmlns="http://www.w3.org/1999/xhtml">'."\n";
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
echo "<html>\n"; |
missed this on first few reads,
thx gremmie , |
|
|
|
 |
Gremmie Former Moderator in Good Standing

Joined: Apr 06, 2006 Posts: 2401 Location: Iowa, USA
|
Posted:
Sat Mar 31, 2007 8:59 pm |
|
Actually you can leave the DOCTYPE at XHTML 1.0 Transitional. The two fixes are here in this post:
|
|
|
|
 |
gregexp The Mouse Is Extension Of Arm

Joined: Feb 21, 2006 Posts: 1472 Location: In front of a screen....HELP! lol
|
Posted:
Sun Apr 01, 2007 12:53 pm |
|
Would you mind sending me the shoutbox packaged, and source.
I know of a few issues with Javascript and how its handled in Nuke includes.
Ravennuke is probably the best nuke you'll ever use when it comes to how well it handles.
But in turn a LOT of things need to be done to working(poorly) Javascripts. The last time I went and found one not working it was because of the themes Javascripts that were added. |
|
|
 |
 |
utssace Worker


Joined: Feb 18, 2006 Posts: 155 Location: Virginia
|
Posted:
Sun Apr 01, 2007 4:12 pm |
|
Thanks Gremmie.
The only changes I made in the shoutbox core files was the 2 you suggested in your Wed March 14, & Tues March 20 posts.
Works like a charm.  |
|
|
|
 |
HKSMustang New Member


Joined: Apr 09, 2006 Posts: 18 Location: USA
|
Posted:
Thu Apr 26, 2007 8:15 am |
|
I had the same problem. Adding the px in front of overflow fixed it on my site. Thanks for the fix. |
|
|
|
 |
bugsTHoR Worker


Joined: Apr 05, 2006 Posts: 187
|
Posted:
Fri Apr 27, 2007 6:05 am |
|
darklord did you want me to send you the shoutbox files? |
|
|
|
 |
gregexp The Mouse Is Extension Of Arm

Joined: Feb 21, 2006 Posts: 1472 Location: In front of a screen....HELP! lol
|
Posted:
Fri Apr 27, 2007 3:13 pm |
|
Only if you continue to suffer from this, for a more functional shoutbox I am working on one.
One that is designed to cache all images, in one SEPERATE popup.
Also having one that does NOT require reloading the page to see shouts as they continue to be posted.
This is going to take quite a bit of time, I really dont think its better to use previously done shoutboxes so, I will be working on my own version of a shoutbox, completely from scratch.
Like I said, one time page load for smiles, as long as they dont clear out their cache. Currently under developement, I will inform all when complete, please do not pm or email me about it, Thanks. |
|
|
 |
 |
codsniper Regular


Joined: Feb 19, 2007 Posts: 50 Location: Almost at the north-pole
|
Posted:
Wed May 09, 2007 3:55 pm |
|
Damm I have been looking for this solution long.... And all it was to it was px
AAAArrrggggg....
Thx guys, you rule!
PS: Installed this nuke on 4 sites so far, and keep using it  |
|
|
|
 |
psmith New Member


Joined: May 29, 2007 Posts: 1
|
Posted:
Wed May 30, 2007 11:07 am |
|
Worked perfectly for me too, Thank you!!!!! |
|
|
|
 |
|
|
|
|