Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's Collapsing Forums Block
Author Message
shotokan
Worker
Worker


Joined: Aug 27, 2006
Posts: 172

PostPosted: Wed Dec 13, 2006 8:05 pm Reply with quote

I don't think so. Everything is the same. the differences i posted above are from the version i downloaded comprared to the one you sent me

_________________
Shotokan 
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9449
Location: Arizona

PostPosted: Thu Dec 14, 2006 6:40 am Reply with quote

And the last difference in your post tells me that you may not have the CSS implemented. That is the only thing that I can see that could have been causing your original errors.

When you say "I don't think so", does that mean you checked your edits and you can see that the CSS statements for this block are in fact being used? If you have not checked, you might want to. Wink

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
shotokan
PostPosted: Thu Dec 14, 2006 9:05 am Reply with quote

Actually when i said "i don't think so" i was referring to the fact that i had done all the installation steps and chaned everything that was on the readme file.

I don't know much about PHP and i a not sure when you say the code differences i posted was due to the CSS being implemented.

I saw the code had statement that the other one didn't have or was coded different, so for me they would behave different for sure but when you say about the CSS think i really got confused now. Because the whole installation i did before i did not change even a "," i just replaced the block-program from the one you sent and boom it worked.
 
montego
PostPosted: Fri Dec 15, 2006 7:03 am Reply with quote

Do you have the following code somewhere, in either includes/javascript.php or possibly includes/custom_files/custom_head.php (which is where I put it):

Code:


echo <<<_JS_
<s~tyle type="text/css">
<!--

#listbutton{
border:1px solid #4B4B4B;
background-color:#F3F3F3;
width:60px;
height:12px;
font: normal 11px Arial, Verdana, Helvetica, sans-serif;
text-align:center;
cursor:pointer;cursor:pointer;
vertical-align:top;
}

.expandhighlight, .expandhighlight a{
color:red;
}

-->
</s~tyle>
_JS_;


I cannot remember if I modified this at all from the original instructions, but the above is where you may also be able to tweak your colors.

Also, please note my use of s~tyle instead of style due to not wanting to be spanked by NukeSentinel again. Smile
 
shotokan
PostPosted: Sat Dec 16, 2006 2:28 pm Reply with quote

montego wrote:
Do you have the following code somewhere, in either includes/javascript.php or possibly includes/custom_files/custom_head.php (which is where I put it):

Code:


echo <<<_JS_
<s~tyle type="text/css">
<!--

#listbutton{
border:1px solid #4B4B4B;
background-color:#F3F3F3;
width:60px;
height:12px;
font: normal 11px Arial, Verdana, Helvetica, sans-serif;
text-align:center;
cursor:pointer;cursor:pointer;
vertical-align:top;
}

.expandhighlight, .expandhighlight a{
color:red;
}

-->
</s~tyle>
_JS_;


I cannot remember if I modified this at all from the original instructions, but the above is where you may also be able to tweak your colors.

Also, please note my use of s~tyle instead of style due to not wanting to be spanked by NukeSentinel again. Smile


I have exatly the same code (but using styles and not s~tyles Smile ) but mine is inside the javascripts.php at the /includes directory.

So here is where i can change the colors and fonts for the collapsing block?
 
montego
PostPosted: Sat Dec 16, 2006 8:46 pm Reply with quote

Quote:

So here is where i can change the colors and fonts for the collapsing block?


Give it a try and see if it works... I have not customized it myself, for color schemes, because I use the same theme as its author. Smile
 
nagahosting
Regular
Regular


Joined: Nov 03, 2007
Posts: 52
Location: Nagalim

PostPosted: Mon Apr 14, 2008 12:49 am Reply with quote

I tried the tricks advised here but still not working in Firefox Crying or Very sad

In firefox... Shoutbox scrolls only when im in diff page, but not in index page. Crying or Very sad

Will recheck and get back if theres anything wrong with the theme as well. Hope not theme issue though

You can check Only registered users can see links on this board! Get registered or login! both in firefox and IE if you want

_________________
Blessed Is He Who Comes In The Name Of The Lord 
View user's profile Send private message Visit poster's website
montego
PostPosted: Mon Apr 14, 2008 5:38 am Reply with quote

The Shoutbox only scrolling on another page sounds to me like you have conflicting javascript or some other code with another one of your blocks. It might be your Naga Gallery block. Try turning that off to see if Shout box works.

BTW, is the HTML Newsletter block my core code that is still using the marquee tag rather than some javascript scrolling method that you have applied?
 
nagahosting
PostPosted: Tue Apr 15, 2008 3:46 am Reply with quote

Yep i have ForumsCollapsing block, Scrolling coppermine Gallery block, shoutbox, scrolling forums on the left too. This error comes after i installed this ForumsCollapsing block. And the funny story is ... it doesnt have issues with INternet explorer. I tried the tricks given here and shoutbox scrolls smoothly in IE... but Firefox still have issues.

The newsletter block is original ( your script) . I didnt edit any codes. Tried deactivating all the scrolling blocks but didnt make any difference. Maybe its just my bad luck ?? killing me
 
montego
PostPosted: Tue Apr 15, 2008 5:31 am Reply with quote

That is odd because the newsletter one is just using a standard marguee tag but its really "jumpy" on your site. I have never seen that before how its starting over rather than scrolling back up from the bottom. I wonder if my latest FF update has had anything to do with that.

Ok, so the conflict is between the Shout box and ForumsCollapsing block. I don't know what it would be, but you might try searching some more here to see if there is an answer. I say that only because both of these blocks seem to be popular. I am also guessing that the conflict is somehow related to the window.onload=start_ticking.

Maybe Gremmie will remember. It seems that it was either djmaze or technocrat mentioned an alternative way to get these two (or could have been another two) blocks to work together.
 
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17077

PostPosted: Tue Apr 15, 2008 3:55 pm Reply with quote

It does sound like conflicting window.onload events. I don't have the posts at hand but search the forums because it's a relatively simple solution. The key is that all window.onload events must fire from the last script that LOADS on the page.
 
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


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

PostPosted: Tue Apr 15, 2008 5:07 pm Reply with quote

Forgive me I haven't read this thread carefully, but I just saw my name. Smile

As I recall, you can do 1 of 2 things. If you have:

Code:


// script 1 does this:
window.onload = a;

// script 2 does this:
window.onload = b;


You can introduce a new function to call a and b:

Code:


function myOnLoad()
{
   a();
   b();
}

window.onload = myOnLoad;


The OurScripts.net shoutbox does this. It provides a function in shoutbox.js that you can put your other scripts onload functions in. It is called allonloads().

But the preferred solution is to not use window.onload. Instead, register a handler for the event instead.

Code:


// each script does this:
if (window.addEventListener)
{
   window.addEventListener('load', myLoadFunction, false);
}
else if (window.attachEvent)
{
   window.attachEvent('onload', myLoadFunction);
}

_________________
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
montego
PostPosted: Wed Apr 16, 2008 7:09 am Reply with quote

..yes, I somehow knew you were in the middle of the original "debate" Gremmie... hence the name drop. lol! I could not recall what the final "preferred" was. I believe it was djmaze who suggested that right?
 
Gremmie
PostPosted: Wed Apr 16, 2008 8:27 am Reply with quote

I picked it up from either Technocrat or djmaze, I can't remember. But if you google some javascript best practices you'll find this.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's Collapsing Forums Block

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 ©