Author |
Message |
snyper
Hangin' Around
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Nov 18, 2010
Posts: 28
|
Posted:
Thu Apr 28, 2011 8:34 pm |
|
Im running newest ver of raven and all is well on firefox 3xx but when someone uses internet explorer or google crome or firefox 4 the main page drops all blocks to the left side..
Heres with ie,.,.,
![Image Image](http://xas.clanservers.com/nuke/modules/Forums/files/untitled2_526.png) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
spasticdonkey
RavenNuke(tm) Development Team
![](modules/Forums/images/avatars/48fb116845dfecf66294c.gif)
Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA
|
Posted:
Thu Apr 28, 2011 9:10 pm |
|
There are some compliance issues with the theme. You cannot use div inside of h2
Code:<div id="columns"><div class="col1"> <h2>
<div id="span1">Donations!</div><div id="span2"></div>
</h2>
|
The left div class="col1" isn't closing properly as a result. Try this addon for firefox 4+ then view the source of the page and it will give you tips
https://addons.mozilla.org/en-US/firefox/addon/html-validator/
(use tidy algorithm)
You could try
Code:<div id="columns"><div class="col1">
<div id="span1"><h2>Donations!</h2></div><div id="span2"></div>
|
You may want to disable the shoutbox while fixing as it adds alot of warnings which cloak some of the ones you need to fix.. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
snyper
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Apr 29, 2011 2:26 pm |
|
Im pretty much a nub at this,.can i put my theme.php on and you could fix?Plsee
Code:
<?php
/********************************************************/
/* Clan Template for PHP-Nuke */
/* Theme Designed and coded by */
/* http://phpnuke-theme.com */
/********************************************************/
// BEGIN: Added in v2.40.00 - Mantis Issue 0001043
//$index = 0;
//if (!defined('INDEX_FILE')) define('INDEX_FILE', true); // Set to FALSE to hide right blocks
//if (defined('INDEX_FILE') AND INDEX_FILE===true) {
// auto set right blocks for pre patch 3.1 compatibility
// $index = 1;
//}
// END: Added in v2.40.00 - Mantis Issue 0001043
$bgcolor1 = '#171717';
$bgcolor2 = '#171717';
$bgcolor3 = '#171717';
$bgcolor4 = '#171717';
$textcolor1 = '#FF8000';
$textcolor2 = '#FF8000';
function themeheader() {
global $module_name, $banners, $admin, $user, $name, $sitename, $index, $admin_file, $nukeurl, $slogan, $nukeNAV;
echo '<body>';
if (!empty($nukeNAV)) $nukeNAV = '<span class="left"> </span><span class="right"> </span>'.$nukeNAV.'';
else {
$nukeNAV = '<span class="right"> </span><span class="left"> </span>
<a href="./index.php">Home</a>
<a href="./modules.php?name=News">News</a>
<a href="./modules.php?name=Downloads">Downloads</a>
<a href="./modules.php?name=Forums">Forum</a>
<a href="./modules.php?name=Reviews">Reviews</a>
<a href="./modules.php?name=ClanList">ClanList</a>
<a href="./modules.php?name=Your_Account">Account</a>
<a href="./modules.php?name=Feedback">Contact</a>';
if (is_admin($admin)) {
$nukeNAV .= '<a href="./admin.php">Admin</a>';
} else {
$nukeNAV .= '<a href="./modules.php?name=Search">Search</a>';
}
}
echo '
<div id="container">
<!-- Navigation -->
<div id="navigation">';
echo $nukeNAV;
echo '</div>
<div id="themecontainer">
<!-- Banner -->
<h1>
<a href="./"><img src="themes/Clan_Template_Black2/random_banners/random_banner.php" alt="xas.clanservers.com" title="xas.clanservers.com" /></a>
</h1>
<!-- Spotlight Section -->
<div id="">
<div id=""></div><div id=""></div>
<img src="" alt="" class="" />';
if ($banners) {
echo '<br /><br />';
$adText = '';
$adText = ads(0);
if (!empty($adText)) {
echo '<div>' . $adText . '</div>';
}else{
echo '<a title="PHP-Nuke Clan Theme"><img src="" title="PHP-Nuke Clan Theme" /></a>';
}
};
echo '</div>';
echo '<br><!-- Content start - Column wrapper -->
<div id="columns">';
// Column 1 (left)
if (($module_name != 'Forums') AND ($module_name !='Your_Account') AND ($module_name !='Journal') AND ($module_name !='Topics') AND ($module_name !='Private_Messages') AND ($module_name !='Members_List')):
echo '<div class="col1">';
blocks('l');
echo '<p class="clear" /></div>';
endif;
//coloum 2 (center)
if (empty($index)) { $index = null; }
if (defined('INDEX_FILE') || ($index == 1)) {
// right blocks are showing
echo '<div class="col2">';
}
elseif (($module_name != 'Forums') AND ($module_name !='Your_Account') AND ($module_name !='Journal') AND ($module_name !='Topics') AND ($module_name !='Private_Messages') AND ($module_name !='Members_List'))
{
// right blocks are NOT showing
echo '<div class="col2_special">';
}
else { echo "<div>"; }
}
function themefooter() {
global $foot1, $foot2, $foot3, $footer_message, $index;
echo '<p class="clear" /></div><!-- end center -->';
if (defined('INDEX_FILE') && INDEX_FILE===true || ($index === 1)) {
echo '<!-- Column 3 (Right) --><div class="col1">';
blocks('r');
echo '<p class="clear" /></div>';
}
echo '
</div>
<!-- end columns -->
<div id="copyright">';
footmsg();
echo '
<!-- Do not edit the below copyright you are not allowed to edit or remove the below copyright, please give us some credit thanks -->
Clan Template By <a target="_blank" href="http://phpnuke-theme.com" title="PHP-Nuke Theme"></strong>PHPNuke-Theme</strong></a>';
echo '</div>
<div id="footer">
<span class="right"> </span>
<span class="left"> </span>
</div>
</div>
</div>
<!-- end container -->';
}
function OpenTable() {
echo'<h2>
<div id="span1"></div><div id="span2"></div>
</h2>
<div class="block_content">
<div class="roundcont">
<div class="roundtop">
<div>
<img src="themes/Clan_Template_Black/images/tl.gif" alt="" width="15" height="15" class="corner" style="display: none" />
</div>
<div class="articlecontent">';
}
function CloseTable() {
echo' </div>
<div class="roundbottom">
<img src="themes/Clan_Template_Black/images/bl.gif" alt="" width="15" height="15" class="corner" style="display: none" />
</div>
</div>
</div>
</div>';
}
function OpenTable2() {
echo "\n".'<!-- table start --><div class="table2">'."\n";
}
function CloseTable2() {
echo "\n".'</div><!-- table end -->'."\n";
}
function themesidebox($title, $content) {
echo' <h2>
<div id="span1">'.$title.'</div><div id="span2"></div>
</h2>
<div class="block_content">
<div class="roundcont">
<div class="roundtop">
<div>
<img src="themes/Clan_Template_Black/images/tl.gif" alt="" width="15" height="15" class="corner" style="display: none" />
</div>
<div class="articlecontent">
'.$content.'
</div>
<div class="roundbottom">
<img src="themes/Clan_Template_Black/images/bl.gif" alt="" width="15" height="15" class="corner" style="display: none" />
</div>
</div>
</div>
</div>
<p class="clear" />';
}
function themecenterbox($title, $content) {
echo' <h2>
<div id="span1">'.$title.'</div><div id="span2"></div>
</h2>
<div class="block_content">
<div class="roundcont">
<div class="roundtop">
<div>
<img src="themes/Clan_Template_Black/images/tl.gif" alt="" width="15" height="15" class="corner" style="display: none" />
</div>
<div class="articlecontent">
'.$content.'
</div>
<div class="roundbottom">
<img src="themes/Clan_Template_Black/images/bl.gif" alt="" width="15" height="15" class="corner" style="display: none" />
</div>
</div>
</div>
</div>
<p class="clear" />';
}
function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
global $anonymous, $tipath, $user, $admin, $index;
$content = '';
if (!empty($thetext)) $thetext = '<div>'.$thetext.'</div>';
if (!empty($notes)) {
$notes = '<br /><b>'._NOTE.'</b> <div>'.$notes.'</div>';
} else {
$notes = '';
}
if ($aid == $informant) {
$content = $thetext.$notes;
} else {
if(!empty($informant)) {
global $admin, $user;
if (is_user($user)||is_admin($admin)) $content = '<a href="modules.php?name=Your_Account&op=userinfo&username='.$informant.'"><i>'.$informant.'</i></a> ';
else $content = $informant.' ';//Raven 10/16/2005
} else {
$content = $anonymous.' ';
}
$content .= '<i>'._WRITES.':</i> '.$thetext.$notes;
}
$posted = _POSTEDBY.' ';
if (is_user($user)||is_admin($admin)) $posted .= '<a href="modules.php?name=Your_Account&op=userinfo&username='.$aid.'">'.$aid.'</a>';
else $posted .= $aid; //Raven 10/16/2005
$posted .= ' '._ON.' '.$time.' ('.$counter.' '._READS.')';
echo' <h2>
<div id="span1">'.$title.'</div><div id="span2"></div>
</h2>
<div class="block_content">
<div class="roundcont">
<div class="roundtop">
<div>
<img src="themes/Clan_Template_Black/images/tl.gif" alt="" width="15" height="15" class="corner" style="display: none" />
</div>
<div class="articlecontent">
<div align="right"><a href="article-topic-.html'.$topic.'"><img src="'.$tipath.''.$topicimage.'" alt="'.$topictext.'" border="0" align="right"></a></div>
'.$content.'
</div><br>
<p class="clear" />
'.$morelink.'
<div class="roundbottom">
<img src="themes/Clan_Template_Black/images/bl.gif" alt="" width="15" height="15" class="corner" style="display: none" />
</div>
</div>
</div>
</div>
<p class="clear" />
<div class="block_content">
<div class="roundcont">
<div class="roundtop">
<div>
<img src="themes/Clan_Template_Black/images/tl.gif" alt="" width="15" height="15" class="corner" style="display: none" />
</div>
<div class="articlecontent">
'.$posted.'
</div>
<div class="roundbottom">
<img src="themes/Clan_Template_Black/images/bl.gif" alt="" width="15" height="15" class="corner" style="display: none" />
</div>
</div>
</div>
</div>
';
}
function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext, $notes) { //montego - added $notes for RavenNuke
global $admin, $sid, $tipath, $index;
$thetext = '<div>'.$thetext.'</div>';
$posted = _POSTEDON.' '.$datetime.' '._BY.' ';
$posted .= get_author($aid);
if (!empty($notes)) {
$notes = '<br /><b>'._NOTE.'</b> <div>'.$notes.'</div>';
} else {
$notes = '';
}
if ($aid == $informant) {
$content = $thetext.$notes;
} else {
if(!empty($informant)) {
global $admin, $user;
if (is_user($user)||is_admin($admin)) $content = '<a href="modules.php?name=Your_Account&op=userinfo&username='.$informant.'"><i>'.$informant.'</i></a> ';
else $content = $informant.' ';//Raven 10/16/2005
} else {
$content = $anonymous.' ';
}
$content .= '<i>'._WRITES.'</i> <div>'.$thetext.'</div>'.$notes;
}
echo' <h2>
<div id="span1">'.$title.'</div><div id="span2"></div>
</h2>
<div class="block_content">
<div class="roundcont">
<div class="roundtop">
<div>
<img src="themes/Clan_Template_Black/images/tl.gif" alt="" width="15" height="15" class="corner" style="display: none" />
</div>
<div class="articlecontent">
'.$posted.'
</div>
<div class="roundbottom">
<img src="themes/Clan_Template_Black/images/bl.gif" alt="" width="15" height="15" class="corner" style="display: none" />
</div>
</div>
</div>
</div>
<div class="block_content">
<div class="roundcont">
<div class="roundtop">
<div>
<img src="themes/Clan_Template_Black/images/tl.gif" alt="" width="15" height="15" class="corner" style="display: none" />
</div>
<div class="articlecontent">
'.$content.'
</div>
<p class="clear" />
<div class="roundbottom">
<img src="themes/Clan_Template_Black/images/bl.gif" alt="" width="15" height="15" class="corner" style="display: none" />
</div>
</div>
</div>
</div>
<p class="clear" />';
}
?>
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Palbin
Site Admin
![](modules/Forums/images/avatars/Dilbert/Dilbert_-_Dogbert_King.gif)
Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania
|
Posted:
Fri Apr 29, 2011 2:34 pm |
|
Next time you post code please wrap it in [ code] [ /code ] tags. I took care of it this time. |
_________________ "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. |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Palbin
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Apr 29, 2011 2:47 pm |
|
In your donations block there is a closing link tag that is written as "</a" this needs corrected to "</a>" |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
snyper
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Apr 29, 2011 8:52 pm |
|
ok sry about that,.what does the code tags do that it should be wraped?oh it minimizes space basically? did you happen to correct my file? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Palbin
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Apr 29, 2011 9:14 pm |
|
It would be easier if you could zip up your entire theme and then pm us a link. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
snyper
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Apr 29, 2011 9:20 pm |
|
umm ok,.that wont have any admin info or anything right?(not like you guys would do anything) but another thing is ive tried other themes,.and to be exact my theme is pretty much a remake of CT_RN theme ,.its the same exact but got it in a template pack,.Also i have tried your CT_RN theme as well as others and it does the same thing reguardless of what theme i use,.(if that helps at all)
Im sure you know wat im talking about CT_RN but if you dont heres were i got it ,.,. Only registered users can see links on this board! Get registered or login! |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
snyper
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Apr 29, 2011 9:30 pm |
|
ok so i used that plugin and it says 151 errors and 24 warnings
it shows me the errors and were im mising values but i have no clue what to do lol(not funny :{ )
theres quite a few <div id=""> |
Last edited by snyper on Fri Apr 29, 2011 9:32 pm; edited 1 time in total |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Palbin
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Apr 29, 2011 9:31 pm |
|
If it happens regardless of theme it is not a theme issue. At least not directly. Turn off your blocks one by one until the problem is gone. Once you find the troubled block we will fix that. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
snyper
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Apr 29, 2011 9:47 pm |
|
oh so its a block causing it?
ok ill try that |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
snyper
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Apr 29, 2011 10:14 pm |
|
Wow you know what you guys are the best,.ill never use another php other than raven,.id never get help like this any were else..Palbin you nailed it with the missing > in the donations block,i added it and it fixed.The only other problem im having is i eliminated (tried too atleast ) the spotlight section in the header section,You can see 2 small blocks i guess from removing the images,on ie and chrome but not in firefox,.heres a pic with ie ,.,.anyway i can eliminate the spotlight section all together without having these images?
If you take a look at the theme.php i put in the earlier post, look at the spotlight sec i just deleted the img source ect. but the code is still there.
![Image Image](http://xas.clanservers.com/nuke/modules/Forums/files/web_854.jpg) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hicuxunicorniobestbuildpc
The Mouse Is Extension Of Arm
![](modules/Forums/images/avatars/5ed231554a8492e2e09da.gif)
Joined: Aug 13, 2009
Posts: 1123
|
Posted:
Sat Apr 30, 2011 3:06 pm |
|
Does it mean FF hides this kind of errors? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Palbin
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun May 01, 2011 9:50 am |
|
snyper, The easiest thing to do is take the following:
Code:
<!-- Spotlight Section -->
<div id="">
<div id=""></div><div id=""></div>
<img src="" alt="" class="" />';
if ($banners) {
echo '<br /><br />';
$adText = '';
$adText = ads(0);
if (!empty($adText)) {
echo '<div>' . $adText . '</div>';
}else{
echo '<a title="PHP-Nuke Clan Theme"><img src="" title="PHP-Nuke Clan Theme" /></a>';
}
};
echo '</div>';
|
And change it to:
Code:
<!-- Spotlight Section -->
<div id="">
<div id=""></div><div id=""></div>';
if ($banners) {
echo '<br /><br />';
$adText = '';
$adText = ads(0);
if (!empty($adText)) {
echo '<div>' . $adText . '</div>';
}
};
echo '</div>';
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Palbin
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun May 01, 2011 9:56 am |
|
snyper, I also see that you are missing a language file for your forum center block. The block is showing the following.
_BBFORUM_TOTTHREAD _BBFORUM_POSTER _BBFORUM_VIEWS _BBFORUM_REPLIES _BBFORUM_LASTPOSTER
If you can not find the language file, and your site is only in one language just open the block and hard code the correct text. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
snyper
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun May 01, 2011 10:51 pm |
|
Thanks Palbin that code fix fixed the 2 blocks showing circled in red.,As far as the forum block your talking about is this what you are talking about?
![Image Image](http://xas.clanservers.com/nuke/modules/Forums/files/untitled_284.jpg) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|