RC2 Download

Forum rules
Before posting about bugs or feature requests please check the Bug Tracker & Feature Tracker first!

Re: RC2 Download

New postby steve© » 30 Sep 2009, 18:36

hi some bugs to look at m8

error whilst viewing on line:
Code: Select all
[phpBB Debug] PHP Notice: in file /viewonline.php on line 301: Undefined index: VIEWING_TOPLIST


error x30+ in admin control panel >maintainance > error log
Code: Select all
   Error while creating image
» Error in /mods/toplist_mod/core.class.php on line 2635: Undefined offset: 1



done the edit for the cache and seems to work fine
test i like to test :)
User avatar
steve©
Member
Member
 
Posts: 28
Joined: 01 Sep 2009, 13:46
Cash on hand: 1,672.68
Location: up north in the uk :)
antispam: No

Re: RC2 Download

New postby steve© » 01 Oct 2009, 10:21

Code: Select all
[phpBB Debug] PHP Notice: in file /mods/toplist_mod/core.class.php on line 2635: Undefined offset: 1
HTTP/1.1 200 OK Date: Thu, 01 Oct 2009 08:18:34 GMT Server: Apache/1.3.41 (Unix) mod_fastcgi/2.4.6 mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 FrontPage/5.0.2.2635 mod_ssl/2.8.31 OpenSSL/0.9.7a Cache-Control: private, no-cache="set-cookie" Expires: 0 Pragma: no-cache X-Powered-By: PHP/5.2.9 Keep-Alive: timeout=5, max=149 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/html; charset=UTF-8 1bb


another error :?:
test i like to test :)
User avatar
steve©
Member
Member
 
Posts: 28
Joined: 01 Sep 2009, 13:46
Cash on hand: 1,672.68
Location: up north in the uk :)
antispam: No

Re: RC2 Download

New postby WyriHaximus » 01 Oct 2009, 12:34

Ok I assume that is the alexaRank function in mods/toplist_mod/core.class.php. Can you try and replace it with this function?
Code: Select all
   /**
   * Alexa rank fetch code: http://www.webdigity.com/?action=tutorial;code=49
   **/
   
    function alexaRank($domain)
    {
       $curl_ret = $this->get_url('http://alexa.com/data/details/traffic_details?url='.$domain);
      
       $curl_ret = explode('Visit http://aws.amazon.com/awis for more information about the Alexa Web Information Service.-->', $curl_ret);
       $curl_ret = array_shift(explode('<br',$curl_ret[1]));
       $ret = '';
       $ignore = false;
       for($i=0;$i<strlen($curl_ret);$i++)
       {
     if ( isset($curl_ret{$i}) && is_numeric($curl_ret{$i}) && !$ignore )
      $ret .= $curl_ret{$i};
     else if ( isset($curl_ret{$i}) && $curl_ret{$i} == '<' )
      $ignore = true;
     else if ( isset($curl_ret{$i}) && $curl_ret{$i} == '>' )
      $ignore = false;
   }
       return (int)$ret;
    }
Image
User avatar
WyriHaximus
Site Admin
Site Admin
 
Posts: 957
Joined: 13 Feb 2002, 16:14
Cash on hand: 7,040.61
Bank: 103,323.27
Location: Koedijk, Alkmaar, The Netherlands
antispam: No

Re: RC2 Download

New postby steve© » 01 Oct 2009, 12:57

code has been changed will watch for error viewing online and in admin control and report back :D
test i like to test :)
User avatar
steve©
Member
Member
 
Posts: 28
Joined: 01 Sep 2009, 13:46
Cash on hand: 1,672.68
Location: up north in the uk :)
antispam: No

Re: RC2 Download

New postby WyriHaximus » 01 Oct 2009, 13:03

steve© wrote:code has been changed will watch for error viewing online and in admin control and report back :D

It won't fix the viewonline error but it should fix the other one :).
Image
User avatar
WyriHaximus
Site Admin
Site Admin
 
Posts: 957
Joined: 13 Feb 2002, 16:14
Cash on hand: 7,040.61
Bank: 103,323.27
Location: Koedijk, Alkmaar, The Netherlands
antispam: No

Re: RC2 Download

New postby steve© » 01 Oct 2009, 20:50

Code: Select all
   01 Oct 2009, 19:37     Error while creating image
» Error in /mods/toplist_mod/core.class.php on line 2635: Undefined offset: 1


error still there m8
test i like to test :)
User avatar
steve©
Member
Member
 
Posts: 28
Joined: 01 Sep 2009, 13:46
Cash on hand: 1,672.68
Location: up north in the uk :)
antispam: No

Re: RC2 Download

New postby WyriHaximus » 01 Oct 2009, 23:15

steve© wrote:
Code: Select all
   01 Oct 2009, 19:37     Error while creating image
» Error in /mods/toplist_mod/core.class.php on line 2635: Undefined offset: 1


error still there m8

