News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Advanced Reputation System

Started by Fustrate, March 25, 2008, 12:51:10 PM

Previous topic - Next topic

sawz

Quote from: LLandL on December 02, 2009, 12:38:03 PM
Installed this and all is working fine apart from when viewing reputation given in a profile the link to the next page (see image) doesn't work, When I click on the 2 it takes me back to my profile.

Any help with fixing this would be very much appreciated.

I'm running 1.1.11 on a custom theme.

i'm finding the same issues myself. to view my reputation i go to:
action=profile;u=1;sa=reputation

this has to do with pagination, the next set of rep comments are here:
profile;u=1;sa=reputation;start=15

but my link says:
action=profile;area=reputation;u=1;start=15

if i could find where to edit this i would but haven't found it yet.

thanks to whomever is aware of this. and sorry if i missed it somewhere.
keep smiling, they'll always wonder what your up too.....

adbrad

Quote from: Ha² on January 28, 2010, 09:37:06 AM
Thanks for helping him, adbrad. That conversation happened at 3 AM my time, so I was off, heh.

no problems like to help where i can.

QuoteYou can also install it on multiple themes if you want:
QuoteTo install this modification in any theme other than Default, please click the box next to "Install in Other Themes" at the bottom of this page and check the applicable themes.

the reason i never metioned this was he said he was using 1.1.11 and didn't think this was a option in that version

Nick Whetstone

I can't re-create this issue. The pagination is working fine for me.

Are you on a custom theme?



As you can see, the second page shows fine for me.
The artist formerly known as (Ha)²

Former Support Specialist

Please do not solicit support via PM. Here's why!

sawz

Quote from: Ha² on January 28, 2010, 04:48:03 PM
I can't re-create this issue. The pagination is working fine for me.

Are you on a custom theme?
2nd page works fine for me to if i manually type in the url.
yes there is a custom theme but the links behave the same way using the default theme as well.

wierd its profile;u=1;sa=reputation;start=15 this is correct

but when i click the pagination link it says:
action=profile;area=reputation;u=1;start=15

i need to find that code in the files and edit it.
keep smiling, they'll always wonder what your up too.....

Nick Whetstone

I believe the function you're referring to is defined here in Profile.php:function reputation($memID)
Look at the bottom of that function. This is what it shows for me: $context['page_index'] = constructPageIndex($scripturl . '?action=profile;sa=reputation;u=' . $memID, $context['start'], $total_actions, $amount);
What does it show for you?
The artist formerly known as (Ha)²

Former Support Specialist

Please do not solicit support via PM. Here's why!

sawz

i thought that was it, i'm looking at the order the link is coded,  profile, reputation, member id whereas a correct link is profile, user id, reputation.

you following what i mean?
what your showing is what i also have.
keep smiling, they'll always wonder what your up too.....

Nick Whetstone

#1786
If I understand correctly, you want to re-order the URLs, correct? If so, try changing the above line to this:
$context['page_index'] = constructPageIndex($scripturl . '?action=profile;u=' . $memID . ';sa=reputation', $context['start'], $total_actions, $amount);

That will make it:
Profile action -> User ID -> Reputation

By the way, I wasn't sure what you meant by "correct link." I'm not the original owner of the code (just took it over last week), so I'm not sure what the original's developer's goals were URL-wise, but I do know that he got it to work, and work very well.
The artist formerly known as (Ha)²

Former Support Specialist

Please do not solicit support via PM. Here's why!

sawz

that worked, by switching it around we can now happily click the pagination and see all our rep comments.  8)
keep smiling, they'll always wonder what your up too.....

LC

Quote from: LC on January 20, 2010, 07:08:16 PM
Hey there, I am running 2.0 RC2 Curve, and hopefully someone can tell me what I can do to fix this, when myself (which I am the owner) or any member attempt to look at our reputation messages we get a "You are not allowed to access this section."

I've checked all the permissions, nothing is showing up in the error log either.

Any suggestions?
Bump.

Nick Whetstone

#1789
Quote from: LC on January 28, 2010, 10:08:11 PM
Quote from: LC on January 20, 2010, 07:08:16 PM
Hey there, I am running 2.0 RC2 Curve, and hopefully someone can tell me what I can do to fix this, when myself (which I am the owner) or any member attempt to look at our reputation messages we get a "You are not allowed to access this section."

I've checked all the permissions, nothing is showing up in the error log either.

Any suggestions?
Bump.

Woops, I seem to have missed the post.
Hmm... Have you manually modified the Karma.php, Karma.template.php, and/or ManagePermissions.php files any?
The artist formerly known as (Ha)²

Former Support Specialist

Please do not solicit support via PM. Here's why!

LC

Well I am unsure about that, do you think it is a conflict with another mod?

I've used this mod with 1.1.x and had no issues with other mods.

Here is a list of mods I use.

1.   SMF Gallery Lite    2.0.9   
2.   Aeva ~ Auto-Embed Video & Audio    7.0   
3.   Twitter and Facebook Publisher mod    2.1     
4.   SimplePortal    2.3.1   
5.   Moderator and Administrator Comment Tags    1.7   
6.   SMFShop    3.1.5   
7.   Treasury    2.02   
8.   SMF Arcade    2.5 RC1 
9.   Advanced Reputation System    1.8     
10.   Last Users In 24 Hours    1.0     
11.   Favourite (Favorite) Boards    1.1     
12.   Downloads System    1.2.7     
13.   AutoKeywords    1.1 

Let me know if I should attach any files. Thanks Ha2 :)

Nick Whetstone

Please attach your Karma.template.php, Karma.php, and ManagePermisisons.php files. I'll switch the contents of the first two out with the original files and make sure everything is added in ManagePermissions.
The artist formerly known as (Ha)²

Former Support Specialist

Please do not solicit support via PM. Here's why!

LC


LLandL

Quote from: sawz on January 28, 2010, 08:58:23 PM
that worked, by switching it around we can now happily click the pagination and see all our rep comments.  8)

Thanks for the help with this sawz! I appreciate it.

Nick Whetstone

#1794
Quote from: LLandL on January 29, 2010, 05:34:26 AM
Quote from: sawz on January 28, 2010, 08:58:23 PM
that worked, by switching it around we can now happily click the pagination and see all our rep comments.  8)
Quote from: sawz on January 28, 2010, 08:58:23 PM
that worked, by switching it around we can now happily click the pagination and see all our rep comments.  8)
Thanks for the help with this sawz! I appreciate it.

Glad the solution worked. :) If you find any other problems, don't hesitate to let me know. I think I'll include the edited line I posted above in any future versions of the Mod for 1.1.x to hopefully prevent any new sightings of this.
Quote from: LC on January 29, 2010, 01:01:52 AM
Here ya go :)

I will swap out the files when I get home, LC. Sorry about the wait-- I just don't have files with me right now.
The artist formerly known as (Ha)²

Former Support Specialist

Please do not solicit support via PM. Here's why!

LC


Nick Whetstone

#1796
Quote from: LC on February 01, 2010, 08:08:02 PM
Any luck Ha2?
Sadly, none. All the edits appear to have been made. It seems that it could end up being a conflict with another mod, but I have no idea which Mod it could be.


A real hail-mary attempt that very possibly won't work, here: have you cleared the file cache? Also, did the Mod work at one time? Or has it never worked?

EDIT: did the Mod fail any tests on installation? Or did it install cleanly?
The artist formerly known as (Ha)²

Former Support Specialist

Please do not solicit support via PM. Here's why!

LC

Quote from: Ha² on February 05, 2010, 08:15:37 PM
Quote from: LC on February 01, 2010, 08:08:02 PM
Any luck Ha2?
Sadly, none. All the edits appear to have been made. It seems that it could end up being a conflict with another mod, but I have no idea which Mod it could be.


A real hail-mary attempt that very possibly won't work, here: have you cleared the file cache? Also, did the Mod work at one time? Or has it never worked?

EDIT: did the Mod fail any tests on installation? Or did it install cleanly?
The mod did not fail any tests, it was the first mod I installed on a clean install of RC2 curve. It has never allowed anyone to view the reputation given. The other mods that I have that could affect profiles would be Ultimate Profile and SMF Arcade. I've cleared the file cache a few times, with no result. It seems to be a permission problem as far as being able to view it.

Perhaps I should uninstall then reinstall?

nadrojcote

I am trying to install this mod on my 2.0rc2 site and for some reason when you hit the submit button to submit your rep it doesnt appear to be calling this function:


Reputation.prototype.sendRep = function (sSessionId)
{
   var i, x = new Array();
   var form = document.forms.reputation_form.elements;
   x[x.length] = 'reputation_comment=' + escape(form['reputation_comment'].value.replace(/&#/g, "&#").php_to8bit()).replace(/\+/g, "%2B");
   x[x.length] = 'topic=' + parseInt(form['topic'].value);
   x[x.length] = 'uid=' + parseInt(form['uid'].value);
   x[x.length] = 'm=' + parseInt(form['m'].value);
   x[x.length] = 'type=' + (form['type'][0].checked ? form['type'][0].value : form['type'][1].value);
   x[x.length] = document.getElementById('sessionid').name + '=' + document.getElementById('sessionid').value;


Nothing gets saved to the db and that function is in my script.js

Any ideas?

Nick Whetstone

Quote from: nadrojcote on February 08, 2010, 12:01:47 PM
I am trying to install this mod on my 2.0rc2 site and for some reason when you hit the submit button to submit your rep it doesnt appear to be calling this function:


Reputation.prototype.sendRep = function (sSessionId)
{
   var i, x = new Array();
   var form = document.forms.reputation_form.elements;
   x[x.length] = 'reputation_comment=' + escape(form['reputation_comment'].value.replace(/&#/g, "&#").php_to8bit()).replace(/\+/g, "%2B");
   x[x.length] = 'topic=' + parseInt(form['topic'].value);
   x[x.length] = 'uid=' + parseInt(form['uid'].value);
   x[x.length] = 'm=' + parseInt(form['m'].value);
   x[x.length] = 'type=' + (form['type'][0].checked ? form['type'][0].value : form['type'][1].value);
   x[x.length] = document.getElementById('sessionid').name + '=' + document.getElementById('sessionid').value;


Nothing gets saved to the db and that function is in my script.js

Any ideas?
Any errors in the log?
The artist formerly known as (Ha)²

Former Support Specialist

Please do not solicit support via PM. Here's why!

Advertisement: