Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NSN News
Author Message
kevinkap
Involved
Involved



Joined: Apr 22, 2006
Posts: 356

PostPosted: Tue Sep 26, 2006 5:56 pm Reply with quote

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: [ Only registered users can see links on this board! Get registered or login! ]
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 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Tue Sep 26, 2006 6:08 pm Reply with quote

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







PostPosted: Tue Sep 26, 2006 6:16 pm Reply with quote

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..
 
hitwalker







PostPosted: Tue Sep 26, 2006 6:23 pm Reply with quote

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... Wink

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..
 
kevinkap







PostPosted: Tue Sep 26, 2006 6:34 pm Reply with quote

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..
 
hitwalker







PostPosted: Tue Sep 26, 2006 6:42 pm Reply with quote

i tried to locate the color but its not in your theme...
doesnt the mod has some configuration somewhere..?
 
kevinkap







PostPosted: Tue Sep 26, 2006 6:46 pm Reply with quote

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..
 
kevinkap







PostPosted: Tue Sep 26, 2006 7:33 pm Reply with quote

wow, i do not know why, but the color is fixed now. Weird!!
 
hitwalker







PostPosted: Wed Sep 27, 2006 3:50 am Reply with quote

mmm yes thats weird....
i allready checked your theme and the color wasnt in there..
but its fixed and thats what counts.. Laughing
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NSN News

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©