| Autor |
Nachricht |
Hugo
phpBB2.de User


Anmeldungsdatum: 18.08.2002
Beiträge: 121
|
Verfasst am:
Sa 07 Sep, 2002 15:41 |
  |
Hallo!
Wo bekomme ich denn den show_end_of_vote_mod her?
Vielen Dank!
Gruß,
Hugo |
_________________ „Der Computer ist die logische Weiterentwicklung des Menschen: Intelligenz ohne Moral.“ John James Osborne |
|
    |
 |
Google
|
Verfasst am:
|
 |
|
|
 |
Fabro
phpBB2.de User


Anmeldungsdatum: 02.08.2002
Beiträge: 1172
Wohnort: Bayern
|
Verfasst am:
Sa 07 Sep, 2002 15:59 |
  |
In unserer Download-Datenbank
Fabro |
_________________ [img]http://cgi.gbgr.de/spruch.png?d=2[/img] |
|
   |
 |
Hugo
phpBB2.de User


Anmeldungsdatum: 18.08.2002
Beiträge: 121
|
Verfasst am:
Sa 07 Sep, 2002 16:01 |
  |
Hi Fabro!
Dankeschön!
Gruß,
Hugo |
_________________ „Der Computer ist die logische Weiterentwicklung des Menschen: Intelligenz ohne Moral.“ John James Osborne |
|
    |
 |
Fabro
phpBB2.de User


Anmeldungsdatum: 02.08.2002
Beiträge: 1172
Wohnort: Bayern
|
Verfasst am:
Sa 07 Sep, 2002 16:04 |
  |
Jep,
dort bitte zuerst suchen und dann posten.
Fabro |
_________________ [img]http://cgi.gbgr.de/spruch.png?d=2[/img] |
|
   |
 |
Hugo
phpBB2.de User


Anmeldungsdatum: 18.08.2002
Beiträge: 121
|
Verfasst am:
Sa 07 Sep, 2002 16:08 |
  |
...aber der Link ist kaputt.  |
_________________ „Der Computer ist die logische Weiterentwicklung des Menschen: Intelligenz ohne Moral.“ John James Osborne |
|
    |
 |
Fabro
phpBB2.de User


Anmeldungsdatum: 02.08.2002
Beiträge: 1172
Wohnort: Bayern
|
Verfasst am:
Sa 07 Sep, 2002 16:17 |
  |
Das ist ein Argument.
Hab eben nochmal gesucht und hier ist er:
| Code: |
########################################################
## Mod Title: show end of vote
## Mod Version: 0.1.0
## Author: Sven Schumacher <sven@nr33a.de>
## This mod will add the ending time to any vote
## or shows if the vote is endless or already ended
##
## This mod is only for phpBB2!!
##
## installation level: easy
## installation time: aprox 3 min
## files to edit: 4
##
########################################################
##
## Installation Notes:
##
##
########################################################
#
#-----[ ACTION ]------------------------------------------
#
# OPEN FILE: phpBB2/viewtopic.php
[FIND]:
$template->assign_vars(array(
'POLL_QUESTION' => $vote_title,
[ADD BEFORE]:
$sql_votes = mysql_query("SELECT * FROM ".$table_prefix."vote_desc ORDER BY vote_id");
for ($v = 0; $v < mysql_num_rows($sql_votes); $v++)
if (mysql_result($sql_votes, $v, "vote_id") == $vote_id) $vote_nr = $v;
$vote_end = mysql_result($sql_votes, $vote_nr, "vote_start") + mysql_result($sql_votes, $vote_nr, "vote_length");
if (time() < $vote_end) { $vote_end = sprintf($lang['VOTE_UNTIL']) . ": " . date ("m.d.Y H:i:s",$vote_end); }
else if (mysql_result($sql_votes, $vote_nr, "vote_length") == 0) { $vote_end = sprintf($lang['VOTE_ENDLESS']) ; }
else { $vote_end = sprintf($lang['VOTE_CLOSED']) ; }
#
#-----[ ACTION ]------------------------------------------
#
[FIND]:
$template->assign_vars(array(
'POLL_QUESTION' => $vote_title,
'S_HIDDEN_FIELDS' => ( !empty($s_hidden_fields) ) ? $s_hidden_fields : '',
'S_POLL_ACTION' => append_sid("posting.$phpEx?" . POST_TOPIC_URL . "=$topic_id")
);
[REPLACE WITH]:
$template->assign_vars(array(
'POLL_QUESTION' => $vote_title,
'S_HIDDEN_FIELDS' => ( !empty($s_hidden_fields) ) ? $s_hidden_fields : '',
'S_POLL_ACTION' => append_sid("posting.$phpEx?" . POST_TOPIC_URL . "=$topic_id"),
'VOTE_END' => $vote_end)
);
################################### This completes the changes in viewtopic.php ##############################
#
#-----[ ACTION ]------------------------------------------
#
# OPEN FILE: phpBB2/templates/SubSilver/viewtopic_poll_ballot.tpl (make sure to edit this file for every theme your admin uses).
[FIND]:
<td align="center"><span class="gen"><b>{POLL_QUESTION}</b></span>
[ADD AFTER DIRECT IN THIS LINE]:
<br><span class="gensmall">({VOTE_END})</span>
################################### This completes the changes in viewtopic_poll_ballot.tpl ##############################
#
#-----[ ACTION ]------------------------------------------
#
# OPEN FILE: phpBB2/templates/SubSilver/viewtopic_poll_result.tpl (make sure to edit this file for every theme your admin uses).
[FIND]:
<td align="center"><span class="gen"><b>{POLL_QUESTION}</b></span>
[ADD AFTER DIRECT IN THIS LINE]:
<br><span class="gensmall">({VOTE_END})</span>
################################### This completes the changes in viewtopic_poll_result.tpl ##############################
#
#-----[ ACTION ]------------------------------------------
#
# OPEN FILE: phpBB2/language/lang_german/lang_main.php (make sure to edit this file for every language your admin uses).
[FIND]:
//
// That's all Folks!
// -------------------------------------------------
?>
[ADD BEFORE]
$lang['VOTE_UNTIL'] ="Vote until";
$lang['VOTE_ENDLESS'] ="No ending time set";
$lang['VOTE_CLOSED'] ="Vote is closed";
################################### This completes the changes in lang_main.php ############################## |
have phun
Fabro |
_________________ [img]http://cgi.gbgr.de/spruch.png?d=2[/img] |
|
   |
 |
Hugo
phpBB2.de User


Anmeldungsdatum: 18.08.2002
Beiträge: 121
|
Verfasst am:
Sa 07 Sep, 2002 16:25 |
  |
| Hugo hat folgendes geschrieben: |
Hi Fabro!
Dankeschön!
Gruß,
Hugo |
 |
_________________ „Der Computer ist die logische Weiterentwicklung des Menschen: Intelligenz ohne Moral.“ John James Osborne |
|
    |
 |
Fabro
phpBB2.de User


Anmeldungsdatum: 02.08.2002
Beiträge: 1172
Wohnort: Bayern
|
Verfasst am:
Sa 07 Sep, 2002 16:35 |
  |
Yo,
gern geschehen.
Fabro |
_________________ [img]http://cgi.gbgr.de/spruch.png?d=2[/img] |
|
   |
 |
|
|
|
|