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)

yingzhou 06-29-2008 09:37 AM

Can you do the specif file for my language?

How cam I do? My language is use a lot chart like this á à ả ã ạ â ă ấ ầ ẩ ẫ ậ ắ ằ ẳ ẵ ặ .

superjeff 06-29-2008 09:43 AM

Send me all your strange characher. (or manual edit the functions_tfseo_chr)

yingzhou 06-29-2008 09:49 AM

can I leave the accent instead of remove it?

and how to edit the functions_tfseo_chr?

is this right?

Code:

<?php
function remove_accents($string){
    return strtr($string,
                "??ả?ạ?ăấầẩẫậắằẳẵặ",
                "aaaaaaaaaaaaaaaaa");
}
?>

thanks anyway!

superjeff 06-29-2008 10:14 AM

You can leave it, but it will break the url structrure.
Something like
f##/hell?-huh?
Will be
f##/hell-huh

I'ts right, Please when you finish send me so i can integrate for other people :)

EarnDollars 06-29-2008 11:56 AM

Hello Superjeff,
I got a new bug here:
Can not read PMs when turn on the product (Got database error, and everything back to normal when turn it off)

The error notice info
Database error in vBulletin 3.7.0:

Quote:

Invalid SQL:

SELECT forum.tfseo_key
FROM forum AS forum
WHERE forumid =;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3
Error Number : 1064
Request Date : Sunday, June 29th 2008 @ 08:41:36 AM
Error Date : Sunday, June 29th 2008 @ 08:41:37 AM
Script : http://sdnforum.com/forums/private.p...howpm&pmid=173
Referrer : http://sdnforum.com/forums/private.php
IP Address : 116.21.208.78
Username : Julian
Classname : vB_Database
MySQL Version : 4.1.22-standard
can you let me know how to fix this?

Thx!

superjeff 06-29-2008 12:32 PM

This is truly a big bug! Working on it..

superjeff 06-29-2008 12:38 PM

Fixed, i will include this in the next relase:
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')
{

//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']);
}



EarnDollars 06-29-2008 01:14 PM

Quote:

Originally Posted by superjeff (Post 1562005)
This is truly a big bug! Working on it..

Thanks for fast reply!
I will make the change and let you know the result

EarnDollars 06-29-2008 02:11 PM

Hello Jeff,
I edited the plugin with your new codes but have the same error...

Could you relook this?

Thanks a lot!

Julian

superjeff 06-29-2008 02:54 PM

It works in my test forum (php 4 and 5)
Disabling the same plugin, what happens?


All times are GMT. The time now is 09:15 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.01586 seconds
  • Memory Usage 1,754KB
  • 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)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