PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

PostPosted: Tue Mar 20, 2007 2:47 pm Reply with quote Back to top

I think I know how to left justifiy it again. Stay tuned.
View user's profile Send private message
FireATST
Life Cycles Becoming CPU Cycles


Joined: Jun 12, 2004
Posts: 511
Location: Ohio

PostPosted: Tue Mar 20, 2007 2:57 pm Reply with quote Back to top

Nice....good luck! Smile
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

PostPosted: Tue Mar 20, 2007 5:33 pm Reply with quote Back to top

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";
View user's profile Send private message
FireATST
Life Cycles Becoming CPU Cycles


Joined: Jun 12, 2004
Posts: 511
Location: Ohio

PostPosted: Tue Mar 20, 2007 7:54 pm Reply with quote Back to top

That did it Gremmie....thank you!
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number
zlmark
Regular
Regular


Joined: Sep 25, 2006
Posts: 57

PostPosted: Wed Mar 21, 2007 3:21 pm Reply with quote Back to top

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?
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

PostPosted: Wed Mar 21, 2007 5:15 pm Reply with quote Back to top

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
View user's profile Send private message
zlmark
Regular
Regular


Joined: Sep 25, 2006
Posts: 57

PostPosted: Wed Mar 21, 2007 7:02 pm Reply with quote Back to top

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
View user's profile Send private message
wiz
Client


Joined: Oct 09, 2006
Posts: 357
Location: UK

PostPosted: Wed Mar 21, 2007 7:24 pm Reply with quote Back to top

Only registered users can see links on this board!
Get registered or login to the forums!
Wink

Wow 82 posts on this topic in a little over a week..what monster did i un-earth?

Wave
View user's profile Send private message Visit poster's website AIM Address
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

PostPosted: Wed Mar 21, 2007 8:05 pm Reply with quote Back to top

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:

Bang Head

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. Rolling Eyes

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";

View user's profile Send private message
zlmark
Regular
Regular


Joined: Sep 25, 2006
Posts: 57

PostPosted: Thu Mar 22, 2007 4:18 am Reply with quote Back to top

Thanks Gremmie, will fix it tonight when i get home.
View user's profile Send private message
CodyG
PHP-Portal Project


Joined: Jan 02, 2003
Posts: 635
Location: Vancouver Island

PostPosted: Thu Mar 22, 2007 6:40 am Reply with quote Back to top

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.
View user's profile Send private message
zlmark
Regular
Regular


Joined: Sep 25, 2006
Posts: 57

PostPosted: Thu Mar 22, 2007 6:39 pm Reply with quote Back to top

Thanks!!!!!!!!!! works like a charm! you da man gremmie! worship
View user's profile Send private message
bugsTHoR
Worker
Worker


Joined: Apr 05, 2006
Posts: 187

PostPosted: Sat Mar 31, 2007 1:51 pm Reply with quote Back to top

nothing changed with mine either , any news on a fix guys
View user's profile Send private message Visit poster's website
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

PostPosted: Sat Mar 31, 2007 2:18 pm Reply with quote Back to top

The fixes are posted above. They didn't work for you?
View user's profile Send private message
bugsTHoR
Worker
Worker


Joined: Apr 05, 2006
Posts: 187

PostPosted: Sat Mar 31, 2007 6:26 pm Reply with quote Back to top

no m8, i still blank txt when i enter them on on e of the test sites, sry for that
View user's profile Send private message Visit poster's website
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

PostPosted: Sat Mar 31, 2007 6:38 pm Reply with quote Back to top

Clear your cache after changing the .js file. Go over the edits again carefully...
View user's profile Send private message
bugsTHoR
Worker
Worker


Joined: Apr 05, 2006
Posts: 187

PostPosted: Sat Mar 31, 2007 7:57 pm Reply with quote Back to top

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 ,
View user's profile Send private message Visit poster's website
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

PostPosted: Sat Mar 31, 2007 8:59 pm Reply with quote Back to top

Actually you can leave the DOCTYPE at XHTML 1.0 Transitional. The two fixes are here in this post:
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message
gregexp
The Mouse Is Extension Of Arm


Joined: Feb 21, 2006
Posts: 1472
Location: In front of a screen....HELP! lol

PostPosted: Sun Apr 01, 2007 12:53 pm Reply with quote Back to top

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.
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
utssace
Worker
Worker


Joined: Feb 18, 2006
Posts: 155
Location: Virginia

PostPosted: Sun Apr 01, 2007 4:12 pm Reply with quote Back to top

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. Cool
View user's profile Send private message Visit poster's website
HKSMustang
New Member
New Member


Joined: Apr 09, 2006
Posts: 18
Location: USA

PostPosted: Thu Apr 26, 2007 8:15 am Reply with quote Back to top

I had the same problem. Adding the px in front of overflow fixed it on my site. Thanks for the fix.
View user's profile Send private message
bugsTHoR
Worker
Worker


Joined: Apr 05, 2006
Posts: 187

PostPosted: Fri Apr 27, 2007 6:05 am Reply with quote Back to top

darklord did you want me to send you the shoutbox files?
View user's profile Send private message Visit poster's website
gregexp
The Mouse Is Extension Of Arm


Joined: Feb 21, 2006
Posts: 1472
Location: In front of a screen....HELP! lol

PostPosted: Fri Apr 27, 2007 3:13 pm Reply with quote Back to top

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.
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
codsniper
Regular
Regular


Joined: Feb 19, 2007
Posts: 50
Location: Almost at the north-pole

PostPosted: Wed May 09, 2007 3:55 pm Reply with quote Back to top

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 Smile
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
psmith
New Member
New Member


Joined: May 29, 2007
Posts: 1

PostPosted: Wed May 30, 2007 11:07 am Reply with quote Back to top

Worked perfectly for me too, Thank you!!!!!
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic