News:

Join the Facebook Fan Page.

Main Menu

Simple Pokes

Started by Diego Andrés, February 02, 2011, 02:07:52 PM

Previous topic - Next topic

Bagheera

Quote from: grafitus on March 17, 2011, 12:17:34 PM
I solved that. Hope I'll release a version of the mod for that issue.

If I understand it right you have the fix for the problem and you are planing to release it, right?
Can you please release it  :'(

Thanks again  :)

UndergroundChic

couldn't get the pokes to show up here either.

honeywick

everyone loves this mod the one problem I have is that the number shown is not the right numbers of pokes
The pokes go through immediately
like i have pokes ill go and poke back then i will have no pokes but the poke on the menu bar says i still have pokes no matter how many times i refresh
or
it will say 4 pokes i go to it there will be just 2
any fix for this
thx

LC

Quote from: grafitus on February 10, 2011, 04:47:02 PM
Quote from: kaung on February 10, 2011, 03:05:02 PM
As for the ghost pokers, I meant the Poke button in menu says Pokes (#) but on the Pokes detail page said "There are no pokes".
This doesn't always happen but at a random reload of a page.
Looks like the Pokes Total kept coming up without anyone pokiing you.
Yep, I understand. :) To solve:

./Sources/Pokes.php
Code (Find) Select
$smcFunc['db_query']('', '
DELETE FROM {db_prefix}pokes
WHERE id_poke = {int:id_poke}',
array(
'id_poke' => (int) $_REQUEST['remove'],
)
);

Code (Replace) Select
$smcFunc['db_query']('', '
DELETE FROM {db_prefix}pokes
WHERE id_poke = {int:id_poke}',
array(
'id_poke' => (int) $_REQUEST['remove'],
)
);

$request = $smcFunc['db_query']('', '
SELECT COUNT(*)
FROM {db_prefix}pokes
WHERE id_member = {int:me}',
array(
'me' => $context['user']['id']
)
);
list ($total_pokes) = $smcFunc['db_fetch_row']($request);
$smcFunc['db_free_result']($request);

cache_put_data('total_pokes', $total_pokes, 3600);


I tried this fix, but it did not work. Ghost pokes are still around, plus the actual pokes are sometimes showing up, then not.

I have 2.0 final, custom theme (Back in Black by Crip) site.

Here are my mods:

1.   Bad Behavior mod    1.5.2        
2.   Ultimate Profile    0.9.1     
3.   SimplePokes    1.1     
4.   Aeva ~ Auto-Embed Video & Audio    7.1     

Any suggestions?

bedeceived

I would also really love to see the Pokes (1) to show up too.  Is there a way to do this that can be done soon?  I love this feature!

Also, is there a way to notify the member by PM when they get poked?  I would pay if this mod could do that.

Biology Forums

Anything like this for 1.x :(

magtanos

hi :)

is there a way to hide the pokes menu for guest?
i want to hide it from the upper menu



um using this mod in smf 2.0.2

Biology Forums

No one know how to convert this 1.x? :'(

Tien

Strange...it seems to work correctly with SMF 2.0.2 after I installed it. But the only problem is with that no. of poke displaying on the menu bar. Whenever the forum refreshes, it is showing Poke [1] or Poke [3] etc....but when I click to view the detail page....it is showing nobody. Is that suppose to work as a "poke notification"? I am thinking that the no. of poke will auto cleared off after viewing the poke details but somehow it is not working in this way. How can I correct that to make it works better on my forum? Thanks.

Tiensg

Quote from: grafitus on February 10, 2011, 04:47:02 PM
Quote from: kaung on February 10, 2011, 03:05:02 PM
As for the ghost pokers, I meant the Poke button in menu says Pokes (#) but on the Pokes detail page said "There are no pokes".
This doesn't always happen but at a random reload of a page.
Looks like the Pokes Total kept coming up without anyone pokiing you.
Yep, I understand. :) To solve:

