Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.3 RN Issues
Author Message
FosgateElite
Regular
Regular



Joined: Mar 26, 2006
Posts: 63

PostPosted: Tue Jun 16, 2009 6:03 pm Reply with quote

I think I have something configured wrong. I did a search and tried some of the things I saw in other posts, but nothing is working right.

I have 8 total news on my site of type "article" with publish in home set to "yes". I also have my news number in home setting set to "5" but I still see all 8 news on the main page. I even get the "Page 1 of 1 (8 total stories) [ 1 ]" tag on the site now too.

Thanks in advance for any help you can give.
 
View user's profile Send private message
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Tue Jun 16, 2009 6:06 pm Reply with quote

Try to clear your browser cache and see if that does it for you.

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website
FosgateElite







PostPosted: Tue Jun 16, 2009 8:26 pm Reply with quote

Haha, ok my bad. I had my news number in home for my profile set to 10 somehow. I figured that out when I logged out and it worked right. Is every user set to 10 by default? Can I override that?

However, that leads me to another question. Where is the code that adds the "Page 1 of 2 (8 total stories) [ 1 | 2 | > | >> ]" text? I need to edit the font color.
 
FosgateElite







PostPosted: Tue Jun 16, 2009 9:10 pm Reply with quote

I found that code and just removed it rather than changing the color.

I looked in the database at my users table and it appears that all the users are set to 10 news in 'storynum' by default even though the site is set to 5. How do I make the default 5 for all new users and current users?
 
FosgateElite







PostPosted: Tue Jun 16, 2009 9:18 pm Reply with quote

I already ran a SQL update to take care of the current users, but it would be nice to make sure all new users used the site default setting.

FYI, my SQL code was...
UPDATE 'nuke_users'
SET `storynum` = 5
WHERE `storynum` = 10;
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Wed Jun 17, 2009 6:40 am Reply with quote

FosgateElite wrote:
How do I make the default 5 for all new users and current users?


Go to Admin --> Preferences and look for the "Stories Number in Home:" setting and change it to '5'. The registered users are still able to change that setting to whatever they desire unless you also change the "Let users change News number in Home? " setting as "No".

I think you have already taken care of the defaults for existing users, so now the decision is just whether you wish to allow them the flexibility to change that setting to what they desire.

_________________
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! 
View user's profile Send private message Visit poster's website
FosgateElite







PostPosted: Wed Jun 17, 2009 8:28 pm Reply with quote

Excellent. I had the setting already set to 5 but i was just looking for clarification on if that would apply to the new user accounts on the site. Appreciate it much. Thanks.
 
FosgateElite







PostPosted: Wed Jun 17, 2009 9:15 pm Reply with quote

Quick question. What exactly is "Number of Items in Top Page:"? I don't think I understand what this setting does.
 
warren-the-ape
Worker
Worker



Joined: Nov 19, 2007
Posts: 196
Location: Netherlands

PostPosted: Thu Jun 18, 2009 1:51 am Reply with quote

FosgateElite wrote:
Quick question. What exactly is "Number of Items in Top Page:"? I don't think I understand what this setting does.


It's the max number of items shown under your-website.com/modules.php?name=Top

The so-called 'top page' of your site Smile
 
View user's profile Send private message
FosgateElite







PostPosted: Fri Jun 19, 2009 2:14 pm Reply with quote

Oh, i dont even use that module, lol. Thanks for the info.
 
myrtletrees
Involved
Involved



Joined: Sep 13, 2005
Posts: 259
Location: Cornfields of Indiana

PostPosted: Thu Oct 08, 2009 6:21 am Reply with quote

FosgateElite wrote:
I already ran a SQL update to take care of the current users, but it would be nice to make sure all new users used the site default setting.

FYI, my SQL code was...
UPDATE 'nuke_users'
SET `storynum` = 5
WHERE `storynum` = 10;


Actually, I believe the correct syntax is

