The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: C:\sites\kwikcontent\supportforum\global.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\global.php 94 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 28 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 573 - File: C:\sites\kwikcontent\supportforum\global.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\global.php 573 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 28 require_once
Warning [2] Undefined variable $can_access_moderationqueue - Line: 752 - File: C:\sites\kwikcontent\supportforum\global.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\global.php 752 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 28 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: C:\sites\kwikcontent\supportforum\global.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\global.php 892 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 28 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: C:\sites\kwikcontent\supportforum\global.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\global.php 892 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 28 require_once
Warning [2] Undefined variable $unreadreports - Line: 25 - File: C:\sites\kwikcontent\supportforum\global.php(959) : eval()'d code PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\global.php(959) : eval()'d code 25 errorHandler->error
C:\sites\kwikcontent\supportforum\global.php 959 eval
C:\sites\kwikcontent\supportforum\showthread.php 28 require_once
Warning [2] Undefined array key "style" - Line: 1024 - File: C:\sites\kwikcontent\supportforum\global.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\global.php 1024 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 28 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5308 - File: C:\sites\kwikcontent\supportforum\inc\functions.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\inc\functions.php 5308 errorHandler->error
C:\sites\kwikcontent\supportforum\global.php 1024 build_theme_select
C:\sites\kwikcontent\supportforum\showthread.php 28 require_once
Warning [2] Undefined array key "mybb" - Line: 2121 - File: C:\sites\kwikcontent\supportforum\inc\functions.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\inc\functions.php 2121 errorHandler->error
C:\sites\kwikcontent\supportforum\inc\functions_indicators.php 41 my_set_array_cookie
C:\sites\kwikcontent\supportforum\showthread.php 669 mark_thread_read
Warning [2] Undefined array key "profilefield" - Line: 6 - File: C:\sites\kwikcontent\supportforum\inc\functions_post.php(484) : eval()'d code PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\inc\functions_post.php(484) : eval()'d code 6 errorHandler->error
C:\sites\kwikcontent\supportforum\inc\functions_post.php 484 eval
C:\sites\kwikcontent\supportforum\showthread.php 1126 build_postbit
Warning [2] Undefined array key "showimages" - Line: 768 - File: C:\sites\kwikcontent\supportforum\inc\functions_post.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\inc\functions_post.php 768 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 1126 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 773 - File: C:\sites\kwikcontent\supportforum\inc\functions_post.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\inc\functions_post.php 773 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 1126 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: C:\sites\kwikcontent\supportforum\inc\functions_post.php(484) : eval()'d code PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\inc\functions_post.php(484) : eval()'d code 6 errorHandler->error
C:\sites\kwikcontent\supportforum\inc\functions_post.php 484 eval
C:\sites\kwikcontent\supportforum\showthread.php 1126 build_postbit
Warning [2] Undefined array key "showimages" - Line: 768 - File: C:\sites\kwikcontent\supportforum\inc\functions_post.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\inc\functions_post.php 768 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 1126 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 773 - File: C:\sites\kwikcontent\supportforum\inc\functions_post.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\inc\functions_post.php 773 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 1126 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: C:\sites\kwikcontent\supportforum\inc\functions_post.php(484) : eval()'d code PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\inc\functions_post.php(484) : eval()'d code 6 errorHandler->error
C:\sites\kwikcontent\supportforum\inc\functions_post.php 484 eval
C:\sites\kwikcontent\supportforum\showthread.php 1126 build_postbit
Warning [2] Undefined array key "showimages" - Line: 768 - File: C:\sites\kwikcontent\supportforum\inc\functions_post.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\inc\functions_post.php 768 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 1126 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 773 - File: C:\sites\kwikcontent\supportforum\inc\functions_post.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\inc\functions_post.php 773 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 1126 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: C:\sites\kwikcontent\supportforum\inc\functions_post.php(484) : eval()'d code PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\inc\functions_post.php(484) : eval()'d code 6 errorHandler->error
C:\sites\kwikcontent\supportforum\inc\functions_post.php 484 eval
C:\sites\kwikcontent\supportforum\showthread.php 1126 build_postbit
Warning [2] Undefined array key "showimages" - Line: 768 - File: C:\sites\kwikcontent\supportforum\inc\functions_post.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\inc\functions_post.php 768 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 1126 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 773 - File: C:\sites\kwikcontent\supportforum\inc\functions_post.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\inc\functions_post.php 773 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 1126 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: C:\sites\kwikcontent\supportforum\inc\functions_post.php(484) : eval()'d code PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\inc\functions_post.php(484) : eval()'d code 6 errorHandler->error
C:\sites\kwikcontent\supportforum\inc\functions_post.php 484 eval
C:\sites\kwikcontent\supportforum\showthread.php 1126 build_postbit
Warning [2] Undefined array key "showimages" - Line: 768 - File: C:\sites\kwikcontent\supportforum\inc\functions_post.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\inc\functions_post.php 768 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 1126 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 773 - File: C:\sites\kwikcontent\supportforum\inc\functions_post.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\inc\functions_post.php 773 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 1126 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: C:\sites\kwikcontent\supportforum\inc\functions_post.php(484) : eval()'d code PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\inc\functions_post.php(484) : eval()'d code 6 errorHandler->error
C:\sites\kwikcontent\supportforum\inc\functions_post.php 484 eval
C:\sites\kwikcontent\supportforum\showthread.php 1126 build_postbit
Warning [2] Undefined array key "showimages" - Line: 768 - File: C:\sites\kwikcontent\supportforum\inc\functions_post.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\inc\functions_post.php 768 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 1126 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 773 - File: C:\sites\kwikcontent\supportforum\inc\functions_post.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\inc\functions_post.php 773 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 1126 build_postbit
Warning [2] Undefined array key "invisible" - Line: 1568 - File: C:\sites\kwikcontent\supportforum\showthread.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\showthread.php 1568 errorHandler->error
Warning [2] Undefined variable $threadnotesbox - Line: 33 - File: C:\sites\kwikcontent\supportforum\showthread.php(1600) : eval()'d code PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\showthread.php(1600) : eval()'d code 33 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 1600 eval
Warning [2] Undefined variable $search_thread - Line: 60 - File: C:\sites\kwikcontent\supportforum\showthread.php(1600) : eval()'d code PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\showthread.php(1600) : eval()'d code 60 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 1600 eval
Warning [2] Undefined variable $addremovesubscription - Line: 82 - File: C:\sites\kwikcontent\supportforum\showthread.php(1600) : eval()'d code PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\showthread.php(1600) : eval()'d code 82 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 1600 eval
Warning [2] Undefined variable $thread_deleted - Line: 104 - File: C:\sites\kwikcontent\supportforum\showthread.php(1600) : eval()'d code PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\showthread.php(1600) : eval()'d code 104 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 1600 eval





Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Customizing your URLs
#1
Version 1.0 allows you to alter your URL paths to better suit the needs of your web site. Doing this requires you to edit 2 files:

