Warning: The author of this contribution does not provide support for it anymore.

Count Down

Hyperlinks On Countdown - Count Down

Hyperlinks On Countdown

by keith10456 » Sat Sep 11, 2010 4:59 pm

In the next version would it be possible to add a link to the Countdown? This way the member/visitor can click it for more information.
User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm
Contact:

Re: Hyperlinks On Countdown

by wang5555 » Sun Sep 12, 2010 9:13 pm

keith10456 wrote:In the next version would it be possible to add a link to the Countdown? This way the member/visitor can click it for more information.

Thanks for your suggestion. :)
It is more blessed to give than to reveive, welcome to letter, thanks & good-bye!
Good luck ^_^
Welcome to my forum!!
http://wang5555.hopto.org/phpBB3/
p.s. Shut down computer before 11 clock night!!!
User avatar
wang5555
Translator
Posts: 602
Joined: Wed Oct 27, 2004 2:57 pm
Location: Taiwan

Re: Hyperlinks On Countdown

by Leinad4Mind » Wed Jul 27, 2011 1:12 am

Here it is:

includes/functions.php

FIND

Code: Select all

'CURRENT_COUNT_DOWN'      => $config['current_count_down'],


ADD AFTER

Code: Select all

'LINK_COUNT_DOWN'      => $config['link_count_down'],



includes/acp/acp_board.php

FIND

Code: Select all

'current_count_down'            => array('lang' => 'CURRENT_COUNT_DOWN',            'validate' => 'string',   'type' => 'text:40:255', 'explain' => false),


ADD AFTER

Code: Select all

 'link_count_down'            => array('lang' => 'LINK_COUNT_DOWN',            'validate' => 'string',   'type' => 'text:40:255', 'explain' => false),



language/en/acp/board.php

FIND

Code: Select all

'CURRENT_COUNT_DOWN'               => 'The message when it reached',


ADD AFTER

Code: Select all

'LINK_COUNT_DOWN'               => 'The url for the count down',



styles/THEME/template/overall_header.html

FIND

Code: Select all

<!-- INCLUDE count_down.html -->


REPLACE-WITH

Code: Select all

<a href="{LINK_COUNT_DOWN}"><!-- INCLUDE count_down.html --></a>



AND LAST THING, SQL ADD:

Code: Select all

INSERT INTO `gta_config` (`config_name`, `config_value`, `is_dynamic`) VALUES
('link_count_down', 'http://', 0);


ENJOY! :mrgreen:
Last edited by Leinad4Mind on Wed Jul 27, 2011 1:16 pm
Want to access all my portuguese MOD and Extension translations?
Become my Patreon!
phpBB Portugal Translator and Moderator
User avatar
Leinad4Mind
Translator
Posts: 852
Joined: Sun Jun 01, 2008 11:08 pm
Contact:

Re: Hyperlinks On Countdown

by wang5555 » Wed Jul 27, 2011 8:15 am

Thanks your help.
But, I think that it lacks to edit "count_down.html" file.
It is more blessed to give than to reveive, welcome to letter, thanks & good-bye!
Good luck ^_^
Welcome to my forum!!
http://wang5555.hopto.org/phpBB3/
p.s. Shut down computer before 11 clock night!!!
User avatar
wang5555
Translator
Posts: 602
Joined: Wed Oct 27, 2004 2:57 pm
Location: Taiwan

Re: Hyperlinks On Countdown

by Leinad4Mind » Wed Jul 27, 2011 1:11 pm

x'D Thanks for warning ;) But I've made the changes in overall_header instead. :P

(I've edited my last post with that changes that I've forget to put)

Cheers
Want to access all my portuguese MOD and Extension translations?
Become my Patreon!
phpBB Portugal Translator and Moderator
User avatar
Leinad4Mind
Translator
Posts: 852
Joined: Sun Jun 01, 2008 11:08 pm
Contact: