 |
 |
 |
 |
 |
| Author |
Message |
Kova-2CROwded
Joined: 04 Jan 2006 Posts: 38 Location: Croatia/Zagreb |
|
Start from X news |
|
Guys please help me to make it or pls make it yourself.
I would like to have this option on my site. When I set up page, I would like to display 5 new news and under it I would like to post 5 other news (not those that I already posted).
If you got me it would be like this
1.
2.
3.
4.
5.
Five news then TABLE with only links on NEXT five
And I would be able to choose number from which news to start:
From 6 to 10
6.
7.
8.
9.
10.
That way I could post 5 news with short description and 5 under it in Links. And I could make listing, cause I would be able to click on Next 5 (and pick next 5 from last where I was).
Now I can't do it, cause it always starts from first, new news. He post 5 then 5 same.
|
|
| Thu Jan 19, 2006 4:40 pm |
 |
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2818 Location: Germany |
|
|
|
Readme:
 |  | $skip = SKIP; // use this variable only when using $number. $skip tells the script how many news you want to leave out. For example: $skip = 4; shows your news starting with the fourth news. |

|
|
| Thu Jan 19, 2006 5:01 pm |
|
 |
Kova-2CROwded
Joined: 04 Jan 2006 Posts: 38 Location: Croatia/Zagreb |
|
|
|
I knew its already there, thanks FI, sorry for this suggestion It's realy usefull stuff.
|
|
| Thu Jan 19, 2006 5:26 pm |
 |
 |
Kova-2CROwded
Joined: 04 Jan 2006 Posts: 38 Location: Croatia/Zagreb |
|
|
|
FI, eh, I wouldn't be I if I don't say something for this.
Aldo Skip is working, it is not what I expected.
It puts automaticly link: 1, 2> on bottom, where I don't want it.
I want to put it. Btw name of that link is 1,2, and I would like to call it Next 5 or something like that.
What to do ? Pls.
|
|
| Mon Jan 23, 2006 2:21 am |
 |
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2818 Location: Germany |
|
|
|
Edit your template, of course.
Please, try a little bit harder to solve these easy problems yourself. I don't have the time to completely build your page the way you want it.
|
|
| Mon Jan 23, 2006 1:57 pm |
|
 |
Kova-2CROwded
Joined: 04 Jan 2006 Posts: 38 Location: Croatia/Zagreb |
|
|
|
Sorry FI, well I thought this and rest is good for all not for my self.
If question is just for me, then I would ask somebody or on other place, in either case, sorry for bothering, I will try to solve. All of my problems with this script.
But some stuff, you could tell me just pointing me to right file, but ok, nvm ..
|
|
| Mon Jan 23, 2006 5:22 pm |
 |
 |
odin
Moderator
Joined: 29 Sep 2005 Posts: 138 Location: Poland |
|
|
|
I can point you to the right file
Leve FI-DD alone, he is working man - tadadadada < there was a song like that ). And when I, or users of forum ( I'm not truely belive what I'm writting ) can answer then FI-DD will blast trough the window to save us.
|
|
| Mon Jan 23, 2006 9:58 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2818 Location: Germany |
|
|
|
 |  | Leve FI-DD alone, he is working man |
Kova-2CROwded, I'm sorry for being rude.
And there's no need to leave me alone. I just thought that changing the look of the pagination is something everybody knows and not worth of posting.
|
|
| Mon Jan 23, 2006 11:04 pm |
|
 |
Kova-2CROwded
Joined: 04 Jan 2006 Posts: 38 Location: Croatia/Zagreb |
|
|
|
No problem FI, I know how stupid I look here. And I know that all of you have your life beside CuteNews.
Part you don't know, I work for college, for my page, on so many sides, that I don't have time to settle down I'm worried about my page, as that page is so well made as idea, and now I can't make it like that easy way. If I make script it will last for months. If I take already finished script, I need to make some changes, never to get to end and start working with my page That I want to set online so badly
Btw, I made some stuff in php my self, but I'm not used to this kind of coding (I have my own style). For example now I have problem with showing something from database (as I don't use Mysql cause of categories), I use txt, so I don't know how to access some stuff and sort.
I would like to sort posts by rating, and now I'm learning how you made it, I managed to type out Rating of every single news like this:
 |  | foreach ($sql->select(array(
'table' => 'rating',
'where' => array("post_id = $id"))) as $id){
$rating = @round(($row['rating'] / $row['votes']), 0);
echo "Rating: $rating"; |
Well nvm, I need to install local server again, and install sql version to check where are tables, what are names and all.
Btw. About Pagnation. It is not so easy. IT is displayed like 1 2 3 I managed to add stuff like Next 5, Prevous 5.
And btw, code for pagnation is ok, but if you use:
 |  |
$static['template'] = 'Headlines';
$static['number'] = 5;
$static['skip'] = 5;
|
You will get only 1st time correct list of headlines (on first page). But every next page will display same headlines as last page. And I fix it, I added code like this:
 |  | $skip=$HTTP_GET_VARS['skip'];
$static['template'] = "Headlines";
$static['number'] = 5;
$static['skip']=5+$skip; |
So I hope I helped little bit Aldo it's not bug as this part is on our own. But if somebody wants to display always next 5 news from last 5, it must jump for 5 news jump. skip as it self is not enough it only skips from first news, and every second page is skiped again only by 5 from 1st, not by 10 and so on ..
Thanks for understanding FI, no hard feelings, sorry that I'm pain in ass, but I realy realy would like to set this page up, I'm already 3 years in air, done half job, and now I have filling I can make it.
|
|
| Tue Jan 24, 2006 12:28 am |
 |
 |
odin
Moderator
Joined: 29 Sep 2005 Posts: 138 Location: Poland |
|
|
|
Nevermind about coding, can You post some screens how the page will look ? I'm quite curious 
|
|
| Tue Jan 24, 2006 12:58 am |
|
 |
Kova-2CROwded
Joined: 04 Jan 2006 Posts: 38 Location: Croatia/Zagreb |
|
|
|
Well I have lots lots of ideas on page, some of ideas are here:
http://www.2crowded.com/new-portal/test-2kol3.jpg
till http://www.2crowded.com/new-portal/test-2kol9.jpg
But it will not be that design.
New one will look like forum http://forum.2crowded.com
For start. http://www.2crowded.com/test (middle part is like forum and only one finished).
Ideas for site are realy complex. It should have lots of categories, good articles, english and croatian language. OC - MEM database for Overclockers and lots more. Realy complex ideas. Like active graphs, you will be able to pick stuff from tests and put them on 1 graf to test it your self whats better.
And so on. But I'm not so far from doing it completly. Not that I have designer not that I have coder. I work all on my own, and I can do only 1 thing at time. So it is going realy slow. But I know when it will be finished, it will be one of best sites for HW on english and croatian 
|
|
| Tue Jan 24, 2006 1:05 am |
 |
 |
odin
Moderator
Joined: 29 Sep 2005 Posts: 138 Location: Poland |
|
|
|
Why don't you just install some wiki script, for something like that ? Every problem will be solved from the beggining wit this type of script.
|
|
| Tue Jan 24, 2006 1:22 am |
|
 |
|
|
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 cannot attach files in this forum You can download files in this forum
|
|
 |
 |
 |
|