Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Next page and previous page on news.php?readmore=

Asked Modified Viewed 4,925 times
H
HaRd_sToNe
H
Electronics Project
MyBlog
ThenITSok.com

shockDa world is HELL.............
.............n peoples are DEMONS
  • Member, joined since
  • Contributed 53 posts on the community forums.
  • Started 19 threads in the forums
  • Started this discussions
asked
Member

Hello, how could i put Next page and previous page option on news readmore page? Any ideas please....
0 replies

12 posts

A
Ankur
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums
answered
Veteran Member

I think you mean Next News and Previous News ? B)
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

I think he does yes considering that's what he asks in post #1 and the thread title kind of gives it away. :P
0 replies
P
PolarFox
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
answered
Veteran Member

Something like in photo-gallery.
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

I would say so since that does what he is asking. lol

Anyone can do it for us please?

We really need this asap.

Thanks
0 replies
H
HaRd_sToNe
H
Electronics Project
MyBlog
ThenITSok.com

shockDa world is HELL.............
.............n peoples are DEMONS
  • Member, joined since
  • Contributed 53 posts on the community forums.
  • Started 19 threads in the forums
  • Started this discussions
answered
Member

Quote

Fangree_Craig wrote:

I would say so since that does what he is asking. lol

Anyone can do it for us please?

We really need this asap.

Thanks


Yes...that's it...can any one do for us...!

Merged on Sep 28 2011 at 01:25:03:
I wish I can, but i haven't read the fusion core yet..so please you people can do this.... Next.....Previous, i think its not so hard...just to place... index.php?readmore=2 for previous and index.php?readmore=4 for Next....
Edited by HaRd_sToNe on 27-09-2011 20:40,
0 replies
P
PolarFox
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
answered
Veteran Member

To much points dude smile

Here is the code you needed?
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]if(FUSION_SELF == 'news.php' && isset($_GET['readmore']) && isnum($_GET['readmore'])){
$result = dbquery("(SELECT news_id,news_subject FROM ".DB_NEWS." WHERE news_id<".$_GET['readmore']." AND ".groupaccess('news_visibility'wink." AND (news_start='0'||news_start<=".time()."wink AND (news_end='0'||news_end>=".time()."wink AND news_draft='0' ORDER BY news_id DESC LIMIT 1)
UNION
(SELECT news_id,news_subject FROM ".DB_NEWS." WHERE news_id>".$_GET['readmore']." AND ".groupaccess('news_visibility'wink." AND (news_start='0'||news_start<=".time()."wink AND (news_end='0'||news_end>=".time()."wink AND news_draft='0' ORDER BY news_id ASC LIMIT 1)"wink;

function n_link($id,$subj) {
return '<a href="'.BASEDIR.'news.php?readmore='.$id.'">'.$subj.'</a>';
}

$r = dbrows($result);
if($r>0){
opentable('The news'wink;
echo '<div style="text-align:center;">';
}
if($r==2){
$data = dbarray($result);
echo '&larr;&nbsp;'.n_link($data['news_id'],$data['news_subject']).' &mdash; ';
$data = dbarray($result);
echo n_link($data['news_id'],$data['news_subject']).'&nbsp;&rarr;';
}
else if($r==1){
$data = dbarray($result);
echo '['.n_link($data['news_id'],$data['news_subject']).']';
}
if($r>0){
echo '</div>';
closetable();
}
}[/syntaxhighlighter]
0 replies
H
HaRd_sToNe
H
Electronics Project
MyBlog
ThenITSok.com

shockDa world is HELL.............
.............n peoples are DEMONS
  • Member, joined since
  • Contributed 53 posts on the community forums.
  • Started 19 threads in the forums
  • Started this discussions
answered
Member

Thanks polarfox, can I implement this on news.php so that it will display above the comment and rating...how?
0 replies
P
PolarFox
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
answered
Veteran Member

Insert above the "comment and rating" include.
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Which is?

Come on polarfox not everyone can read code.
0 replies
H
HaRd_sToNe
H
Electronics Project
MyBlog
ThenITSok.com

shockDa world is HELL.............
.............n peoples are DEMONS
  • Member, joined since
  • Contributed 53 posts on the community forums.
  • Started 19 threads in the forums
  • Started this discussions
answered
Member

Quote

Fangree_Craig wrote:

Which is?

Come on polarfox not everyone can read code.

Quote

What does it mean Fangree....."Come on polarfox not everyone can read code..."


it doesnt work?
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Some people will not know where to find the comments include in a file, not everyone in this world can read php code yes. Wink

Like when I was a new user I knew nothing, I would not know where it is. lol

Not saying you do not but could be possible you dont. Like I said not everyone can read php code.
0 replies
H
HaRd_sToNe
H
Electronics Project
MyBlog
ThenITSok.com

shockDa world is HELL.............
.............n peoples are DEMONS
  • Member, joined since
  • Contributed 53 posts on the community forums.
  • Started 19 threads in the forums
  • Started this discussions
answered
Member

Quote

Fangree_Craig wrote:

Some people will not know where to find the comments include in a file, not everyone in this world can read php code yes. Wink

Like when I was a new user I knew nothing, I would not know where it is. lol

Not saying you do not but could be possible you dont. Like I said not everyone can read php code.

You are right..Fangree.
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 12 posts
  • Votes 0 votes
  • Topic users 4 members

4 participants

C
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
H
H
Electronics Project
MyBlog
ThenITSok.com

shockDa world is HELL.............
.............n peoples are DEMONS
  • Member, joined since
  • Contributed 53 posts on the community forums.
  • Started 19 threads in the forums
  • Started this discussions
P
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
A
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet