vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Keyword Redirect (https://vborg.vbsupport.ru/showthread.php?t=112425)

akanevsky 04-06-2006 09:00 PM

Keyword Redirect
 
/*===================================*\
|| Keyword Redirect
||
|| Author : Anton Kanevsky
|| Works on : vBulletin 3.5.x - 3.8.x
|| Released : Jul 01, 2009
||
|| Time required to install: ~30 seconds
|| Difficulty: easy
\*===================================*/

DESCRIPTION

Allows to easily create multiple user-friendly URLs similar to http://www.yoursite.com/go/keyword, where keyword is one of the keywords defined via the admincp.

STATISTICS

File Uploads: 1
Products to Install: 1


INTRODUCTION

Important information regarding file uploads for this hack:

To install this product, you must upload a bunch of files. The .htaccess file goes into your website root, and all other files go into your forum root. If your website root is different from your forum root, please open the .htaccess file and edit it according to the instructions in that file.

If there is already a .htaccess file in your website root, you must copy the contents of the file in this package and paste it into the one you already have.

VERSION HISTORY

1.1.0
[+] Compatible with vBulletin 3.5.x - 3.8.x.
[+] Easier to understand documentation (hopefully).

1.0.0
First Release

The installation manual is contained within the attached file.

IF YOU LIKE MY HACK, PLEASE CLICK INSTALL

akanevsky 04-07-2006 07:49 PM

<font size="3">First Post Reserved.</font>

Stifler 04-07-2006 08:08 PM

VERY AWESOME. GREAT HACK
/install

dieselpowered 04-07-2006 08:32 PM

hmmm not working??

I have the vbSEO hack installed, therefore, my htaccess file already had RewriteEngine On in the beginning...do I still add all of your stuff above it?

akanevsky 04-07-2006 08:34 PM

You would need to add everything except for RewriteEngine On.
I do not have vBSEO .htaccess file, so I cannot give you further instructions.

dieselpowered 04-07-2006 08:35 PM

Ok let me edit that and see if it helps :)

dieselpowered 04-07-2006 08:37 PM

Hmmm nope that did not work...here is what I have:

Code:

RewriteEngine On

# Uncomment this if you have the script in a subfolder. Make sure there is a trailing slash.
# RewriteBase /

RewriteRule ^go/(.*)$ keyword.php?keyword=$1

RewriteRule ^(sitemap.*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]


akanevsky 04-07-2006 08:50 PM

First of all, is your forum in the root of your site?
If it's not, and it seems to me that it's not, then try changing:

RewriteRule ^go/(.*)$ keyword.php?keyword=$1

to

RewriteRule ^go/(.*)$ forums/keyword.php?keyword=$1

dieselpowered 04-07-2006 08:54 PM

Hi there, yes, the forums are in the root directory :)

joeychgo 04-07-2006 09:04 PM

I would bet this would conflict with vBSEO since they are both rewriting the urls.

How does this determin which keyword to place? I would like to see a demo

akanevsky 04-07-2006 09:07 PM

Quote:

Originally Posted by xtremeoff-road
Hi there, yes, the forums are in the root directory :)

Try the change I told you.

As for the question below, you add the keywords via admincp - see screenshot.

MissKalunji 04-07-2006 09:19 PM

whats the point of that mod? i dont get it?

akanevsky 04-07-2006 09:35 PM

I don't really understand the point, but it was easy to make and someone asked me to - so I did.

MissKalunji 04-07-2006 09:45 PM

arf ok :-/

bada_bing 04-07-2006 11:03 PM

OK dumb question but what does this hack do and what are the advantages of having it?

akanevsky 04-07-2006 11:05 PM

This hack allows you to create URL shortcuts to either internal or external links within your own board.

The shortcuts look like:
http://www.yoursite.com/go/myshortcut

PabloAM 04-08-2006 01:05 AM

Not GO :(

What is problem??

I uploaded good and uploaded product...

www.xboxers360.net my keyword is xboxers360 to http://www.xboxers360.net
any xboxers360 is URLed :(

HELPME

MissKalunji 04-08-2006 01:06 AM

oops wrong thread

bada_bing 04-08-2006 01:12 AM

Quote:

Originally Posted by Psionic Vision
This hack allows you to create URL shortcuts to either internal or external links within your own board.

The shortcuts look like:
http://www.yoursite.com/go/myshortcut

Sorry still sont understand

dvsDave 04-08-2006 12:48 PM

Psionic Vision, this a great product! I've installed it and started playing with it. The way you coded it made possible to create virtual directories of shortcuts as well. For instance I was able to create the shortcut products/nikon and linked it to Nikon's site. I then typed http://www.exampleURL.com/go/products/nikon and it worked! I also didn't use the RewriteBase part of the .htaccess and just altered the rewriteURL as you suggested in an earlier post. All in all, Needs better documentation for most people, though. Other than that, a great hack!

toolblast 04-11-2006 07:54 PM

To answer all the 'what the heck is this?' questions...

I think what this does it basically give the admin the chance to make urls that redirect to other pages. Sort of like AOL keywords.

It may be useful if you were running, for example, a dictionary site or glossary and the user types /go/dog and then that would redirect to a forum search with all posts about dogs?

lol.

magnaromagna 05-29-2006 06:12 PM

I have the same problem: I have vbseo installed, I tried to install this hack but don't works. I have the forum in site.ext/forum/ and I added this code at .htaccess
PHP Code:

RewriteRule ^go/(.*)$ forum/keyword.php?keyword=$

After add some keywords in admin panel, I see that nothing changed in threads
Is a conflict with vbseo?

akanevsky 05-30-2006 12:06 AM

This hack does not change anything in threads. It simply allows you to use those links, but you have to add the links in templates yourself.

whitetigergrowl 05-30-2006 02:04 AM

Can external links be used as well? Also, I have mine in a subdirectory as well, did the edit above, and still doesnt work for me either.

akanevsky 05-30-2006 05:06 PM

Yes, you can use any links.
As for subdirectories - see .htaccess commentary added by this hack.

whitetigergrowl 05-31-2006 01:34 AM

RewriteRule ^go/(.*)$ community/keyword.php?keyword=$1

I have. And still no go.

akanevsky 05-31-2006 07:39 PM

The RewriteBase part is what you need.

whitetigergrowl 06-02-2006 01:51 AM

Still no go.

RewriteBase /

RewriteRule ^go/(.*)$ community/keyword.php?keyword=$1

akanevsky 06-02-2006 06:24 PM

Try:

RewriteBase /community/
RewriteRule ^go/(.*)$ keyword.php?keyword=$1

whitetigergrowl 06-02-2006 08:13 PM

Copied and pasted...and still nothing.

I have this in my forum subfolder (which is 'community'). I have tested it numerous times and still nothing even though I have entered the info as stated and everything shows in the admincp. The forums do not reflect any changes and no keywords are highlighted or anything else.


All times are GMT. The time now is 06:32 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02360 seconds
  • Memory Usage 1,774KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (30)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete