attitude mod

Allgemeiner Support zum phpBB 2 Board und phpBB 2 Modifikationen
Forumsregeln
Auch wenn hier der Support für phpBB 2 weiterhin aufrecht erhalten bleibt, weisen wir darauf hin, dass das phpBB 2 nicht mehr offiziell unterstützt und weiterentwickelt wird!
Antworten
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

attitude mod

Beitrag von Blisk »

I did installed this attitude MOD, a while ago, but I have a problem.
It should be that you can only once rate one user, but here not I can rate it as many time I want.
I try with author of this MOD, but he doesn't want to solve a problem.
Does anybody try to install this mod?
Is it working for you?
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

I've installed this mod now on my local test board and i just can vote once per user.
A click in the vote link will open the popup and just tell me, I already have voted for this user.
Will you not get this message?
Okay, the better way: Disable the link for users, which already have voted the specially user. Displaying here just the text...
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

No I don't get this message that I already voted, I get a menu to vote again.

What do you think about disablink the Link for users, where?
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

What do you think about disablink the Link for users, where?
No problem. I'll check it and give you the changes as soon as I can.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

[quote="Blisk - Tue 11.Jan, 2005 11:19";p="20245"]
What do you think about disablink the Link for users, where?[/quote]

I did n't understand what you mean with this.

Is there a possibility to disable link?

If that works on your forum, than must be something, why doesn't work on mine?
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Sorry, some wrong typos.
I'll fix the mod to disable the link for already voted users.
If that works on your forum, than must be something, why doesn't work on mine?
Maybe on a plus this mod will work not errorfree :confused:
You just can double check the installation, but the popup will produced by the file attitude.php so something may be curious on your board...
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Sorry, some wrong typos.
I'll fix the mod to disable the link for already voted users.
If that works on your forum, than must be something, why doesn't work on mine?
Maybe on a plus this mod will work not errorfree :confused:
You just can double check the installation, but the popup will produced by the file attitude.php so something may be curious on your board...
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

don't know what can be, I already checked instalation 3 times.
Is it possible to fix this, so users who wote cannot wote for the same users 2 times.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

I can't fix something I don't have ;)
But I will disable the link for existing votes.
The only thing I can do (the next days).

EDIT
Here the changes to replace the link with text, if a user have already vote the poster:

Code: Alles auswählen

#
#-----[ OPEN ]-----
#
functions.php

#
#-----[ FIND ]-----
#
	function GetUsersAttitude($attitude, $user)
		{
		global $lang, $phpEx, $userdata;

#
#-----[ AFTER, ADD ]-----
#
		global $db;

#
#-----[ FIND ]-----
#
		($userdata['user_id'] != $user) ? $attitude_link = "<a href=\"javascript:Attitude('attitude.". $phpEx ."?u=". $user ."', 'New_Window', '400', '50', 'no')\" onclick=\"blur()\">". $parts[0] ."</a>: ". $parts[1] : $attitude_link = $parts[0] .': '. $parts[1];

#
#-----[ REPLACE WITH ]-----
#
		$q =  "SELECT *
		       FROM ". $table_prefix ."attitude_mod
			   WHERE user_id_from = '". $userdata['user_id'] ."'
			   AND user_id_to = '". $user ."'"; 
		$r 		= $db -> sql_query($q); 
		$found	= $db -> sql_fetchrow($r);

		($userdata['user_id'] != $user && !$found['user_id_to'] && !$found['user_id_from']) ? $attitude_link = "<a href=\"javascript:Attitude('attitude.". $phpEx ."?u=". $user ."', 'New_Window', '400', '50', 'no')\" onclick=\"blur()\">". $parts[0] ."</a>: ". $parts[1] : $attitude_link = $parts[0] .': '. $parts[1];


#
#-----[ SAVE/CLOSE ALL FILES ]-----
#
# EoM
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

SORRY, this doesn't work.
it is the same like before.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Hm, curious.
Does the mod save the voting data? With user_id and poster_id?
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

Yes MOD save a voting data in table with users data.
It has no separate table for woting, but there is a addon in user table for votes.
I can give you mysql database acess, to see.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

It has no separate table for woting
:confused:

And what will this do:

Code: Alles auswählen

CREATE TABLE `phpbb_attitude_mod` (
  `user_id_from` int(10) NOT NULL default '0',
  `user_id_to` int(10) NOT NULL default '0'
) TYPE=MyISAM;
This is an instruction to create a mod required table...
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

Sorry, this was totaly my mistake.
I was forget to add mysql table.
that was so stupid of me.
Sorry again, now this works OK.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

;)
Okay, fine to hear.
And I was searching and searching...
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

Sorry I did check instalation 5 times, but stil, I forget to check mysql instalation.
Antworten