Dang, it occurs randomly right?
Image
User avatar
WyriHaximus
Site Admin
Site Admin
 
Posts: 957
Joined: 13 Feb 2002, 16:14
Cash on hand: 7,040.61
Bank: 103,323.27
Location: Koedijk, Alkmaar, The Netherlands
antispam: No

Re: RC2 Download

New postby steve© » 04 Oct 2009, 15:51

yes randomly
test i like to test :)
User avatar
steve©
Member
Member
 
Posts: 28
Joined: 01 Sep 2009, 13:46
Cash on hand: 1,672.68
Location: up north in the uk :)
antispam: No

Re: RC2 Download

New postby steve© » 04 Oct 2009, 23:21

Code: Select all
[phpBB Debug] PHP Notice: in file /mods/toplist_mod/core.class.php on line 2635: Undefined offset: 1
HTTP/1.1 200 OK Date: Sun, 04 Oct 2009 21:19:29 GMT Server: Apache/1.3.41 (Unix) mod_fastcgi/2.4.6 mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 FrontPage/5.0.2.2635 mod_ssl/2.8.31 OpenSSL/0.9.7a Cache-Control: private, no-cache="set-cookie" Expires: 0 Pragma: no-cache X-Powered-By: PHP/5.2.9 Keep-Alive: timeout=5, max=148 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/html; charset=UTF-8 2eb


its cripling my site ,this mod ill have to uninstall it soon :cry:
test i like to test :)
User avatar
steve©
Member
Member
 
Posts: 28
Joined: 01 Sep 2009, 13:46
Cash on hand: 1,672.68
Location: up north in the uk :)
antispam: No

Re: RC2 Download

New postby WyriHaximus » 05 Oct 2009, 10:24

Ok try this for the function:
Code: Select all
   /**
   * Alexa rank fetch code: http://www.webdigity.com/?action=tutorial;code=49
   **/
   
    function alexaRank($domain)
    {
        $ret = '';
        $curl_ret = $this->get_url('http://alexa.com/data/details/traffic_details?url='.$domain);
        $curl_ret = explode('Visit http://aws.amazon.com/awis for more information about the Alexa Web Information Service.-->', $curl_ret);
        if(isset($curl_ret[1]))
        {
            $curl_ret = array_shift(explode('<br',$curl_ret[1]));
            $ignore = false;
            for($i=0;$i<strlen($curl_ret);$i++)
            {
                if(isset($curl_ret{$i}) && is_numeric($curl_ret{$i}) && !$ignore)
                {
                    $ret .= $curl_ret{$i};
                }
                elseif(isset($curl_ret{$i}) && $curl_ret{$i}=='<')
                {
                    $ignore = true;
                }
                elseif(isset($curl_ret{$i}) && $curl_ret{$i}=='>')
                {
                    $ignore = false;
                }
            }
        }
        return (int)$ret;
    }
Image
User avatar
WyriHaximus
Site Admin
Site Admin
 
Posts: 957
Joined: 13 Feb 2002, 16:14
Cash on hand: 7,040.61
Bank: 103,323.27
Location: Koedijk, Alkmaar, The Netherlands
antispam: No

Re: RC2 Download

New postby WyriHaximus » 05 Oct 2009, 10:28

steve© wrote:
Code: Select all
[phpBB Debug] PHP Notice: in file /viewonline.php on line 301: Undefined index: VIEWING_TOPLIST


Ok in viewonline.php make sure the toplist code block looks like this:
Code: Select all
      case 'toplist':
                        $user->add_lang('mods/toplist');
         $location = $user->lang['TOPLIST'];
         $location_url = append_sid("{$phpbb_root_path}toplist.$phpEx");
      break;
Image
User avatar
WyriHaximus
Site Admin
Site Admin
 
Posts: 957
Joined: 13 Feb 2002, 16:14
Cash on hand: 7,040.61
Bank: 103,323.27
Location: Koedijk, Alkmaar, The Netherlands
antispam: No

Re: RC2 Download

New postby 3motronik » 05 Feb 2010, 21:16

Site of the moment in index
How to install
I do not understand

Where should I paste the code in this post:
http://wiki.wyrihaximus.net/wiki/PhpBB_ ... the_Moment

Site of the Moment on the Index:
Shows the site of the moment on the index of the forums. For more information check out this page.
3motronik
Beginner
Beginner
 
Posts: 5
Joined: 22 Feb 2009, 03:11
Cash on hand: 650.29
Location: MexicO, City

Re: RC2 Download

New postby WyriHaximus » 07 Feb 2010, 18:10

3motronik wrote:Site of the moment in index
How to install
I do not understand

Where should I paste the code in this post:
http://wiki.wyrihaximus.net/wiki/PhpBB_ ... the_Moment

Site of the Moment on the Index:
Shows the site of the moment on the index of the forums. For more information check out this page.

The code shown on that page displays how the mod chooses a new site of the moment. You don't need to place it anywhere it's already inside the mod.
Image
User avatar
WyriHaximus
Site Admin
Site Admin
 
Posts: 957
Joined: 13 Feb 2002, 16:14
Cash on hand: 7,040.61
Bank: 103,323.27
Location: Koedijk, Alkmaar, The Netherlands
antispam: No

Re: RC2 Download

New postby 3motronik » 08 Feb 2010, 16:40

Already installed the mod
but not displayed the Site of the moment in the index like in this forum

and I have activated this option
3motronik
Beginner
Beginner
 
Posts: 5
Joined: 22 Feb 2009, 03:11
Cash on hand: 650.29
Location: MexicO, City

Re: RC2 Download

New postby WyriHaximus » 08 Feb 2010, 16:42

Hmm any sites in the toplist?
Image
User avatar
WyriHaximus
Site Admin
Site Admin
 
Posts: 957
Joined: 13 Feb 2002, 16:14
Cash on hand: 7,040.61
Bank: 103,323.27
Location: Koedijk, Alkmaar, The Netherlands
antispam: No

Re: RC2 Download

New postby 3motronik » 08 Feb 2010, 21:46

Image

I want to do that
What should I do?
3motronik
Beginner
Beginner
 
Posts: 5
Joined: 22 Feb 2009, 03:11
Cash on hand: 650.29
Location: MexicO, City

Re: RC2 Download

New postby WyriHaximus » 08 Feb 2010, 21:59

3motronik wrote:Image

I want to do that
What should I do?

Ok first off make sure you have active sites in the toplist.
Seccond make sure you enabled the site of the moment in the ACP.
Third check if the files are modified correctly. Check the modifications for index.php and styles/prosilver/template/index_body.html and make sure they are in place.
Image
User avatar
WyriHaximus
Site Admin
Site Admin
 
Posts: 957
Joined: 13 Feb 2002, 16:14
Cash on hand: 7,040.61
Bank: 103,323.27
Location: Koedijk, Alkmaar, The Netherlands
antispam: No

Re: RC2 Download

New postby 3motronik » 09 Feb 2010, 15:47

This enabled but the MOD is not that I edit in index.php and styles/prosilver/template/index_body.html

Files to Edit

* includes/constants.php,
* includes/functions.php,
* viewonline.php,
* language/en/common.php,
* cron.php,
* styles/prosilver/template/overall_header.html,
* styles/prosilver/theme/bidi.css,
* styles/prosilver/theme/buttons.css,
* styles/prosilver/theme/colours.css


PD: Sorry for my English
I'm learning
3motronik
Beginner
Beginner
 
Posts: 5
Joined: 22 Feb 2009, 03:11
Cash on hand: 650.29
Location: MexicO, City

Re: RC2 Download

New postby WyriHaximus » 15 Feb 2010, 01:02

I'll post the edits tomorrow had a rough weekend with a bad crawler and my seccondary HDD in RAID0 failing for my desktop.

P.S. Sorry for the late response

[ Post made via Mobile Device ] Image
User avatar
WyriHaximus
Site Admin
Site Admin
 
Posts: 957
Joined: 13 Feb 2002, 16:14
Cash on hand: 7,040.61
Bank: 103,323.27
Location: Koedijk, Alkmaar, The Netherlands
antispam: No

Re: RC2 Download

New postby WyriHaximus » 16 Feb 2010, 09:37

Ok as prommised:

Open: index.php
Find:
Code: Select all
// Assign index specific vars
$template->assign_vars(array(

Before add:
Code: Select all
if($config['toplist_site_of_the_moment'] && $config['toplist_site_of_the_moment_index'])
{
    if(!isset($toplist_class))
    {
        include($phpbb_root_path . 'mods/toplist_mod/core.class.php');
        $toplist_class = new toplist_class;
    }
    $toplist_class->siteofthemoment();
}


Open: styles/prosilver/template/index_body.html
Find:
Code: Select all
<!-- IF S_DISPLAY_SEARCH or (S_USER_LOGGED_IN and not S_IS_BOT) -->
<ul class="linklist">
   <!-- IF S_DISPLAY_SEARCH -->

Before add:
Code: Select all
<!-- IF SITE_OF_THE_MOMENT -->
    <script src="mods/toplist_mod/prototype.js" type="text/javascript"></script>
    <script src="mods/toplist_mod/scriptaculous.js" type="text/javascript"></script>
    <!-- INCLUDE toplist/toplist_siteofthemoment.html -->
<!-- ENDIF -->
Image
User avatar
WyriHaximus
Site Admin
Site Admin
 
Posts: 957
Joined: 13 Feb 2002, 16:14
Cash on hand: 7,040.61
Bank: 103,323.27
Location: Koedijk, Alkmaar, The Netherlands
antispam: No

PreviousNext

Return to Toplist 2.x

Who is online

Users browsing this forum: No registered users and 3 guests

  • Advertisement
cron