i recently migrated from phpnuke 8.0 to raven nuke 2.30.02. Every thing is working so far so good. I am glad to have shortlinks and other security features .
i used to have Center Block for Forums in my old site but it doesnt work on ravennuke , the right blocks and other parts of the site dissapears when i try to activate this.
Pardon me for being a total idiot. But i would be very greatful if somebody here could take the hassle of converting the Forum Center block so it works with raven nuke without any errors. the code is below.
// When set to 1 then Forums permissions which View and/or Read are NOT set to 'ALL' will NOT be displayed in the center block
$HideViewReadOnly = 'ALL';
// Show only 5 last new topics
$Last_New_Topics = 7;
// Icon that is displayed in Center Block in front of Topic
$IconPath = "images/msg.png";
//size of the outer border
$border = 1;
//cell spacing around the tables
$cellspacing = 0;
/* Total Amount of Topics */
$result = sql_query( "SELECT * FROM ".$prefix."_bbtopics", $dbi );
$Amount_Of_Topics = sql_num_rows( $result );
/* Total Amount of Posts */
$result = sql_query( "SELECT * FROM ".$prefix."_bbposts", $dbi );
$Amount_Of_Posts = sql_num_rows( $result );
Thank you for reading.
I think raven nuke community is growing but there arent many raven nuke compatible blocks like there are for regular php nuke which is kind of frustrating.
// When set to 1 then Forums permissions which View and/or Read are NOT set to 'ALL' will NOT be displayed in the center block
$HideViewReadOnly = 'ALL';
// Show only 5 last new topics
$Last_New_Topics = 7;
// Icon that is displayed in Center Block in front of Topic
$IconPath = "images/msg.png";
//size of the outer border
$border = 1;
//cell spacing around the tables
$cellspacing = 0;
/* Total Amount of Topics */
$result = sql_query( "SELECT * FROM ".$prefix."_bbtopics", $dbi );
$Amount_Of_Topics = sql_num_rows( $result );
/* Total Amount of Posts */
$result = sql_query( "SELECT * FROM ".$prefix."_bbposts", $dbi );
$Amount_Of_Posts = sql_num_rows( $result );
// When set to 1 then Forums permissions which View and/or Read are NOT set to 'ALL' will NOT be displayed in the center block
$HideViewReadOnly = 'ALL';
// Show only 5 last new topics
$Last_New_Topics = 7;
// Icon that is displayed in Center Block in front of Topic
$IconPath = "images/msg.png";
//size of the outer border
$border = 1;
//cell spacing around the tables
$cellspacing = 0;
/* Total Amount of Topics */
$result = $db->sql_query( "SELECT * FROM ".$prefix."_bbtopics");
$Amount_Of_Topics = $db->sql_numrows( $result );
/* Total Amount of Posts */
$result = $db->sql_query( "SELECT * FROM ".$prefix."_bbposts");
$Amount_Of_Posts = $db->sql_numrows( $result );
The edited center forum code above isnt working at all, there is a major issue with block width and the links it is generating
And the Block-forumcollapsing isnt working either ,the hide/show link isnt working i had selected the jumpoxes to be hidden.
Is there anything i missed ..
Code:
global $user_prefix, $db, $sitename, $admin, $user, $bgcolor1, $bgcolor2, $textcolor1, $textcolor2;
$hideLinksFromGuests = FALSE;
$hideTheseForums = '-1'; // use a comma delimited list of forum id's to hide like '1,5,8'
$tickerWidth = '90%';
$tickerBGColor = "$bgcolor2";
$tickDelay = 4000; // in miliseconds
$hideViewReadOnly = TRUE;
$lastNewTopics = 15; // Number of topics to show when list is expanded
$countTopics = 0;
$showClosedNum = 1; // Number of messages that are visible when collapsed - NOT IMPLEMENTED YET
$showJumpBoxes = FALSE; // Display or don't display the 2 Jump Boxes
$showTopPosters = 2; // 0=None, 1=Username - no avatar, 2=Username and avatar
$showTopPostersRanks = 3; // 0=None, 1=Admin only, 2=Moderator only, 3=Admin and Moderator, 4=All
$showTopPostersNum = 5; // Total number of top posters to show
$showTopPostersPerRow = 5; // Number to show per line
$showTickerMessage = TRUE; // show/hide the top ticker message
$skipTopPostersUserNames = "','"; // use a comma separated list with each name in single quotes, like 'user1','user2'.
$backendForumsXML = 'feeds-2-rss.xml'; //Filename of the xml script. Assumed in root directory.
Or could it be the javascript.php
It says add the contents of javascript.txt before ?> but i have a feeling the show /hide link might need some javascript to work too
HELP !!!
thank you ..
block-forumcollapsing downloaded from DOWNLOADS in this site is not working properly .
there is a  on the left hand top of the block and the show/hide link is not working .
what could be it ????
you can see what i mean by visiting
Only registered users can see links on this board! Get registered or login to the forums!
Joined: Dec 19, 2004 Posts: 3132 Location: Germany:Moderator German NukeSentinel Support
Posted:
Sat Sep 05, 2009 2:59 am
To get rid of this:  you need to upload the original block or if you open the block on your server and you can see this before the open tag just delete it. This was caused through your own editor its called "BOM". Don´t know why the hide links don´t work.
To get rid of this:  you need to upload the original block or if you open the block on your server and you can see this before the open tag just delete it. This was caused through your own editor its called "BOM". Don´t know why the hide links don´t work.
The rest of the block is showing up fine.
Its just the show hide button thats not working. It slightly moves the block when clicked on show hide link but doesnt actually display the forum posts and that ...
Wonder what it could be
Joined: Dec 02, 2006 Posts: 1252 Location: Texas, USA
Posted:
Sat Sep 05, 2009 2:05 pm
try disabling the shoutbox block and see if that fixes the show/hide on the forums block. seem to remember there was some slight tweak that was required to run them both... js issue.... there is mention of it in the shoutbox install.txt too.
try this thread or one of the other threads mentioned in this thread
Only registered users can see links on this board! Get registered or login to the forums!
Disabled the Shout Box and Show hide is working now eventyally
But it doesnt seem to be showing the latest post ..
Instead of showing the posts made today its showing posts from 2 days ago..
Joined: Dec 02, 2006 Posts: 1252 Location: Texas, USA
Posted:
Sun Sep 06, 2009 11:17 am
it may be in your forum permissions... i tried one of your forums "New Members / Introduce Yourself To us" and I couldnt view without registration. keep in mind it wont show posts from private forums, for obvious reasons
wonder if this is the case even if the member is logged in, and so has the permission to view the forum.
Plus i was also wondering if there is a way the show/hide button could be removed and have the block free of JAVASCRIPT which is conflicting with shout box scrolling block.
when i did the edit and changed start_ticking to start_ticking() , it did work for few hours now the show hide area has disappeared again.
I dont know whats the problem .
Wonder if some one can help me to convert the blocks - forumscollapsing to block- forums non collapsing. I mean the same block but without the javascript show / hide feature.
Help .. me to convert the collapsing block into non collapsing block .. thank you
Joined: Dec 02, 2006 Posts: 1252 Location: Texas, USA
Posted:
Tue Sep 08, 2009 7:56 pm
im not getting into converting that block.....
i know it's possible to run them both because i do, under the same theme too.
where did you edit window.onload=start_ticking?
the problem is you have two scripts using window onload.
this is from the shoutbox install, you try this?
Code:
8) JAVASCRIPT:
-It is a known fact that, if two or more javascript apps use window.onload=, that one or more will fail.
-I have provided an area within the shoutbox.js file at the top to resolve this.
-Open all your other blocks and modules that use window.onload= in KATE or wordpad and write down all the onload events. Watch CAPS!
-NOTE: window.onload=WorldClock will become WorldClock();
-Place a // in front of all those window.onload events, save, and reupload. This stops them from running.
-Example: // window.onload=WorldClock
-Open shoutbox.js
-At the top youll see:
function allonloads() {
populate();
}
-Place all your events in it like this:
function allonloads() {
populate();
WorldClock();
Something();
SomethingElse();
}
-This starts all your blocks with javascript running again without conflict.
-Save and upload shoutbox.js
-Note: The shout box will have to be on the left side of your site in order for the others to work (unless all your blocks using javascript are on the right side).
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