Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
moving in other category page...

 
Reply to topic    Forum Index » Bugs and errors View previous topic
View next topic
moving in other category page...
Author Message
MiNi.SpIdEr



Joined: 22 Jan 2008
Posts: 26

Post moving in other category page... Reply with quote
Hi


I Have small probem

Now on any ony open my home page

linke this

http://home.com/index.php

to open other category

http://home.com/index.php?category/programs


now in that programs category many page

but on click next or on any Number of page the link like this

http://home.com/index.php?skip=5

I wana to gent full link from brwoser & and add the "skip=5" after it
to do the link like this

http://home.com/index.php?category/programs&skip=5 - this link run now 7 Display the page number of programs category

I thik the Edit in "show.news.php"

in line no. 251
Code:

$prev_next_msg = preg_replace('/\[prev-link\](.*?)\[\/prev-link\]/si', '<a href="'.$PHP_SELF.'?skip='.($skip - $number).'">\\1</a>', $prev_next_msg);

how to fix it
can use Java script

window.location

this code get the link of the page in browser
& edit the
Code:

<a href="'.$PHP_SELF.'?skip='.($skip - $number).'">\\1</a>

to
Code:

<a href="'<script>window.location</script>'&skip='.($skip - $number).'">\\1</a>


or <script>document.write(window.location);</script>

I not sure & I dont Try it Can Any one Help me or say to me how to
fix this problem ??? or any other method to apportioning web page without problem

?????

Confused

_________________
WwW.MiNi-5pIdEr.CoM
Wed Aug 20, 2008 1:47 pm View user's profile Send private message
Guest








Please login to hide the ads.

MiNi.SpIdEr



Joined: 22 Jan 2008
Posts: 26

Post Reply with quote
?????????

any one can help me

_________________
WwW.MiNi-5pIdEr.CoM
Thu Aug 21, 2008 11:47 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2857
Location: Germany

Post Re: moving in other category page... Reply with quote
MiNi.SpIdEr wrote:
I not sure & I dont Try it

It might work. Try it.
Sat Aug 23, 2008 10:19 am View user's profile Send private message
MiNi.SpIdEr



Joined: 22 Jan 2008
Posts: 26

Post Reply with quote
I'm Try but dont run Sad

but i do that

first make that

// << Previous & Next >>
$MPHP_SELF = $_SERVER['REQUEST_URI'];
$PHP_SELF = @preg_replace($skip.'$', '', $_SERVER['REQUEST_URI']);
$prev_next_msg = $template_prev_next;

this new

$MPHP_SELF = $_SERVER['REQUEST_URI'];

and repar all

<a href="'.$PHP_SELF.'?skip='


with

<a href="'.$MPHP_SELF.'&skip='

with this can move on page category

but the link like that

http://home.com/index.php?category/squad-pro&skip=5&skip=10&skip=15

&skip=5&skip=10&skip=15

the &skip view in browser bar with all next

okey

bay

_________________
WwW.MiNi-5pIdEr.CoM
Sun Aug 24, 2008 3:15 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    Forum Index » Bugs and errors All times are GMT + 1 Hour
Page 1 of 1

 
Jump to: 
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



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.