/.htaccess
/includes/_global.php

Near the bottom of the includes/_global.php file you will see some variable declarations. The array of variables we want to edit here are "$domain->slugs". Let's look at an example that will turn the default "Knowledgebase" into "Questions" and "Answers." By default, your Kwikcontent refers to the URLs of these sections like this:

yourdomain.com/knowledgebase/browse/123/keywordname.html
yourdomain.com/knowledgebase/view/456/questiontitle.html

Let's make them look like this instead:

yourdomain.com/questions/123/keywordname.html
yourdomain.com/answer/456/questiontitle.html

We will need to alter the proper $domain->slug variables in the _global.php file. They currently look like this:

$domain->slugs['yahoo_qas'] = 'knowledgebase/browse/';
$domain->slugs['yahoo_qa'] = 'knowledgebase/view/';

Change them to this:

$domain->slugs['yahoo_qas'] = 'questions/';
$domain->slugs['yahoo_qa'] = 'answer/';

Note: The trailing slashes are important!

That makes the change in the PHP logic of the system. We now need to tell the server where to look for these requested URLs. To do that, we need to alter the .htaccess file. We simply need to change these two lines:

RewriteRule ^knowledgebase/browse/([_A-Za-z0-9\.\,\-\!\(\)\'\\:-]+)/([_A-Za-z0-9\.\,\-\!\(\)\'\\:-]+)/?$ yahoo_answers.php?k=$1
RewriteRule ^knowledgebase/view/([_A-Za-z0-9\.\,\-\!\(\)\'\\:-]+)/([_A-Za-z0-9\.\,\-\!\(\)\'\\:-]+)/?$ yahoo_answer.php?yqa=$1

to read like this:

RewriteRule ^questions/([_A-Za-z0-9\.\,\-\!\(\)\'\\:-]+)/([_A-Za-z0-9\.\,\-\!\(\)\'\\:-]+)/?$ yahoo_answers.php?k=$1
RewriteRule ^answer/([_A-Za-z0-9\.\,\-\!\(\)\'\\:-]+)/([_A-Za-z0-9\.\,\-\!\(\)\'\\:-]+)/?$ yahoo_answer.php?yqa=$1

Notice how we made the same types of changes in both files?

Now simply upload both files to your server and the change is made.

I wouldn't recommend doing this with a site that is already established, because search engines may still try sending traffic to the old URLs. Instead, use this technique when setting up a new domain.

Now then, since we altered the URLs, we should also alter the descriptions of those links. To do this, we just need to make another change to the $domain->titles array of variables. In these variables, the asterisk (*) will be replaced with the appropriate keyword. So let's change the following line in _global.php from this:

$domain->titles['yahoo_qas'] = '* knowledge base';

into this:

$domain->titles['yahoo_qas'] = '* questions';

Now reupload that file to your server again. You will notice that the descriptive links and headings are now altered across all areas of your site. You can replicate this for each of the areas of your site by making the same changes in those other areas. Have fun!
Reply
#2
Can we make our page URLs look like:

yourdomain.com/questions/keywordname.html
yourdomain.com/answer/questiontitle.html

OR

yourdomain.com/keywordname.html
yourdomain.com/questiontitle.html

If yes, How. If no, what is the way we can get to achieving this?

Thanks Smile
Reply
#3
Yes, this is possible, but it would require some edits to multiple files... including the admin area, the .htaccess file, and all of the public php files. It's a bit more work than I am willing to create a tutorial for at this point... and it would require a good amount of PHP knowledge/work. This may be a feature worth looking at for either a mod or a future version.
Reply
#4
Jeff, is there a way we can rid ourselves of the numbers in the URL? I wish to make the URL as short as possible.

Also: Can you make a MOD to support what my earlier request was?
Reply
#5
That is possible to do, but it is not something I will be creating a mod for. That will require a fairly intense overhaul to the way information is retrieved. Is there a reason you want to remove the numbers? It really doesn't "hurt" much in terms of SEO.
Reply
#6
In my experience, Short URLs make the difference Smile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)