PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
ghostgeek
Regular
Regular


Joined: Jan 14, 2005
Posts: 87

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

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: 15024
Location: Kansas

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

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 Visit poster's website AIM Address Yahoo Messenger
ghostgeek
Regular
Regular


Joined: Jan 14, 2005
Posts: 87

PostPosted: Sun Jan 30, 2005 8:52 pm Reply with quote Back to top

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
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15024
Location: Kansas

PostPosted: Sun Jan 30, 2005 9:00 pm Reply with quote Back to top

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 to the forums!
Only registered users can see links on this board!
Get registered or login to the forums!
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
ghostgeek
Regular
Regular


Joined: Jan 14, 2005
Posts: 87

PostPosted: Sun Jan 30, 2005 9:22 pm Reply with quote Back to top

BINGO! You rock! Thanks again! Very Happy
View user's profile Send private message
ghostgeek
Regular
Regular


Joined: Jan 14, 2005
Posts: 87

PostPosted: Thu Feb 03, 2005 12:40 pm Reply with quote Back to top

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
View user's profile Send private message
pudbat
New Member
New Member


Joined: Mar 05, 2005
Posts: 20

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

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
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15024
Location: Kansas

PostPosted: Sat Mar 19, 2005 10:40 am Reply with quote Back to top

It should but I haven't tried it. What browser are you using?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
pudbat
New Member
New Member


Joined: Mar 05, 2005
Posts: 20

PostPosted: Sat Mar 19, 2005 11:00 am Reply with quote Back to top

good old safari, i'll try using another
View user's profile Send private message
rick_jones
New Member
New Member


Joined: Aug 21, 2006
Posts: 22

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

Any updates ? Smile
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15024
Location: Kansas

PostPosted: Wed Aug 23, 2006 4:53 pm Reply with quote Back to top

rick_jones wrote:
Any updates ? Smile

Updates concerning what? The last post is over a year old Smile
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
rick_jones
New Member
New Member


Joined: Aug 21, 2006
Posts: 22

PostPosted: Thu Aug 24, 2006 12:01 am Reply with quote Back to top

That's why I thought there would defintely be a update Very Happy
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15024
Location: Kansas

PostPosted: Thu Aug 24, 2006 9:26 am Reply with quote Back to top

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.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
rick_jones
New Member
New Member


Joined: Aug 21, 2006
Posts: 22

PostPosted: Thu Aug 24, 2006 10:16 am Reply with quote Back to top

Sorry nope, I was just being curios.
View user's profile Send private message
mirage
New Member
New Member


Joined: Sep 11, 2006
Posts: 3

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

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: 7327
Location: Arizona

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

mirage, welcome to RavenPHPScripts! Unfortunately, I am not aware of any other translations for this block.
View user's profile Send private message Visit poster's website
mirage
New Member
New Member


Joined: Sep 11, 2006
Posts: 3

PostPosted: Tue Sep 12, 2006 7:31 am Reply with quote Back to top

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
View user's profile Send private message
montego
Site Admin


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

PostPosted: Wed Sep 13, 2006 5:48 am Reply with quote Back to top

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.
View user's profile Send private message Visit poster's website
mirage
New Member
New Member


Joined: Sep 11, 2006
Posts: 3

PostPosted: Wed Sep 13, 2006 7:24 am Reply with quote Back to top

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
View user's profile Send private message
shotokan
Worker
Worker


Joined: Aug 27, 2006
Posts: 153

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

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
Site Admin


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

PostPosted: Wed Dec 06, 2006 7:26 pm Reply with quote Back to top

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

$showTopPosters
$showTopPostersRanks
$showTopPostersNum
$showTopPostersPerRow
View user's profile Send private message Visit poster's website
shotokan
Worker
Worker


Joined: Aug 27, 2006
Posts: 153

PostPosted: Wed Dec 06, 2006 8:31 pm Reply with quote Back to top

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.
View user's profile Send private message
montego
Site Admin


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

PostPosted: Thu Dec 07, 2006 5:55 am Reply with quote Back to top

Works perfectly for me, even with these settings. PM me your email address and I'll send you my copy of the block.
View user's profile Send private message Visit poster's website
shotokan
Worker
Worker


Joined: Aug 27, 2006
Posts: 153

PostPosted: Mon Dec 11, 2006 8:27 am Reply with quote Back to top

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.
View user's profile Send private message
montego
Site Admin


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

PostPosted: Wed Dec 13, 2006 2:46 pm Reply with quote Back to top

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.
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic