vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Text Replacement Links 1.1 (Updated!) (https://vborg.vbsupport.ru/showthread.php?t=71191)

Logikos 10-31-2004 04:47 PM

UPDATES
Query Bug fixed by Kentaurus. First post updated.

Logikos 10-31-2004 05:42 PM

Quote:

Originally Posted by nexialys
case-insensitive is explained in the preg_replace page...:

http://ca.php.net/manual/en/function.preg-replace.php

preg_replace ("/myWord/i", "myotherword", $thissentence);
...

and is quicker than str-replace in all situations...

... i never used the replacement thing in the templates, i find that really annoying,because it's template based, so filter all the output, not only the text you post.. annoying!

this one will be performing good!!!

Hey nex, the problem is i don't know how to add the / / i in there using variables. I tried"

PHP Code:

        $code preg_replace("/" $text "/i"$replacetext$code); 

But that doesn't work, anyone have any ideas?

Logikos 10-31-2004 07:28 PM

Another Update
Fixed the case sensitive bug. Zip updated. Please ignore post # 12.

nexialys 10-31-2004 09:47 PM

@Lime Wire... always the same pattern with PHP:

stuff between "" are to be included without quotes: "$stuff" ...

Blam Forumz 11-01-2004 04:15 AM

[SQL]
CREATE TABLE textlink (
textlinkid SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT,
text CHAR(250) NOT NULL DEFAULT '',
link VARCHAR(250) NOT NULL DEFAULT '',
adddef SMALLINT(3) NOT NULL DEFAULT '0',
textdef VARCHAR(250) NOT NULL DEFAULT '',
PRIMARY KEY (textlinkid)
[/SQL]

gives me this error:


Quote:

Originally Posted by PHPMyAdmin and vBulletin ACP
#1064 - 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 7


Logikos 11-01-2004 05:31 AM

Quote:

Originally Posted by Blam Forumz
[SQL]
CREATE TABLE textlink (
textlinkid SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT,
text CHAR(250) NOT NULL DEFAULT '',
link VARCHAR(250) NOT NULL DEFAULT '',
adddef SMALLINT(3) NOT NULL DEFAULT '0',
textdef VARCHAR(250) NOT NULL DEFAULT '',
PRIMARY KEY (textlinkid)
[/SQL]

gives me this error:

You didn't copy the whole query in the install file.

[sql]
CREATE TABLE textlink (
textlinkid SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT,
text CHAR(250) NOT NULL DEFAULT '',
link VARCHAR(250) NOT NULL DEFAULT '',
adddef SMALLINT(3) NOT NULL DEFAULT '0',
textdef VARCHAR(250) NOT NULL DEFAULT '',
PRIMARY KEY (textlinkid)
)

[/sql]

cnczone 11-12-2004 01:57 AM

installed and does not work

Logikos 11-12-2004 03:34 AM

If you followed the instructions correcly then it should work.

cnczone 11-12-2004 04:05 AM

When I add a link I get a "could not find phase" xxxxx

Logikos 11-12-2004 06:32 PM

Means you just missing a phrase, but that won't let the hack not work. Add a textlink then post that text in your forums, it still should replace the text with the link. Also, what phrase did it say that it could not find?


All times are GMT. The time now is 06:14 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.01251 seconds
  • Memory Usage 1,739KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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