ClassicPress Plugins Available From azurecurve | Development in 2023: BBCode

ClassicPressIn this series of articles, I am going to introduce each of the plugins I have developed for ClassicPress, a hard-fork of WordPress, which was originally created to provide an alternative, yet compatible, CMS without the Gutenberg block editor.

The 4th plugin is BBCode.

Allows users to use standard bbcodes in posts and pages in place of HTML tags.

The following bbcodes can be used:

Bold:
	[b]bold[/b]
Italic:
	[i]italics[/i]
Underline:
	[u]underline[/u]
Center Text:
	[center]centered text[/center]
Strike:
	[strike]strike[/strike]
Quote:
	[quote]quote[/quote]
Color:
	[color=blue]color[/color]
Font size:
	[size=12pt]12pt font size[/size]
	[size=1.2em]1.2em font size[/size]
	[size=12px]12px font size[/size]
Image:
	[img]https://docs.classicpress.net/wp-content/classicpress/logos/icon-gradient-600.png[/img]
	[img=ClassicPress logo]https://docs.classicpress.net/wp-content/classicpress/logos/icon-gradient-600.png[/img]
URL:
	[url]https://www.classicpress.net/[/url]
	[url=https://www.classicpress.net/]ClassicPress[/url]
	[link]https://www.classicpress.net/[/link]
	[link=https://www.classicpress.net/]ClassicPress[/link]
Ordered lists:
	[ol]ordered list[/ol]
Unordered lists:
	[ul]unordered list[/ul]
List items:
	[li]list item[/li]
Table:
	[table][/table]
Table Row:
	[tr][/tr]
Table Header:
	[th][/th]
Table data (cell):
	[td][/td]
Code:
	[code]function azc_bbcode_bold($atts, $content = null){ return "".do_shortcode($content).""; }[/code]

Allows users to use standard bbcodes in posts and pages; Shortcodes in Comments can be used to allow bbcodes in comments and Shortcodes in Widgets can allow them in widgets.

This plugin is multisite compatible.

Continue reading “ClassicPress Plugins Available From azurecurve | Development in 2023: BBCode”

ClassicPress Plugins Available From azurecurve | Development in 2023: Avatars

ClassicPressIn this series of articles, I am going to introduce each of the plugins I have developed for ClassicPress, a hard-fork of WordPress, which was originally created to provide an alternative, yet compatible, CMS without the Gutenberg block editor.

The 3rd plugin is Avatars.

Avatars
Upload a new avatar and set as the default avatar and allow users to upload their own avatar and override the default.

Admin setting allows only use of local avatars; prevents use of Gravatars; if user doesn’t upload their own avatar, a local default is used instead.

This plugin is multisite compatible; each site will need settings to be configured in the admin dashboard.

Continue reading “ClassicPress Plugins Available From azurecurve | Development in 2023: Avatars”

ClassicPress Plugins Available From azurecurve | Development in 2023: Add Twitter Cards

[featured-index key=’classicpress’]In this series of articles, I am going to introduce each of the plugins I have developed for ClassicPress, a hard-fork of WordPress, which was originally created to provide an alternative, yet compatible, CMS without the Gutenberg block editor.

The 2nd plugin is Add Twitter Cards.

Add Twitter Cards
Add Twitter Cards to attach rich photos to Tweets, helping to drive traffic to your website.

Options allow:

  • Card Types of Summary or Summary With Images.
  • Excerpt or first 200 characters of post added to card.
  • Featured Image or first post image will be added to card (subject to configurable minimum size).
  • Integrate with Floating Featured Images for card image.

This plugin is multisite compatible; each site will need settings to be configured in the admin dashboard.

Continue reading “ClassicPress Plugins Available From azurecurve | Development in 2023: Add Twitter Cards”

ClassicPress Plugins Available From azurecurve | Development in 2023: Add Open Graph Tags

ClassicPressIn this series of articles, I am going to introduce each of the plugins I have developed for ClassicPress, a hard-fork of WordPress, which was originally created to provide an alternative, yet compatible, CMS without the Gutenberg block editor.

The 1st plugin is Add Open Graph Tags.

Add Open Graph Tags
Add Open Graph Tags to attach rich photos to social media posts to Facebook or LinkedIn, helping to drive traffic to your website.

Options allow:

  • Card Types of Summary or Summary With Images.
  • Excerpt or first 200 characters of post added to card.
  • Featured Image or first post image will be added to card (subject to configurable minimum size).
  • Integrate with Floating Featured Images for card image.

This plugin is multisite compatible; each site will need settings to be configured in the admin dashboard.

Continue reading “ClassicPress Plugins Available From azurecurve | Development in 2023: Add Open Graph Tags”

ClassicPress Plugins Available From azurecurve | Development in 2023: Series Index

[featured-index key=’classicpress’]I started developing plugins for WordPress back in 2013; this was so that I could add some required functionality to this site which wasn’t available as standard or in third-party plugins. I switched to developing for ClassicPress in late-2018 and migrated all of my sites to it in early 2019.

I made this change because WordPress introduced the Gutenberg editor (later known as the block editor) which has many problems which are still unaddressed and getting worse as they transition to blocks site-wide.

I decided right at the start when I started developing plugins for myself that I would also make them available to others to use as well. Not all of the plugins I have developed are available, as some have very specific functionality which wouldn’t easily be used by other people, but the vast majority are available for all.

I now have 55 plugins available for ClassicPress and, as it has been over 12 months since I posted about many of them), I’ve going to do another series announcing each one which may help new people discover them.

All of these plugins were developed for ClassicPress, but will still work on WordPress; I’ve included automatic updates for them so once installed you will receive updates in the exact same way as you do for other plugins.

As I say, there are 55 plugins and I’ll only be posting these plugin announcements on weekends, so you will need to check in over the few months to see them all.

The series index, below, will update automatically as each post goes live.

Continue reading “ClassicPress Plugins Available From azurecurve | Development in 2023: Series Index”

Git Command Line Snippets: Upload Release Asset

GitHubThis post is part of the series on Git Command Line Snippets where I am taking a look at performing actions on GitHub using the git command line.

Now that we have the json from GitHub for the release, we can upload the release zip (an extra asset) which is used for installing the plugin on a ClassicPress site:

curl -X POST --header "Authorization: token ghp_authorizationtoken" --header "Content-Type: application/zip" --upload-file "path and filename" "https://uploads.github.com/repos/username/repository name/releases/tag id/assets?name=filename"

The highlighted sections need to be replaced with the parameters for your GitHub account, repo and the release.

Git Command Line Snippets: Get Release Information

GitHubThis post is part of the series on Git Command Line Snippets where I am taking a look at performing actions on GitHub using the git command line.

In the last post, of this series, I covered the command to create a release and mentioned that uploading a release zip (extra asset) had to be handled separately. While the command to do this isn’t too complex, there is one problem; to upload the asset you need the tag d of the release. This is not the tag that you supply to create the release with, but the internal GitHub id which is automatically assigned.

The command below can be used to get the release information, in the form of json, which includes the tag id:

curl -H "Accept: application/vnd.github+json" -H "Authorization: token ghp_authorizationtoken" https://api.github.com/repos/username/repository name/releases/tags/required tag

Git Command Line Snippets: Create Release

GitHubThis post is part of the series on Git Command Line Snippets where I am taking a look at performing actions on GitHub using the git command line.

Once changes have been added, committed and pushed to the repository, we can create a release.

When developing for ClassicPress, there is also a need to upload a release zip which is used for deployment to a ClassicPress site. Unfortunately, this cannot be done while creating a release; this post is just on creating the release and a later post will cover uploading the release zip.

The following command can be used to create a release using command line:

curl -X POST -H "Accept: application/vnd.github+json" -H "Authorization: token ghp_authorizationtoken" https://api.github.com/repos/username/repository name/releases -d "{\"tag_name\":\"tagname\",\"target_commitish\":\"main\",\"name\":\"name\",\"body\":\"release comment\",\"draft\":false,\"prerelease\":false,\"generate_release_notes\":false}"

The highlighted sections need to be replaced with the parameters for your GitHub account and repo.

Git Command Line Snippets: Add, Commit and Push Changes

GitHubThis post is part of the series on Git Command Line Snippets where I am taking a look at performing actions on GitHub using the git command line.

There are three steps required to add your changes to a GitHub repository:

  1. Add
  2. Commit
  3. Push

Fistly, you need to add your changes; it is possible to only add specific files, but in my case I always want to add everything; this command will add all changes including added changed or deleted files and folders:

git add --all

Once you have added the changes, you need to commit them; you can supply a commit message, but this should be a maximum of 55 characters.

git commit -m "Release for x and y"

Once you have committed the changes, you need to push them to GitHub for them to appear in the repository:

git push

Git Command Line Snippets: Choose Repository

GitHubThis post is part of the series on Git Command Line Snippets where I am taking a look at performing actions on GitHub using the git command line.

I am new to working with the git command line so have spent a bit of time reading articles. One thing a lot of them say is to “choose your repository” and then tell you to run commands. When I was doing this it was a bit late and I’d been working all day (getting my excuse in early), but I didn’t immediately understand what they meant.

All it means when they say to choose your repository, is to navigate the command prompt to the repository folder on your computer.

In command line you can simply use cd followed by the path: to navigate to the required folder

cd C:\Users\azurecurve\Documents\Development\ClassicPress Development\azrcrv-smtp

In PowerShell you can largely do the same thing but must wrap the path in double quotes if the path contains a space:

cd "C:\Users\azurecurve\Documents\Development\ClassicPress Development\azrcrv-smtp"