Code:
UPDATE nuke_users SET storynum = '5' WHERE storynum = '10';


Also, in the nuke_users table you can set the default storynum table default value to be 5 instead of 10
 
View user's profile Send private message
sven2157
Hangin' Around



Joined: Jun 13, 2009
Posts: 40
Location: Chicago, IL

PostPosted: Wed Oct 21, 2009 10:24 am Reply with quote

FosgateElite wrote:
Haha, ok my bad. I had my news number in home for my profile set to 10 somehow. I figured that out when I logged out and it worked right. Is every user set to 10 by default? Can I override that?

However, that leads me to another question. Where is the code that adds the "Page 1 of 2 (8 total stories) [ 1 | 2 | > | >> ]" text? I need to edit the font color...

...I found that code and just removed it rather than changing the color.

I looked in the database at my users table and it appears that all the users are set to 10 news in 'storynum' by default even though the site is set to 5. How do I make the default 5 for all new users and current users?


Would it have killed you to post the answer Question I have been looking for quite a while now... Confused

Could you please enlighten me as to where that code is? I want to completely remove it from my Top Page. (The "Page 1 of 2 (8 total stories) [ 1 | 2 | > | >> ]" text)

Thanks...

Sven2157
 
View user's profile Send private message Visit poster's website
nuken







PostPosted: Wed Oct 21, 2009 10:51 am Reply with quote

In your rnconfig.php file you have control of the Pagination display.

Code:
/*********************************************************************************

* Pagination Control:
* Currently only implemented for the News module, but could possibly be added
* elsewhere in future releases.
**********************************************************************************/
$usePaginatorControl = true;  // Setting this to "true" turns on the pagination links
$cfgPaginatorControl = array( // Do NOT remove any of these options, just change the settings!
   'bShowPageOf'     => true,  // "true" = show Page n of NN, "false" = do not show
   'bShowTotalItems' => true,  // "true" = show out of total items, "false" = do not show
   'bShowJumpTo'     => true,  // "true" = show Jump to page, "false" = do not show
   'iJumpType'       => 1,     // 0 = user enters page number and clicks a GO button, 1 = shows a drop down of page numbers to jump to automatically.
   'bNoFollow'       => true,  // "true" = will add rel="nofollow" to the links, "false" = does not add
   'iMaxPages'       => 5,     // Number of pages to show before and after the current page
   'iPosition'       => 1,     // 0 = show pagination controls only at the top, 1 = only at the bottom, 2 = both top and bottom
);



the
Code:
 'iPosition'       => 1,     // 0 = show pagination controls only at the top, 1 = only at the bottom, 2 = both top and bottom 
controls the position and up top you can deactivate it completely.
 
myrtletrees







PostPosted: Wed Oct 21, 2009 10:54 am Reply with quote

or, you can...

Open
/modules/News/index.php

Find this line:

Code:
 echo $sPaginatorHTML;


and comment it out by adding // at the beginning of that line.
 
sven2157







PostPosted: Wed Oct 21, 2009 11:49 am Reply with quote

nuken wrote:
In your rnconfig.php file you have control of the Pagination display.

Code:
/*********************************************************************************

* Pagination Control:
* Currently only implemented for the News module, but could possibly be added
* elsewhere in future releases.
**********************************************************************************/
$usePaginatorControl = true;  // Setting this to "true" turns on the pagination links
$cfgPaginatorControl = array( // Do NOT remove any of these options, just change the settings!
   'bShowPageOf'     => true,  // "true" = show Page n of NN, "false" = do not show
   'bShowTotalItems' => true,  // "true" = show out of total items, "false" = do not show
   'bShowJumpTo'     => true,  // "true" = show Jump to page, "false" = do not show
   'iJumpType'       => 1,     // 0 = user enters page number and clicks a GO button, 1 = shows a drop down of page numbers to jump to automatically.
   'bNoFollow'       => true,  // "true" = will add rel="nofollow" to the links, "false" = does not add
   'iMaxPages'       => 5,     // Number of pages to show before and after the current page
   'iPosition'       => 1,     // 0 = show pagination controls only at the top, 1 = only at the bottom, 2 = both top and bottom
);



