[RC] Forum Goal

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Ideas Centre
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
Stoker 4.0
Registered User
Posts: 1483
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen
Contact:

[RC] Forum Goal

Post by Stoker 4.0 » Tue Jan 26, 2016 7:10 am

Extension Name: Forum Goal
Author: Stoker

Description:
The Forum Goal EXT display your goals for posts, topics, users, attachments and views.
Configuration in ACP
Collapse addon, now works with: Collapsible Forum Categories

Version: 1.0.9

Demo:
http://www.phpbb3bbcodes.com/
Image
Image

Download:
http://www.phpbb3bbcodes.com/viewtopic.php?f=61&t=2662

Installation:
  1. Copy the entire contents of the repository to ext/stoker/forumgoal/
  2. Navigate in the ACP to Customise -> Extension Management -> Extensions.
  3. Click Enable.
  4. Navigate in the ACP -> Extensions and configure
Last edited by Stoker 4.0 on Wed Feb 17, 2016 2:09 pm, edited 2 times in total.

User avatar
Stoker 4.0
Registered User
Posts: 1483
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen
Contact:

Re: [RC] Forum Goal

Post by Stoker 4.0 » Tue Jan 26, 2016 6:56 pm

Ooops, I accidently uploaded the old 3.0.x mod instead of the new EXT :oops:

That is fixed and also new version
Updated to version 1.0.7
HTML cleanup and better formatting.
Fixed issue with incorrect views value

User avatar
Raul [ThE KuKa]
Style Customisations
Style Customisations
Posts: 6646
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo
Contact:

Re: [RC] Forum Goal

Post by Raul [ThE KuKa] » Tue Jan 26, 2016 10:21 pm

Thanks, nice work! ;)

Spanish translation ready here. ;)

Best regards.
All unsolicited PMs will be ignored.
:warning: Knowledge Base | Documentation | Board rules | phpBB Styles Rules & Policies :warning:


If you like my styles, translations, etc. and want to show some appreciation, then feel free to Donate with Image
:flag_es: phpBB Spain - Online Since 2003 :heart:



User avatar
alhitary
Registered User
Posts: 868
Joined: Wed Jan 17, 2007 7:51 am
Location: ROY
Name: Basil Taha Alhitary
Contact:

Re: [RC] Forum Goal

Post by alhitary » Wed Jan 27, 2016 12:43 pm

There is a problem in RTL website. See the photo :

Image

It should be from right to left, but it is still in LTR even if it is RTL website

User avatar
Stoker 4.0
Registered User
Posts: 1483
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen
Contact:

Re: [RC] Forum Goal

Post by Stoker 4.0 » Wed Jan 27, 2016 3:26 pm

alhitary wrote:There is a problem in RTL website. See the photo :

Image

It should be from right to left, but it is still in LTR even if it is RTL website
Im not good with RTL, but maybe the problem is that I use tables for the formatting.
I have no solution for this ATM, but for the out of place image with goal reached you can change this part in the css file:

Code: Select all

background-position: 85px 2px;

User avatar
david63
Registered User
Posts: 16669
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [RC] Forum Goal

Post by david63 » Wed Jan 27, 2016 3:31 pm

Stoker 4.0 wrote:maybe the problem is that I use tables for the formatting
Can I suggest that you try to not use tables as they are now considered to be a "no no" in front facing phpBB. You could perhaps look at how the poll bars work as they, I assume, cope with ltr
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
Stoker 4.0
Registered User
Posts: 1483
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen
Contact:

Re: [RC] Forum Goal

Post by Stoker 4.0 » Wed Jan 27, 2016 3:33 pm

david63 wrote:
Stoker 4.0 wrote:maybe the problem is that I use tables for the formatting
Can I suggest that you try to not use tables as they are now considered to be a "no no" in front facing phpBB. You could perhaps look at how the poll bars work as they, I assume, cope with ltr
I tried it, no success :D
But it is on the to do list, but without knowing when.

User avatar
Stoker 4.0
Registered User
Posts: 1483
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen
Contact:

Re: [RC] Forum Goal

Post by Stoker 4.0 » Tue Feb 02, 2016 5:46 am

Updated to 1.0.8
Collapse addon, now works with: Collapsible Forum Categories

KnownSyntax
Registered User
Posts: 37
Joined: Mon Sep 22, 2014 8:47 pm
Location: Arizona, United States

Re: [RC] Forum Goal

