News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Advanced Reputation System

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

Previous topic - Next topic

Bigguy


Bigguy

It seems this is what was stopping the comments. If I take out the edit you told me to do the comments come back.

Quote from: YodaOfDarkness on October 05, 2008, 02:00:42 PM
I'm surprised I never thought of that...

in /Sources/Profile-View.php find:
'comment' => $row['comment'],
and replace it with
'comment' => parsesmileys($row['comment']),
both times it appears

tk2012

Hey Yoda

I went ahead and upgraded to b4.0... ugggh.  I'm having a lot of trouble installing many mods that say they are compatible with b4.0. 

Anyway, with this one, the display.template.php file failed the test with the 5th and 6th edits.  I made those two edits myself and then uploaded the package.  Now, I get a template parse error when I try to get into a post...

QuoteThere was a problem loading the /Themes/default/Display.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
syntax error, unexpected '<'

What exactly do I do here?


Fustrate

If the 3rd and 4th were okay, you shouldn't do the 5th and 6th. That's why it says to ignore it.
Steven Hoffman
Former Team Member, 2009-2012

vagrant

smf 2.0 beta 4

Is there any simple edit so that only admin can see who sent what rep ?
ie, normal user only see's the comment, not who sent it unless they include their name in the comment.

Fustrate

ya, there is

In Profile.template.php, find:
$karma_received['executor']
and replace it with
$user_info['is_admin'] ? $karma_received['executor'] : '-'
And that'll show a dash in the box.

You also need to find:
function template_viewKarma()
{
global $context, $settings, $options, $scripturl, $modSettings, $txt;

and put
, $user_info
in that line of globals.
Steven Hoffman
Former Team Member, 2009-2012

Bigguy

Line 233 is the undefined index error for the uid that I posted earlier. Here is the code at that line:

// The user ID _must_ be a number, no matter what.
$uid = (int) $_POST['uid'];

Fustrate

and that error occurs when ______? And does it make anything not work?
Steven Hoffman
Former Team Member, 2009-2012

Bigguy

According to the error log it was a guest that did that one and also created the error on line 225 just above this error:

Undefined index: sa

So the whole block of code that is producing the error is this:

// A fix for templates that don't get edited correctly, and still show the old links.
if($_GET['sa'] == 'applaud' || $_GET['sa'] == 'smite')
redirectexit('action=reputation;uid=', $_GET['uid'], ';m=', $_GET['m'], ';topic=', $_GET['topic'], ';sesc=', $_GET['sesc'], '');

// If the mod is disabled, show an error.
if (empty($modSettings['karmaMode']))
fatal_lang_error('feature_disabled', true);

// The user ID _must_ be a number, no matter what.
$uid = (int) $_POST['uid'];


Everything still works though

vagrant

thanks for that YodaOfSpookness

Would send ya +rep if i could ;)

Sudhakar Arjunan

A small note before starting the topic.

When i come through the mod page here. My chrome showed me , that this page is suspecious and installing malware on the user system without there knowledge.

And when i clicked proceed anyway, my google chrome crashed.

Please check it once.

------------------------------------

And my install problem is ,

I have a clean smf 2.04 with no mods more than 5.

I have got two test failed in my display template which i have attached.

Kindly review it and help me to clear the errors and install it safely.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Fustrate

Ignore the two failed tests, just like it says to do.

and I'm willing to bet it was one of the advertisements on the top of the forum that caused Chrome to crash. I doubt tens of thousands of views for the first page would go by and suddenly there's malware there.
Steven Hoffman
Former Team Member, 2009-2012

Sudhakar Arjunan

Yes i have reported this to oldiesmann, and he said . We found that it a signature of a member which google things that it may be a malware.

Ok for my test failed. could i edit it or ignore it even after install.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Fustrate

Just ignore it, it's supposed to give an error (fixed in the new package, by the way)
Steven Hoffman
Former Team Member, 2009-2012

tk2012

I love the way in which it now pops up next to where you hit the heart instead of going to the top of the page previously.  Great mod!!!  Thanks SupremeYodaOfSpookness

Fustrate

That was a caching problem you were having :P it's always done that
Steven Hoffman
Former Team Member, 2009-2012

Sudhakar Arjunan

when i removed the earlier mod and replaced the new modified mod, i clicked on install and it shows no error.

But i have one quick question.

I have only few 20 mods in my forum and the installed mod shows as apply mod and in the installed page shows no mod.

Any ideas to it.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

tk2012

Well, I'm glad it works now!  This really is one of the best mods out there.

Fustrate

Quote from: asudhakar on October 15, 2008, 01:16:54 PM
when i removed the earlier mod and replaced the new modified mod, i clicked on install and it shows no error.

But i have one quick question.

I have only few 20 mods in my forum and the installed mod shows as apply mod and in the installed page shows no mod.

Any ideas to it.

I don't quite understand what you're saying - is there no [Install] button on the "Browse Packages" page?
Steven Hoffman
Former Team Member, 2009-2012

Sudhakar Arjunan

I have made a upgrade to our 2.0.4 beta by using the tables of existing 1.1.6.

When i go to download page, all mod says apply mod, but those are already installed.

Even in installed mod section, i found no mods shows as installed.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Advertisement: