Quantcast
Channel: Discourse Meta - Latest topics
Viewing all 60613 articles
Browse latest View live

Beginner's Guide to Creating Discourse Plugins Part 4: Git Setup

$
0
0

@eviltrout wrote:

Previous tutorials in this series:

Part 1: Creating a basic plugin
Part 2: Plugin outlets
Part 3: Custom Settings


Now that your plugin is getting more sophisticated, it's time to get more sophisticated about how you develop it.

We suggest that you use git as version control for your plugin. We also recommend that you use github to share your plugin code with others.

Creating your Git Repo

Once you've created your Github account, visit this url to create a new repository. You can call it anything you want, but generally something that stars with discourse- is good. Make sure the repository is public. Here's how my screen looked:

Creating your local working folder

At this point I create a local directory on my computer to hold the plugin. I usually put mine in ~/code but you can put it anywhere you like on your computer:

mkdir -p ~/code/discourse-plugin-test
cd ~/code/discourse-plugin-test

Now let's follow the instructions from github to initialize the repo with a README:

echo "# discourse-plugin-test" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin git@github.com:eviltrout/discourse-plugin-test.git
git push -u origin master

Finally, create a plugin.rb file for your plugin as explained in part 1. For this example I just created a dummy one:

plugin.rb

# name: discourse-plugin-test # about: Shows how to set up Git # version: 0.0.1 # authors: Robin Ward

Creating a symlink

Because you followed our developer guide you should have a copy of discourse checked out on your computer somewhere. I checked mine out to ~/code/discourse but again you could have put it anywhere and this should still work if you adjust the following code accordingly:

cd ~/code/discourse/plugins
ln -s ~/code/discourse-plugin-test .

The above code created a symbolic link between your discourse code and your plugin folder. Restart your rails server and you should find your plugin is working!

The beauty of this setup is you can just check your plugin into github and not worry about the discourse codebase it lives inside. Your changes will be isolated to the plugin itself. If you need to edit discourse's code you still can, but git will track the changes separately!

I recommend using one editor window for your plugin codebase and one for Discourse itself. It is easier when you think of them as two different things.

Posts: 1

Participants: 1

Read full topic


SSO w/ Wordpress - Locked out of discourse, ./launcher not working

$
0
0

@Aaron_Walls wrote:

I set up the wordpress plugin for SSO and I apparently missed a setting. I enabled SSO on discourse and now I get locked out. I logged into root via SSH into my Digital Ocean account and entered the following commands:

./launcher enter app
rails c
irb > SiteSetting.enable_sso = false
irb > exit
exit

However when I enter ./launcher enter app, I get "./launcher: No such file or directory"

What am I doing wrong?

Posts: 4

Participants: 3

Read full topic

Is 8) really a good smiley code?!

$
0
0

@ThiefMaster wrote:

Continuing the discussion from Use more standard smiley codes (`:)` instead of `:smile:`):

Is having this code really a good idea? I think it's the most common "false positive" you can get... Imagine someone posting a recipe with an alternative version for more ingredients.. or anything else that contains a number in parentheses without the number being the only thing in there.

4 (or 8) whatevers results in "4 (or sunglasses whatevers".

Besides that... is 8) really so popular? I rarely see it on Facebook or other forums...

Posts: 8

Participants: 5

Read full topic

Faq/guideline heading text doesn't render properly from post

$
0
0

@dleung wrote:

When viewed from the post, the heading text renders correctly:

but when view on the redirected link [host]/guidelines, all headings become the same size:

This is the entry we have:

<a name="cg"></a>
# [Community Guidelines](#cg)
### [Get Involved](#gi)

Is this a bug? is there a work around on our side?

Thanks!

Posts: 3

Participants: 2

Read full topic

Using Azure to host a docker based Discourse instance

$
0
0

@wesochuck wrote:

Continuing the discussion from Stupid //discourse.examples.com set up issue:

Could you provide any details on the type of Azure instance you used to set this up? Microsoft has made so many announcements about supporting docker in Azure, but I don't know if you can actually do anything today other than spin up a Ubuntu VM and then install docker on it. Any details you could share about your Azure setup would be greatly appreciated.

Ideally I'd like to live in a world where we could run our own instance but I didn't have to maintain a "host" OS.

Posts: 3

Participants: 2

Read full topic

Invite option visible on profile, but leads to blank page

Run bootstrap behind proxy failed,gem update certificate error

$
0
0

@Sirius wrote:

I want to install discourse on a VM that is behind a proxy. But I got the certificate error when the script updates gem. The log info is as following:

FAILED

