mrmckoy wrote:Can anyone view the message in HTML or do they HAVE to be phplist users?
trucmuche2005 wrote:Would it be possible to get this link off the online static version ??
<a id="browser_link" href="{VIEWMESSAGEURL}">Click here to view in your browser</a>
<script type="text/javascript">document.getElementById('browser_link').style.display='none';</script>
preg_replace('/<a href\=[\"]\[VIEWMESSAGEURL\][\"]\>(.*?)<\/a>/si','',$text);
if(preg_match('/(<html>)|(<head[^>]*>)|(<body[^>]*>)/i', $mail->Body)) {
Sql_Query(sprintf('update %s set data = "%s" where messageid = %d and uniqid = "%s"',
$GLOBALS["tables"]["messageview"],addslashes($htmlmessage),$messageid,$hash));
if(!Sql_Affected_Rows())
Sql_Query(sprintf('insert into %s (messageid,uniqid,data) values(%d,"%s","%s")',
$GLOBALS["tables"]["messageview"],$messageid,$hash,addslashes($htmlmessage)));
}
$htmlmessage_withoutVIEWMESSAGEURL = preg_replace('/<a href\=[\"]\[VIEWMESSAGEURL\][\"]\>(.*?)<\/a>/si','',$htmlmessage);
if(preg_match('/(<html>)|(<head[^>]*>)|(<body[^>]*>)/i', $mail->Body)) {
Sql_Query(sprintf('update %s set data = "%s" where messageid = %d and uniqid = "%s"',
$GLOBALS["tables"]["messageview"],addslashes($htmlmessage_withoutVIEWMESSAGEURL),$messageid,$hash));
if(!Sql_Affected_Rows())
Sql_Query(sprintf('insert into %s (messageid,uniqid,data) values(%d,"%s","%s")',
$GLOBALS["tables"]["messageview"],$messageid,$hash,addslashes($htmlmessage_withoutVIEWMESSAGEURL)));
}
http://www.mydomain.com/newsletter/vm.php?m=51&u=e2998f7775555555d8fffe3b13c0734b
locomot1f wrote:I'm having trouble with this script. I've downloaded the lastest - 1.2.2 version.
My problem is with the unique ID column. and possibly the messageid column
On first attempts, my messageid starts with 142 for the first entry.
the uniqueid column does not get populated. i've looked at other entries involving this, but nothing seems to point me in the correct direction.
I have tried plugging in the [USERID] placeholder in my message, and it does show up. I know that you stated that something is removing this before it gets to your script... but I have no idea what it could be... any advice would be greatly appreciated!
i'm using PHPList v.2.10.12
thanks in advance
php_flag display_errors on
locomot1f wrote:1) I used the SQL script provided by the mod UTF8 version. I have also tried the Latin one. I'm sure I should be using the UTF8 though.
2)MySQL Server version: 5.1.55 Source distribution
3) I've tried to enable the error display in my .htaccess file by addingto the file. I also enabled through my php.ini file
- Code: Select all
php_flag display_errors on
It's not showing any errors. I'm starting to guess that there is some confusion on how the uniqueid is referenced. could there be a further setting in the config of the PHP List that could do this? Is it the structure.php file that actually populates the fields? or some other process? I have noticed that this script runs when a message is sent. I'm still not understanding the reason for needing the uniqueid column....?
Naturally I can plug in the [USERID] in the row, refresh the page, and it comes up. but yeah, for some reason, that's the ONLY field that does not get populated -- no errors to report.
Again, Using PHPList 2.10.12
bhup18 wrote:using latest mod 1.2.2
Bug?
If you use [VIEWMESSAGEURL] tag more than once in the message, the link may not be replaced correctly or just with "http://" .
Discovered this by accident.
Return to Contributions: Plug-ins, Add-ons, Mods
Users browsing this forum: No registered users and 1 guest