Kunena 7.0.4 Released

The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0

Question Kunena report function

  • C0n
  • C0n's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Only the strongest will survive
More
15 years 4 months ago - 15 years 4 months ago #79842 by C0n
Replied by C0n on topic Re: Kunena report function
www.your-domain.com/forums/report

Yeah well with kunena 1.5.13 It has a stranger effect it redirects you to the forum home but your url looks like this.

www.your-domain.com/forums/id-0#0

Also just testing other url's for K1.6 it seems to want to report every submitted url O_O
www.kunena.org/forum/mylatest/report
www.kunena.org/forum/search/report
www.kunena.org/forum/newtopic/report
Last edit: 15 years 4 months ago by C0n.

Please Log in or Create an account to join the conversation.

More
15 years 4 months ago #81081 by etusha
Replied by etusha on topic Re: Kunena report function
Please can someone try this patch

Code:
# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: /var/www/kunena/trunk/1.6 # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: build/build.number --- build/build.number Base (BASE) +++ build/build.number Locally Modified (Based On LOCAL) @@ -1,3 +1,3 @@ #Build Number for ANT. Do not edit! -#Fri Jan 07 13:03:47 EET 2011 -build.number=4165 +#Thu Jan 13 12:54:14 CET 2011 +build.number=4166 Index: components/com_kunena/template/default/plugin/report/report.php --- components/com_kunena/template/default/plugin/report/report.php Base (BASE) +++ components/com_kunena/template/default/plugin/report/report.php Locally Modified (Based On LOCAL) @@ -24,6 +24,12 @@ $this->id = JRequest::getInt('id', 0); $this->catid = JRequest::getInt('catid', 0); + +if(!$this->id){ + echo JText::_('YOU CAN NOT REPORT THIS'); + return; +} + \ No newline at end of file ?> <div class="kblock kreport">

Please Log in or Create an account to join the conversation.

More
15 years 4 months ago #81142 by xillibit
Replied by xillibit on topic Re: Kunena report function
Thanks for this patch, i wil take a look

I don't provide support by PM, because this can be useful for someone else.

Please Log in or Create an account to join the conversation.

  • C0n
  • C0n's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Only the strongest will survive
More
15 years 4 months ago - 15 years 4 months ago #81154 by C0n
Replied by C0n on topic Re: Kunena report function
Hmm it looks good. Appears to be using "$this->id = JRequest::getInt('id', 0);" To check if the user requesting the url is a logged in registered user or not.

But i dont think this is realy the method to be using. I think it should not even be a valid url and redirect you to the error page. just like if you requested something like, www.kunena.org/This_is_not_a_real_page_give_me_a-error

I would rather see a 404 page error than be looking at that, "YOU CAN NOT REPORT THIS"
Last edit: 15 years 4 months ago by C0n.

Please Log in or Create an account to join the conversation.

More
15 years 4 months ago #81186 by etusha
Replied by etusha on topic Re: Kunena report function
--- To check if the user requesting the url is a logged in registered user or not.

@C0n you right
tomorrow I will upload new patch :)

Please Log in or Create an account to join the conversation.

More
15 years 4 months ago - 15 years 4 months ago #81265 by xillibit
Replied by xillibit on topic Re: Kunena report function

I don't provide support by PM, because this can be useful for someone else.
Last edit: 15 years 4 months ago by xillibit.

Please Log in or Create an account to join the conversation.

Time to create page: 0.262 seconds