Reputation system having troubles

Support for mods released by phpbbmodders.net found at either https://github.com/phpbbmodders/ or the MODDB at http://www.phpbb.com
Forum rules
Please only request support for mods released by phpbbmodders.net found at either https://github.com/phpbbmodders/ or the MODDB at http://www.phpbb.com
aster
New member
New member
Posts: 8
Joined: 26 Jul 2014, 14:07

Reputation system having troubles

Post by aster »

It seems that I'm worse at this than I thought. I run a small board for a roleplaying game that I host in my hometown, and my users have been asking for a way to add an in-forum equivalent to a Like or a +1. What I found was the reputation system created by Pico88. I installed it with AutoMOD and no errors were reported. I can get things to show up in prosilver, but in my board's native style (DarkFX) it does not show up at all.

It seems obvious that something isn't getting translated from prosilver to DarkFX, despite being based on the same style . I just cannot for the life of me figure out how to get things showing up from one to the other. A friend recommended this as a place that can get things done, so I was wondering if I can be pointed in the right direction for how to fix this?

Thanks in advance for any help! I included a bunch of information below; let me know if anything else is needed? :beer:

Site: http://www.souls-ne.com/forum
Style: https://www.phpbb.com/customise/db/style/darkfx/
Peralta
New member
New member
Posts: 29
Joined: 14 Feb 2009, 20:28

Re: Reputation system having troubles

Post by Peralta »

Open the install xml file from the mod in your browser and you will see all the edits that are needed...or if using automod click on the details link of the mod, scroll to the bottom of the page and apply prosilver to your style.
aster
New member
New member
Posts: 8
Joined: 26 Jul 2014, 14:07

Re: Reputation system having troubles

Post by aster »

Woot! That seemed to do... some... things. And it looks like they're good things--except these things, which were in red.

Code: Select all

styles/darkfx/imageset/imageset.cfg
Find
img_icon_user_warn = icon_user_warn.gif*20*20
Add After
img_icon_rate_good = icon_rate_good.gif*20*20
img_icon_rate_bad = icon_rate_bad.gif*20*20
The Find specified by the MOD could not be found

Code: Select all

styles/darkfx/template/index_body.html
Find
	<p>{TOTAL_POSTS} • {TOTAL_TOPICS} • {TOTAL_USERS} • {NEWEST_USER}</p>
Add After
<!-- ENDIF -->

<!-- IF RS_TOPLIST -->
	<h3>{L_RS_TOPLIST}</h3>
	<p>{L_RS_TOPLIST_EXPLAIN}: <strong>{RS_TOPLIST}</strong></p>
The Find specified by the MOD could not be found

Code: Select all

styles/darkfx/template/viewtopic_body.html
Find
	<div id="p{postrow.POST_ID}" class="post <!-- IF postrow.S_ROW_COUNT is odd -->bg1<!-- ELSE -->bg2<!-- ENDIF --><!-- IF postrow.S_UNREAD_POST --> unreadpost<!-- ENDIF --><!-- IF postrow.S_POST_REPORTED --> reported<!-- ENDIF --><!-- IF postrow.S_ONLINE and not postrow.S_IGNORE_POST --> online<!-- ENDIF -->">
In-Line Find
<!-- IF postrow.S_ONLINE and not postrow.S_IGNORE_POST --> online<!-- ENDIF -->
The In-Line Find specified by the MOD could not be found. The Find specified by the MOD could not be found

Code: Select all

styles/darkfx/template/viewtopic_body.html
Find
			<dl class="postprofile" id="profile{postrow.POST_ID}">
Replace With
			<dl class="postprofile" id="profile{postrow.POSTER_ID}">
The Find specified by the MOD could not be found
I'm not quite sure what to make of these things, as we've now exceeded the level of my smart and entered into the level of my dumb. :doh:
Peralta
New member
New member
Posts: 29
Joined: 14 Feb 2009, 20:28

Re: Reputation system having troubles

Post by Peralta »

Send me those 4 files, you can upload them to a download server: eg zippyshare
aster
New member
New member
Posts: 8
Joined: 26 Jul 2014, 14:07

Re: Reputation system having troubles

Post by aster »

I sent the dropbox link via PM. Thank you very much for looking into this and helping out, Peralta. You rock.
Peralta
New member
New member
Posts: 29
Joined: 14 Feb 2009, 20:28

Re: Reputation system having troubles

Post by Peralta »

Tested and works for me!

if anyone needs...

Open: styles/darkfx/imageset/imageset.cfg
add at the end Add these lines on a new blank line after the preceding line(s) to find

Code: Select all

img_icon_rate_good = icon_rate_good.gif*20*20
img_icon_rate_bad = icon_rate_bad.gif*20*20
Open: styles/darkfx/template/index_body.html
Find This may be a partial find and not the whole line

Code: Select all

<!-- IF NEWEST_USER -->
		<div class="forum-container">
			<ul class="topiclist">
				<li class="header">
					<dl class="icon">
						<dt>{L_STATISTICS}</dt>
					</dl>
				</li>
			</ul>
			<ul class="topiclist stat-info">
				<li>{TOTAL_POSTS} • {TOTAL_TOPICS} • {TOTAL_USERS} • {NEWEST_USER}</li>
			</ul>
		</div>
