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
ghostgeek
Regular
Regular


Joined: Jan 14, 2005
Posts: 93

PostPosted: Sun Jan 30, 2005 1:47 pm Reply with quote

I'm trying to install the ForumsCollapsing block on my site (like the one on the main page of this site). I downloaded it from here, but cant seem to make it work. No data is displayed in the collapsing table - even when I click the SHOW/HIDE button.

I have the block-Forums-Center.php by iPenang.com on my site right now, and it works fine.

Trying to view the source of each block to determine if there are common variables that needed to be renamed, but I'm not a programmer, and I quickly found myself in over my head.

Any help would be appreciated. Thanks again!
 
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17086

PostPosted: Sun Jan 30, 2005 8:42 pm Reply with quote

Do you have any other scrolling blocks on your site? If so, temporarily disable them to see if there's a conflict.
 
View user's profile Send private message
ghostgeek
PostPosted: Sun Jan 30, 2005 8:52 pm Reply with quote

Your brilliant! Yes - I had the "Shout Box!" block enabled. Sure enough, I disabled it and ForumsCollapsing worked like a charm.

Next question... how do I get them to co-exist? Or is this a no-go? :/

Thanks a bunch! Smile
 
Raven
PostPosted: Sun Jan 30, 2005 9:00 pm Reply with quote

This seems to usually work, but I can see where it might cause problems. Edit the collapsing block files. On or about line 177 findCode:
window.onload=start_ticking
and modify it to readCode:
start_ticking()

If that doesn't work, read these posts:
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! Only registered users can see links on this board! Get registered or login!
 
ghostgeek
PostPosted: Sun Jan 30, 2005 9:22 pm Reply with quote

BINGO! You rock! Thanks again! Very Happy
 
ghostgeek
PostPosted: Thu Feb 03, 2005 12:40 pm Reply with quote

OK... I've been playing with this block quite a bit over the past few days - trying to get it to play nice with my theme (check) and enhancing the space by moving the SHOW/HIDE button to the top of the table, vs. the right side (check). Also corrected table code in line 126 that wasn't closing the table properly and was causing everything to wrap to the left. Now it correctly scales to 100% Smile

Also added links to "View posts since last visit" "View your posts" "View unanswered posts" "Search Forums" "Your Profile" "Inbox" - just like the block on that cool site ravenphpscripts.com Wink I'll share my modified version when its complete

Here is the DHTML code I’m working with for the collapsing table…

Code:


// BEGIN - DHTML code for the collapsing table
$js = <<< _JS_

//configure the below 2 variables to set the width/background color of the ticker
var tickerwidth='100%'
var tickerbgcolor='#4a494a'

//configure the below variable to determine the delay between ticking of messages (in miliseconds)
var tickdelay=2000

////Do not edit pass this line////////////////

var ie4=document.all
var ns6=document.getElementById
var ns4=document.layers

var currentmessage=0
var tickercontentstotal=''

function changetickercontent(){
   if (ns4){
      tickerobj.document.tickernssub.document.write('<b><a href="#" onClick="return expandlist(event)">Show/Hide</a></b> | '+tickercontents[currentmessage])
      tickerobj.document.tickernssub.document.close()
   }
   else if (ie4||ns6){
      tickerobj.innerHTML=tickercontents[currentmessage]
      previousmessage=(currentmessage==0)? tickercontents.length-1 : currentmessage-1
      tickerexpand_item=ns6? document.getElementById("expand"+currentmessage) : eval("expand"+currentmessage)
      tickerexpand_previousitem=ns6? document.getElementById("expand"+previousmessage) : eval("expand"+previousmessage)
      tickerexpand_previousitem.className=""
      tickerexpand_item.className="expandhighlight"
   }

   currentmessage=(currentmessage==tickercontents.length-1)? 0 : currentmessage+1
   setTimeout("changetickercontent()",tickdelay)
}

function start_ticking(){
   if (ns4) document.tickernsmain.visibility="show"
   tickerobj=ie4? tickerlist : ns6? document.getElementById("tickerlist") : ns4? document.tickernsmain : ""
   tickerexpandobj=ie4? tickerexpand : ns6? document.getElementById("tickerexpand") : ns4? document.expandlayer : ""

   for (i=0;i<tickercontents.length;i++) //get total scroller contents
      tickercontentstotal+='<div id="expand'+i+'">'+tickercontents[i]+'</div>'
   if (ie4||ns6)
      tickerexpandobj.innerHTML=tickercontentstotal
   else{
      tickerexpandobj.document.write(tickercontentstotal)
      tickerexpandobj.document.close()
   }
   changetickercontent()
}

function expandlist(e){
   if (ie4||ns6){
      tickerexpand_parent=ie4? tickerexpand.parentElement : document.getElementById("tickerexpand").parentNode
      tickerexpand_parent.style.display=(tickerexpand_parent.style.display=="none")? "" : "none"
   }
   else{
      document.expandlayer.left=e.pageX-e.layerX
      document.expandlayer.top= e.pageY-e.layerY+20
      document.expandlayer.visibility=(document.expandlayer.visibility=="hide")? "show" : "hide"
      return false
   }
}

if (ie4||ns6)
document.write('<table border="0" style="width:'+tickerwidth+';border:0px solid black;text-indent:2px" bgcolor="'+tickerbgcolor+'" cellspacing="0" cellpadding="0"><tr><td width="100%" bgcolor="'+tickerbgcolor+'"><div id="listbutton" onClick="expandlist()">Show/Hide</div></td></tr><tr><td width="100%" id="tickerlist" bgcolor="'+tickerbgcolor+'"></td></tr><tr style="display:none"><td width="100%" id="tickerexpand" bgcolor="'+tickerbgcolor+'"> </tr></td></table>')

window.onload=start_ticking()
</sc ript>

<ilayer id="tickernsmain" width=&{tickerwidth}; bgColor=&{tickerbgcolor}; visibility=hide><layer id="tickernssub" width=&{tickerwidth}; left=0 top=0></layer></ilayer>
<layer id="expandlayer" bgColor=&{tickerbgcolor}; visibility=hide></layer>
_JS_;
// END - DHTML code for the collapsing table

$content .= "\n".$js;
error_reporting($currentReporting);
?>


What I want to do now is make the ticker stop ticking once the list is expanded. No reason for it really to do that other than when its collapsed IMO. And besides - my users are complaining of vertigo with the table jumping while the ticker cycles thru. LOL Wink

Anywho... anyone know how I would modify this to ONLY display the most recent posts and stop "ticking" when the table is expanded?

Thanks
 
pudbat
New Member
New Member


Joined: Mar 05, 2005
Posts: 20

PostPosted: Sat Mar 19, 2005 12:47 am Reply with quote

does this block work with 7.6? i don't have a SHOW/HIDE button and I'm not running any scrolling blocks.
 
View user's profile Send private message
Raven
PostPosted: Sat Mar 19, 2005 10:40 am Reply with quote

It should but I haven't tried it. What browser are you using?
 
pudbat
PostPosted: Sat Mar 19, 2005 11:00 am Reply with quote

good old safari, i'll try using another
 
rick_jones
New Member
New Member


Joined: Aug 21, 2006
Posts: 22

PostPosted: Wed Aug 23, 2006 2:26 pm Reply with quote

Any updates ? Smile
 
View user's profile Send private message
Raven
PostPosted: Wed Aug 23, 2006 4:53 pm Reply with quote

rick_jones wrote:
Any updates ? Smile

Updates concerning what? The last post is over a year old Smile
 
rick_jones
PostPosted: Thu Aug 24, 2006 12:01 am Reply with quote

That's why I thought there would defintely be a update Very Happy
 
Raven
PostPosted: Thu Aug 24, 2006 9:26 am Reply with quote

Do you have the latest release? If so, what problems are you experiencing? If you are having issues and they don't pertain to this thread, please start a new thread.
 
rick_jones
PostPosted: Thu Aug 24, 2006 10:16 am Reply with quote

Sorry nope, I was just being curios.
 
mirage
New Member
New Member


Joined: Sep 11, 2006
Posts: 3

PostPosted: Mon Sep 11, 2006 6:14 pm Reply with quote

