Author |
Message |
ghostgeek
Regular
![Regular Regular](modules/Forums/images/ranks/2stars.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Jan 14, 2005
Posts: 93
|
Posted:
Sun Jan 30, 2005 1:47 pm |
|
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! |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
Site Admin/Owner
![](modules/Forums/images/avatars/45030c033f18773153cd2.gif)
Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Sun Jan 30, 2005 8:42 pm |
|
Do you have any other scrolling blocks on your site? If so, temporarily disable them to see if there's a conflict. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
ghostgeek
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jan 30, 2005 8:52 pm |
|
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](modules/Forums/images/smiles/icon_smile.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jan 30, 2005 9:00 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
ghostgeek
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jan 30, 2005 9:22 pm |
|
BINGO! You rock! Thanks again! ![Very Happy](modules/Forums/images/smiles/icon_biggrin.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
ghostgeek
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Feb 03, 2005 12:40 pm |
|
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%
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 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
Anywho... anyone know how I would modify this to ONLY display the most recent posts and stop "ticking" when the table is expanded?
Thanks |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
pudbat
New Member
![New Member New Member](modules/Forums/images/ranks/1star.gif)
![](modules/Forums/images/avatars/blank.gif)
Joined: Mar 05, 2005
Posts: 20
|
Posted:
Sat Mar 19, 2005 12:47 am |
|
does this block work with 7.6? i don't have a SHOW/HIDE button and I'm not running any scrolling blocks. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Mar 19, 2005 10:40 am |
|
It should but I haven't tried it. What browser are you using? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
pudbat
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Mar 19, 2005 11:00 am |
|
good old safari, i'll try using another |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
rick_jones
New Member
![New Member New Member](modules/Forums/images/ranks/1star.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Aug 21, 2006
Posts: 22
|
Posted:
Wed Aug 23, 2006 2:26 pm |
|
Any updates ? ![Smile](modules/Forums/images/smiles/icon_smile.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Aug 23, 2006 4:53 pm |
|
rick_jones wrote: | Any updates ? |
Updates concerning what? The last post is over a year old ![Smile](modules/Forums/images/smiles/icon_smile.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
rick_jones
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Aug 24, 2006 12:01 am |
|
That's why I thought there would defintely be a update ![Very Happy](modules/Forums/images/smiles/icon_biggrin.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Aug 24, 2006 9:26 am |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
rick_jones
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Aug 24, 2006 10:16 am |
|
Sorry nope, I was just being curios. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
mirage
New Member
![New Member New Member](modules/Forums/images/ranks/1star.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Sep 11, 2006
Posts: 3
|
Posted:
Mon Sep 11, 2006 6:14 pm |
|
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) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
Site Admin
![](modules/Forums/images/avatars/0c0adf824792d6d341ef4.gif)
Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Tue Sep 12, 2006 5:59 am |
|
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! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
mirage
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Sep 12, 2006 7:31 am |
|
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 |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Sep 13, 2006 5:48 am |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
mirage
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Sep 13, 2006 7:24 am |
|
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 |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
shotokan
Worker
![Worker Worker](modules/Forums/images/ranks/3stars.gif)
![](modules/Forums/images/avatars/aba1a00a45919606b5248.gif)
Joined: Aug 27, 2006
Posts: 172
|
Posted:
Wed Dec 06, 2006 1:14 pm |
|
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 ? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Dec 06, 2006 7:26 pm |
|
Have you set these configuration options in the block file appropriately?
$showTopPosters
$showTopPostersRanks
$showTopPostersNum
$showTopPostersPerRow |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
shotokan
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Dec 06, 2006 8:31 pm |
|
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.
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Dec 07, 2006 5:55 am |
|
Works perfectly for me, even with these settings. PM me your email address and I'll send you my copy of the block. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
shotokan
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Dec 11, 2006 8:27 am |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Dec 13, 2006 2:46 pm |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|