Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues
Author Message
dad7732
RavenNuke(tm) Development Team



Joined: Mar 18, 2007
Posts: 1242

PostPosted: Mon Oct 19, 2009 9:34 pm Reply with quote

Like this block a lot for my support site. However, I would like to default it to SHOW rather than HIDE, how? I changed a few things where available in the block but still shows only the default hide (3). Yes, I can change the "3" to "25" and it will always show the 25 no matter whether hide or show.

Cheers
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Tue Oct 20, 2009 12:29 am Reply with quote

Edit block file.

FIND:
$("#main_topic").siblings(".child_topic").hide();

CHANGE TO:
$("#main_topic").siblings(".child_topic").show();
 
View user's profile Send private message
dad7732







PostPosted: Tue Oct 20, 2009 7:04 am Reply with quote

Thanks, thought it would be in the user-selectable configurations at the top, didn't think (as usual) to look past "don't edit below" Very Happy

Cheers
 
dad7732







PostPosted: Tue Oct 20, 2009 7:28 am Reply with quote

Another problem creeped in ...

If I disable "Show top posters", left and right blocks disappear.

Also, if I choose to show top posters, how do I eliminate "Anonymous" as I don't allow anons to post. And yes, anons posting is disabled in the general prefs.

Update: Found how to remove "Anonymous" by using the skip users feature ... RTFM

Cheers
 
Palbin
Site Admin



Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Tue Oct 20, 2009 10:06 am Reply with quote

dad7732, can you make a mantis issue for this?

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
dad7732







PostPosted: Tue Oct 20, 2009 11:13 am Reply with quote

Never logged in to Mantis, don't even remember the access, etc. or how to enter an issue. Guess I could wing it if I can get in.

Cheers
 
Raven







PostPosted: Tue Oct 20, 2009 12:09 pm Reply with quote

dad7732, goto the login screen and request a new password Smile
 
dad7732







PostPosted: Tue Oct 20, 2009 12:36 pm Reply with quote

Hmmm, had a link already bookmarked .. guess it's the right "mantis" .. just entered the issue.

Cheers
 
Palbin







PostPosted: Tue Oct 20, 2009 1:24 pm Reply with quote

Thanks!
 
dad7732







PostPosted: Tue Oct 20, 2009 2:30 pm Reply with quote

Can't see how to edit the submission, maybe I can't .. However ..

Enter 2

Should be

Enter: 0

So that it = none = no posters are shown.
 
Palbin







PostPosted: Tue Oct 20, 2009 3:46 pm Reply with quote

I don't think the new guys can edit yet. I'll take care of it.
 
dad7732







PostPosted: Tue Oct 20, 2009 4:20 pm Reply with quote

That's ok I added the typo correction in as a note on that issue ID

Cheers
 
NeapolitanWorld
Involved
Involved



Joined: Nov 06, 2005
Posts: 339
Location: Los Angeles, USA

PostPosted: Wed Oct 21, 2009 8:36 am Reply with quote

This is another way that worked great for me Very Happy

http://www.ravenphpscripts.com/posts9898-highlight-.html

jc

_________________
My Raven Site Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message
dad7732







PostPosted: Wed Oct 21, 2009 8:52 am Reply with quote

Changing hide() to show() will still allow the user to collapse if so desired.
 
Palbin







PostPosted: Wed Oct 21, 2009 9:15 am Reply with quote

NeapolitanWorld, that won't work with the latest block because i rewrote it to use jQuery.
 
dad7732







PostPosted: Wed Oct 21, 2009 9:26 am Reply with quote

Palbin wrote:
NeapolitanWorld, that won't work with the latest block because i rewrote it to use jQuery.


... and a mighty fine job you did at that!!!

Cheers
 
Palbin







PostPosted: Sat Oct 24, 2009 9:24 pm Reply with quote

Thanks. I am tracking down the "Top Poster" problem now. There appears to be an unclosed div tag.
 
Palbin







PostPosted: Sat Oct 24, 2009 9:40 pm Reply with quote

Find line 195:
Code:


$content .= '<div style="text-align: center"><a href="' . $backendForumsXML . '" title="' . bfcBACKENDTITLE . '"><img src="images/blocks/xmlicon.gif" alt="" border="0" /></a>';

Replace with:
Code:


$content .= '<div style="text-align: center"><a href="' . $backendForumsXML . '" title="' . bfcBACKENDTITLE . '"><img src="images/blocks/xmlicon.gif" alt="" border="0" /></a></div><br />';


Find Line 203:
Code:


$content .= '<br /><br /><span style="font-weight: bold; text-decoration: underline;">' . bfcTOPPOSTERS . '</span><br /><br /><table class="outer" cellpadding="0"'


Replace with:
Code:


$content .= '<div style="text-align: center"><span style="font-weight: bold; text-decoration: underline;">' . bfcTOPPOSTERS . '</span><br /><br /><table class="outer" cellpadding="0"'
 
dad7732







PostPosted: Sun Oct 25, 2009 7:32 am Reply with quote

Thanks, will do the edit .. but .. my users like the Top Posters now so I'll keep it like that after all .. Cool

Cheers
 
dad7732







PostPosted: Sun Oct 25, 2009 7:45 am Reply with quote

Made the edit and changing "show top posters" to "0=none" still causes the side blocks to disappear.

Update: The OTHER top poster configuration lines also have to be changed to "none" or "0" then it works ok.

Cheers
 
Palbin







PostPosted: Sun Oct 25, 2009 3:25 pm Reply with quote

I'm not seeing it so I'm not sure what the problem is.
 
Palbin







PostPosted: Sun Oct 25, 2009 3:41 pm Reply with quote

Can anyone else reproduce this?
 
Palbin







PostPosted: Sun Oct 25, 2009 3:43 pm Reply with quote

What theme are you using?
 
dad7732







PostPosted: Sun Oct 25, 2009 4:07 pm Reply with quote

The problem was when selecting 0 = none for ShowTopPosters the side blocks would disappear.

Theme=RavenIce
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN 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 ©