{"id":21328183,"url":"https://github.com/hampel/content-bbcode-xenforo","last_synced_at":"2025-03-16T00:16:36.128Z","repository":{"id":225231050,"uuid":"765417067","full_name":"hampel/content-bbcode-xenforo","owner":"hampel","description":"XenForo addon adding BBCode tags for linking to different types of XenForo content","archived":false,"fork":false,"pushed_at":"2024-07-10T07:25:43.000Z","size":77,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-22T12:47:22.163Z","etag":null,"topics":["bbcode","xenforo"],"latest_commit_sha":null,"homepage":"https://xenforo.com/community/resources/content-bbcode.6484/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hampel.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-29T21:56:44.000Z","updated_at":"2024-07-10T07:25:47.000Z","dependencies_parsed_at":"2024-02-29T23:23:22.618Z","dependency_job_id":"09dafae4-3074-45f0-8ddc-af8256fada83","html_url":"https://github.com/hampel/content-bbcode-xenforo","commit_stats":null,"previous_names":["hampel/content-bbcode-xenforo"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hampel%2Fcontent-bbcode-xenforo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hampel%2Fcontent-bbcode-xenforo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hampel%2Fcontent-bbcode-xenforo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hampel%2Fcontent-bbcode-xenforo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hampel","download_url":"https://codeload.github.com/hampel/content-bbcode-xenforo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243806093,"owners_count":20350775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bbcode","xenforo"],"created_at":"2024-11-21T21:25:04.447Z","updated_at":"2025-03-16T00:16:36.102Z","avatar_url":"https://github.com/hampel.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Content BBCode for XenForo 2.x\n==============================\n\nNote: this XenForo 2.x addon replaces the `ThreadPostBbCode` addon released for XF 2.0\n\nBy [Simon Hampel](https://xenforo.com/community/members/sim.4264/).\n\n* [Addon: Content BBCode](https://xenforo.com/community/resources/content-bbcode.6484/)\n* [Discussion and support: Content BBCode](https://xenforo.com/community/threads/content-bbcode.148692/)\n\n\nThis addon creates additional BBCodes for linking to various content found on XenForo forums:\n \n * thread\n * post\n * search (see below for details)\n * tag\n * xfmg\n \t* media\n \t* category\n \t* album\n \t* image\n \t* thumbnail\n * forum (node)\n * prefix\n \t* thread\n \t* resource\n * resource\n \nThe search tag has options allowing you to link to searches across multiple content types:\n \n * forums\n * threads\n * posts\n * resources\n * media\n * media comments\n * user profiles\n * tags\n * Google\n \t* site search\n \t* web search\n \t* image search\n \t* map search\n \t* video search\n \t* news search\n\nThis addon was originally created to replicate the `[THREAD]` and `[POST]` BBCodes which were used in vBulletin and may\nbe present in post content after migration.\n\nThe additional BBCode tags were added primarily to support some forum statistics scripts I had written for my sites as \nI needed a way of programmatically generating links which were also independent of the site URL.\n\nIf you just want to use the thread and post tags, you can always disable the other custom bbcode tags in the admin UI.\n\nRequirements\n------------\n\nThis addon requires PHP 5.4 or higher and has been tested with XF v2.2 and v2.3 \n\nUsage\n-----\n\nIn post content (or anywhere that BBCode is allowed), the following substitutions will occur:\n\n**THREAD**\n\n```bbcode\n[thread=1]see this thread[/thread]\n```\n\n... will be rendered as:\n\n```html\n\u003ca href=\"http://www.example.com/threads/1/\"\u003esee this thread\u003c/a\u003e\n```\n\nAlternative syntax:\n\n```bbcode\n[thread]1[/thread]\n```\n\n... will be rendered as:\n\n```html\n\u003ca href=\"http://www.example.com/threads/1/\"\u003ehttp://www.example.com/threads/1/\u003c/a\u003e\n```\n\n**POST**\n\n```bbcode\n[post=2]see this post[/post]\n```\n\n... will be rendered as:\n\n```html\n\u003ca href=\"http://www.example.com/posts/2/\"\u003esee this post\u003c/a\u003e\n```\n\n**SEARCH**\n\nExamples:\n\n```bbcode\n[search]foo[/search] (default is to search entire forum - search term between tags)\n[search=forum]foo[/search] (general forum search - search term between tags)\n[search=forum,foo]search the forums for 'foo'[/search] (general forum search - search term as option)\n\n[search=thread,foo]search threads for 'foo'[/search]\n[search=post,foo]search posts for 'foo'[/search]\n[search=resource,foo]search resources for 'foo'[/search]\n[search=media,foo]search media uploads for 'foo'[/search]\n[search=comments,foo]search media comments for 'foo'[/search]\n[search=tag,foo]search tags for 'foo'[/search] \n\n[search=site,foo]Google site search for 'foo'[/search] (search google with 'site:example.com' tag to perform a Google search of your site\n[search=web,foo]Google web search for 'foo'[/search]\n[search=image,foo]Google image search for 'foo'[/search]\n[search=map,foo]Google map search for 'foo'[/search]\n[search=video,foo]Google video search for 'foo'[/search]\n[search=news,foo]Google new search for 'foo'[/search]\n```\n\n**TAG**\n\nExamples:\n\n```bbcode\n[tag=foo bar]link to the tag 'foo bar'[/tag]\n```\n\n... will be rendered as:\n\n```html\n\u003ca href=\"http://www.example.com/tags/foo-bar/\"\u003elink to the tag 'foo bar'\u003c/a\u003e\n```\n\n**XFMG**\n\nExamples:\n\n```bbcode\n[xfmg=media,1]link to media item with id = 1[/xfmg]\n[xfmg=album,1]link to album with id = 1[/xfmg]\n[xfmg=category,1]link to category with id = 1[/xfmg]\n```\n\n... will be rendered as:\n\n```html\n\u003ca href=\"http://www.example.com/media/1/\"\u003elink to media item with id = 1\u003c/a\u003e\n\u003ca href=\"http://www.example.com/media/albums/1/\"\u003elink to album with id = 1\u003c/a\u003e\n\u003ca href=\"http://www.example.com/media/categories/1/\"\u003elink to category with id = 1\u003c/a\u003e\n```\n\nYou can also display full sized images:\n\n```bbcode\n[xfmg=img,1][/xfmg]\n```\n\n... will be rendered as:\n\n```html\n\u003cimg src=\"http://example.com/media/1/full\" data-url=\"http://example.com/media/1/full\" class=\"bbImage\" data-zoom-target=\"1\" alt=\"\"\u003e\n```\n\nNote that if lightbox is enabled for images - the image will be rendered using the standard lightbox template in the\nsame way that the `IMG` bbcode tag works.\n\nSimilarly, you may display a thumbnail as follows:\n\n```bbcode\n[xfmg=thumb,1][/xfmg]\n```\n\n**FORUM**\n\nExamples:\n\n```bbcode\n[forum=1]link to this forum node[/forum]\n```\n\n... will be rendered as:\n\n```html\n\u003ca href=\"http://www.example.com/forums/1\"\u003elink to this forum node\u003c/a\u003e\n```\n\n**PREFIX**\n\nExamples:\n\n```bbcode\n[prefix=forum,1,2]link to this prefix for a node[/prefix] (ie show all threads from node_id = 1 using prefix_id = 2)\n[prefix=resource,0,1]link to this prefix for a resource[/prefix] (ie show all resources using prefix_id = 1)\n[prefix=resource,2,3]link to this prefix for a resource category[/prefix] (ie show all resources from category_id = 2 using prefix_id = 3)\n```\n\n... will be rendered as:\n\n```html\n\u003ca href=\"http://www.example.com/forums/1/?prefix_id=2\"\u003elink to this prefix for a node\u003c/a\u003e\n\u003ca href=\"http://www.example.com/resources/?prefix_id=1\"\u003elink to this prefix for a resource\u003c/a\u003e\n\u003ca href=\"http://www.example.com/resources/categories/2/?prefix_id=3\"\u003elink to this prefix for a resource category\u003c/a\u003e\n```\n\n**RESOURCE**\n\n```bbcode\n[resource=1]link to this resource[/resource]\n```\n\n... will be rendered as:\n\n```html\n\u003ca href=\"http://www.example.com/resources/1\"\u003elink to this resource\u003c/a\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhampel%2Fcontent-bbcode-xenforo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhampel%2Fcontent-bbcode-xenforo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhampel%2Fcontent-bbcode-xenforo/lists"}