./Sources/Pokes.php
Code (Find) Select
$smcFunc['db_query']('', '
DELETE FROM {db_prefix}pokes
WHERE id_poke = {int:id_poke}',
array(
'id_poke' => (int) $_REQUEST['remove'],
)
);

Code (Replace) Select
$smcFunc['db_query']('', '
DELETE FROM {db_prefix}pokes
WHERE id_poke = {int:id_poke}',
array(
'id_poke' => (int) $_REQUEST['remove'],
)
);

$request = $smcFunc['db_query']('', '
SELECT COUNT(*)
FROM {db_prefix}pokes
WHERE id_member = {int:me}',
array(
'me' => $context['user']['id']
)
);
list ($total_pokes) = $smcFunc['db_fetch_row']($request);
$smcFunc['db_free_result']($request);

cache_put_data('total_pokes', $total_pokes, 3600);


I have tried the above but it is still showing Poke [1] or Poke
  • . Can't see anyone in the poke detail, and after returning a poke and back to Index, it is still showing Poke
  • .

Bigguy

Simple Pokes installs in 2.1 with no errors at all. Nice. :) (Just sayin.)

FrizzleFried

#51
I plan on using this mod on my site.  I currently use the ACTIVITY BAR mod here ( http://custom.simplemachines.org/mods/index.php?mod=1929 )...

The question is:   How do make this mod accessible ONLY to those who've reached 100% on the activity bar mod...

EDIT: Also,  this mod really screams for a redirect back to the page you poked from.  It almost kills the whole idea by sending to the profile... and I too would like to know how to restrict the POKES menu item from showing to guests...

Thanks!

FrizzleFried

Quote from: magtanos on May 01, 2012, 02:37:41 AM
hi :)

is there a way to hide the pokes menu for guest?
i want to hide it from the upper menu



um using this mod in smf 2.0.2

Here is the change to hide the POKES menu item from Guests:

On line 38 of Subs-Pokes.php you will find:

'show' => true,

Change it to:

'show' => !$user_info['is_guest'],

FrizzleFried

When someone pokes someone from the forum,  this mod REALLY needs to drop back to the place where the person poked from rather than dropping to the profile of the person being poked.  That one change would make this mod 100x better... as it stands most of my users will poke once or twice... realize that they are getting hijacked to the profile of the person being poked...and then just not use the feature any more.


Diego Andrés

Just a bump to say that I'm also having a problem with the count of the pokes or how someone called it "ghostpokers"

There is a fix to this?

SMF Tricks - Free & Premium Responsive Themes for SMF.

mikkiTX

ghost pokers is what my members call them... looking forward to the fix...


mikki
all I really want to hear is "Yes Ma'am"...

Alpha-tron

#56
Installed version simple poke on version 1.1  on a clean installed SSF ver 2.07 with no other mods installed.

Poking a user once seems to work and  returning the poking a person back results. re poking the person results in an error message that of you already poked that person.
 
Using the option to remove a poke  Leaves the menu blank and the system creates a ghost poke.

deinstalled pokes 1.1 and patched the file to include the ghost patch fix.

The same results happens..

It seems like some variable or flag is not being cleared.

Update.

Installed  Simple poke no version number and  it seems to work.
Added the ghost poke fix and it seem to be working..


sakis11111

Simpe pokes works just fine. The problem is that the button on menu shows 1 or 2 pokes even if I have visit the pokes page or even if I have delete the pokes. Any solution please?

I am at smf 2.0.12

thank you


sakis11111


thunderchld

This appears to have worked OK for a while. Then randomly this week, the ghost-pokes started for me as well. I also tried the fix (modification to ./Sources/Poke.php) with no resolution.

I feel like the issue may actually lie on the Subs-Poke page. It looks like the author may have moved on, which is totally fine. Maybe as a group we can find a solution. 

Advertisement: