vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   How do i make a custom url bb code for signatures? (https://vborg.vbsupport.ru/showthread.php?t=187844)

DR AUTONAMUS 08-11-2008 07:18 PM

How do i make a custom url bb code for signatures?
 
OK How do i make a custom url bb code?

we have the URL bb code turned off for signatures as we don't want advertising but we want to be able for out members to be able to put likes to there tutorials on our site in there signatures.

So just to clarify what i want to know is it possible to make it so only urls to outr site are allowed in signatures.

Example.
Code:

www.our-site.com/forums/there-post.html
Making this one work and be allowed

But this not
Code:

www.not-out-site.com/forums

DR AUTONAMUS 08-13-2008 11:03 PM

Anyone?

Spank 08-14-2008 12:36 AM

You could set it up like this
Go to AdmincCP. Custom BB Codes> Add new BB Code>

Then insert the following:
Code:

Title: Anything you want
BB Code Tag name: Whatever you want to be the tag eg [URL2]
Replacement: <a href="http://www.example.com/forums/{option}">{param}</a>
Example: [URL2=their-post.html] Their Post[/URL2]
Description: Post internal links, copy everything after forums/ and inser into the tag.
Use {option}: Yes

All the other options are optional.

Hope this helps.

DR AUTONAMUS 08-14-2008 02:23 PM

Is it possible to replace this with the current URL BB Code?

Spank 08-14-2008 04:17 PM

If there is a way, I don't know about it.


All times are GMT. The time now is 09:59 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.00958 seconds
  • Memory Usage 1,711KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete