Log in

View Full Version : Anchors BBCodes


Vapernz
03-05-2016, 12:07 AM
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:
<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-cigarette-hardware/41-terminology-and-definitions

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

https://e-cig-vapour.co.nz/forum/main-forum/23-steeping-e-liquid

your help is much appreciated

Replicant
03-05-2016, 01:46 AM
Can you post a screenshot of your variable editor?