SEO-Board: Free, Fast and Search Engine Optimization Friendly Forum Script
»User: »Password:   Remember Me? 
SEO-Board Forum Software Community / General / Support / Having a problem with the direct link box on the top right hand corner
Posted:  12 Oct 2007 07:39
I get this link freeadsboard.com/ad/5 when I make a selection from the direct link box instead of freeadsboard.com/ad/forum5.htm. Any idea why?

Thanks,
David
Posted:  12 Oct 2007 15:40
Have you changed the code of the function get_forum_url(..) in /code/skinning.php? It should be this one:
Code:

function get_forum_url($forum_id, $pagenum)
{
  global $forumscript, $forumdir, $modrewrite;
 
  if ($pagenum==1)
    return ($modrewrite == 0) ? $forumscript.'?a=vforum&f='.$forum_id : $forumdir."forum$forum_id.htm";
  else
    return ($modrewrite == 0) ? $forumscript.'?a=vforum&f='.$forum_id.'&p='.$pagenum : $forumdir."forum$forum_id-$pagenum.htm";
}
Posted:  13 Oct 2007 18:57
I checked out that code and that is what it is in the skinning.php. Every link works fine it is just when you try to use the box in the top right corner and hit go it gives you the ad/# instead of ad/forum#.htm?
Posted:  13 Oct 2007 20:14
I cannot think of another reason. What changes have you made to the original code?
Posted:  18 Oct 2007 08:29   Last Edited By: raceway
I figured it out tonight. The problem was in the index.php file, for some reason the code was a little off in the forumjump command. I must have changed it by accident.