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)

NLP-er 08-29-2009 11:50 PM

Quote:

Originally Posted by yahoooh (Post 1876560)
i still need to make the links :URL's according to SEO link consensus (i.e. '/en/address')

for vba links , vbgallery and other addon that in subdomain

plz nlp try to test them in subdomain and see how it works
vba links and dyna have .htacssess and seo
so they need some test

Give me place to test and I will work on this. If you don't like to share access to your forum, then just set up some test forum with those things in subdomain and PM me access details.

remotay 08-30-2009 12:00 AM

Wow. this plugin seems very powerful. Works like the WP-Global translator I see =P

NLP-er 08-30-2009 12:19 AM

In next release I will abandon T2x code for vbSEO integration. It will stay commented to give him credit for first integration, but not used anymore. It will be abandoned because: there was bug (didn't work for vbSEO setting where forum id act as directory), it is twisted and hard to maintain.

I already made my own solution. Safe and easy (T2x solution has 90 lines of code - mine has 5 :D). It is already tested on 2 forums and will be included in next release. My solution is a bit faster (you will not feel it, but server do less things to recognize seo translation links) and changes with .htaccess will be easier (only add new rules - no changes of existing rules like now). So for those who already have mod installed it can be little inconvenience - you will have to change .htaccess again, but this is the last time and for new installation it will be much easier :)

Also I would like to add possibility to made translations SEO links for forums without vbSEO. Just need a playground. So if someone wants this functionality - give me access to some test forum without vbSEO :)

NLP-er 08-30-2009 12:21 AM

Quote:

Originally Posted by remotay (Post 1876600)
Wow. this plugin seems very powerful. Works like the WP-Global translator I see =P

Like it? :D - Nominate it! :D

Sweeks 08-30-2009 05:27 AM

Quote:

Originally Posted by NLP-er (Post 1876603)
In next release I will abandon T2x code for vbSEO integration. It will stay commented to give him credit for first integration, but not used anymore. It will be abandoned because: there was bug (didn't work for vbSEO setting where forum id act as directory), it is twisted and hard to maintain.

I already made my own solution. Safe and easy (T2x solution has 90 lines of code - mine has 5 :D). It is already tested on 2 forums and will be included in next release. My solution is a bit faster (you will not feel it, but server do less things to recognize seo translation links) and changes with .htaccess will be easier (only add new rules - no changes of existing rules like now). So for those who already have mod installed it can be little inconvenience - you will have to change .htaccess again, but this is the last time and for new installation it will be much easier :)

Also I would like to add possibility to made translations SEO links for forums without vbSEO. Just need a playground. So if someone wants this functionality - give me access to some test forum without vbSEO :)

Awesome so is it best to turn off seo links for now?

imported_silkroad 08-30-2009 08:37 AM

Quote:

Originally Posted by NLP-er (Post 1876591)
Also good point. I will made it fully configurable. Off, forced, and with asking. Also it will work only for first request in session - so user will be able to go wherever he wants and change language, even if he has forced redirection at first.

Perfect. :D I was thinking the same thing but it seemed too much to ask you to do :o Thank so much for this idea!

NLP-er 08-30-2009 08:40 AM

Quote:

Originally Posted by Sweeks (Post 1876678)
Awesome so is it best to turn off seo links for now?

Not at all. In next release link will look same. Also mentioned bug is visible only for forums which have specific vbSEO configuration (forums act like dictionaries but not by name - just by id). Only in this case seo crasches. Next release will be safe for all configurations (but still have no playground to test it in forum with vbSEO and directory in URL...)

imported_silkroad 08-30-2009 10:18 AM

Hey NLP-er,

In case you did not see this:

http://us3.php.net/manual/en/book.geoip.php

DR.vBProf 08-30-2009 02:35 PM

çalışmıyor sanırım vbseo 3.3.0 ve vb 382 desteği yok

LoveStream 08-30-2009 04:44 PM

Dear.

I notice that I set the latest version but this conflict with photopost.

I didn't see the code of photopost what is the reason.

Here, I got the error message from the photopost header. I use the same template in the gallery with forum.

HTML Code:

Fatal error: [] operator not supported for strings in /home/hosting_users/wavero/www/gallery/index.php on line 187

I quoted the portion of error from index.php and marked with red color.
PHP Code:

    if ( $Globals['undercat'] == "yes" ) {
        
// Lets get the Recent Comments
        
$numcompal = ($Globals['numcompal'] + 5);
        
$queryz ppmysql_query("SELECT c.username,c.userid,c.cat,c.photo,c.comment,p.bigimage,p.cat,p.storecat,p.userid,p.width,p.height
                                  FROM 
{$Globals['pp_db_prefix']}comments c
                                  LEFT JOIN 
{$Globals['pp_db_prefix']}photos p ON p.id=c.photo
                                  WHERE comment != '' ORDER BY c.date DESC LIMIT 
$numcompal"$link);
        
$numfound 0;
    
        while ( list(
$cache['comments']['username'][$numfound], $cache['comments']['userid'][$numfound], $cache['comments']['cat'][$numfound], $cache['comments']['lcphoto'][$numfound], $comcomment$thumbimg$thumbcat$storecat$thumbuid$thumbw$thumbh ) = mysql_fetch_row($queryz)) {
            if ( 
$storecat != $thumbcat $storecat;
            
            
// Clean up html conversions
            
$comcomment un_htmlspecialchars($comcomment);        
            
            
// Strip out BB codes
/* --------------- this error line ---------------            
            $find[] = '#\[.*/
?\]#siU';  $replace[] = '';
--------------------------------------------------------------- end of error line */            

             
$comcomment preg_replace($find$replace$comcomment);

            
$cache['comments']['cat'][$numfound] = $thumbcat;
            
$cache['comments']['comment'][$numfound] = ( strlen($comcomment) > 100 substr($comcomment,0,100)."..." $comcomment );
            
$cache['comments']['thumblink'][$numfound] = get_imagethumb$thumbimg$thumbcat$thumbuid101$thumbw$thumbh );
            
            
// Rotated? We need unrotated...
            
if ( $Globals['rotatel'] > || $Globals['rotatep'] > )
                
$cache['comments']['thumblink'][$numfound] = str_replace("/thumbs/""/mini/"$cache['comments']['thumblink'][$numfound]);

            if ( 
$Globals['spider'] == "yes" $cache['comments']['link'][$numfound] = "{$Globals['maindir']}/showphoto.php/photo/{$cache['comments']['lcphoto'][$numfound]}/cat/{$cache['comments']['cat'][$numfound]}";
            else 
$cache['comments']['link'][$numfound] = "{$Globals['maindir']}/showphoto.php?photo={$cache['comments']['lcphoto'][$numfound]}&cat={$cache['comments']['cat'][$numfound]}";

            if ( 
$numfound == $Globals['numcompal'] ) break;
            
$numfound++;
        }
    } 

Yours.


All times are GMT. The time now is 10:58 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.02159 seconds
  • Memory Usage 1,786KB
  • 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_html_printable
  • (1)bbcode_php_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