Custom Post Reputation

← News & Stuff — Started 26 Aug, 2010

(1 Sep, 2010 12:58 am)leesester Wrote:  The references to that js are in the header and headerinclude I think. Are you using custom templates there that needed reverting?

Ah yes I am using a custom theme I made (over several months as I'm no CSS/PHP expert heh) and I bet anything you are right about this!

I'm not sure where or which files to go looking in to fix this. I just tried searching the header template and can't find any referrences to "popup_menu.js?ver=" anywhere but then again, I'm likely in the wrong file/area all together lol
0  
Hi - I just did a view source on your website - you have pop-up js in your header include. It is in the ungrouped templates in your templates list Smile
[Image: leelink.gif]
( Loves Opera 11.50)
0  
(1 Sep, 2010 12:36 pm)leesester Wrote:  Hi - I just did a view source on your website - you have pop-up js in your header include. It is in the ungrouped templates in your templates list Smile

Yes! Thank you! There it was sitting hah I have made the changes and am now a happy camper!

One thing that would be awesome though if it's possible (perhaps with a bit of javascript) is to make the count of ranks only show above posts if the option is 1 or > meaning all options with "0" are hidden so as not to clutter up a post heh.

I have 15 that I'm using on my site now so the bar along top is rather long.

Since I fail to explain things coherently I've drafted up a little picture of what I'm after Tongue

[Image: rated.png]
0  
Well, I have not actually installed this yet as I use X threads, and I have a lot of first posts that fall outside the plug in scope - and its the first posts that I want to rate - in fact, I would love an option where we could choose first post or all posts.

Point is - I cant see how the plugin is activating and appearing in the templates and so I cant really help. Sorry.
[Image: leelink.gif]
( Loves Opera 11.50)
0  
Strange, I made the change to the file on line 397 to:
Code:
$query = $db->simple_select("myn_postreptags_log", "*", "uid = '".$mybb->user['uid']."' OR uid = '0' AND ipaddress = '".$db->escape_string($mybb->session->ipaddress)."'");

But I continue to get the error:
Quote:There was an error voting for this post.

You (or someone at your IP address) has already voted on this post.

Are there any other solutions for this?
0  
Do you have guest voting turned on? I've tried out some scenarios in a test database and it should only list by IP address when a guest has voted.

I guess for your website, it might be worth turning off guest voting and removing the IP address check from the query...
0  
xomp
10 Sep, 2010, 6:32 pm (This post was last modified: 10 Sep, 2010 9:15 pm by xomp.)
(10 Sep, 2010 7:44 am)Tomm Wrote:  Do you have guest voting turned on? I've tried out some scenarios in a test database and it should only list by IP address when a guest has voted.

I guess for your website, it might be worth turning off guest voting and removing the IP address check from the query...

Yeah I have always had guest voting disabled (at least not selected in the configuration).

The following users groups are not enabled for post voting:
Guests
Awaiting Activation
Banned

How would I remove the IP address check from the query exactly? (I could possibly figure it out but don't want to take the chance)

I'm guessing this:
Code:
$query = $db->simple_select("myn_postreptags_log", "*", "uid = '".$mybb->user['uid']."'");

But as I mentioned above I'm no PHP expert.
0  
That query should be OK xomp. I'll go over the guest posting checks again over this weekend...
0  
(11 Sep, 2010 11:57 pm)Tomm Wrote:  That query should be OK xomp. I'll go over the guest posting checks again over this weekend...

The query doesn't break anything, but it doesn't seem to work either (just tested). It's very strange. Perhaps I should just up and enable voting for everyone including guests?
0  
That's very strange indeed. I wonder why it doesn't work like that here...

I'll definitely have a look into it this week though.
0  

User(s) browsing this thread: 1 Guest(s)