[plugin] Display message open statistics

3rd party code for pl

Re: Instalation Guide

Postby H2B2 » 9:24pm, Tue 12 Sep, 2006

maquido wrote:You have an instalation guide?
It works with version 2.10.2?

There is some explanation on how to use it in the first post of this thread. But you'd perhaps best read the whole thread.

I think it will work with phplist 2.10.2 as I haven't seen any message stating it wouldn't, but haven't checked it myself.
H2B2
phpList Guru
 
Posts: 6581
Joined: 1:51am, Wed 15 Mar, 2006

Statistics plugin with installation instructions

Postby H2B2 » 6:45am, Tue 31 Oct, 2006

Installation instructions:

Statistics plugin for PHPlist

I have developed a plugin that gives open & bounce statistics for a message. Also shows you exactly who has viewed the message (and who hasn't... as far as it's possible to tell). It only works for HTML messages - it's not possible to know who opened text messages.

To enable open statistics you need to put the placeholder [USERTRACK] somewhere in your HTML message. A good idea is to put it in your default message footer via the configure page. See this topic.

Installation

To install, delete all the current contents of lists/admin/plugins. Unzip the plugins.zip file, being careful to keep the directory structure intact & copy all the files to lists/admin/plugins. That's it.

You will need to know the message id for the message you want info on. You can get this from the "messages" page - click "view" on the message you're interested in.

Paul Brett


changes in config.php

Keep in mind that if you want to see the links to your plugins in the admin backend, you have to enable the plugin directory in your config.php file, by uncommenting this line (remove the #) and making sure this directory actually exists on your server:
Code: Select all
# define("PLUGIN_ROOTDIR","plugins");

You should now see links to your plugins in the Admin main page.

---
Update note by tnnr

The problem with this plugin by default is that is does not use the table prefix's. So if you use a prefix other than the default it will not work... this update pulls the correct prefix from the general config.


The statistics plugin can be downloaded from viewtopic.php?p=10108#p10108 . You have to sign in on this board to be able to see the download link.
Last edited by H2B2 on 11:47pm, Thu 15 Mar, 2007, edited 2 times in total.
H2B2
phpList Guru
 
Posts: 6581
Joined: 1:51am, Wed 15 Mar, 2006

link is dead --> messages.php

Postby Musi » 11:07am, Fri 22 Dec, 2006

Hi all !

unfortunately, there´s no link to the modified messaages.php.

could you please tell me, where to get this file ?!

thanks a lot !
Musi
phplister
 
Posts: 6
Joined: 10:25am, Fri 22 Dec, 2006

Postby H2B2 » 1:08pm, Fri 22 Dec, 2006

Did you try downloading the plugin from viewtopic.php?p=10108#p10108 ?

You have to be logged in on this board to be able to see the download link.
H2B2
phpList Guru
 
Posts: 6581
Joined: 1:51am, Wed 15 Mar, 2006

statistic-plugin

Postby Musi » 1:13pm, Fri 22 Dec, 2006

thanks für your answer !

the problem ist not to get the Plugin, but to get the modified "message.php"

the Plugin works fine - i just would like to use it as easy as possible :-)
Musi
phplister
 
Posts: 6
Joined: 10:25am, Fri 22 Dec, 2006

Postby H2B2 » 1:53pm, Fri 22 Dec, 2006

Ah, yes. I now see you are referring to this file:

pdbrett wrote:You will need to know the message id for the message you want info on. You can get this from the "messages" page - click "view" on the message you're interested in. If you're feeling brave you can download a modified version of lists/admin/messages.php here in zip form. This displays a link to the correct statistics directly next to the message.


Paul Brett's link is broken unfortunately, but you might try sending a a PM to some of the users in this thread and ask them to post the modified messages.php here.
For instance
rdbartz: viewtopic.php?p=2743#2743
abaykamau: viewtopic.php?p=5982#5982
Aurelien: viewtopic.php?p=15749#15749
H2B2
phpList Guru
 
Posts: 6581
Joined: 1:51am, Wed 15 Mar, 2006

modified messages.php

Postby Musi » 2:02pm, Fri 22 Dec, 2006

thanks a lot - i did wrote to all of them.
swo let´s wait and see.....


cheers,
musi
Musi
phplister
 
Posts: 6
Joined: 10:25am, Fri 22 Dec, 2006

select messege by id from dropdown list

Postby markio » 11:24pm, Fri 12 Jan, 2007

I like this script very much. I slightly modified the script so you won't have to look up the message id by clicking the messages button to see whick id's are available.

changed line 18 from:
Code: Select all
print 'Enter message number: <input>';


to:

Code: Select all
$message = Sql_query("SELECT id,subject FROM ".$tables["message"]);
echo '<select>'."\n";
echo '  <option>select a message</option>'."\n";
while ($field = mySql_fetch_array($message)) {
  $m_id      = $field["id"];
  $m_subject = $field["subject"];
  $selected = ($m_id == $id)?' selected="selected" ':' ';
  echo '<option>'.$m_id.' ['.$m_subject.']</option>'."\n";
}
echo '</select>'."\n";
markio
phplist newbie
 
Posts: 3
Joined: 10:06am, Mon 08 Jan, 2007
Location: The Netherlands

your modification

Postby Musi » 10:33am, Mon 15 Jan, 2007

Hey Markio !

thanks a Lot for this - it helped me a lot !

keep on rockin´ - and do more of stuff like this !

cheers,

musi
Musi
phplister
 
Posts: 6
Joined: 10:25am, Fri 22 Dec, 2006

modifications of the openstats.php

Postby Musi » 10:50am, Mon 15 Jan, 2007

Hey Markio,

unfortunately i do have some Problems with your script.

after changing the script, i´ve found the dropdown-menu, but i was unable to select a message. all that happend was - guess what: nothing.....

do you have an idea ?

thanks,
musi
Musi
phplister
 
Posts: 6
Joined: 10:25am, Fri 22 Dec, 2006

Postby markio » 3:52pm, Tue 16 Jan, 2007

Did you leave the "go" button where it was? Because that one is still needed to confirm your selection.

It should be working fine but if you continue experiencing problems with it I'll attatch the entire changed file.
markio
phplist newbie
 
Posts: 3
Joined: 10:06am, Mon 08 Jan, 2007
Location: The Netherlands

Re: modifications of the openstats.php

Postby hardwired » 4:21am, Mon 05 Mar, 2007

I cleaned up markio's code snippet and the pulldown works for me now :

Code: Select all
$message = Sql_query("SELECT id,subject FROM ".$tables["message"]);
echo '<select>'."\n";
echo '  <option>select a message</option>'."\n";
while ($field = mySql_fetch_array($message)) {
  $m_id      = $field["id"];
  $m_subject = $field["subject"];
  $selected = ($m_id == $id)?' selected="selected" ':' ';
  echo '<option>'.$m_id.' ['.$m_subject.']</option>'."\n";
}
echo '</select>'."\n";



Musi wrote:Hey Markio,

unfortunately i do have some Problems with your script.

after changing the script, i´ve found the dropdown-menu, but i was unable to select a message. all that happend was - guess what: nothing.....

do you have an idea ?

thanks,
musi
hardwired
phplister
 
Posts: 10
Joined: 3:34am, Mon 05 Mar, 2007

Postby jagsv » 12:34am, Wed 14 Mar, 2007

Thanks to everyone who has added their posts, links and codes, because this helps us and everyone to make PHPList to work as we like to have it.

Althou... i have some questions regarding this hack or mod, I have done basically as you said... except that i didnt delete all the content of the plugins folder, just added the folder to the plugins folder and changed the codes route to

# This code has been insterted to track statistics in a whole new level
define ("PLUGIN_ROOTDIR","/plugins/statistics_plugin/statistics.php");

I do understand that it should work by doing it like this, but the problem is that where can i see that information...where can i access to a page where i type the ID of the message i want to track...for example i go to messages and i find the id of the message but cant get a page where to view the statistics....

Appreciate help and support.
jagsv
phplist newbie
 
Posts: 2
Joined: 10:31pm, Tue 13 Mar, 2007

Postby H2B2 » 11:54pm, Thu 15 Mar, 2007

Are you sure you correctly installed the plugin?
Ref:
viewtopic.php?p=23672#p23672
viewtopic.php?p=15749#p15749
H2B2
phpList Guru
 
Posts: 6581
Joined: 1:51am, Wed 15 Mar, 2006

Postby freqz » 3:10pm, Wed 03 Oct, 2007

Ok, I'm having a bit of a problem here. I've tried the code from Markio and I've also tried the code posted just below him from Hardwired.

Same result each time, I hit "GO" and nothing happens, just looks like the screen refreshes.

Can anyone point me to what I might be doing wrong ? Same thing happen with either code. The manually entering of the number does however work fine.

I am using 2.10.5 if that makes a difference ??

Do I need to get the modified messages.php to have this working ? IF so where do I find it ??
freqz
PL Nut
 
Posts: 19
Joined: 3:26pm, Fri 28 Sep, 2007

PreviousNext

Return to Add-ons, Contributions, Mods, Plug-ins

Who is online

Users browsing this forum: No registered users and 2 guests