Post by KnownSyntax » Wed Feb 03, 2016 11:02 pm

Looks good!

I think if you added a few sections where you could put whatever text you wanted and manually edit the goal number it'd be nice (aka paypal donations to goal) etc. That way it would be a full use goal extensions that people could use regardless of if they wanted it to be goals for forum stats.

User avatar
Stoker 4.0
Registered User
Posts: 1483
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen
Contact:

Re: [RC] Forum Goal

Post by Stoker 4.0 » Wed Feb 03, 2016 11:07 pm

KnownSyntax wrote:Looks good!

I think if you added a few sections where you could put whatever text you wanted and manually edit the goal number it'd be nice (aka paypal donations to goal) etc. That way it would be a full use goal extensions that people could use regardless of if they wanted it to be goals for forum stats.
I had it on the 3.0 version of this extension and it makes sense adding it.
Ill do that for next version.

User avatar
Stoker 4.0
Registered User
Posts: 1483
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen
Contact:

Re: [RC] Forum Goal

Post by Stoker 4.0 » Wed Feb 03, 2016 11:59 pm

KnownSyntax wrote:Looks good!

I think if you added a few sections where you could put whatever text you wanted and manually edit the goal number it'd be nice (aka paypal donations to goal) etc. That way it would be a full use goal extensions that people could use regardless of if they wanted it to be goals for forum stats.
Done, take a look at my site and let me know if thats what you want: http://www.phpbb3bbcodes.com/index.php
There is config for enable, goal, total and text field for currency.

User avatar
spaceace
Registered User
Posts: 1857
Joined: Wed Jan 30, 2008 8:50 pm
Contact:

Re: [RC] Forum Goal

Post by spaceace » Thu Feb 04, 2016 12:33 am

Stoker 4.0 wrote:Done, take a look at my site and let me know if thats what you want: http://www.phpbb3bbcodes.com/index.php
There is config for enable, goal, total and text field for currency.
i'm guessing that you have to be logged in to see something. or not have an ad blocker running(i hate ads :roll:)

User avatar
Stoker 4.0
Registered User
Posts: 1483
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen
Contact:

Re: [RC] Forum Goal

Post by Stoker 4.0 » Thu Feb 04, 2016 4:18 am

spaceace wrote:
Stoker 4.0 wrote:Done, take a look at my site and let me know if thats what you want: http://www.phpbb3bbcodes.com/index.php
There is config for enable, goal, total and text field for currency.
i'm guessing that you have to be logged in to see something. or not have an ad blocker running(i hate ads :roll:)
He he, I forgot I had Testmode enabled :lol:
Then only admins can see forum goals :D

However, Its available for guests now. Even for ad blockers ;)

User avatar
spaceace
Registered User
Posts: 1857
Joined: Wed Jan 30, 2008 8:50 pm
Contact:

Re: [RC] Forum Goal

Post by spaceace » Thu Feb 04, 2016 12:56 pm

looks pretty good :D

i had a heck of a time getting my Forum Legend extension validated as they did not want tables. even though it had always been a table to display the icons. i will see if i can make a template without tables if i have time over the next couple of days if you don't get to it before me ;)

it's just hard to get to your download with your anti ad block :lol:

User avatar
spaceace
Registered User
Posts: 1857
Joined: Wed Jan 30, 2008 8:50 pm
Contact:

Re: [RC] Forum Goal

Post by spaceace » Sun Feb 07, 2016 2:28 pm

got the layout done without tables. don't know how it works with RTL as i don't use it but should be easier to add RTL now

http://31.livemembersonly.com/index.php

here's the template and css if you want it ;)

forum_goal_body.html

Code: Select all

<!-- IF not S_IS_BOT -->
	<!-- IF (FORUMGOAL_ENABLE and U_ACP) or not FORUMGOAL_ENABLE -->
		<!-- IF ENABLE_XMAS -->
			<!-- IF (XMAS_TESTMODE and U_ACP) or not XMAS_TESTMODE -->
				<div class="hat"></div>
			<!-- ENDIF -->
		<!-- ENDIF -->
		<a class="category<!-- IF S_FOO_FORUMGOAL_HIDDEN --> hidden-category<!-- ENDIF -->" style="display: none; height: 0"></a>
		<div class="forabg responsive-hide">
			<div class="inner">
				<ul class="topiclist">
					<li class="header">
						<dl class="icon fgheaderleft">
							<dt>
								<div class="margingoal1">{L_FORUM_GOALS}</div>
								<div class="margingoal2">{L_FORUM_GOALS_TOTAL}</div>
								<div class="margingoal3">{L_FORUM_GOALS_REMAINING}</div>
							</dt>
							<dd></dd>
						</dl>
						<a href="{U_FOO_FORUMGOAL_COLLAPSE_URL}" class="collapse-btn collapse-<!-- IF S_FOO_FORUMGOAL_HIDDEN -->show<!-- ELSE -->hide<!-- ENDIF -->" data-hidden="{S_FOO_FORUMGOAL_HIDDEN}" data-ajax="phpbb_collapse" data-overlay="true" title="{L_COLLAPSIBLE_CATEGORIES_TITLE}" style="display: none; line-height: 0;"></a>
					</li>
				</ul>
				<ul class="topiclist forums">
					<!-- IF FPG_ENABLE -->
						<li class="row">
							<div class="goalblock">
								<div class="fgleft">
									<div class="margingoal1"><span class="perc-text"><strong>{FORUM_POST_GOAL}</strong> {L_TOTAL_FORUM_POST_GOAL}</span></div>
									<div class="margingoal2"><span class="perc-text"><strong>{FORUM_POST_GOAL_TOTAL}</strong> {L_TOTAL_FORUM_POST_GOAL}</span></div>
									<div class="margingoal3"><!-- IF FORUM_POST_PERCENT < 100 --><span class="perc-text"><strong>{FORUM_POST_REST}</strong> {L_TOTAL_FORUM_POST_GOAL}</span><!-- ELSE --><span class="goal-ok"><em>{L_GOAL_REMAINING_ZERO}</em></span><!-- ENDIF --></div>
								</div>
								<div class="progress fgright">
									<span class="<!-- IF FORUM_POST_PERCENT < 34 -->red<!-- ELSEIF FORUM_POST_PERCENT < 67 -->orange<!-- ELSEIF FORUM_POST_PERCENT < 85 -->blue<!-- ELSEIF FORUM_POST_PERCENT <> 101 -->green<!-- ENDIF -->" style="width: <!-- IF FORUM_POST_PERCENT > 100 -->100<!-- ELSE -->{FORUM_POST_PERCENT}<!-- ENDIF -->%;"><span>{FORUM_POST_PERCENT}%</span></span>
								</div>
							</div>
						</li>
					<!-- ENDIF -->
					<!-- IF FTG_ENABLE -->
						<li class="row">
							<div class="goalblock">
								<div class="fgleft">
									<div class="margingoal1"><span class="perc-text"><strong>{FORUM_TOPIC_GOAL}</strong> {L_TOTAL_FORUM_TOPIC_GOAL}</span></div>
									<div class="margingoal2"><span class="perc-text"><strong>{FORUM_TOPIC_GOAL_TOTAL}</strong> {L_TOTAL_FORUM_TOPIC_GOAL}</span></div>
									<div class="margingoal3"><!-- IF FORUM_TOPIC_PERCENT < 100 --><span class="perc-text"><strong>{FORUM_TOPIC_REST}</strong> {L_TOTAL_FORUM_TOPIC_GOAL}</span><!-- ELSE --><span class="goal-ok"><em>{L_GOAL_REMAINING_ZERO}</em></span><!-- ENDIF --></div>
								</div>
								<div class="progress fgright">
									<span class="<!-- IF FORUM_TOPIC_PERCENT < 34 -->red<!-- ELSEIF FORUM_TOPIC_PERCENT < 67 -->orange<!-- ELSEIF FORUM_TOPIC_PERCENT < 85 -->blue<!-- ELSEIF FORUM_TOPIC_PERCENT <> 101 -->green<!-- ENDIF -->" style="width: <!-- IF FORUM_TOPIC_PERCENT > 100 -->100<!-- ELSE -->{FORUM_TOPIC_PERCENT}<!-- ENDIF -->%;"><span>{FORUM_TOPIC_PERCENT}%</span></span>
								</div>
							</div>
						</li>
					<!-- ENDIF -->
					<!-- IF FUG_ENABLE -->
						<li class="row">
							<div class="goalblock">
								<div class="fgleft">
									<div class="margingoal1"><span class="perc-text"><strong>{FORUM_USER_GOAL}</strong> {L_TOTAL_FORUM_USER_GOAL}</span></div>
									<div class="margingoal2"><span class="perc-text"><strong>{FORUM_USER_GOAL_TOTAL}</strong> {L_TOTAL_FORUM_USER_GOAL}</span></div>
									<div class="margingoal3"><!-- IF FORUM_USER_PERCENT < 100 --><span class="perc-text"><strong>{FORUM_USER_REST}</strong> {L_TOTAL_FORUM_USER_GOAL}</span><!-- ELSE --><span class="goal-ok"><em>{L_GOAL_REMAINING_ZERO}</em></span><!-- ENDIF --></div>
								</div>
								<div class="progress fgright">
									<span class="<!-- IF FORUM_USER_PERCENT < 34 -->red<!-- ELSEIF FORUM_USER_PERCENT < 67 -->orange<!-- ELSEIF FORUM_USER_PERCENT < 85 -->blue<!-- ELSEIF FORUM_USER_PERCENT <> 101 -->green<!-- ENDIF -->" style="width: <!-- IF FORUM_USER_PERCENT > 100 -->100<!-- ELSE -->{FORUM_USER_PERCENT}<!-- ENDIF -->%;"><span>{FORUM_USER_PERCENT}%</span></span>
								</div>
							</div>
						</li>
					<!-- ENDIF -->
					<!-- IF FFG_ENABLE -->
						<li class="row">
							<div class="goalblock">
								<div class="fgleft">
									<div class="margingoal1"><span class="perc-text"><strong>{FORUM_FILES_GOAL}</strong> {L_TOTAL_FORUM_FILE_GOAL}</span></div>
									<div class="margingoal2"><span class="perc-text"><strong>{TOTAL_FILES}</strong> {L_TOTAL_FORUM_FILE_GOAL}</span></div>
									<div class="margingoal3"><!-- IF FORUM_FILES_PERCENT < 100 --><span class="perc-text"><strong>{FORUM_FILES_REST}</strong> {L_TOTAL_FORUM_FILE_GOAL} </span><!-- ELSE --><span class="goal-ok"><em>{L_GOAL_REMAINING_ZERO}</em></span><!-- ENDIF --></div>
								</div>
								<div class="progress fgright">
									<span class="<!-- IF FORUM_FILES_PERCENT < 34 -->red<!-- ELSEIF FORUM_FILES_PERCENT < 67 -->orange<!-- ELSEIF FORUM_FILES_PERCENT < 85 -->blue<!-- ELSEIF FORUM_FILES_PERCENT <> 101 -->green<!-- ENDIF -->" style="width: <!-- IF FORUM_FILES_PERCENT > 100 -->100<!-- ELSE -->{FORUM_FILES_PERCENT}<!-- ENDIF -->%;"><span>{FORUM_FILES_PERCENT}%</span></span>
								</div>
							</div>
						</li>
					<!-- ENDIF -->
					<!-- IF FTVG_ENABLE -->
						<li class="row">
							<div class="goalblock">
								<div class="fgleft">
									<div class="margingoal1"><span class="perc-text"><strong>{FORUM_VIEW_GOAL}</strong> {L_TOTAL_FORUM_VIEW_GOAL}</span></div>
									<div class="margingoal2"><span class="perc-text"><strong>{TOTAL_VIEWS}</strong> {L_TOTAL_FORUM_VIEW_GOAL}</span></div>
									<!-- IF FORUM_VIEW_PERCENT < 100 --><span class="perc-text"><strong>{FORUM_VIEW_REST}</strong> {L_TOTAL_FORUM_VIEW_GOAL}</span><!-- ELSE --><span class="goal-ok"><em>{L_GOAL_REMAINING_ZERO}</em></span><!-- ENDIF -->
								</div>
								<div class="progress fgright">
									<span class="<!-- IF FORUM_VIEW_PERCENT < 34 -->red<!-- ELSEIF FORUM_VIEW_PERCENT < 67 -->orange<!-- ELSEIF FORUM_VIEW_PERCENT < 85 -->blue<!-- ELSEIF FORUM_VIEW_PERCENT <> 101 -->green<!-- ENDIF -->" style="width: <!-- IF FORUM_VIEW_PERCENT > 100 -->100<!-- ELSE -->{FORUM_VIEW_PERCENT}<!-- ENDIF -->%;"><span>{FORUM_VIEW_PERCENT}%</span></span>
								</div>
							</div>
						</li>
					<!-- ENDIF -->
				</ul>
			</div>
		</div>
	<!-- ENDIF -->
