YaBB Community and Support Forum
YaBB Home About YaBB Download YaBB YaBB Support Customize Your Forum Development Contribute to the Project

This Codex is Read Only, there is No reason or requirement to Login to view any and all posts.

FoxLingo Afrikaans Arabic Bulgarian Catalan Chinese Simplified Chinese Traditional Croatin Czech Danish Nederlands/Dutch Esperanto Filipino Finnish French German Greek Hebrew Hungarian Icelandic Indonesian Italian Japanese Korean Norwegian Polish Portuguese Portuguese Brazilian Romanian Russian Serbian Slovenian Spanish Swedish Thai Turkish Welsh
  HomeHelpSearchLogin  
 
 
Page Index Toggle Pages: 1
Print
Shorten the Forum URL (Read 2095 times)
Shorten the Forum URL  {yabbadmin}
The shorter URL trick with YaBB2.*:

   Note replace yourdomain with your domain name !

Open Security.pl and find this (line 23)

Code Select All
$scripturl=qq~$boardurl/YaBB.$yyext~; 




Replace with

Code Select All
$scripturl=qq~http://www.yourdomain.com/forum/~; 




Open Load.pl and find this (line 574)

Code Select All
if (!$scripturl) { $scripturl = qq~$boardurl/YaBB.$yyext~; } 



and replace with

Code Select All
if (!$scripturl) { $scripturl = qq~http://www.yourdomain.com/forum/~; } 




And finally, if you'd like to make it work for admins as well, as there's a link back to the forum in the admin center, open AdminIndex.pl and find this:

Code Select All
$topmenu_one  = qq~<span style="font-size: 12px; font-family: tahoma, sans-serif;">
 <ahref="$boardurl/YaBB.$yyext">$admintxt{'15'}</a></span>~; 




replace with

Code Select All
$topmenu_one=qq~<span style="font-size: 12px; font-family: tahoma, sans-serif;">
 <a href="http://www.yourdomain.com/forum/">$admintxt{'15'}</a></span>~; 




And finally, create a .htaccess file which contains the line below and place it in your DirectoryIndex ../cgi-bin/yabb/YaBB.pl

http://www.yourdomain.com/forum dir:

Where ../cgi-bin/yabb/YaBB.pl is the relative path to YaBB.pl.

Notice that in some cases (depending of the server setup) when you change $scripturl part, the trailing forward slash (http://www.yourdomain.com/forum/) needs to be in there, or logging in won't work!

Also note this that .htaccess doesn't work in all servers, only with Apache HTTP server which is running in *nix-like server or on Windows NT based server (for example Windows 2000).

********************************************************

There may also be some restrictions which prevent the above from working in which case a simple sort-of-but-not-quite-workaround would be using only a .htaccess file with this in it:

Redirect permanent /forum http://www.yourdomain.com/cgi-bin/yabb/YaBB.pl


Is you use the above redirect, then DO NOT make the $scripturl edits (above the *** line) !



 

Page Index Toggle Pages: 1
Print

Get Yet another Bulletin Board at SourceForge.net. Fast, secure and Free Open Source software downloads Support This Project BoardMod - YaBB features and templates YaBB Codex - support on installation and usage YaBB Toolbar for your browser YaBB Facebook Group Page

Valid RSS Valid XHTML Valid CSS Powered by Perl
YaBB Support Codex » Powered by YaBB Next Edition!
YaBB Forum Software © 2000-2011. All Rights Reserved.