RuntimeError: cd /var/www/discourse && gem update bundler failed with return $
Location of failure: /pups/lib/pups/exec_command.rb:105:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"web", "cmd"=>["gem updat$
03ddefcc67a4576532eaac06b03d799e957dbdb8530cff6ff49331e6a087b3e7
FAILED TO BOOTSTRAP

detailed info is as following:
[2015-07-22T10:16:57.849945 #45] INFO -- : > cd /var/www/discourse && gem update bundler
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)

I guess that's because this host is behind a proxy, and the proxy have replaced the certificate. I was encountered the similar error in git command and I have to modify the launcher script to add

 git config --global http.sslverify false

to bypass certificate verify. How could I by pass certificate verify for this gem update as well?

Posts: 1

Participants: 1

Read full topic

How to translate [cs.number.short.thousands]


Failed update, now there's only a blank page [Help, willing to pay]

$
0
0

@pecanha wrote:

I'm in a desperate situation right now: I believe something happened during my last update and now my forum (http://forum.marketingdeconteudo.com) only shows a blank screen.

Does anyones know how to revert this botched install and/or reinstall everything without losing my data?

Also if anyone is interested, I could pay to get it fixed (PM me), I'm not a very technical oriented person, so I don't know where to start.

Thanks

Posts: 5

Participants: 4

Read full topic

British Terms of Service

$
0
0

@limeblast wrote:

I was wondering if anyone had any terms of service suitable for a British sites?

I'm asking because I've just had a user point out that it currently says:

any access to or use of the Website will be governed by the laws of the state of California, U.S.A

which isn't relevant for a site aimed at Brits.

Thank you.

Posts: 2

Participants: 2

Read full topic

Are topic titles processed by the Akismet plugin?

$
0
0

@sethtvn wrote:

I was wondering if the title of a new topic (first post) was being sent to Akismet along with the post body? I've noticed that most of the spam getting through currently seems to have the spam payload (phone number, what they are trying offer, etc) in the title rather than the body. In these cases the body just has a some random text but not what you would consider spam from a classical sense.

Posts: 1

Participants: 1

Read full topic

List controls gets pushed down due to tagging plugin on mobile

PAID Developer for front-end customizations

$
0
0

@adamohern wrote:

Hi all!

SolidSmack.com is looking for a dev to help customize our new Discourse community site, talk.solidsmack.com. Should be pretty straightforward stuff.

adam@evd1.tv if interested.

Thanks!
Adam

Posts: 1

Participants: 1

Read full topic

Delete multiple users

"Traditional markdown linebreaks" not reflected in preview

$
0
0

@calmh wrote:

When traditional markdown linebreaks are enabled, i.e. single line breaks are not significant, this is not reflected in the preview window in the composer. That is, text entered as

This is some text
with a line break

is shown in the preview as

This is some text
with a line break

but when actually posted results in

This is some text with a line break

as expected.

Posts: 2

Participants: 2

Read full topic


Delay in the Visibility of Some Recent Posts

$
0
0

@bacchaus1 wrote:

I've been recently experiencing a delay in the visibility of some of my and other users recent posts. The post will be visible to me but not any other users or staff. Sometimes the delay is only two hours and some posts (it's been 5 days so far) are still not visible to others. There also seems to be delay in the visibility of posts on some users Personal profile pages. Is anyone else experiencing these issues?

Posts: 1

Participants: 1

Read full topic

Migrate from MyBB through Vanilla

$
0
0

@flameens wrote:

Hi there, I'm trying to migrate a MyBB forum to Discourse through the Vanilla Porter app. When I run the importer, I get the following message and the script stops importing:

loading existing groups...
loading existing users...
loading existing categories...
loading existing posts...
loading existing topics...
parsing file...
reading file...
parsing users...
parsing roles...
parsing user_roles...
parsing categories...
parsing discussions...
parsing comments...
Killed

Posts: 1

Participants: 1

Read full topic

Cannot change username

$
0
0

@fefrei wrote:

When renaming a user (from jb1 to jb), I get this error message:
There was an error changing your username.

No information is recorded in /logs.
The old username was created because the user used SSO for the first time, and his name was too short. Now, I changed the minimum username length, and wanted to adjust his name.

Posts: 1

Participants: 1

Read full topic

Support Content on Discourse

$
0
0

@SummerW wrote:

Our company is looking into migrating our Support Content to Discourse. We've pretty much figured out how we will do it, but not how we want it to look or if we want to use plugins.

Do any of you house your Support content on Discourse? Do you know of any examples of sites I could take a look at?

Posts: 4

Participants: 3

Read full topic

Default new user trust level 2, lots of spam

$
0
0

@codinghorror wrote:

I have the same problem, (a swarm of spambots from Tor) and I have followed the tips listed in this thread, increasing rate limits, reducing topic/post numbers for new users, etc.

I've slowed the onslaught of posts, but I still have to delete them manually, and I'm still getting dozens of spambot users per hour signing up.

In my case that it would be very easy to stop their posts appearing with a content filter of some kind - all the posts contain content in Korean, and also spelling variations on bam war5 . com (not hyperlinked).

I couldn't find anything in this thread or others about content filters to mark as spam - is there any way that posts containing this recurring text could be automatically rejected/deleted?

Posts: 11

Participants: 7

Read full topic

Viewing all 60613 articles
Browse latest View live




Latest Images