Login
Username

Password



Lost Password?

Register now!






Category: XOOPS modules (2.0)
Download Now!Referer pages (refpage-1.95.tar.gz) Popular Version: 1.95
Submitted Date:  2010/1/31
Description:

In this module add to XOOPS function, Records and Display
referer pages information.

- Work with XOOPS 2.0.x or later
- Need in PHP mbstring function if support MULTIBYTE
- License is GPL2 (same as XOOPS)

See more detail language/<lang>/help.html page.

Changes from trackback 1.2
[2010/01/31] refpage 1.95 (2.0beta2)
* Add URI filter at admin page
* Add about in admin menu
Fix referer store bugs

[2009/01/11] refpage 1.94 (2.0beta)
* only for XOOPS 2.0 or laters (using config/template)
* Rename module directry name

This module will be replace trackback module. If you want migration the referer datas, you will be following steps.

1. Old "trackback" module to be in-activate.
2. Install "refpage" module
3. Setting preferences and blocks in this module.
4. (Force) Un-install trackback module.

Downloaded 1606 times  1606  File Size 28.42 KB  Supported Platforms XOOPS 2.0 later or XOOPS Cube Legacy 2.1  Home Page http://myht.org/
Rating: 1.00 (1 vote)
Rate this File | Modify | Report Broken File | Tell a Friend | Comments (0)


db:d3forum_comment_listposts_flat.html

Re: Referer pages (refpage-1.94.tar.gz)

nobu nobu Posted 2010/1/28 10:54

Thank you reporting.

I'm sorry there is serious bugs.
Fix for apply following patch:

--- refpage/blocks/refpage.php	2010-01-11 19:39:37.000000000 +0900
+++ refpage/blocks/refpage.php	2010-01-28 10:44:03.000000000 +0900
@@ -94,7 +94,7 @@
 	} else {
 	    // new register
 	    $xoopsDB->queryF("INSERT INTO $tbr(since,track_from,ref_url)".
-			     " VALUES($now, $tid, '$refq')");
+			     " VALUES($now, $tid, $refq)");
 	    // check origin page, there is link exist?
 	    $title = '';
 	    $ctext = '';
@@ -108,8 +108,8 @@
 		$title=$xoopsDB->quoteString($title);
 		$ctext=$xoopsDB->quoteString($ctext);
 	    }
-	    $xoopsDB->queryF("UPDATE $tbr SET nref=nref+1, checked=$checked, linked=$linked, title=$title, context=$ctext, mtime='$now' WHERE track_from=$tid AND ref_url='$refq'");
-	    $result = $xoopsDB->query("SELECT ref_id FROM $tbr WHERE track_from=$tid AND ref_url='$refq'");
+	    $xoopsDB->queryF("UPDATE $tbr SET nref=nref+1, checked=$checked, linked=$linked, title=$title, context=$ctext, mtime='$now' WHERE track_from=$tid AND ref_url=$refq");
+	    $result = $xoopsDB->query("SELECT ref_id FROM $tbr WHERE track_from=$tid AND ref_url=$refq");
 	    list($rid) = $xoopsDB->fetchRow($result);
 	    $xoopsDB->queryF("INSERT INTO $log(atime, tfrom, rfrom, ip) VALUES($now, $tid, $rid, '$ip')");
 	    $refno = 1;

© 2008 MySite Web Service