Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN Installer/Setup Issues
Author Message
Gremmie
Former Moderator in Good Standing



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

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

I think I know how to left justifiy it again. Stay tuned.

_________________
Only registered users can see links on this board! Get registered or login! - An Event Calendar for PHP-Nuke
Only registered users can see links on this board! Get registered or login! - A Google Maps Nuke Module 
View user's profile Send private message
FireATST
RavenNuke(tm) Development Team



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

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

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







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

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







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

That did it Gremmie....thank you!
 
zlmark
Regular
Regular



Joined: Sep 25, 2006
Posts: 57

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

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







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

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







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

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
Involved
Involved



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

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

http://www.ravenphpscripts.com/postt12899.html 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







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

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

 
zlmark







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

Thanks Gremmie, will fix it tonight when i get home.
 
CodyG
Life Cycles Becoming CPU Cycles



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

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

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.

_________________
"We want to see if life is ubiquitous." D.Goldin 
View user's profile Send private message
zlmark







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

Thanks!!!!!!!!!! works like a charm! you da man gremmie! worship
 
bugsTHoR
Involved
Involved



Joined: Apr 05, 2006
Posts: 263

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

nothing changed with mine either , any news on a fix guys

_________________
LUV RAVEN DISTROBUTION BEBE

Clanthemes.com are great (free advertisements for now until i get to 20,000 posts LoL) 
View user's profile Send private message
Gremmie







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

The fixes are posted above. They didn't work for you?
 
bugsTHoR







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

no m8, i still blank txt when i enter them on on e of the test sites, sry for that
 
Gremmie







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

Clear your cache after changing the .js file. Go over the edits again carefully...
 
bugsTHoR







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

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







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

Actually you can leave the DOCTYPE at XHTML 1.0 Transitional. The two fixes are here in this post:

http://www.ravenphpscripts.com/postp97712.html#97712
 
gregexp
The Mouse Is Extension Of Arm



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

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

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.

_________________
For those who stand shall NEVER fall and those who fall shall RISE once more!! 
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

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

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







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

darklord did you want me to send you the shoutbox files?
 
gregexp







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

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
Regular



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

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

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

Worked perfectly for me too, Thank you!!!!!
 
View user's profile Send private message
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN Installer/Setup Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©