vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Show Thread Enhancements - Post Replacements (https://vborg.vbsupport.ru/showthread.php?t=125307)

DrewM 08-29-2006 10:00 PM

Post Replacements
 
Post Replacements 1.8

About
This hack allows you to have replacements for posts, for example you say you wanted every word that says vbulletin to say vbulletin.com you just have to put that in the option in vbulletin settings.

Important
When putting your replacements in the option read the description first to understand how it works.

Change Log
1.1; Fixed the plugin thanks Stoebi
1.5; Replacements now don't interfere with words that include the replacement. Thanks again to Stoebi :) .

A big thanks to Stoebi for providing most of the code!

Stromba 08-30-2006 11:34 AM

:) Wooooow nice, first reply and first install..

DrewM 08-30-2006 11:37 AM

thanks, enjoy

C_P 08-30-2006 12:33 PM

This seems like a nice addition. I am a bit confused though.
1. When I add this lets say vB do I need to add the http://www.vbulletin.com so it shows vB===http://www.vbulletin.com as a hyperlink like this vB?
2. If I wanted to have this hyperlink a different color, would this also be possible? Example: like this: vB

DrewM 08-30-2006 01:33 PM

C_P, to your questions:
1. no, to get that you must put:
vB===<a href="http://www.vbulletin.com">vB</a>, the option parsed the text I have to find a way to bypass that.
2.yes that is possible just put the HTML for the diffrent color arount the link code.

teneffus 08-30-2006 01:38 PM

screenshot pls?

C_P 08-30-2006 02:23 PM

ok, I may be doing something wrong here but this is enabled and am trying the following code replacements with no sucess:
Code:

vB===<a href="<A href="http://www.vbulletin.com"><font">http://www.vbulletin.com"><font color="#008000">vB</font></a>|||Computer Paradise===<a href="<A href="http://www.cpfools.com"><font">http://www.cpfools.com"><font color="#008000">Computer Paradise</font></a>|||rules===<a href="<A href="http://www.cpfools.com/index.php?option=com_content&task=view&id=5&Itemid=6"><font">http://www.cpfools.com/index.php?option=com_content&task=view&id=5&Itemid=6"><font color="#008000">rules</font></a>|||tutorial===<a href="<A href="http://www.cpfools.com/tutorials/"><font">http://www.cpfools.com/tutorials/"><font color="#008000">tutorial</font></a>
See here:
http://www.cpfools.com/forum/showthr...5111#post15111

Nachtfalke 08-30-2006 02:53 PM

Quote:

Originally Posted by C_P
ok, I may be doing something wrong here

Didn't test the mod yet, but you have way to much html in the replacement. Perhaps try

PHP Code:

vB===<a href="http://www.vbulletin.com"><font color="#008000">vB</font></a>|||Computer Paradise===<a href="http://www.cpfools.com"><font color="#008000">Computer Paradise</font></a>|||rules===<A href="http://www.cpfools.com/index.php?option=com_content&task=view&id=5&Itemid=6"><font color="#008000">rules</font></a>|||tutorial===<a href="http://www.cpfools.com/tutorials/"><font color="#008000">tutorial</font></a

or better: give the replacement tags a class (maybe with the name replacement) and define them via css:

PHP Code:

vB===<a href="http://www.vbulletin.com" class="replacment">vB</a>|||Computer Paradise===<a href="http://www.cpfools.com"  class="replacment">Computer Paradise</a>|||rules===<A href="http://www.cpfools.com/index.php?option=com_content&task=view&id=5&Itemid=6"  class="replacment">rules</a>|||tutorial===<a href="http://www.cpfools.com/tutorials/"  class="replacment">tutorial</a

then add the following to your css:
Code:

.replacement {
 color: #008000
}


C_P 08-30-2006 03:13 PM

Thank you much for the code suggestions but after copying and pasting both codes you supplied, neither work.
This one may be going bye bye. Sorry bud but if this cannot be easily done, not sure it is worth it.
Thanks anyway, good idea.

DrewM 08-30-2006 03:54 PM

I think this is casued by the way vb reads links sorry this doesn't work for you.


All times are GMT. The time now is 07:06 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.01268 seconds
  • Memory Usage 1,748KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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