Author |
Message |
kevinkap
Involved
![Involved Involved](modules/Forums/images/ranks/4stars.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Apr 22, 2006
Posts: 356
|
Posted:
Tue Sep 26, 2006 5:56 pm |
|
I have installed \NSN_News_200rc2_70-79 on rwsRavenNuke76_v2.02.02_FULL. I have made the changes to nova-games.net advanced news block so it will pull the pages correctly. Now in the nsn news module I have the problem when viewing stories, it adds a second row of blocks to the right hand side. You can see here: http://maysvillesports.com/modules.php?name=News&op=NEArticle&sid=112
I have not found in the NEarticle.php file how to solve this.
One thing I was able to fix on my own non php abilities was, if news is set as the main module in home then in news/index.php I had to change this:
if($module_name == $main_module) {
$module_link = "modules.php?name=$module_name&";
$form_link = "modules.php?name=$module_name";
} else {
$module_link = "modules.php?name=$module_name&;";
$form_link = "modules.php?name=$module_name";
to this:
if($module_name == $main_module) {
$module_link = "index.php?";
$form_link = "index.php";
} else {
$module_link = "modules.php?name=$module_name&";
$form_link = "modules.php?name=$module_name";
in order for the news stories to be brought up in their own page instead of under all the blocks in the home page. Just my preference. |
_________________ Kevin Kappes |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
Sells PC To Pay For Divorce
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined:
Posts: 5661
|
Posted:
Tue Sep 26, 2006 6:08 pm |
|
well as it is mentionerd in another topic,playing around with right blocks side could be a pain as its hard coded into news.
the extra blocks you refer to is normal and should ne there...
taking it out isnt wise cause that would leave a big gap.
i see that your busy with a center block...Football Headlines
you know it has the wrong colors....
if you take out the design it will grab your default theme design... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kevinkap
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Sep 26, 2006 6:16 pm |
|
so the two extra blocks are supposed to be there because of the way nsn news is coded? As far as the center block. That blows my mind, it was the correct color until I was changing themes to see if that was the issue with the new blocks, as checking the theme had been mentioned earlier as well. I did not even mess with the center block, now I cannot get the color fixed on it. Sometimes I just want to pull out what little hair I have.. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Sep 26, 2006 6:23 pm |
|
well better take it step by step,not two things at the same time...
i recommend leaving the news as it is,it looks ok...
as for the centerblock,if you go into the code im sure you will wind its color settings....
just adjust it to your theme..,or when you take out the design it will show automatically the theme colors.. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kevinkap
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Sep 26, 2006 6:34 pm |
|
ok,
for the center multi headlines block the code is as follows,
echo "<table width=\"100%\" cellspacing=\"1\" bgcolor=\"$bgcolor2\">
<tr><td align=\"center\" colspan=\"2\" bgcolor=\"$bgcolor1\"><b>"._MH_INFOIN."</b></td></tr>
<tr><td width=\"30%\" bgcolor=\"$bgcolor1\">"._MH_RSSURL."</td><td bgcolor=\"$bgcolor1\">".$site["urls_url"]."</td></tr>
<tr><td width=\"30%\" bgcolor=\"$bgcolor1\">"._MH_XMLVERS."</td><td bgcolor=\"$bgcolor1\"><img src=\"modules/Multiheadlines/images/menus/xml10.gif\" alt=\"XML 1.0\" title=\"XML 1.0\" border=\"0\"></td></tr>
<tr><td width=\"30%\" bgcolor=\"$bgcolor1\">"._MH_XMLENCOD."</td><td bgcolor=\"$bgcolor1\">".$url_info["xml_encoding"]."</td></tr>
<tr><td width=\"30%\" bgcolor=\"$bgcolor1\">"._MH_RSSVERS."</td><td bgcolor=\"$bgcolor1\">".$image."</td></tr>
<tr><td width=\"30%\" bgcolor=\"$bgcolor1\">"._MH_INFOTIT."</td><td bgcolor=\"$bgcolor1\">".$url_info["title"]."</td></tr>
<tr><td width=\"30%\" bgcolor=\"$bgcolor1\">"._MH_INFOLINK."</td><td bgcolor=\"$bgcolor1\">".$url_info["link"]."</td></tr>
<tr><td width=\"30%\" bgcolor=\"$bgcolor1\">";
if ($url_info["rss_version"]=="ATOM") {
echo _MH_INFOAUTH;
} else {
echo _MH_INFODESC;
}
echo " </td><td bgcolor=\"$bgcolor1\">".$url_info["description"]."</td></tr>";
echo " <tr><td width=\"30%\" bgcolor=\"$bgcolor1\">"._MH_RSSLANG."</td><td bgcolor=\"$bgcolor1\">".$url_info["language"]."</td></tr>
<tr><td width=\"30%\" bgcolor=\"$bgcolor1\">"._MH_INFOGEN."</td><td bgcolor=\"$bgcolor1\">".$url_info["generator"]."</td></tr>
<tr><td width=\"30%\" bgcolor=\"$bgcolor1\">"._MH_INFOCOPYRIGHT."</td><td bgcolor=\"$bgcolor1\">".$url_info["copyright"]."</td></tr>
<tr><td width=\"30%\" bgcolor=\"$bgcolor1\">"._MH_INFOPUBDATE."</td><td bgcolor=\"$bgcolor1\">".$url_info["pubdate"]."</td></tr>
<tr><td width=\"30%\" bgcolor=\"$bgcolor1\">"._MH_INFOLASTBUILD."</td><td bgcolor=\"$bgcolor1\">".$url_info["lastbuilddate"]."</td></tr>
<tr><td width=\"30%\" bgcolor=\"$bgcolor1\">";
if ($url_info["rss_version"]=="ATOM") {
echo _MH_INFOEMAIL;
} else {
echo _MH_INFOTTL;
}
echo " </td><td bgcolor=\"$bgcolor1\">".$url_info["ttl"]."</td></tr>
</table>";
I beleive this is meant to pull the colors from my theme, as that is what it has done for the past month after I installed it. Today, however after checking some default themes in regards to the nsn news issue(i thought i was haveing) now it is not pulling the colors from the default theme. Why would this be?
Thanks again for all your help.. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Sep 26, 2006 6:42 pm |
|
i tried to locate the color but its not in your theme...
doesnt the mod has some configuration somewhere..? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kevinkap
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Sep 26, 2006 6:46 pm |
|
this is my theme,
/************************************************************/
/* Theme Colors Definition */
/* */
/* Define colors for your web site. $bgcolor2 is generaly */
/* used for the tables border as you can see on OpenTable() */
/* function, $bgcolor1 is for the table background and the */
/* other two bgcolor variables follows the same criteria. */
/* $texcolor1 and 2 are for tables internal texts */
/************************************************************/
$bgcolor1 = "#450909";
$bgcolor2 = "#450909";
$bgcolor3 = "#450909";
$bgcolor4 = "#450909";
$textcolor1 = "#ffffff";
$textcolor2 = "#ffffff";
include("themes/WS_RedX/tables.php");
/************************************************************/
/* Function themeheader() */
/* */
/* Control the header for your site. You need to define the */
/* BODY tag and in some part of the code call the blocks */
/* function for left side with: blocks(left); */
/************************************************************/
It has settings but they are , number of feeds, type of feeds, to put in db or not, db pruning and such, nothing with layout.
Like I said, it was fine until I changed themes earlier, guess I shouldn't have.. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kevinkap
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Sep 26, 2006 7:33 pm |
|
wow, i do not know why, but the color is fixed now. Weird!! |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Sep 27, 2006 3:50 am |
|
mmm yes thats weird....
i allready checked your theme and the color wasnt in there..
but its fixed and thats what counts.. ![Laughing](modules/Forums/images/smiles/icon_lol.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|