Author |
Message |
dad7732
RavenNuke(tm) Development Team

Joined: Mar 18, 2007
Posts: 1242
|
Posted:
Tue Feb 24, 2009 1:35 pm |
|
Not using ShortLinks.
The theme is the Kalgash Dreams |
|
|
|
 |
Palbin
Site Admin

Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania
|
Posted:
Tue Feb 24, 2009 1:49 pm |
|
You'll have to wait for jestrella to post back cause I rally have no idea  |
_________________ "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. |
|
|
 |
dad7732

|
Posted:
Tue Feb 24, 2009 1:53 pm |
|
There is no rush whatsoever as I don't use CP on that particular site ... yet, but plan to at a future date. Never too early to start things tho ..
Cheers |
|
|
|
 |
spasticdonkey
RavenNuke(tm) Development Team

Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA
|
Posted:
Tue Feb 24, 2009 2:32 pm |
|
If you are using an old theme it's possible that there are errors that browsers can tolerate, but the export to pdf function cannot. Seems like I read somewhere that it can be a little "touchy"
Have you checked the page for validation errors and warnings? The Tidy html validator addon for firefox comes in handy often  |
|
|
|
 |
dad7732

|
Posted:
Tue Feb 24, 2009 3:07 pm |
|
I run Tidy all the time as an extension in Firefox and it doesn't particularly care for PHP generated HTML pages. There are no generated errors other than the one I posted here. |
|
|
|
 |
dad7732

|
Posted:
Tue Feb 24, 2009 3:56 pm |
|
Found the problem, there is a javascript file that is called to fade the mouseovers in the menu links and most everywhere else there is a link. Commenting out the "fade.js" file in theme.php will cause CP PDF to work now. For the benefit of those interested, here is fade.js
Quote: | /*************
**** <config>
**/
stepIn = 20; // delay when fading in
stepOut = 20; // delay when fading out
/*
** set to true or false; true will
** cause all links to fade automatically
***/
autoFade = true;
/*
** set to true or false; true will cause all CSS
** classes with "fade" in them to fade onmouseover
***/
sloppyClass = true;
/**
**** </config>
**************/
/*************
**** <install>
**
**
**** </install>
**************/
hexa = new makearray(16);
for(var i = 0; i < 10; i++)
hexa[i] = i;
hexa[10]="a"; hexa[11]="b"; hexa[12]="c";
hexa[13]="d"; hexa[14]="e"; hexa[15]="f";
document.onmouseover = domouseover;
document.onmouseout = domouseout;
startColor = dehexize(startColor.toLowerCase());
endColor = dehexize(endColor.toLowerCase());
var fadeId = new Array();
function dehexize(Color){
var colorArr = new makearray(3);
for (i=1; i<7; i++){
for (j=0; j<16; j++){
if (Color.charAt(i) == hexa[j]){
if (i%2 !=0)
colorArr[Math.floor((i-1)/2)]=eval(j)*16;
else
colorArr[Math.floor((i-1)/2)]+=eval(j);
}
}
}
return colorArr;
}
function domouseover() {
if(document.all){
var srcElement = event.srcElement;
if ((srcElement.tagName == "A" && autoFade) || srcElement.className == "fade" || (sloppyClass && srcElement.className.indexOf("fade") != -1))
fade(startColor,endColor,srcElement.uniqueID,stepIn);
}
}
function domouseout() {
if (document.all){
var srcElement = event.srcElement;
if ((srcElement.tagName == "A" && autoFade) || srcElement.className == "fade" || (sloppyClass && srcElement.className.indexOf("fade") != -1))
fade(endColor,startColor,srcElement.uniqueID,stepOut);
}
}
function makearray(n) {
this.length = n;
for(var i = 1; i <= n; i++)
this[i] = 0;
return this;
}
function hex(i) {
if (i < 0)
return "00";
else if (i > 255)
return "ff";
else
return "" + hexa[Math.floor(i/16)] + hexa[i%16];}
function setColor(r, g, b, element) {
var hr = hex(r); var hg = hex(g); var hb = hex(b);
element.style.color = "#"+hr+hg+hb;
}
function fade(s,e, element,step){
var sr = s[0]; var sg = s[1]; var sb = s[2];
var er = e[0]; var eg = e[1]; var eb = e[2];
if (fadeId[0] != null && fade[0] != element){
setColor(sr,sg,sb,eval(fadeId[0]));
var i = 1;
while(i < fadeId.length){
clearTimeout(fadeId[i]);
i++;
}
}
for(var i = 0; i <= step; i++) {
fadeId[i+1] = setTimeout("setColor(Math.floor(" +sr+ " *(( " +step+ " - " +i+ " )/ " +step+ " ) + " +er+ " * (" +i+ "/" +
step+ ")),Math.floor(" +sg+ " * (( " +step+ " - " +i+ " )/ " +step+ " ) + " +eg+ " * (" +i+ "/" +step+
")),Math.floor(" +sb+ " * ((" +step+ "-" +i+ ")/" +step+ ") + " +eb+ " * (" +i+ "/" +step+ ")),"+element+");",i*step);
}
fadeId[0] = element;
} |
Cheers
Unfortunately I'm not savvy enough to have a clue as to why the fade.js causes it to not work.  |
|
|
|
 |
