01-12-2019
TODO Idea:
- Create database table and upload user "new badge" messages to the DB.
- Create a page which updates in near real-time when users are issued new badges.
- Create a filter selection on that page where the badge-alerts can be filtered based on status, user group id, registration time, etc.
This kind of a page will useful for both moderators and members a large.
However, this kind of page will be a specific page application, so the updates will only be seen when viewing that page, not just popping up when unwanted. Having this on a single, app-specific page will keep this from being annoying or intrusive.
6 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi
i m new to this forum as well as UNIX. I've got an assignment but i don't know how can I start it.
can anyone please help to tell me how can I start it?
I added here few lines from my assignment.
In industry, it is common for a single organisation to provide technical support for a... (0 Replies)
Discussion started by: moco
0 Replies
2. Shell Programming and Scripting
Hi, I am trying to access and read certain lines from a configuration XML file on multiple servers (within the LAN). Fortunately the file name and path is always the same for all servers. An example extract of the file is as follows:
<DUMMY-SMSC>false</DUMMY-SMSC> ... (2 Replies)
Discussion started by: jaz8212
2 Replies
3. Homework & Coursework Questions
1. Edit a script named update.sh that generates status.html in your web directory: ~/public_html/.
I need to write specific commands to show each specific item
2. The generated webpage should include information related to:
UNIX : kernel version of ed-lab server
USER : number of users on the... (13 Replies)
Discussion started by: devinj
13 Replies
4. What is on Your Mind?
Today I mapped out the new badging system using FA icons, Beta 1 in no particular order except a 6 x 8 grid:
https://www.unix.com/members/1-albums215-picture991.png
The prototype HTML code for this layout:
<style>
.fa-badge-grid {
font-size: 1.5em;
}
.row {
... (38 Replies)
Discussion started by: Neo
38 Replies
5. Web Development
Part II: Current PHP file Beta 73 Not Optimized:
<?php
$version = 73;
$query = "SELECT * FROM " . TABLE_PREFIX . "user WHERE userid='" . $uid . "'";
$usertable = $db->query_read_slave($query);
$modaluser = $db->fetch_array($usertable);
$modaluser = gmdate("d F Y", $modaluser);
$modaluser... (48 Replies)
Discussion started by: Neo
48 Replies
6. What is on Your Mind?
I have moved the bug badge out of reserve and into the main stream. Basically, I will assign a color level like the others, based on who has made a good actionable bug report for UNIX.COM. "Good" means screenshots, links, and even details from web dev tools our the HTML source code. So far,... (0 Replies)
Discussion started by: Neo
0 Replies
LEARN ABOUT DEBIAN
mojomojo::schema::result::page
MojoMojo::Schema::Result::Page(3pm) User Contributed Perl Documentation MojoMojo::Schema::Result::Page(3pm)
NAME
MojoMojo::Schema::Result::Page - store pages
METHODS
update_content <%args>
Create a new content version for this page.
%args is each column of MojoMojo::Schema::Result::Content.
add_version
my $page_version_new = $page->add_version(
creator => $user_id,
name_orig => $page_new_name,
);
Arguments: %replacementdata
Returns: The new PageVersion object.
Creates a new page version by cloning the latest version (hence pointing to the same content), and replacing its values with data in the
replacement hash.
Used for renaming pages.
tagged_descendants($tag)
Return descendants with the given tag, ordered by name.
tagged_descendants_by_date
Return descendants with the given tag, ordered by creation time, most recent first.
descendants
@descendants = $page->descendants( [$resultset_page] );
In list context, returns all descendants of this page (no paging), including the page itself. In scalar context, returns the resultset
object.
If the optional $resultset_page is passed, returns that page from the resultset.
descendants_by_date
@descendants = $page->descendants_by_date;
Like "descendants", but returns pages sorted by the dates of their last content release dates and pages results (20 per page).
user_tags($user)
Return popular tags for this page used $user.
others_tags($user)
Return popular tags for this page used by other people than $user.
tags_with_counts($user)
Return an array of {id, tag, refcount} for the $user's tags.
path( [$path] )
TODO Accessor?
has_photos
Return the number of photos attached to this page. Use for galleries.
AUTHOR
Marcus Ramberg <mramberg@cpan.org>
LICENSE
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2011-01-12 MojoMojo::Schema::Result::Page(3pm)