 |
 |
 |
 |
 |
| Author |
Message |
MiNi.SpIdEr
Joined: 22 Jan 2008 Posts: 26
|
|
moving in other category page... |
|
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
 |  |
$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
 |  |
<a href="'.$PHP_SELF.'?skip='.($skip - $number).'">\\1</a>
|
to
 |  |
<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
?????

_________________ WwW.MiNi-5pIdEr.CoM |
|
| Wed Aug 20, 2008 1:47 pm |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
MiNi.SpIdEr
Joined: 22 Jan 2008 Posts: 26
|
|
|
| Thu Aug 21, 2008 11:47 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2857 Location: Germany |
|
Re: moving in other category page... |
|
 |  | I not sure & I dont Try it |
It might work. Try it.
|
|
| Sat Aug 23, 2008 10:19 am |
|
 |
MiNi.SpIdEr
Joined: 22 Jan 2008 Posts: 26
|
|
|
|
I'm Try but dont run
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 |
|
 |
|
|
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
|
|
 |
 |
 |
|