hi
My site igleague.org the front page the news is displayed in order upto 7 articles.What i want is right at the bottom above the footer it shows 1,2,34,5, meaning the old pages news i want to remove that completely how to do it?
In TinyPoral Admin > Frontpage settings > Number of posts/articles to display on frontpage
thats not the thing
take a look at this screen
http://img208.imageshack.us/img208/7328/screen1yo.png
i want to remove the thing that i have marked with red colour the number so that people cant navigate to old pages
That should be the thing. If you limit it to only show 5 items, then you will not have additional pages. If you don't want them to see the articles, why not disable them then?
I want them to see the forum posts . I just want to remoove the old page numbers from there changing them to 5 also does no good the number of pages just increases.......i only want them to see articles dont want people to see the pages there
cherryspirit,
There is really no way to remove those numbers from the bottom of the page unless you remove the display of them from the core code of TinyPortal.
All, or most, of the posts showing on your FrontPage seem to be coming from 1 board (Battle Reports) though, once in a while, you have a post thrown in there from another board (WC3NC News). That means that you have at least 2 Boards setup as News Boards (boards from which are fetching the latest posts to display on the FP). It looks like you are displaying the 8 most recent topics, correct? What happens if there are 12 battles on any particular day? Do you want only the most recent 8 to be available for display on the FP? That seems kind of silly to me.
Want a better idea?
Since the Battle Reports board is the primary one that you are fetching posts from for the FP, if you want to limit the number of pages shown at the bottom of the FP, I would setup an archive board for Battle Reports, maybe a child board of the main Battle Reports board. Every couple of days, or maybe once a week, you could move the topics from the Battle Reports board into the Archive (which would not be a News Board) and they won't show up on the FP.
Do you understand what I'm talking about here?
ZarPrime
Okay i understand but it is definately possible to remove the numbers . Take a look at www.wgseries.com
Quote from: cherryspirit on August 04, 2010, 09:32:59 AM
Okay i understand but it is definately possible to remove the numbers . Take a look at www.wgseries.com
Ummm not sure what portal they are running there, I don't think its TinyPortal though!!
Quote from: Lesmond on August 04, 2010, 09:46:20 AM
Quote from: cherryspirit on August 04, 2010, 09:32:59 AM
Okay i understand but it is definately possible to remove the numbers . Take a look at www.wgseries.com
Ummm not sure what portal they are running there, I don't think its TinyPortal though!!
Don't see TP, only SMF/Joomla.
He removed TP as well as SMF copyrights : D
That is Joomla and SMF. SMF copyrights are still there if you view the forum.
http://www.wgseries.com/index.php?option=com_smf&Itemid=38
He's not running TinyPortal. He's running Joomla on the page you linked and he's running an SMF Forum inside one of his Joomla pages --> http://www.wgseries.com/index.php?option=com_smf&Itemid=38
In any case, what you want to do can probably be done as I said but it involves removing some of the TP core code.
ZarPrime
Edit: Arrghhh. Sorry Ichbin, I didn't see your post before I posted. ;)
Which part of the core codes should i remove and where ? any suggestions?
Backup the file before you make any changes. Then in Themes/default/TPortal.template.php fine this section of code on about line 60:
// any pageindex?
if(!empty($context['TPortal']['pageindex']))
echo '
<div class="tp_pageindex_upper">' , $context['TPortal']['pageindex'] , '</div>';
// use a customised template or the built-in?
render_template_layout($grid[(!empty($front['options']['layout']) ? $front['options']['layout'] : $context['TPortal']['frontpage_layout'])]['code'], 'category_');
// any pageindex?
if(!empty($context['TPortal']['pageindex']))
echo '
<div class="tp_pageindex_lower">' , $context['TPortal']['pageindex'] , '</div>';
Replace with this:
/* any pageindex?
if(!empty($context['TPortal']['pageindex']))
echo '
<div class="tp_pageindex_upper">' , $context['TPortal']['pageindex'] , '</div>';*/
// use a customised template or the built-in?
render_template_layout($grid[(!empty($front['options']['layout']) ? $front['options']['layout'] : $context['TPortal']['frontpage_layout'])]['code'], 'category_');
/* any pageindex?
if(!empty($context['TPortal']['pageindex']))
echo '
<div class="tp_pageindex_lower">' , $context['TPortal']['pageindex'] , '</div>';*/
works perfectly thanks