Not signed in (Sign In)

Categories

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    •  
      CommentAuthorjmesam
    • CommentTimeMay 15th 2006
     # 1
    Hi!
    I want to translate the structure of a vanilla forum, change ../discussion/1/... to ../mensaje/1/... ../categories/ to ../categorias/..

    I know I have to change it in the .htaccess, but what is the other file that I have to change?

    Thank you in advance,
    •  
      CommentAuthorlech
    • CommentTimeMay 15th 2006
     # 2
    You'll also want the Friendly URLs extension installed to handle this: http://lussumo.com/addons/?PostBackAction=AddOn&AddOnID=30
    •  
      CommentAuthorjmesam
    • CommentTimeMay 15th 2006
     # 3
    Thank you for your answer but I'm not asking for this.
    I'm only want to translate the default urls
    •  
      CommentAuthorlech
    • CommentTimeMay 15th 2006 edited
     # 4
    Hmmm, this would require gutting into Vanilla and renaming all the strings in there to read differently, which I'm guessing is quite difficult to do unless mark says otherwise. Mark?

    The only other alternative is having a conditional rewrite rule that follows the previous ones which points requests to what you want to what it references within Vanilla. That's the only other alternative I can think of.
  1.  # 5
    Actually, (assuming you're using version 1 beta,) there are configuration options which control the mod_rewrite urls. Just change these, stick them in conf/settings.php, and change your .htaccess file to match the new rewrites.


    $Configuration['REWRITE_categories.php'] = 'categories/';
    $Configuration['REWRITE_index.php'] = 'discussions/';
    $Configuration['REWRITE_comments.php'] = 'discussion/';
    $Configuration['REWRITE_search.php'] = 'search/';
    $Configuration['REWRITE_account.php'] = 'account/';
    $Configuration['REWRITE_settings.php'] = 'settings/';
    $Configuration['REWRITE_post.php'] = 'post/';
    $Configuration['REWRITE_people.php'] = 'people/';
    • CommentAuthorjakob_r
    • CommentTimeMay 16th 2006
     # 6
    @a_magical_me: thanks, it seems to work nicely.
    •  
      CommentAuthorjmesam
    • CommentTimeMay 16th 2006 edited
     # 7
    It works

    Thanks :-)
    •  
      CommentAuthorMark
    • CommentTimeMay 16th 2006
     # 8
    Yay! I love it when people figure out my wacky methods.
  2.  # 9
    Hey! Thanks for a fantastic product.

    I have set up friendly urls in my Vanilla 1 installation. It works well on the threads and categories pages, but on search and account I get the error:
    Notice: Undefined index: REWRITE_account in /hsphere/local/home/tools/tools.web.surftown.se/storaa/forum/library/Framework/Framework.Functions.php on line 415

    My forum is at:
    http://tools.web.surftown.se/storaa/forum/search/

    I appreciate all the help!
  3.  # 10
    There is also an isse with the Guest Welcome link - the link only points to the login page when viewed from the fron t page. When clicked from within a thread, the link leads to "...forum/10/people.php" instead of the correct "...forum/people.php". Any ideas?
    • CommentAuthorjakob_r
    • CommentTimeMay 25th 2006
     # 11
    Thomas, I changed the link in the guest welcome string to read:

    <a href=\"".GetUrl($Configuration['BASE_URL'], "people.php", "", "", "", "", "PostBackAction=ApplyForm")."\">hier registrieren</a>
  4.  # 12
    Thanks, jakob_r, you inspired me to the following solution to the Guest Welcome / Friendly Urls incompatibility issue: To conf/settings.php I added:

    $Configuration['SIGNIN_URL'] = 'http://.../forum/people.php';
    $Configuration['REGISTER_URL'] = 'http://.../forum/people.php?PostBackAction=ApplyForm';
    (where the ... is an abbreviation of the real url)

    In the extensions/GuestWelcome/default.php file I made the urls look like this:

    <a href=\"".$Configuration['SIGNIN_URL']."\">log in</a>
    <a href=\"".$Configuration['REGISTER_URL']."\">register</a>

    If I'd known any php I'm sure I could have done it without defining RREGISTER_URL separately, as it calls SIGNIN_URL with a suffix.
  5.  # 13
    The remaining problem is the error message
    "Notice: Undefined index: REWRITE_search in /hsphere/local/home/tools/tools.web.surftown.se/storaa/forum/library/Framework/Framework.Functions.php on line 415" which comes up in lots of places.

    Is the Friendly Urls extension written for a pre-Vanilla 1 edition? Any thoughts on how to solve the problem?
  6.  # 14
    oooowww... It works

    Thanks ::D
Add your comments
    Username Password
  • Format comments as