Author |
Message |
FosgateElite
Regular
![Regular Regular](modules/Forums/images/ranks/2stars.gif)
![](modules/Forums/images/avatars/Misc/boyandpc.gif)
Joined: Mar 26, 2006
Posts: 63
|
Posted:
Tue Jun 16, 2009 6:03 pm |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
RavenNuke(tm) Development Team
![](modules/Forums/images/avatars/3234de284ee21bd39eecd.jpg)
Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina
|
Posted:
Tue Jun 16, 2009 6:06 pm |
|
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! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
FosgateElite
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Jun 16, 2009 8:26 pm |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
FosgateElite
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Jun 16, 2009 9:10 pm |
|
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? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
FosgateElite
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Jun 16, 2009 9:18 pm |
|
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; |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
Site Admin
![](modules/Forums/images/avatars/0c0adf824792d6d341ef4.gif)
Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Wed Jun 17, 2009 6:40 am |
|
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! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
FosgateElite
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Jun 17, 2009 8:28 pm |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
FosgateElite
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Jun 17, 2009 9:15 pm |
|
Quick question. What exactly is "Number of Items in Top Page:"? I don't think I understand what this setting does. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
warren-the-ape
Worker
![Worker Worker](modules/Forums/images/ranks/3stars.gif)
![](modules/Forums/images/avatars/5064660247507d6711183.jpg)
Joined: Nov 19, 2007
Posts: 196
Location: Netherlands
|
Posted:
Thu Jun 18, 2009 1:51 am |
|
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](modules/Forums/images/smiles/icon_smile.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
FosgateElite
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Jun 19, 2009 2:14 pm |
|
Oh, i dont even use that module, lol. Thanks for the info. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
myrtletrees
Involved
![Involved Involved](modules/Forums/images/ranks/4stars.gif)
![](modules/Forums/images/avatars/44fbb573445a9d36e3110.jpg)
Joined: Sep 13, 2005
Posts: 259
Location: Cornfields of Indiana
|
Posted:
Thu Oct 08, 2009 6:21 am |
|
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 |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
sven2157
Hangin' Around
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Jun 13, 2009
Posts: 40
Location: Chicago, IL
|
Posted:
Wed Oct 21, 2009 10:24 am |
|
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 I have been looking for quite a while now...
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 |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Oct 21, 2009 10:51 am |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
myrtletrees
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Oct 21, 2009 10:54 am |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
sven2157
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Oct 21, 2009 11:49 am |
|
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!
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 |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Oct 21, 2009 12:03 pm |
|
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? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
sven2157
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Oct 21, 2009 12:09 pm |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Oct 21, 2009 12:09 pm |
|
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? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Oct 21, 2009 12:10 pm |
|
That is odd. Let me test a few things on my test site and see if I can reproduce this behavior. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
sven2157
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Oct 21, 2009 12:11 pm |
|
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](modules/Forums/images/smiles/icon_confused.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
sven2157
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Oct 21, 2009 12:14 pm |
|
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! 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!
But this one is really eluding me!
This just showed up one day, too! Not sure how...
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... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Oct 21, 2009 12:43 pm |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
sven2157
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Oct 21, 2009 1:02 pm |
|
HURRAY!
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!
P.S. I need to screen shot that issue, and post the picture, so that people aren't confused by the previous posts! ![Wink](modules/Forums/images/smiles/icon_wink.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Oct 21, 2009 1:11 pm |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
sven2157
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Oct 21, 2009 1:34 pm |
|
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](modules/Forums/images/smiles/icon_wink.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|