Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sucs-site
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Laurence Sebastian Bowes
sucs-site
Commits
228bf55d
Commit
228bf55d
authored
17 years ago
by
Graham Cole
Browse files
Options
Downloads
Patches
Plain Diff
hackergotchis displayed alongside forum posts
parent
0997ace8
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
components/forum.php
+1
-1
1 addition, 1 deletion
components/forum.php
htdocs/css/forum/SUCS.css
+3
-0
3 additions, 0 deletions
htdocs/css/forum/SUCS.css
lib/punbb/viewtopic.php
+11
-7
11 additions, 7 deletions
lib/punbb/viewtopic.php
with
15 additions
and
8 deletions
components/forum.php
+
1
−
1
View file @
228bf55d
...
...
@@ -56,7 +56,7 @@ if ($punbb_file == "extern.php") {
$pathlist
=
array_slice
(
$pathlist
,
0
,
$file_index
);
$smarty
->
assign
(
"title"
,
"Forum"
);
$smarty
->
assign
(
"extra_styles"
,
"/css/forum/SUCS.css"
);
$smarty
->
assign
(
"extra_styles"
,
"
$baseurl
/css/forum/SUCS.css"
);
$smarty
->
assign
(
"rss_url"
,
"/Community/Forum/extern.php?action=active&type=rss"
);
$smarty
->
assign
(
"body"
,
$page
);
}
...
...
This diff is collapsed.
Click to expand it.
htdocs/css/forum/SUCS.css
+
3
−
0
View file @
228bf55d
...
...
@@ -263,3 +263,6 @@ td div.tclcon {margin-left: 2.3em}
border
:
none
;
}
/* cut down on the fat. More space for avatars! */
.postfootleft
,
.postfootright
{
display
:
none
}
This diff is collapsed.
Click to expand it.
lib/punbb/viewtopic.php
+
11
−
7
View file @
228bf55d
...
...
@@ -206,17 +206,19 @@ while ($cur_post = $db->fetch_assoc($result))
// Format the online indicator
$is_online
=
(
$cur_post
[
'is_online'
]
==
$cur_post
[
'poster_id'
])
?
'<strong>'
.
$lang_topic
[
'Online'
]
.
'</strong>'
:
$lang_topic
[
'Offline'
];
/* begin SUCS avatar/hackergotchi hack
if ($pun_config['o_avatars'] == '1' && $cur_post['use_avatar'] == '1' && $pun_user['show_avatars'] != '0')
{
if ($img_size = @getimagesize($pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.gif'))
$user_avatar = '<img src="'.$pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.gif" '.$img_size[3].' alt="" />';
else if ($img_size = @getimagesize($pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.jpg'))
$user_avatar = '<img src="'.$pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.jpg" '.$img_size[3].' alt="" />';
else
if
(
$img_size
=
@
getimagesize
(
$pun_config
[
'o_avatars_dir'
]
.
'/'
.
$cur_post
[
'poster_id'
]
.
'.png'
))
$user_avatar
=
'<img src="'
.
$pun_config
[
'o_avatars_dir'
]
.
'/'
.
$cur_post
[
'poster_id'
]
.
'.png" '
.
$img_size
[
3
]
.
' alt="" />'
;
}
else
*/
if
(
$img_size
=
@
getimagesize
(
"/var/www/sucssite/htdocs/pictures/people"
.
'/'
.
$cur_post
[
'username'
]
.
'.png'
))
{
$user_avatar
=
'<img src="/pictures/people/'
.
$cur_post
[
'username'
]
.
'.png" '
.
$img_size
[
3
]
.
' alt="" />'
;
}
else
{
$user_avatar
=
''
;
}
// We only show location, register date, post count and the contact links if "Show user info" is enabled
if
(
$pun_config
[
'o_show_user_info'
]
==
'1'
)
...
...
@@ -229,7 +231,8 @@ while ($cur_post = $db->fetch_assoc($result))
$user_info
[]
=
'<dd>'
.
$lang_topic
[
'From'
]
.
': '
.
pun_htmlspecialchars
(
$cur_post
[
'location'
]);
}
$user_info
[]
=
'<dd>'
.
$lang_common
[
'Registered'
]
.
': '
.
date
(
$pun_config
[
'o_date_format'
],
$cur_post
[
'registered'
]);
//This is totally irrelavent to SUCS
//$user_info[] = '<dd>'.$lang_common['Registered'].': '.date($pun_config['o_date_format'], $cur_post['registered']);
if
(
$pun_config
[
'o_show_post_count'
]
==
'1'
||
$pun_user
[
'g_id'
]
<
PUN_GUEST
)
$user_info
[]
=
'<dd>'
.
$lang_common
[
'Posts'
]
.
': '
.
$cur_post
[
'num_posts'
];
...
...
@@ -317,8 +320,9 @@ while ($cur_post = $db->fetch_assoc($result))
<div
class=
"postleft"
>
<dl>
<dt><strong>
<?php
echo
$username
?>
</strong></dt>
<dd
class=
"usertitle"
><strong>
<?php
echo
$user_title
?>
</strong></dd>
<dd
class=
"postavatar"
>
<?php
echo
$user_avatar
?>
</dd>
<?php
/*
<dd class="usertitle"><strong><?php echo $user_title ?></strong></dd> */
?>
<dd
class=
"postavatar"
>
<?php
echo
$user_avatar
?>
</dd>
<?php
if
(
count
(
$user_info
))
echo
"
\t\t\t\t\t
"
.
implode
(
'</dd>'
.
"
\n\t\t\t\t\t
"
,
$user_info
)
.
'</dd>'
.
"
\n
"
;
?>
<?php
if
(
count
(
$user_contacts
))
echo
"
\t\t\t\t\t
"
.
'<dd class="usercontacts">'
.
implode
(
' '
,
$user_contacts
)
.
'</dd>'
.
"
\n
"
;
?>
</dl>
...
...
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