jestrella
Moderator

Joined: Dec 01, 2005
Posts: 593
Location: Santiago, Dominican Republic
|
Posted:
Tue Feb 24, 2009 6:14 pm |
|
dad7732 sorry but what's the theme that you're using? can i get it from somewhere? |
_________________ "For those whom have not reach the sky... Every mountain seems high"
Best Regards
Jonathan Estrella
http://about.me/jestrella04 |
|
|
 |
dad7732

|
Posted:
Tue Feb 24, 2009 6:52 pm |
|
From my above post:
Quote: | The theme is the Kalgash Dreams |
Note: Kalgash seems to be unresponsive but you can download an unmodified copy from my site:
www.ufaq.org/downloads/dreams.7z |
|
|
|
 |
gyrotwister
New Member


Joined: Nov 21, 2006
Posts: 6
|
Posted:
Wed Mar 11, 2009 3:43 pm |
|
I have some problems with the printing to PDF. If I print to PDF than the pictures won't show up in the output.
Also when I print the tables I have used in the pages will be printed disorted.
More heard about these problems?
With kind regards,
GyroTwister |
|
|
|
 |
nuken
RavenNuke(tm) Development Team

Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina
|
Posted:
Wed Mar 11, 2009 5:57 pm |
|
What version of content plus are you using. The latest is 2.2.2 for RavenNuke. |
_________________ Only registered users can see links on this board! Get registered or login! |
|
|
 |
gyrotwister

|
Posted:
Thu Mar 12, 2009 6:59 am |
|
Code:Module Copyright © Information
Content Plus module for PHP-Nuke & Derivatives
--------------------------------------------------------------------------------
Module's Name: Content Plus
Module's Version: 2.2.2
License: GNU/GPL
Author's Name: Jonathan Estrella
Author's Email: jestrella04 (at) gmail (dot) com
Module's Description: Revamped Content Module
Module's Download: Download
|
As found in the copyright..... |
|
|
|
 |
dad7732

|
Posted:
Thu Mar 12, 2009 7:10 am |
|
Quote: | The latest is 2.2.2 for RavenNuke |
On Jonathan's site right now and all I can find is 2.2.1 |
|
|
|
 |
nuken

|
Posted:
Thu Mar 12, 2009 8:43 am |
|
The one that came with the RavenNuke 2.30.01 is 2.2.2. |
|
|
|
 |
dad7732

|
Posted:
Thu Mar 12, 2009 8:49 am |
|
Gotcha .. One less hair to pull out now.
Thanks/Cheers |
|
|
|
 |
|