Make a Lasting Impression

Join the Mailing List

Who's Online

18 user(s) are online (16 user(s) are browsing Support Forums)

Members: 0
Guests: 18

more...
ImpressCMS proudly uses SourceForge
ImpressCMS on Ohloh.net





imLinks 1.12 - rating does not work
Quite a regular
Joined:
2011/5/12 11:07
From Czech
Posts: 56
I installed the module imLinks 1.12. Everything is ok, only the rating function does not work. After clicking on the star-rating it displays white page with the address .../modules/imlinks/db.php?...
Rating (number of stars) is not displayed. Vote is counted.
Can you help me please?

Posted on: 2012/8/27 13:13
Transfer the post to other applications Transfer


Re: imLinks 1.12 - rating does not work
Home away from home
Joined:
2007/12/4 9:00
From Netherlands
Posts: 2220
Many thanks for reporting this bug!

For some reason 2 lines are missing from these files:
- templates/imlinks_singlelink.html
- templates/imlinks_viewcat.html

These 2 lines have to be added to the top of the files mentioned above:

<script type="text/javascript" language="javascript" src="<{$icms_url}>/modules/<{$module_dir}>/js/behavior.js"></script>
<script type="text/javascript" language="javascript" src="<{$icms_url}>/modules/<{$module_dir}>/js/rating.js"></script>

Posted on: 2012/8/27 20:47
_________________
McDonalds Store
Transfer the post to other applications Transfer


Re: imLinks 1.12 - rating does not work
Quite a regular
Joined:
2011/5/12 11:07
From Czech
Posts: 56
The problem is solved! ImLinks works correctly now. Thanks for the quick response and support!

Posted on: 2012/8/28 10:50
Transfer the post to other applications Transfer


Re: imLinks 1.12 - rating does not work
Home away from home
Joined:
2007/12/4 9:00
From Netherlands
Posts: 2220
You have to make a small modification to the files singlelink.php and viewcat.php otherwise the js-files will be loaded twice.
See here: https://www.assembla.com/code/impressc ... ion/changesets/24417#open

Posted on: 2012/8/30 9:45
_________________
McDonalds Store
Transfer the post to other applications Transfer


Re: imLinks 1.12 - rating does not work
Quite a regular
Joined:
2011/5/12 11:07
From Czech
Posts: 56
Modification ok. Rating works good in my opinion.

I still have two problems:
1. PageRank for links does not show any value.
2. The buttons (letters and numbers) at the top of a list of categories (index) not working - do not seek links.

Posted on: 2012/9/5 14:24
Transfer the post to other applications Transfer


Re: imLinks 1.12 - rating does not work
Home away from home
Joined:
2007/12/4 9:00
From Netherlands
Posts: 2220
1.
What does the Pagerank display? 0 or nothing?
Does it happen on the user side or in the Administration (List Links Pingtime)?

You can test it by adding http://www.nopsema.gov.au to imLinks. It should return a pagerank of 5.

Check if the links you've added to imLinks do return a pagerank by using this website: http://www.prchecker.info/



2.
Clicking a letter button should list all links starting with that letter.
Can you explain what happens when you click a button? Do you get a blank page?
If you move the pointer over a letter button, what does the URL look like?

Posted on: 2012/9/5 15:28
_________________
McDonalds Store
Transfer the post to other applications Transfer


Re: imLinks 1.12 - rating does not work
Quite a regular
Joined:
2011/5/12 11:07
From Czech
Posts: 56
Your test link ( http://www.nopsema.gov.au) was added, PageRank not ok.

You can see: http://openlink.cz/modules/imlinks/viewcat.php?cid=67
Problem with letter buttons here too.

Posted on: 2012/9/5 21:09
Transfer the post to other applications Transfer


Re: imLinks 1.12 - rating does not work
Home away from home
Joined:
2007/12/4 9:00
From Netherlands
Posts: 2220
Please open the file imlinks/include/functions.php in a text editor and find the function imlinks_pagerank(). It should start at line 723.
The function should look like this:

/** 
 * PageRank Lookup (Based on Google Toolbar for Mozilla Firefox) 
 * 
 * @copyright   2011 HM2K <hm2k@php.net> 
 * @link        http://pagerank.phurix.net/ 
 * @author      James Wade <hm2k@php.net> 
 * @version     $Revision: 2.1 $ 
 * @require     PHP 4.3.0 (file_get_contents) 
 * @updated     06/10/11 
 */ 

function imlinks_pagerank$q$host 'toolbarqueries.google.com'$context NULL ) { 
    
$seed "Mining PageRank is AGAINST GOOGLE'S TERMS OF SERVICE. Yes, I'm talking to you, scammer."
    
$result 0x01020345;
    
$len strlen$q );
    for ( 
$i=0$i<$len$i++ ) {
        
$result ^= ord$seed{$i%strlen$seed )} ) ^ ord$q{$i} );
        
$result = ( ( $result >> 23 ) & 0x1ff ) | $result << 9;
    }
    
$ch sprintf'8%x'$result );
    
$url 'http://%s/tbr?client=navclient-auto&ch=%s&features=Rank&q=info:%s';
    
$url sprintf$url$host$ch$q );
    @
$pr file_get_contents$urlfalse$context );
    return 
$pr?substrstrrchr$pr':' ), ):false;
}
// End Google Pagerank function


.::EDIT::.
If the above function exists, you might replace it with this one:

/** 
 * PageRank Lookup (Based on Google Toolbar for Mozilla Firefox) 
 * 
 * @copyright   2011 HM2K <hm2k@php.net> 
 * @link        http://pagerank.phurix.net/ 
 * @author      James Wade <hm2k@php.net> 
 * @version     $Revision: 2.0 $ 
 * @require     PHP 4.3.0 (file_get_contents) 
 * @updated     06/10/11 
 */ 

function imlinks_pagerank$q$host 'toolbarqueries.google.com'$context NULL ) { 
    
$seed "Mining PageRank is AGAINST GOOGLE'S TERMS OF SERVICE. Yes, I'm talking to you, scammer."
    
$result 0x01020345;
    
$len strlen$q );
    for ( 
$i=0$i<$len$i++ ) {
        
$result ^= ord$seed{$i%strlen$seed )} ) ^ ord$q{$i} );
        
$result = ( ( $result >> 23 ) & 0x1ff ) | $result << 9;
    }
    if (
PHP_INT_MAX != 2147483647) {
        
$result = -(~($result 0xFFFFFFFF) + 1);
    }
    
$ch sprintf'8%x'$result );
    
$url 'http://%s/tbr?client=navclient-auto&ch=%s&features=Rank&q=info:%s';
    
$url sprintf$url$host$ch$q );
    @
$pr file_get_contents$urlfalse$context );
    return 
$pr?substrstrrchr$pr':' ), ):false;
}
// End Google Pagerank function

The only difference is the if() statement.

Posted on: 2012/9/5 21:49
_________________
McDonalds Store
Transfer the post to other applications Transfer


Re: imLinks 1.12 - rating does not work
Quite a regular
Joined:
2011/5/12 11:07
From Czech
Posts: 56
PageRank is OK now. Thank you.
There is last problem with letter buttons.

Posted on: 2012/9/6 13:43
Transfer the post to other applications Transfer


Re: imLinks 1.12 - rating does not work
Home away from home
Joined:
2007/12/4 9:00
From Netherlands
Posts: 2220
Good to hear the Pagerank is working again.!

Let's continue...

1. Do you get any errors or notices with the debug activated when clicking a letter button?
2. What PHP version are you using?

Posted on: 2012/9/6 17:55
_________________
McDonalds Store
Transfer the post to other applications Transfer






You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]