Fork me on GitHub

change Stories # on homepage: = 0  Bottom

  • well since my original question hasnt been answered, maybe it has none or i just need to be patient and wait a few more days :) I thought of a workaround. Set the #stories on the homepage to zero.

    One slight problem, using phpMyAdmin i go into the database and set that to 0 but the changes do not take affect. I figure theres a condition statement saying if the return value is <5 then return 5.

    So where can I change the code to disable posting news articles on the front page by setting # stories on homepage to zero?

    thanks
  • Perhaps in your themeindex(), at the top:

    Code

    if ($GLOBALS['index'] == 1) {
       return;
    }

    Set the # stories in settings to the minimum to reduce wasted processing time. Or try a search as other solutions have been posted...

    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • It only worked in the core themes i tried like Postnuke. I grep'ed for themeindex in my AutoTheme folders and there I could not find that item.

    my bad for not specifying these are autothemes. I did search and I found some great things to do on theme mods but not what i was looking for.

    any idea on how to do this in autothemes?

    thanks again!

    Greg
  • Same method... just find the theme.php and insert the above into the top of the themeindex function....

    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • theme.php in all the AutoTheme examples I have downloaded has the following


    $thename = basename(dirname(__FILE__));

    include("modules/AutoTheme/autotheme.php");


    Ive looked in the following autothemes:

    AT-PMS
    AT-Moonscape
    AT-Gaming
    AT-BlackMarble
    redrumredux
    reloaded

    and also tried cat * | grep themeindex

    no hits in the files.

    So I tried looking in the modules/AutoThemes and didnt see the function in there either.

    So im kinda confused on where it is.

    thanks

    Greg
  • Yes, that function is in the theme.php file... (probably modules/AutoTheme/autotheme.php)

    You can also stick the PHP at the top of what .html file dictates the look of the story summary blocks....

    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • never did find that function but doing the following worked. Im posting in case others want to know what I did and the reason I thought it did not work initially.

    Using the AT-moonscapes for an example howto I added the following to the summary.html file:


    Code

    <?
    if ($GLOBALS['index'] == 1) {
       return;
    }
    ?>


    What threw me initially was why this didnt work. Well it was working but the settings in autothemes for this was to use alternating summaries. (summary1 and summary2). So either add to these as well or turn off alternating summaries in the module config for that theme.

    Thanks for the help

    Greg
  • Cool, I'm almost positive the themeindex is in the file referenced in my last post - it would have to be or the themes wouldn't work(!) ;)

    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • 0 users

This list is based on users active over the last 60 minutes.