Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
a7250b1d
Commit
a7250b1d
authored
8 years ago
by
echicken
Browse files
Options
Downloads
Patches
Plain Diff
Renamed vote_buttons setting to vote_functions
parent
e104be61
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+1
-1
1 addition, 1 deletion
README.md
web/root/pages/001-forum.ssjs
+4
-4
4 additions, 4 deletions
web/root/pages/001-forum.ssjs
with
5 additions
and
5 deletions
README.md
+
1
−
1
View file @
a7250b1d
...
@@ -51,7 +51,7 @@ A web interface for Synchronet BBS
...
@@ -51,7 +51,7 @@ A web interface for Synchronet BBS
; Enable or disable keyboard navigation in message threads
; Enable or disable keyboard navigation in message threads
keyboard_navigation
=
false
keyboard_navigation
=
false
; Display upvote/downvote buttons in message threads (3.17)
; Display upvote/downvote buttons in message threads (3.17)
vote_
butt
ons
=
true
vote_
functi
ons
=
true
; Refresh nodelist, vote counts, etc. this often (in milliseconds)
; Refresh nodelist, vote counts, etc. this often (in milliseconds)
refresh_interval
=
60000
refresh_interval
=
60000
```
```
...
...
This diff is collapsed.
Click to expand it.
web/root/pages/001-forum.ssjs
+
4
−
4
View file @
a7250b1d
...
@@ -10,7 +10,7 @@ var strings = {
...
@@ -10,7 +10,7 @@ var strings = {
open
:
'
<script type="text/javascript">
'
,
open
:
'
<script type="text/javascript">
'
,
thread_navigation
:
'
threadNav();
'
,
thread_navigation
:
'
threadNav();
'
,
interval
:
'
setInterval(function () { %s }, %s);
'
,
interval
:
'
setInterval(function () { %s }, %s);
'
,
vote_
butt
ons
:
'
enableVoteButtonHandlers("%s");
'
,
vote_
functi
ons
:
'
enableVoteButtonHandlers("%s");
'
,
vote_refresh_thread
:
'
getVotesInThread("%s", %s)
'
,
vote_refresh_thread
:
'
getVotesInThread("%s", %s)
'
,
vote_refresh_threads
:
'
getVotesInThreads("%s")
'
,
vote_refresh_threads
:
'
getVotesInThreads("%s")
'
,
get_group_unread
:
'
getGroupUnreadCount("%s")
'
,
get_group_unread
:
'
getGroupUnreadCount("%s")
'
,
...
@@ -188,7 +188,7 @@ if (typeof http_request.query.sub !== 'undefined' &&
...
@@ -188,7 +188,7 @@ if (typeof http_request.query.sub !== 'undefined' &&
writeln
(
strings
.
message
.
header
.
voting
.
open
);
writeln
(
strings
.
message
.
header
.
voting
.
open
);
if
(
!
(
msgBase
.
cfg
.
settings
&
SUB_NOVOTING
)
&&
if
(
!
(
msgBase
.
cfg
.
settings
&
SUB_NOVOTING
)
&&
(
typeof
settings
.
vote_
butt
ons
===
'
undefined
'
||
settings
.
vote_
butt
ons
)
&&
(
typeof
settings
.
vote_
functi
ons
===
'
undefined
'
||
settings
.
vote_
functi
ons
)
&&
!
(
header
.
attr
&
MSG_POLL
)
!
(
header
.
attr
&
MSG_POLL
)
)
{
)
{
writeln
(
writeln
(
...
@@ -382,7 +382,7 @@ if (typeof http_request.query.sub !== 'undefined' &&
...
@@ -382,7 +382,7 @@ if (typeof http_request.query.sub !== 'undefined' &&
writeln
(
strings
.
script
.
open
);
writeln
(
strings
.
script
.
open
);
if
(
settings
.
keyboard_navigation
)
writeln
(
strings
.
script
.
thread_navigation
);
if
(
settings
.
keyboard_navigation
)
writeln
(
strings
.
script
.
thread_navigation
);
if
(
user
.
alias
!=
settings
.
guest
||
user
.
security
.
restrictions
&
UFLAG_V
)
{
if
(
user
.
alias
!=
settings
.
guest
||
user
.
security
.
restrictions
&
UFLAG_V
)
{
writeln
(
format
(
strings
.
script
.
vote_
butt
ons
,
http_request
.
query
.
sub
[
0
]));
writeln
(
format
(
strings
.
script
.
vote_
functi
ons
,
http_request
.
query
.
sub
[
0
]));
}
}
writeln
(
writeln
(
format
(
format
(
...
@@ -443,7 +443,7 @@ if (typeof http_request.query.sub !== 'undefined' &&
...
@@ -443,7 +443,7 @@ if (typeof http_request.query.sub !== 'undefined' &&
writeln
(
strings
.
thread_list
.
item
.
badges
.
open
);
writeln
(
strings
.
thread_list
.
item
.
badges
.
open
);
if
(
!
(
msg_area
.
sub
[
http_request
.
query
.
sub
[
0
]].
settings
&
SUB_NOVOTING
)
&&
if
(
!
(
msg_area
.
sub
[
http_request
.
query
.
sub
[
0
]].
settings
&
SUB_NOVOTING
)
&&
settings
.
vote_
butt
ons
&&
settings
.
vote_
functi
ons
&&
(
thread
.
votes
.
up
>
0
||
thread
.
votes
.
down
>
0
)
(
thread
.
votes
.
up
>
0
||
thread
.
votes
.
down
>
0
)
)
{
)
{
writeln
(
writeln
(
...
...
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