vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Word Links FREE (Turn words into links) by BOP5 (https://vborg.vbsupport.ru/showthread.php?t=263699)

BirdOPrey5 05-20-2014 07:31 PM

Quote:

Originally Posted by sonic83 (Post 2498606)
Hi sir. He localizado las palabras que causan problemas.

What happens? Thank you

cr?dito
estrella de la ma?ana
estrella doji de la ma?ana

In your Language Manager for your language, in settings, what is the HTML Character Set set to?

sonic83 05-20-2014 07:59 PM

Quote:

Originally Posted by sonic83 (Post 2498606)
Hi sir. He localizado las palabras que causan problemas.

[/COLOR]

Haha, sorry, I put this in Spanish haha. In English it is:

"I have located the words that cause problems"
Quote:

Originally Posted by BirdOPrey5 (Post 2498685)
In your Language Manager for your language, in settings, what is the HTML Character Set set to?

To answer your question:

ISO-8859-1

Thank you

BirdOPrey5 05-21-2014 12:28 PM

Quote:

Originally Posted by sonic83 (Post 2498688)
Haha, sorry, I put this in Spanish haha. In English it is:

"I have located the words that cause problems"

To answer your question:

ISO-8859-1

Thank you

OK, now is your database latin or utf8? If utf8 is the utf8 line enabled in your config.php file?

Also- Are links stored in a csv file or directly in the mod settings data boxes?

nektar 06-05-2014 02:37 PM

Hi.

I'm trying to move my forum to a new server with php 5.4 and I'm getting this error when the product is disabled (running 4.2.1)

Code:

mod_fcgid: stderr: PHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 576656709 bytes) ..... line 135
Any ideas?
Thanks.

nektar 06-05-2014 03:38 PM

This is the line which causes the error:

Code:

$bop_message = preg_replace ($bop_find_array, $bop_replace_array, $bop_message, $boplim, $bopcount);

nektar 06-05-2014 05:14 PM

After removing all Greek words from Words/Phrases To Link everything works ok.
So this is a combination of non-English characters with php 5.4?

nektar 06-06-2014 05:21 AM

As of php 5.4 default encoding for htmlspecialchars is UTF-8.
So if your forum is in another encoding (like ISO-8859-1 which is mine) then you will have all the above problems.
The solution is to use your encoding with htmlspecialchar:

First Define your encoding:

PHP Code:

define('CHARSET''ISO-8859-1');
define('REPLACE_FLAGS'ENT_COMPAT ENT_XHTML); 

And then replace

PHP Code:

$bopfind preg_quote (htmlspecialchars($bopfind)); 

with

PHP Code:

$bopfind preg_quote (htmlspecialchars($bopfind,REPLACE_FLAGSCHARSET)); 


shlomisa 12-03-2014 07:47 AM

hi. thanks for this mod, it is exactly what i was looking for.
my forum is in utf8 and users type their posts in Hebrew.

the mod works fine with english words but i cant make it work on hebrew words.

the language is in ut8 and also the db.

can you please advise what to do?

Marv 12-03-2014 11:53 AM

What really come in handy would be some sort of stats, that show how often a keyword has been turned into a link. Any chance that this could be added, Ozzy?

ozzy47 12-03-2014 09:50 PM

Ummm, not sure, as this is BOP's mod not mine. :)


All times are GMT. The time now is 03:19 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.01545 seconds
  • Memory Usage 1,744KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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