vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=262)
-   -   Anchors BBCodes (https://vborg.vbsupport.ru/showthread.php?t=322019)

Vapernz 03-05-2016 12:07 AM

Anchors BBCodes
 
Could someone please help me make a custom BB code, this is what I want to achieve.

My forum covers e-cigarettes, I have post that has all the terminology and definitions used within the industry.

Example

Pass-through ā€“ A device that plugs directly into the USB port of a computer or charger and allows the user to vape without having to worry about battery life.

The post is full of terminology.

What Iā€™d like to achieve is to anchor each definition and link to it each time I use the word/words (Pass-through) within the site.

Example

The word pass-through is on my home page, I would to like to create a link that goes to the pass-through anchor on the terminology and definitions post.

Pass-through ā€“ A device that plugs directly into the USB port of a computer or charger and allows the user to vape without having to worry about battery life.

Your help will be much appreciated

Replicant 03-05-2016 01:03 AM

under styles and templates in the admincp, select replacement variable. Add a new on called Pass-through and edit the replacement text ie:
Code:

<a href=myecigsite.com/Pass-through.html>Pass-through</a>
From then on, all occurances of that text should be a link to the href url you have set.

Vapernz 03-05-2016 01:32 AM

Thanks for your help,

I'm not able to get it to work.

this is the Terminology and Definitions page

https://e-cig-vapour.co.nz/forum/e-c...nd-definitions

put the pass-through text at the bottom of this page for testing

https://e-cig-vapour.co.nz/forum/mai...eping-e-liquid

your help is much appreciated

Replicant 03-05-2016 01:46 AM

Can you post a screenshot of your variable editor?


All times are GMT. The time now is 02:09 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.01116 seconds
  • Memory Usage 1,713KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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