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

Text forum title renders too wide on mobile


Custom css not loading after page reload

$
0
0

Bahadır Yağan wrote:

Steps to reproduce:

  1. Go to admin panel
  2. Reload page with cmd + R
  3. Go back to the homepage

Now the custom css is not loaded. The following error is printed to the console but I don't know if it is relevant.

Uncaught SyntaxError: Unexpected token ,

Posts: 2

Participants: 2

Read full topic

Any kind of Data-Input (also anonymous) through Google-Forms

$
0
0

Benjamin Kampmann wrote:

Heyah,

I have written a short script automatically posting new Google-Form-Entries to Discourse. You can use it to allow any kind of 3-party Data input into discourse for example:

  • Anonymous Feedback
  • Support-Request
  • Membership-Applications (this is what we do with it)

The script

The script is small and simple:

// ----- MINIMUM CONFIGURATION !!!!
// generate this at /admin/api
API_KEY = "d29dXXXXXXXXXXXXXXXXXXXXX70"
// use full qualified domain name in url to discourse index
TARGET_INSTALLATION = "http://DISCOURSE.EXAMPLE.ORG/"

// ----- Optional Configuartion

// which category to post this to? Default: 'uncategorized'
CATEGORY = 'uncategorized'
// which user should be the one posting? Default: 'system'
POSTER = "system"

// you probably wanna activate this, when using templates
INCLUDE_RAW_DATA = true

// the title to post at,
// should contain any 'form'-replacer or Discourse might complain it already has that title
TITLE_TEMPLATE = "New Form Entry: {{name}}"

// Wanna have it look pretty?
TEMPLATE  = "# {{name}}"

function _compile(source, values){
    var processed = source;
    for (key in values) {
      processed = processed.replace("{{" + key + "}}", values[key]);
    }
    return processed;
  }

function postToDiscourse(evt) {

  var title = _compile(TITLE_TEMPLATE, evt.namedValues),
      text  = _compile(TEMPLATE, evt.namedValues);

  if (INCLUDE_RAW_DATA) {
    var entries = [];
    for (key in evt.namedValues){
      entries.push(" - **" + key + "**: " + evt.namedValues[key]);
    }
    text += "\n Raw Values: \n\n" + entries.join('\n');
  }

  UrlFetchApp.fetch(TARGET_INSTALLATION + "/posts", {'method': 'post', 'payload':{
                    'category': CATEGORY,
                    'auto_track': false,
                    'title': title,
                    'raw': text,
                    'api_key': API_KEY,
                    'api_username': POSTER
                    }});
}

function API_TEST(){
  var form = {namedValues:{'key': 'value', 'name': 'Form Test - 2'}};
  postToDiscourse(form);
}

Installation

  1. Generate an ADMIN-Key of your installation at /admin/api
  2. Add Script to a new googles form or existing one via Tools-> Script Editor

  3. Copy the entire script into the new Editor that opens

  4. Replace the API-Key in the script with the one from your installation,
    Change the Installation-Target-Name
  5. Save and check your configuration by running the "API_TEST" function:

  6. A new post should show up in your Discourse.
    – you might want to do redo this one until the configuration (posting user, posting in proper category) are all figure out

  7. Connect function to trigger by going to Resources->All Triggers and an on-form-submit-trigger connected to the postToDiscourse function:

    (you might be asked to give permission when saving the first time: yes, please do so)

Voilá, you'll receive new posts (including all update and email features) of forms submitted in your discourse instance from now on.

You might want to also take a look at my "automatically email form-data" script and add that one, too. As always, feel free to posts questions, feedback and praise right down here as replies smile .

Posts: 1

Participants: 1

Read full topic

API key display mangled CSS

Can't generate multiple API keys?

$
0
0

Michael Downey wrote:

I have an API key for my WordPress instance, but also would like to create a second API key for a Google Drive form. However, when I go to /admin/api I see buttons to regenerate my existing key or revoke it, but no option to create an additional key. Is this a UI oversight or by design?

Posts: 2

Participants: 2

Read full topic

When external links set to open in new tab, link cannot be clicked twice

$
0
0

Matches wrote:

Expected: If I click on a hyperlink, my browser treats it as a link. If I click a link and it opens a new tab, it will continue to open a new tab, and go to the link that I clicked.

Actual: The link href is removed and no longer works.

Posts: 7

Participants: 5

Read full topic

phpBB3 importer: lists broken

$
0
0

Joe Seyfried wrote:

I have encountered another bug in the bbcode-parser: I have lists like this:

[list=1][*]Item 1
[*]Item 2
[*]Item 3

…which the import script converts to this:

[list=1]*]Item1/*:m]
*]Item 2/*:m]
*]Item 3/*:m]

I don't actually know if it's the first list item in the same line as the list definition, or if something else breaks the conversion.

Posts: 1

Participants: 1

Read full topic

Malformed HTML - representative line


About the installation category

$
0
0

Jeff Atwood wrote:

Topics about getting Discourse up and running for the first time, and anything you need for installation.

Posts: 1

Participants: 1

Read full topic

How to move a topic to a new category?

$
0
0

Michael Ziluck wrote:

Same as the topic name, I can't find where the button is to do it. I feel really stupid because I am sure it is really easy.

Posts: 3

Participants: 2

Read full topic

Typing :-) suggests :frowning: emoji

$
0
0

Tom wrote:

Hello everybody,

not 100% sure this belongs into the “bug” category, but when I looked around, this seemed appropriate nevertheless.

When I want to add a smiley with :-) or :), the system offers to insert the :frowning: emoji, and when I press return, I get frowning

See screenshots:

and

Am I doing something wrong? Is it a bug? (You don’t have a “glitch” category, though wink)

Cordial greetings from Germany,
Tom

Posts: 3

Participants: 2

Read full topic

Safari 5.1.7 for Windows

$
0
0

Tomo Vukasović wrote:

In Safari 5.1.7 for Windows 7 back to index page (logo) is not responding to a click. I am not sure if anyone uses this combination of software.

Posts: 3

Participants: 2

Read full topic

Can not send activate email for new register user

$
0
0

Peng wrote:

I have set up my new discourse instance and finish the email smtp configuration
However, when I try to register as administrator or normal user, discourse didn't sent activate email.
I tried the ./launch mailtest, it work OK. I can receive email from the SMTP server.
And telnet smtpserver with port no is fine.

I don't what's wrong with it and don't know where can get the email sent fail logs in discourse.

Anyone can help?

Posts: 2

Participants: 2

Read full topic

Where is the Banner Section

$
0
0

Daveyon Mayne wrote:

Im using Discourse on Mac for development. I noticed few site has the banner, where can I edit/create the banner found on this website? "Welcome to the New Relic Community Forum!" I assume it will always be there for the user before they click the 'x' button.

Posts: 4

Participants: 2

Read full topic

Selection quote reply fiddly on Chrome Android


Visitor Permission

$
0
0

Daveyon Mayne wrote:

Im on 1.1.0.beta5 in development mode on my Mac. Not sure if I missed something but visitors cant view newly created categories. Permission for everyone is set correct. Is this a bug or am I missing something?

Posts: 2

Participants: 2

Read full topic

Admin badge page is different then the public badge page

$
0
0

Steven wrote:

The public users page for badges has the badges sorted by category and the descriptions next to each badge. This is preferable.

This is the admins page for the badges, it does not have the categories or a description of each badge unless you click on them.

I suggest that you make the admin page look similar to the public user page.
Moving the Add new badge button to the top of the page would help new users find the button.

Posts: 1

Participants: 1

Read full topic

X Number of replies to a topic

$
0
0

Daveyon Mayne wrote:

Can you implement a way that only 'x' number of replies to a topic in a specific category?

Example: In Cars category, when someone creates a topic, an admin can set the maximum amount of replies to that topic.

Posts: 5

Participants: 4

Read full topic

Custom nav header like discourse.org

$
0
0

axil wrote:

Getting inspired by

I managed to copy https://discourse.org's main website header (hope you guys don't mind...).

Go to admin/customize/css_html and add a new customization. You can remove target="_blank" if you don't want the link to open in a new window. You might not need all the css, but I leave it there as it is what https://discourse.org has wink

Header

<nav id="bar">
    <ul>
        <li><a class="nav-link grey" href="https://example.com/link1" target="_blank">Link1</a></li>
        <li><a class="nav-link orange" href="https://example.com/link2" target="_blank">Link2</a></li>
        <li><a class="nav-link green" href="https://example.com/link3" target="_blank">Link3</a></li>
        <li><a class="nav-link yellow" href="https://example.com/link4" target="_blank">Link4</a></li>
        <li><a class="nav-link blue" href="https://example.com/link5" target="_blank">Link5</a></li>
    </ul>
</nav>

Stylesheet

nav ul {
    text-align: center;
}

nav ul li {
    display: inline-block;
}

a:hover {
    transition: color 150ms ease-out 0s;
    color: rgb(44, 174, 195);
}

a {
    transition: color 150ms ease-out 0s;
    color: rgb(35, 137, 153);
}

nav#bar {
    width: 100%;
    height: 48px;
    background: #1b1f20;
    top: 20;
    z-index: 1;
}

nav#bar a.nav-link {
    color: rgb(255, 255, 255);
    text-decoration: none;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    line-height: 48px;
    min-width: 90px;
    font-size: 16px;
    float: left;
}

nav#bar a.red.selected {
  color: #d13332;
  border-color: #d13332 !important; }

nav#bar a.red:hover {
  color: #d13332;
  text-shadow: 0px 0px 5px #d13332; }

nav#bar a.orange.selected {
  color: #ea5932;
  border-color: #ea5932 !important; }

nav#bar a.orange:hover {
  color: #ea5932;
  text-shadow: 0px 0px 5px #ea5932; }

nav#bar a.yellow.selected {
  color: #fff9ae;
  border-color: #fff9ae !important; }

nav#bar a.yellow:hover {
  color: #fff9ae;
  text-shadow: 0px 0px 5px #fff9ae; }

nav#bar a.green.selected {
  color: #18b159;
  border-color: #18b159 !important; }

nav#bar a.green:hover {
  color: #18b159;
  text-shadow: 0px 0px 5px #18b159; }

nav#bar a.blue.selected {
  color: #00aeef;
  border-color: #00aeef !important; }

nav#bar a.blue:hover {
  color: #00aeef;
  text-shadow: 0px 0px 5px #00aeef; }

nav#bar a.grey.selected {
  color: #aaa;
  border-color: #aaa !important; }

nav#bar a.grey:hover {
  color: #aaa;
  text-shadow: 0px 0px 5px #aaa; }

nav#bar a.nav-link.selected {
  line-height: 42px;
  border-top: 3px solid #0b0d0d;
  background-color: #0b0d0d;
  height: 45px;
}

Posts: 1

Participants: 1

Read full topic

Custom images/css for badges

$
0
0

Will Huxtable wrote:

Someone on my community asked me, is it at all possible for badges to have custom images and/or CSS? I think it would be a pretty cool thing to have.

Thanks

Posts: 4

Participants: 4

Read full topic

Viewing all 60721 articles
Browse latest View live




Latest Images