vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Major Additions - TfSEO 2: the free vBulletin url rewrite (https://vborg.vbsupport.ru/showthread.php?t=173738)

RaMMz 06-29-2008 02:56 PM

Here you have the solution:

Go to the AdminCP > Plugin > Edit Plugin. Select "Generate post url" and replace all with:
PHP Code:

//Globals are uncached! 
global $vbulletin
//If is TfSEO enable and post is to rewrite 
if ($vbulletin->options['tfseo_enable'] AND $vbulletin->options['tfseo_rewrite'] & $vbulletin->bf_misc_rewrite['post'] AND THIS_SCRIPT != 'private' AND THIS_SCRIPT != 'external'


//Generate url 
if ($vbulletin->options['tfseo_type'] == 1

$tfseo['g'] = tfseo_url_post($thread['forumid'], $thread['threadid'], $post['postid']); 
} else if (
$vbulletin->options['tfseo_type'] == 2

$tfseo['g'] = tfseo_url_post($thread['forumid'], $thread['title'], $thread['threadid'], $post['postid']); 
} else if (
$vbulletin->options['tfseo_type'] == 3

//Get forum key  
$tfseo_key_query $vbulletin->db->query_read_slave("    
SELECT forum.tfseo_key    
FROM " 
TABLE_PREFIX "forum AS forum    
WHERE forumid = 
$forum[forumid]   
"
);  
$forum[tfseo_key] = mysql_fetch_assoc($tfseo_key_query);  
$forum[tfseo_key] = implode($forum[tfseo_key]); 
$tfseo['g'] = tfseo_url_post($forum[tfseo_key], $thread['forumid'], $thread['title'], $thread['threadid'], $post['postid']); 



Note that i've added this "AND THIS_SCRIPT != 'external'".

=), good plugin as always.

RaMMz @ BlackTouch NETWORK.-

EarnDollars 06-29-2008 03:39 PM

Hi Jeff,
I am using PHP 5.2.6
All links work correct and no database problem while Disabling the plugin (Of coursr URL not rewrite when disabled).

I also tried the codes provided by RaMMZ but still have the same problem

Maybe it is my server's problem?

However, thanks both of you! I love this plugin, and hope to find the way making it works

RaMMz 06-29-2008 03:41 PM

Quote:

Originally Posted by EarnDollars (Post 1562149)
Hi Jeff,
I am using PHP 5.2.6
All links work correct and no database problem while Disabling the plugin (Of coursr URL not rewrite when disabled).

I also tried the codes provided by RaMMZ but still have the same problem

Maybe it is my server's problem?

However, thanks both of you! I love this plugin, and hope to find the way making it works

You're getting the error in external.php?

EDIT: bleh, your having it in private.php reading a pm, im not having any problems with that :S, are you using another plugin that may be making conflict?

superjeff 06-29-2008 05:22 PM

Thank you RaMMz for all :)

Robbey 06-29-2008 05:52 PM

You dont have bad english.

Installed.

superjeff 06-29-2008 06:05 PM

Quote:

Originally Posted by Robbey (Post 1562249)
You dont have bad english.





Installed.

Thanks :D

TheCatcher 06-29-2008 06:43 PM

BUG:

Page navigator!
GO du FIRST PAGE ... is wrong URL page 12 for the first page? LOL
Please look at this picture

plz give me a Fix Code :-)

superjeff 06-29-2008 07:51 PM

It works good in my test forum (tested with 12 pages!).

I don't know what could be..

TheCatcher 06-29-2008 08:13 PM

In my test forum is the same problem
No other Addons installed Board version 3.7.2

screen= settings

yingzhou 06-30-2008 12:37 AM

is this a option I can change the chart like "á" to be "a"? I see in this version it just remove the chart "á" from the word! I have a word like "chào mừng" then I want it to be write "chao mung", if it is ok?


All times are GMT. The time now is 09:31 PM.

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.01911 seconds
  • Memory Usage 1,753KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete