[Fixed] Links (Commands, Download, etc) gone?

Discuss issues and requests related with the forum software
Coco
Posts: 771
Joined: 29 Sep 2013, 20:37
GitHub: cocobelgica

[Fixed] Links (Commands, Download, etc) gone?

09 Oct 2014, 09:04

What happened to the Commands, Download, Tutorial links?
Last edited by Coco on 09 Oct 2014, 21:59, edited 1 time in total.
User avatar
Nextron
Posts: 1361
Joined: 01 Oct 2013, 08:23
Location: Netherlands OS: Win7 x64 AHK: Unicode x32

Re: Links (Commands, Download, etc) gone?

09 Oct 2014, 09:47

Oh dear, they're probably out looking for >.
Coco
Posts: 771
Joined: 29 Sep 2013, 20:37
GitHub: cocobelgica

Re: Links (Commands, Download, etc) gone?

09 Oct 2014, 09:48

Maybe CrAHKo ate the links :)

Code: Select all

>^[__]==>
  /  \
User avatar
joedf
Posts: 7131
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada
Contact:

Re: Links (Commands, Download, etc) gone?

09 Oct 2014, 10:59

Hmm... I'll see what I can do... I did do a cache refresh to fix the Stray < or aka CrAHKo ...
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500 @ 4.00 GHz, 16GB DDR4 2733 MHz, NVIDIA GTX 1060 6GB | [About Me] | [ASPDM - StdLib Distribution]
[Populate the AHK MiniCity!] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library] | [About the AHK Foundation]
User avatar
joedf
Posts: 7131
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada
Contact:

Re: Links (Commands, Download, etc) gone?

09 Oct 2014, 12:08

lol, i had to use a webarchive... because i didnt remember the order :P
http://archive.today/p1Aul
Alright fixed. This shouldnt happen anymore. even with a cache refresh.
added the following to /boards/includes/functions.php @line 4743

Code: Select all

/* CREATE GLOBAL VAR FOR AHK VERSION - from included file */
		'AHK_VERSION'		=> @file_get_contents('/***home***/download/1.1/version.txt'),
this creates a global var {AHK_VERSION} that can be used in templates, anywhere.
and added this to breadcrumbs.html

Code: Select all

<a target="_self" href="/boards/viewtopic.php?f=5&t=59"><b>IRC Channel</b></a> | <a target="_blank" href="/docs/commands/index.htm"><b>Commands</b></a> | <a target="_blank" href="/docs/Tutorial.htm"><b>Tutorial</b></a> | <a target="_blank" href="/download/ahk-install.exe"><b>Download</b></a> - {AHK_VERSION}&nbsp;&nbsp;&nbsp;&nbsp;
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500 @ 4.00 GHz, 16GB DDR4 2733 MHz, NVIDIA GTX 1060 6GB | [About Me] | [ASPDM - StdLib Distribution]
[Populate the AHK MiniCity!] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library] | [About the AHK Foundation]
Coco
Posts: 771
Joined: 29 Sep 2013, 20:37
GitHub: cocobelgica

Re: [Fixed] Links (Commands, Download, etc) gone?

09 Oct 2014, 22:00

Thanks joedf :)
User avatar
joedf
Posts: 7131
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada
Contact:

Re: [Fixed] Links (Commands, Download, etc) gone?

09 Oct 2014, 22:23

;) no problem
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500 @ 4.00 GHz, 16GB DDR4 2733 MHz, NVIDIA GTX 1060 6GB | [About Me] | [ASPDM - StdLib Distribution]
[Populate the AHK MiniCity!] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library] | [About the AHK Foundation]
User avatar
joedf
Posts: 7131
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada
Contact:

Re: [Fixed] Links (Commands, Download, etc) gone?

10 May 2015, 00:39

updated this globar var. same file, around line 5104. inside the function page_header

Code: Select all

		/* CREATE GLOBAL VAR FOR AHK VERSION - from included file */
		'AHK_VERSION'		=> @file_get_contents('/home *****/download/1.1/version.txt'),
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500 @ 4.00 GHz, 16GB DDR4 2733 MHz, NVIDIA GTX 1060 6GB | [About Me] | [ASPDM - StdLib Distribution]
[Populate the AHK MiniCity!] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library] | [About the AHK Foundation]
User avatar
joedf
Posts: 7131
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada
Contact:

Re: [Fixed] Links (Commands, Download, etc) gone?

10 May 2015, 01:05

added this in navbar_header.html of simplicity around line 60

Code: Select all

<li class="tab" data-responsive-class="small-icon icon-chat">
					<a class="nav-link" target="_self" href="/boards/viewtopic.php?f=5&t=59"><b>IRC Channel</b></a>
				</li>
				<li class="tab" data-responsive-class="small-icon icon-book-open">
					<a class="nav-link" target="_blank" href="/docs/commands/index.htm"><b>Commands</b></a>
				</li>
				<li class="tab" data-responsive-class="small-icon icon-circle-info">
					<a class="nav-link" target="_blank" href="/docs/Tutorial.htm"><b>Tutorial</b></a>
				</li>
				<li class="tab" data-responsive-class="small-icon icon-download">
					<a class="nav-link" target="_blank" href="/download/ahk-install.exe"><b>Download</b>&nbsp;-&nbsp;{AHK_VERSION}</a>
				</li>
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500 @ 4.00 GHz, 16GB DDR4 2733 MHz, NVIDIA GTX 1060 6GB | [About Me] | [ASPDM - StdLib Distribution]
[Populate the AHK MiniCity!] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library] | [About the AHK Foundation]
User avatar
joedf
Posts: 7131
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada
Contact:

Re: [Fixed] Links (Commands, Download, etc) gone?

09 Dec 2015, 23:18

ok, i see the "download - " from https://autohotkey.com/boards/viewtopic.php?f=3&t=9867
is caused by

Code: Select all

file_get_contents(): http:// wrapper is disabled in the server configuration by allow_url_fopen=0
so http://autohotkey.com/download/1.1/version.txt wont work...
and neither will the hardcoded-absolute path will not work either because of ultra restrictive directory permissions...
----
tank wrote:@mention tank
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500 @ 4.00 GHz, 16GB DDR4 2733 MHz, NVIDIA GTX 1060 6GB | [About Me] | [ASPDM - StdLib Distribution]
[Populate the AHK MiniCity!] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library] | [About the AHK Foundation]
User avatar
tank
Posts: 2748
Joined: 28 Sep 2013, 22:15
Facebook: charlie.simmons.7334
Google: ttnnkkrr
GitHub: ttnnkkrr
Location: Irving TX
Contact:

Re: [Fixed] Links (Commands, Download, etc) gone?

11 Dec 2015, 16:12

We only needed url when we were loading forum in both domains
'AHK_VERSION' => @file_get_contents('../download/1.1/version.txt'), works just fine now
We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
https://www.facebook.com/ahkscript.org
If you have forum suggestions please submit a pull request
Thanks Tank :thumbup:
User avatar
joedf
Posts: 7131
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada
Contact:

Re: [Fixed] Links (Commands, Download, etc) gone?

11 Dec 2015, 17:31

Ok great. :)
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500 @ 4.00 GHz, 16GB DDR4 2733 MHz, NVIDIA GTX 1060 6GB | [About Me] | [ASPDM - StdLib Distribution]
[Populate the AHK MiniCity!] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library] | [About the AHK Foundation]

Return to “Forum Issues”

Who is online

Users browsing this forum: Bing [Bot] and 18 guests