the
Code:
 'iPosition'       => 1,     // 0 = show pagination controls only at the top, 1 = only at the bottom, 2 = both top and bottom 
controls the position and up top you can deactivate it completely.


Thanks for the quick response nuken! I have changed the rnconfig.php file, in the Pagination section. I tried several different variations, lastly changing ALL "true" to "false", and I still have the issue. I then went by myrtletrees's suggestion...

myrtletrees wrote:
or, you can...

Open
/modules/News/index.php

Find this line:

Code:
 echo $sPaginatorHTML;


and comment it out by adding // at the beginning of that line.


Also, thanks to you myrtletrees for the quick response...

However, utilizing one or the other, and then a combination of the two suggestions... then completely bastardizing the code, I have still failed to rid the page of these instances.

Currently, "rnconfig.php":
Code:
/*********************************************************************************

* Pagination Control:
* Currently only implemented for the News module, but could possibly be added
* elsewhere in future releases.
**********************************************************************************/
$usePaginatorControl = false;  // Setting this to "true" turns on the pagination links
$cfgPaginatorControl = array( // Do NOT remove any of these options, just change the settings!
    'bShowPageOf'     => false,  // "true" = show Page n of NN, "false" = do not show
    'bShowTotalItems' => false,  // "true" = show out of total items, "false" = do not show
    'bShowJumpTo'     => false,  // "true" = show Jump to page, "false" = do not show
    'iJumpType'       => 1,     // 0 = user enters page number and clicks a GO button, 1 = shows a drop down of page numbers to jump to automatically.
    'bNoFollow'       => true,  // "true" = will add rel="nofollow" to the links, "false" = does not add
    'iMaxPages'       => 5,     // Number of pages to show before and after the current page
    'iPosition'       => 1,     // 0 = show pagination controls only at the top, 1 = only at the bottom, 2 = both top and bottom
);


AND "index.php" of "News" module....
Code:
$oPaginator = new Paginator_html($pagenum, $iNewsCount);

      $oPaginator->setDefaults($cfgPaginatorControl);
      $oPaginator->set_Limit($storynum); // Sets number of stories per page
      $oPaginator->set_Links($cfgPaginatorControl['iMaxPages']); // Sets number of links before and after current page to show
      $oPaginator->setLink('modules.php?name=News&new_topic=' . $new_topic);
      $oPaginator->setTotalItems(_PAGINATOR_TOTALSTORIES);
      $sPaginatorHTML = $oPaginator->getPagerHTML() . '<br />';
      if ($cfgPaginatorControl['iPosition'] == 0 or $cfgPaginatorControl['iPosition'] == 2) {
         //echo $sPaginatorHTML;
      }
      // SQL for paginator situation


I also, failed to mention in my original post that this is running on a Windows IIS7 hosting environment with GoDaddy and PHP 5. Also, these drop downs do ABSOLUTELY NOTHING. There is nothing displayed, the links take you nowhere and they are, least of all, very unattractive....

You can view them here: Only registered users can see links on this board! Get registered or login! Just under the "Welcome Message", you will find them.

Is this an instance of "caching? Whereas I just need to wait?

Thanks again for the quick responses! Wink

Sven2157

***EDIT***

Updated link for site, to show original problem, which has been resolved further down in this thread.


Last edited by sven2157 on Wed Oct 21, 2009 1:12 pm; edited 1 time in total 
nuken







PostPosted: Wed Oct 21, 2009 12:03 pm Reply with quote

The only settings that need to be used would be
Code:
$usePaginatorControl = true;  // Setting this to "true" turns on the pagination links 
changed to false to turn it off and the one mentioned above to control the placement. What version of RavenNuke are you using?
 
sven2157







PostPosted: Wed Oct 21, 2009 12:09 pm Reply with quote

Yeah, I have changed the
Code:
$usePaginatorControl = true;  // Setting this to "true" turns on the pagination links
to "false". Nothing.

I am currently using v2.30.01 with all updates. I just downloaded v2.40.00 and will be testing that this evening.
 
nuken







PostPosted: Wed Oct 21, 2009 12:09 pm Reply with quote

I noticed you do not have any news displayed on the home page. Is that on purpose or is the news module not working right?
 
nuken







PostPosted: Wed Oct 21, 2009 12:10 pm Reply with quote

That is odd. Let me test a few things on my test site and see if I can reproduce this behavior.
 
sven2157







PostPosted: Wed Oct 21, 2009 12:11 pm Reply with quote

nuken wrote:
I noticed you do not have any news displayed on the home page. Is that on purpose or is the news module not working right?


That's on purpose. I only want the "Welcome Message" to be displayed, and then everything else contained within the site...

Is there a better way displaying the page as it is, obviously without the "Pagnation" drop downs? Confused
 
sven2157







PostPosted: Wed Oct 21, 2009 12:14 pm Reply with quote

nuken wrote:
That is odd. Let me test a few things on my test site and see if I can reproduce this behavior.


I really appreciate it nuken! Wink I have been working on this alone for the last 5 days, but haven't been able to fix it... The only way I'll learn is to break it! Then fix it and try something else! Wink

But this one is really eluding me! Mad

This just showed up one day, too! Confused Not sure how... Sad

Thanks again...

Sven2157

***EDIT***

By the way I have the code for the pages posted a couple posts above, so when you go to the site, that's how the settings are...
 
nuken







PostPosted: Wed Oct 21, 2009 12:43 pm Reply with quote

I could not reproduce the issue in RavenNuke(tm) 2.40 but I may have a fix for you. Make a folder in your modules named Fix or anything you want to as long as its not the same name as a module that is already in there.

Inside that new module folder create a file named index.php and paste the following code in it.

Code:
<?php

/************************************************************************/
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/

if(!defined('MODULE_FILE')) {
  header('Location: ../../index.php');
  die();
}

//comment out define('INDEX_FILE', true); if you dont want right blocks
define('INDEX_FILE', true);
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
include("header.php");

include("footer.php");
?>


Save and close it.

Next in you Admin modules control panel, activate the new module you made and click Put In Home beside it.

That should keep any news from being in your home page and remove the pagination links. The rnconfig should have worked, I do not know what maybe wrong. It could be the windows server, I have never tested RavenNuke on that.
 
sven2157







PostPosted: Wed Oct 21, 2009 1:02 pm Reply with quote

HURRAY! Laughing

That fixed it!

Like I said, they just showed up one day... Everything else has performed and managed perfectly on the Windows server.... I have been pulling my hair out for the last couple of days trying to figure out where this was being called from, and changing things, but no luck!

Thank you for all your help! I will be testing the v2.40.00 version as soon as it is done uploading to my server...

Thanks again nuken! Dance-Y Groovy RavensScripts worship

P.S. I need to screen shot that issue, and post the picture, so that people aren't confused by the previous posts! Wink
 
nuken







PostPosted: Wed Oct 21, 2009 1:11 pm Reply with quote

LOL. I'm glad it is working for you. Your News will show in the menu and when clicked it will not have anything in it unless you edit the news stories and click display in home. If you do not want the news in you menu, you can edit it in modules control panel and click no for Visible in Modules Block.
 
sven2157







PostPosted: Wed Oct 21, 2009 1:34 pm Reply with quote

Roger! Doing that now...

BTW, if you get as much enjoyment out of aviation and MS Flight Simulator, feel free to come on by and run a flight with us! Wink
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.3 RN Issues

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 ©