HashOver 2.0 (development) Test Page

Post a comment on "HashOver 2.0 (development) Test Page"

Allowed HTML

<b>, <strong>, <u>, <i>, <em>, <s>, <big>, <small>, <sup>, <sub>, <pre>, <ul>, <ol>, <li>, <blockquote>, <code> escapes HTML, URLs automagically become links, and [img]URL here[/img] will display an external image.

Markdown Format

**Bold**, _underline_, *italic*, ~~strikethrough~~, `highlight`, ```code``` escapes HTML. HTML and Markdown may be used together in your comment.

10 Comments

I just deleted all 593 test comments.

Thank you to everyone who tested out HashOver Comments.

Happy hacking!

Anonymous

How to use PHP

Sorry the PHP-mode is not well documented yet.

In version 1.0 it is described in the documentation:

    - https://docs.barkdull.org/hashover-v1#using-hashover

In version 2.0 it is done in a very similar way, but because the code structure has changed substantially -- it was moved to an Object Oriented design -- it is also quite different, requiring a proper in depth explanation, which I have not had time to write.

Here is the code that creates this page, change the URL and title and you should be able to use it for your needs...

<?php // Setup HashOver for use in PHP-mode, autoload class files require ('hashover/backend/php-setup.php'); try {     // Instantiate HashOver     $hashover = new HashOver ('php');     // Set page URL to create a backend thread directory     $hashover->setup->setPageURL ('https://comments.barkdull.org/test-page.php');     // Set page title for metadata / use in APIs     $hashover->setup->setPageTitle ('HashOver 2.0 (development) Test Page');     // Do some necessary setup work before loading comment files     $hashover->initiate ();     // Load and parse primary comment files     $hashover->parsePrimary ();     // Decide which comments appear in the popular comments section     $hashover->parsePopular ();     // Sort primary comments as configured     $hashover->sortPrimary ();     // Do some final setup work before outputting HTML     $hashover->finalize (); } catch (Exception $error) {     // Displays exceptions in HTML paragraph tag     echo HashOver\Misc::displayError ($error->getMessage ()); } ?>

You should place that kind of code in a PHP file that returns HTML, but place it before any HTML output, as HashOver needs to set a few headers.

After that code is in place, you can now output the HashOver HTML wherever you want using the following code...

<?php try {     // Generate interface, form, and comment HTML     echo $hashover->displayComments (); } catch (Exception $error) {     // Displays exceptions in HTML paragraph tag     echo HashOver\Misc::displayError ($error->getMessage ()); } ?>

Hope this helps.

mohamed el amrani

rdhgddfg

mohamed el amrani

hgjhfjhfj

Anonymous

Where are the like futon button?

And does this support multiple admins, with each configurable permission?

The like button currently requires an AJAX request. This is HashOver in PHP mode, which doesn't use any JavaScript, so the like button is disabled here.

Try HashOver in JavaScript mode instead: https://comments.barkdull.org/test-page.html

No, HashOver only supports one Admin user. I will consider adding support for multiple admins when I improve the login system in the future.

Anonymous
Anonymous

eddddd

wedd

eeeeeeeeeeeeeeeeeeeeee