01-19-2009, 11:32 PM
01-20-2009, 01:18 AM
Save your "read_tutorial.php" as "view.php" so you don't lose your original. Then edit the new from:
to:
Next, in global.php about halfway down change:
to:
Try it and see - if it doesn't work just reverse the changes in global.php
Hope this helps.
Code:
$read_tutorial_page = 1;Code:
$view_page = 1;Next, in global.php about halfway down change:
Code:
// the $read_tutorial array
$read_tutorial = array();
global $read_tutorial_page;
if($read_tutorial_page == 1) {Code:
// the $read_tutorial array
$read_tutorial = array();
global $view_page;
if($view_page == 1) {Try it and see - if it doesn't work just reverse the changes in global.php
Hope this helps.
01-20-2009, 01:45 AM
I followed this to the T and it did not work :oops:
01-20-2009, 02:16 AM
I missed a section in "global.php", just a bit farther down from the other edit. Find:
and change to:
I missed that part and just found it now. Try this with the previous edits and see how it works.
Code:
if(MOD_REWRITE_ON == 1) {
$read_tutorial['nav_link'] = HTTP_SERVER.'read_tutorial/'.$id.'/';
$read_tutorial['nav_querystring'] = '';
}else{
$read_tutorial['nav_link'] = HTTP_SERVER.'read_tutorial.php?';
$read_tutorial['nav_querystring'] = 'id='.$id;
}Code:
if(MOD_REWRITE_ON == 1) {
$read_tutorial['nav_link'] = HTTP_SERVER.'view/'.$id.'/';
$read_tutorial['nav_querystring'] = '';
}else{
$read_tutorial['nav_link'] = HTTP_SERVER.'view.php?';
$read_tutorial['nav_querystring'] = 'id='.$id;
}01-20-2009, 02:24 AM
Will try now thanks!
01-20-2009, 02:34 AM
Didnt work. I found this bit in the code in global.php
Am I supposed to change anything that says read_tutorial?
Code:
}else{
$read_tutorial['nav_link'] = HTTP_SERVER.'read_tutorial.php?';
$read_tutorial['nav_querystring'] = 'id='.$id;Am I supposed to change anything that says read_tutorial?
01-20-2009, 02:51 AM
That was one of the parts to change:
change to:
I didn't think all the read_tutorial's need to be changed - just the page references
Code:
}else{
$read_tutorial['nav_link'] = HTTP_SERVER.'read_tutorial.php?';
$read_tutorial['nav_querystring'] = 'id='.$id;Code:
}else{
$read_tutorial['nav_link'] = HTTP_SERVER.'view.php?';
$read_tutorial['nav_querystring'] = 'id='.$id;I didn't think all the read_tutorial's need to be changed - just the page references
01-20-2009, 02:54 AM
Yeah it still will not work even after changing the php file name.