<!-- ENDIF -->
forumgoal.css

Code: Select all

.progress {
  height: 20px;
  background: #ebebeb;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  border-radius: 10px;
}
.progress > span {
  position: relative;
  float: left;
  margin: 0 -1px;
  min-width: 45px;
  height: 18px;
  line-height: 16px;
  text-align: left;
  background: #cccccc;
  border: 1px solid;
  border-color: #bfbfbf #b3b3b3 #9e9e9e;
  border-radius: 10px;
  background-image: -webkit-linear-gradient(top, #f0f0f0, #dbdbdb 70%, #cccccc);
  background-image: -moz-linear-gradient(top, #f0f0f0, #dbdbdb 70%, #cccccc);
  background-image: -o-linear-gradient(top, #f0f0f0, #dbdbdb 70%, #cccccc);
  background-image: linear-gradient(to bottom, #f0f0f0, #dbdbdb 70%, #cccccc);
  -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
}
.progress > span > span {
  padding-left: 8px;
  font-size: 12px;
  font-weight: bold;
  color: #404040;
  color: rgba(0, 0, 0, 0.7);
  text-shadow: 0 1px rgba(255, 255, 255, 0.4);
}
.progress > span:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  height: 18px;
  background: url("./images/progress.png") 0 0 repeat-x;
  border-radius: 10px;
}
.progress .green {
  background: #85c440;
  border-color: #78b337 #6ba031 #568128;
  background-image: -webkit-linear-gradient(top, #b7dc8e, #99ce5f 70%, #85c440);
  background-image: -moz-linear-gradient(top, #b7dc8e, #99ce5f 70%, #85c440);
  background-image: -o-linear-gradient(top, #b7dc8e, #99ce5f 70%, #85c440);
  background-image: linear-gradient(to bottom, #b7dc8e, #99ce5f 70%, #85c440);
}
.progress .red {
  background: #db3a27;
  border-color: #c73321 #b12d1e #8e2418;
  background-image: -webkit-linear-gradient(top, #ea8a7e, #e15a4a 70%, #db3a27);
  background-image: -moz-linear-gradient(top, #ea8a7e, #e15a4a 70%, #db3a27);
  background-image: -o-linear-gradient(top, #ea8a7e, #e15a4a 70%, #db3a27);
  background-image: linear-gradient(to bottom, #ea8a7e, #e15a4a 70%, #db3a27);
}
.progress .orange {
  background: #f2b63c;
  border-color: #f0ad24 #eba310 #c5880d;
  background-image: -webkit-linear-gradient(top, #f8da9c, #f5c462 70%, #f2b63c);
  background-image: -moz-linear-gradient(top, #f8da9c, #f5c462 70%, #f2b63c);
  background-image: -o-linear-gradient(top, #f8da9c, #f5c462 70%, #f2b63c);
  background-image: linear-gradient(to bottom, #f8da9c, #f5c462 70%, #f2b63c);
}
.progress .blue {
  background: #5aaadb;
  border-color: #459fd6 #3094d2 #277db2;
  background-image: -webkit-linear-gradient(top, #aed5ed, #7bbbe2 70%, #5aaadb);
  background-image: -moz-linear-gradient(top, #aed5ed, #7bbbe2 70%, #5aaadb);
  background-image: -o-linear-gradient(top, #aed5ed, #7bbbe2 70%, #5aaadb);
  background-image: linear-gradient(to bottom, #aed5ed, #7bbbe2 70%, #5aaadb);
}
span.goal-ok {
	background: url("./images/forum_goal_ok.png");
	background-repeat: no-repeat;
	background-position: 85px 2px;
	font-size: 12px;
	padding-right: 20px;
}
span.perc-text {
	font-size: 12px;
}
.margingoal1 {
	width: 33%;
	border: none;
	display: inline-block;
	float: left;
}
.margingoal2 {
	width: 33%;
	border: none;
	display: inline-block;
	float: left;
}
.margingoal3 {
	width: 33%;
	border: none;
	display: inline-block;
	float: left;
}
.fgleft {
	display: inline-block;
	float: left;
	width: 50%;
}
.fgright {
	display: inline-block;
	float: right;
	width: 49%;
}
.goalblock {
	padding: 5px;
	height: 20px;
}
.fgheaderleft {
	width: 50%;
}

Post Reply

Return to “Extensions in Development”