hi, im french sorry for my language (if is not correct)
I have installed the ForumsCollapsing block on my site but, when im comming in my site i cant see forums in this block (http://mirageegarim.free.fr). (do u have a french language for this block?, i try to make a translation but i have a problem for running)
 
View user's profile Send private message
montego
Site Admin


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

PostPosted: Tue Sep 12, 2006 5:59 am Reply with quote

mirage, welcome to RavenPHPScripts! Unfortunately, I am not aware of any other translations for this block.

_________________
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
mirage
PostPosted: Tue Sep 12, 2006 7:31 am Reply with quote

Hi montego can you comme in my site please (url(http://mirageegarim.free.fr)) because i have a problem with ForumsCollapsing block, i have this message :

"Click on the Show/Hide text (on the far right) to expand/collapse this block
Show/Hide
undefined"

And i dont know why,
I'm use phpnuke 7.6 and ForumsCollapsing 2.3

Thank you for your help
 
montego
PostPosted: Wed Sep 13, 2006 5:48 am Reply with quote

You must have disabled the block. I cannot see it on your site. Had you made changes to the block? I just tried changing my site's language to French and the block did not break.
 
mirage
PostPosted: Wed Sep 13, 2006 7:24 am Reply with quote

Hi montego,

Now you can see the block, in my site, if you can comming again, i dont make changes in this block, for language for me its same to french fo english i cant use it only for seen new in my forum. Thank you for your help
 
shotokan
Worker
Worker


Joined: Aug 27, 2006
Posts: 172

PostPosted: Wed Dec 06, 2006 1:14 pm Reply with quote

I am using only the forum-collapsing one and the only issue i am having is that is not showing the Top_posters at all.

Any idea ?
 
View user's profile Send private message
montego
PostPosted: Wed Dec 06, 2006 7:26 pm Reply with quote

Have you set these configuration options in the block file appropriately?

$showTopPosters
$showTopPostersRanks
$showTopPostersNum
$showTopPostersPerRow
 
shotokan
PostPosted: Wed Dec 06, 2006 8:31 pm Reply with quote

Yes I did. the read-me file is pretty good but still won't show the data for the posters.

that's how it is right now

Code:
$showTopPosters            = 1;  // 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        = 2;  // Number to show per line
$showTickerMessage           = FALSE; // show/hide the top ticker message
$skipTopPostersUserNames   = ""; // use a comma separated list with each name in single quotes, like 'user1','user2'.
$backendForumsXML             = 'backend.php';  //Filename of the xml script.  Assumed in root directory.
 
montego
PostPosted: Thu Dec 07, 2006 5:55 am Reply with quote

Works perfectly for me, even with these settings. PM me your email address and I'll send you my copy of the block.
 
shotokan
PostPosted: Mon Dec 11, 2006 8:27 am Reply with quote

Montego

Your version is working OK for me too.

I've compred the codes and the only differences i found was that

This one was not on the original:
Code:
 //MS_033:BEGIN 2/6/2006 Added to remove mini icons

$showIcons              = 1;  //Turn on/off the showing of new post icons.
//MS_033:END

if ($topic_status) $lockTopic = "<img src='/images/misc/locktopicgray.gif' width='14' height='14' alt='".bfcTOPICLOCKED."' title='".bfcTOPICLOCKED."' border='none' /> ";
else $lockTopic = "";
if (!$hideLinksFromGuests||is_admin($admin)||is_user($user)) {
[/code]

Your Code
Code:
 

> //MS_033:BEGIN
> //if ($topic_status) $lockTopic = "<img src='/images/misc/locktopicgray.gif' width='14' height='14' alt='".bfcTOPICLOCKED."' title='".bfcTOPICLOCKED."' border='none' /> ";
> if ($topic_status && $showIcons != 0) $lockTopic = "<img src='/images/misc/locktopicgray.gif' width='14' height='14' alt='".bfcTOPICLOCKED."' title='".bfcTOPICLOCKED."' border='none' /> ";
> //MS_033:END
> else $lockTopic = "";
> //MS_033:BEGIN
> //if (!$hideLinksFromGuests||is_admin($admin)||is_user($user)) {
> if ((!$hideLinksFromGuests||is_admin($admin)||is_user($user))&&$showIcons != 0) {
> //MS_033:END


A little further down found those other differences.
Original Code
Code:
 

       tickerexpand_item.className="expandhighlight"


Your Code
Code:
 

         tickerexpand_item.className=""


I don't know if this will exaplain or help anyone I just thought to place then here for reference.

Also is there a way to actually make the font on the posts to be more visible? I mean to change the fonts colors because right now is kind of grey and since my theme background is grey is hard to read.
 
montego
PostPosted: Wed Dec 13, 2006 2:46 pm Reply with quote

The first two changes highlighted were just added by me to solve a problem I was having in my own environment due to some DOS settings. Should not have impacted yours at all.

I wonder if you missed the edits to the javascript.php script for this block? Sure sounds like it. I believe that is also where you will find the CSS statements to change the colors.
 
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 ©