TutorialMS Community Forum

Full Version: Skipping the details page?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can I skip the details page and go strait to the "Read_Tutorial" page? I dont like the fact I have to click it 2 times to see it. Thanks!
In your "tutorial_bit" template find the following two sections:
Code:
<if condition="$glob[details_page] == 1">
<strong><a style="font-size:11px;font-weight:bold;font:Tahoma;" target="_blank" href="$config[HTTP_SERVER]tutorial_out/$tutorial_bit[id]/$tutorial_bit[tutnamelink]/">$tutorial_bit[tutname]</a></strong><br />
<else />    
<strong><a style="font-size:11px;font-weight:bold;font:Tahoma;" target="_blank" href="$config[HTTP_SERVER]tutorial_details/$tutorial_bit[id]/$tutorial_bit[tutnamelink]/">$tutorial_bit[tutname]</a></strong><br />
</if>
and:
Code:
<if condition="$glob[details_page] == 1">
<strong><a style="font-size:11px;font-weight:bold;font:Tahoma;" target="_blank" href="$config[HTTP_SERVER]tutorial_out.php?id=$tutorial_bit[id]">$tutorial_bit[tutname]</a></strong><br />
<else />        
<strong><a style="font-size:11px;font-weight:bold;font:Tahoma;" target="_blank" href="$config[HTTP_SERVER]tutorial_details.php?tutid=$tutorial_bit[id]&tutname=$tutorial_bit[tutnamelink]">$tutorial_bit[tutname]</a></strong><br />
</if>

Change to:
Code:
<strong><a style="font-size:11px;font-weight:bold;font:Tahoma;" target="_blank" href="$config[HTTP_SERVER]tutorial_out/$tutorial_bit[id]/$tutorial_bit[tutnamelink]/">$tutorial_bit[tutname]</a></strong><br />
and:
Code:
<strong><a style="font-size:11px;font-weight:bold;font:Tahoma;" target="_blank" href="$config[HTTP_SERVER]tutorial_out.php?id=$tutorial_bit[id]">$tutorial_bit[tutname]</a></strong><br />
This will bypass the comments page, too, as they're on the tutorials details page.
Worked great very nice thanks! Big Grin
Reference URL's