1
Wolfseye
WFDOWNLOADS - Module / Trouble with Forum Link
  • 2004/7/25 10:07

  • Wolfseye

  • Just popping in

  • Posts: 11

  • Since: 2004/6/29


I have installed WFDOWNLOADS and its working nice so far. But i have a problem. With a new File i can make a forum post to talk about that file, but the function seems not to take the right forum URL.

So the WFDOWNLOADS is searching for the Module Directory in the Root of the Webspace. But the whole XOOPS is in a subfolder of the Webspace and is working fine, all things.... even the forum.

So the site knows, where the forum is, and is happy with that but the WFDOWNLOADS Module is looking for the Forum in the Root Path.

There was a file called wfdownloads_singlefile.html and in this File were the following lines:

Quote:

<{if $down.forumid > 0}>

<{$lang_inforum}> <{$lang_inforum}>


Its poiting to the wrong path... so I fixed it...

Quote:


But its still not changing the link to the forum besides a download file.

And there is another file, downloadinfo.php, where this function is:

Quote:

$xoopsforumModule = &$modhandler->getByDirname("newbb");
(the 1st character is wrong copied, sorry ;) )

So, how to make WFDOWNLOADS to understand that the forum path has to be changed ???

Wolfseye

2
Mithrandir
Re: WFDOWNLOADS - Module / Trouble with Forum Link

<{if $down.forumid 0}>
<
a href='<{$xoopurl}>/modules/newbb/viewforum.php?forum=<{$down.forumid}>'>
<
img src='<{$xoops_url}>/modules/<{$xoops_module}>/images/icon/forum.gif' align="absmiddle" alt='<{$lang_inforum}>' /> <{$lang_inforum}>

The typo is in the

<{$xoopurl}> should be <{$xoops_url}>

Change the template, upload it to the webserver and update the downloads module and it should take effect.

3
Wolfseye
Re: WFDOWNLOADS - Module / Trouble with Forum Link
  • 2004/7/25 10:29

  • Wolfseye

  • Just popping in

  • Posts: 11

  • Since: 2004/6/29


I use 2.0.4 ....


Wolfseye

Login

Who's Online

364 user(s) are online (258 user(s) are browsing Support Forums)


Members: 0


Guests: 364


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits