vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Forum Display Enhancements - vB Enterprise Translator (https://vborg.vbsupport.ru/showthread.php?t=220886)

bollie 08-15-2009 05:02 AM

Quote:

Originally Posted by NLP-er (Post 1867267)
This is FAQ :)

1. Can I add translated pages to sitemap?
Yes - very easy :) install vbSEO Sitemap Generator (it is free) and edit one file: vbseo_sitemap_functions.php in vbseo_sitemap directory.

Find:
Code:

$vbseo_stat[$archived?'at':'t'] += vbseo_add_2urls(
And place under it:
Code:

//additional code
$alanguages = array ('sq', 'ar','bg', 'ca', 'zh-CN', 'hr', 'cs', 'da', 'nl', 'en', 'et', 'tl', 'fi', 'fr', 'gl', 'de', 'el', 'iw', 'hi', 'hu', 'id', 'it', 'ja', 'ko', 'lv', 'lt', 'mt', 'no', 'pl', 'pt', 'ro', 'ru', 'sr', 'sk', 'sl', 'es', 'sv', 'zh-TW', 'th', 'tr', 'uk', 'vi', 'sq', 'ca', 'et', 'tl', 'gl', 'hi', 'id', 'lv', 'lt', 'mt', 'sl', 'uk', 'vi');
if(!$archived)
  foreach($alanguages as $language) {
    $vbseo_stat['t']++;
    vbseo_add_url(vbseo_url_thread($threadrow, $p, $archived).'?language='.$language, $prior, $threadrow['lastpost'], $freq);
  }
//end additional code

NOTE: REMOVE YOUR DEFAULT LANGUAGE CODE from $alanguages
Also if you disabled some languages in option panel you have to delete it codes.

So to be sure whole code with some lines under and bellow will look like:
Code:


                            for($p=1; $p<=$totalpages; $p++)
                            {
                                //additional code
$alanguages = array ('sq', 'ar','bg', 'ca', 'zh-CN', 'hr', 'cs', 'da', 'nl', 'en', 'et', 'tl', 'fi', 'fr', 'gl', 'de', 'el', 'iw', 'hi', 'hu', 'id', 'it', 'ja', 'ko', 'lv', 'lt', 'mt', 'no', 'pl', 'pt', 'ro', 'ru', 'sr', 'sk', 'sl', 'es', 'sv', 'zh-TW', 'th', 'tr', 'uk', 'vi', 'sq', 'ca', 'et', 'tl', 'gl', 'hi', 'id', 'lv', 'lt', 'mt', 'sl', 'uk', 'vi');
if(!$archived)
  foreach($alanguages as $language) {
    $vbseo_stat['t']++;
    vbseo_add_url(vbseo_url_thread($threadrow, $p, $archived).'?language='.$language, $prior, $threadrow['lastpost'], $freq);
  }
//end additional code
                            $vbseo_stat[$archived?'at':'t'] += vbseo_add_2urls(
                                    vbseo_url_thread($threadrow, $p, $archived),
                                    vbseo_url_thread($threadrow, $p, $archived, true),
                                    $prior,
                                    $threadrow['lastpost'],
                                        $freq
                            );

Pice of cake :)

2. I have warnings in safe mode - what to do?
Just turn off save mode - it is DEPRECATED in php and not supported in future versions. See here for details:
http://us2.php.net/manual/en/ini.sec...#ini.safe-mode

Parse error: syntax error, unexpected ';' in /home/xxxxx/domains/xxxxxxxxxxx/public_html/vbseo_sitemap/vbseo_sitemap_functions.php on line 310

NLP-er 08-15-2009 05:06 AM

Quote:

Originally Posted by bollie (Post 1867699)
Parse error: syntax error, unexpected ';' in /home/xxxxx/domains/xxxxxxxxxxx/public_html/vbseo_sitemap/vbseo_sitemap_functions.php on line 310

Sorry - I wrote under - should be above ;) See in example.

Thanks for letting me know :) Already fixed in first post :)

yahoooh 08-15-2009 05:14 AM

for example :
http://www.forum.simple-nlp.pl/?language=en

show the source:
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="pl">

it should also replace pl to be:
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">


this was work in your modified version which is graved now

bollie 08-15-2009 05:20 AM

Quote:

Originally Posted by NLP-er (Post 1867702)
Sorry - I wrote under - should be above ;) See in example.

Thanks for letting me know :) Already fixed in first post :)

Thanks
you use paypal ?

yahoooh 08-15-2009 05:38 AM

also i want to prevent translation of the users name
can i use groupuser
and but code before and after user name
so it will prevent translations

crazymilk 08-15-2009 10:04 AM

loaded up but flags images not shown?

chick 08-15-2009 10:36 AM

Quote:

Originally Posted by crazymilk (Post 1867781)
loaded up but flags images not shown?

Same here on the flags, I have them in the proper location according to mouse over on the flag, using 3.8.4 vbulletin and they do not show.

jaconi 08-15-2009 10:42 AM

Quote:

Originally Posted by NLP-er (Post 1867489)
Thanks for note :)

1) Can you give me link to your forum? On my side it is ok and I want to see what happens. I need to reproduce error to be able to work with it and it's working fine on my forum.
See PM , but already working , thanks to your update
ALREADY CORRECTED IN 1.0.2 - I think - I cannot reproduce, but found typo in variable name so it should solve the problem of error :) Tell me what with those translations on your board (link would be helpful).

2) About flags - I must to mess smoesthing after testing - It don't works on my side too. I will corect this fast.
Is working fine now !
ALREADY CORRECTED IN 1.0.1

3) About going back after translation - click on flag for your language and you will go back or just dissable tracking
That did it ! , when i disable url tracking everything is fine ;)

So here everything is fine and working :)

still one question , because i'm not a coder or something :eek:

if i want no border around the flags , wich code ( no border ....) must i have , and were to place it ?

Best regards a happy guy :)

Ps : i use version 3.8.4 & 1.4zip
(i did clean install !)

elenh 08-15-2009 11:14 AM

Flags are not showing.. but very nice addon!

basilrath 08-15-2009 11:22 AM

same here ..... flags not showing

paths are incorrect


All times are GMT. The time now is 11:21 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.02092 seconds
  • Memory Usage 1,752KB
  • 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
  • (3)bbcode_code_printable
  • (5)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