<!-- ENDIF -->
Add after Add these lines on a new blank line after the preceding line(s) to find

Code: Select all

<!-- IF RS_TOPLIST -->
		<div class="forum-container">
			<ul class="topiclist">
				<li class="header">
					<dl class="icon">
						<dt>{L_RS_TOPLIST}</dt>
					</dl>
				</li>
			</ul>
			<ul class="topiclist stat-info">
				<li>{L_RS_TOPLIST_EXPLAIN}: <strong>{RS_TOPLIST}</strong></li>
			</ul>
		</div>
<!-- ENDIF -->
Open: styles/darkfx/template/viewtopic_body.html
Find This may be a partial find and not the whole line

Code: Select all

			<ul class="post-row<!-- IF postrow.S_POST_REPORTED -->-reported<!-- ENDIF -->">
Add after Add these lines on a new blank line after the preceding line(s) to find

Code: Select all

			<ul class="post-row<<!-- IF S_REPUTATION --><!-- IF postrow.S_RS_POST_HIGHLIGHT --> highlight<!-- ENDIF --><!-- IF postrow.S_RS_HIDE_POST --> hidden<!-- ENDIF --><!-- ENDIF -->">
Find This may be a partial find and not the whole line

Code: Select all

			<dl class="postprofile<!-- IF postrow.S_ONLINE and not postrow.S_IGNORE_POST --> online<!-- ENDIF -->" id="profile{postrow.POS_ID}">
Replace with Replace the preceding lines with the following

Code: Select all

			<dl class="postprofile<!-- IF postrow.S_ONLINE and not postrow.S_IGNORE_POST --> online<!-- ENDIF -->" id="profile{postrow.POSTER_ID}">
Go to ACP and refresh your style: imageset, theme and template.
Purge cache.

Now this is very important, if your message view (viewtopic_body) misses the icons, it looks like this:

{RS_ADD_POINTS}
0
{RS_SUBTRACT_POINTS}

That's why you have to add manually from ACP-> Styles-> Imagesets-> Edit and look for "Rate good" and "bad Rate".

The following is enabled on your MOD ACP settings, set the permissions of forums and user groups.

See the https://github.com/Pico/phpBB-Reputatio ... m/wiki/FAQ, for more questions.
aster
New member
New member
Posts: 8
Joined: 26 Jul 2014, 14:07

Re: Reputation system having troubles

Post by aster »

Peralta, I sent a PM to you, but I'll post my actions here for anyone else who may be dealing with the same thing.

I made backup copies of each file (changing their extension on my webhost to .bak) and replaced them with new versions of file, with the above-noted edits.

Once the new files were in place, the style was refreshed in theme, template, and imageset as instructed.

I cleared my browser cache and loaded the forum.

Nothing related to the reputation system appeared in posts on the DarkFX style, but the reputation system continued to function as intended on the prosilver style.
Peralta
New member
New member
Posts: 29
Joined: 14 Feb 2009, 20:28

Re: Reputation system having troubles

Post by Peralta »

Hi, have you checked that the mod is activated from acp, assigned user permissions and forums, you have manually verified that rating icons appear in the imageset your style?

Please, read the instructions again to possible problems in the FAQ
aster
New member
New member
Posts: 8
Joined: 26 Jul 2014, 14:07

Re: Reputation system having troubles

Post by aster »

Done and done; I've checked over the FAQ and followed their steps, but I'm still not seeing things show up. It's activated and functioning with prosilver, the icons and data are present for DarkFX. Still, no dice. I'm not sure what I've done wrong. :\
Peralta
New member
New member
Posts: 29
Joined: 14 Feb 2009, 20:28

Re: Reputation system having troubles

Post by Peralta »

Hi, I'm in your forum, i sent you a PM
aster
New member
New member
Posts: 8
Joined: 26 Jul 2014, 14:07

Re: Reputation system having troubles

Post by aster »

Gotcha. Made the change to your permissions.
aster
New member
New member
Posts: 8
Joined: 26 Jul 2014, 14:07

Re: Reputation system having troubles

Post by aster »

I've manually re-added the images that are in the imageset--and they show up just fine in ACP, but I'm still getting

{RS_ADD_POINTS}
0
{RS_SUBTRACT_POINTS}

Do I need to change the file path in the Template view_body.html?
aster
New member
New member
Posts: 8
Joined: 26 Jul 2014, 14:07

Re: Reputation system having troubles

Post by aster »

Mad, mad props to Peralta here. Peralta is a super hero.

Thank you SO MUCH for all of your time and help. My forum users love it, I love it, this is just absolutely great. Thank you!
NotSoGlorious
New member
New member
Posts: 2
Joined: 23 Oct 2014, 12:24

Re: Reputation system having troubles

Post by NotSoGlorious »

I'm also having the same problem. Everything has been installed correctly w/o errors via AutoMod, the edits have been made but the icons aren't showing. The style for me however is different, despite them not showing on the default prosilver either. Eveything else is working, such as the Rate User, Top List and Value Counter. Just not the images to rate good and bad. Any ideas?
Peralta
New member
New member
Posts: 29
Joined: 14 Feb 2009, 20:28

Re: Reputation system having troubles

Post by Peralta »

Provide forum link or if you prefer your default style, I will test on localhost.
Post Reply