Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ckval
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christophe K.
ckval
Commits
0cdaa34c
Commit
0cdaa34c
authored
5 years ago
by
ck
Browse files
Options
Downloads
Patches
Plain Diff
add blink badge and conditional color
parent
4328f5e6
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
upload/inc/plugins/valck.php
+5
-2
5 additions, 2 deletions
upload/inc/plugins/valck.php
with
5 additions
and
2 deletions
upload/inc/plugins/valck.php
+
5
−
2
View file @
0cdaa34c
...
...
@@ -30,7 +30,7 @@ EOT;
'website'
=>
"https://www.ckforum.com"
,
'author'
=>
"ck"
,
'authorsite'
=>
"http://github.nailis.fr/ckbox/ckval/-/blob/master/upload/inc/plugins/valck.php"
,
'version'
=>
"1.
0
- "
.
$versionAPP
,
'version'
=>
"1.
1
- "
.
$versionAPP
,
'compatibility'
=>
"18*"
);
}
...
...
@@ -70,6 +70,9 @@ global $mybb, $lang, $db, $valck_run;
$newthreads
=
0
;
}
//si nouveau message alors on badge en rouge
$mybb
->
user
[
'pms_unread'
]
>
0
?
$badgecolornewmesg
=
"danger blink_me"
:
$badgecolornewmesg
=
"warning"
;
// le code pour le forum
$valck_run
=
<<<EOT
<li>
...
...
@@ -93,7 +96,7 @@ $valck_run = <<<EOT
<div class="w-25 p-2">
<a href="{$mybb->settings['bburl']}/private.php">
<h5><span data-toggle="tooltip" title="Message privé non lu!"
class="align-middle badge badge-
warning
badge-pill shadow">{$mybb->user['pms_unread']}</span></h5>
class="align-middle badge badge-
{$badgecolornewmesg}
badge-pill shadow">{$mybb->user['pms_unread']}</span></h5>
</a>
</div>
</li>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment