vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   e-steki Referrer Statistics (https://vborg.vbsupport.ru/showthread.php?t=101000)

Snake 11-29-2005 12:08 PM

Nice little update there! ;)

akanevsky 11-30-2005 11:42 AM

https://vborg.vbsupport.ru/showpost....&postcount=124 ;)
If you wanna make a backwards connection, PM me and I'll tell you how to detect whether my hack is installed, and then if it is installed, have you link change to refer to that hack :)

Lea Verou 11-30-2005 11:48 AM

Can you explain a bit more what you mean? My english is preventing me from understanding your post :o

akanevsky 11-30-2005 12:00 PM

Quote:

No problem. I'll just get my old referrers hack out and dust that one off for now.
That definitely is mean. Come on, Boofo, give her a break... She put her efforts in. You are not obliged to always express your dislike for every person's work :)

Quote:

Originally Posted by Michelle
:( :( :(
That was mean! :( :(

:p

Hey, "2 weeks or maybe 2 months or maybe 2 years" ain't cool, you know it. :) Once you made a hack gotta keep it up to date until it's at least bug free. :sleep:

Quote:

Can you explain a bit more what you mean? My english is preventing me from understanding your post
I said that in my post, I referred to your hack because it is on the same topic as mine. My hack - Invite Hack - is for issuing new referrals (invitations) on a higher level, yours is for listing the referrer stats. So you maybe could have your hack detect mine and change the link that says "Click here to blah blah blah" if it is detected.

Lea Verou 11-30-2005 12:02 PM

It is bug free by now I think. Boofo was referring to a new feature not a bugfix :)

akanevsky 11-30-2005 12:05 PM

What he is referring to can be considered a bug. :sleep:

Lea Verou 11-30-2005 12:07 PM

Quote:

Originally Posted by Psionic Vision
What he is referring to can be considered a bug. :sleep:

Oh you think so? I hadn't thought of it this way... But I've seen many hacks that don't offer alternative ways of sorting so wouldn't it be a feature? Dunno :confused:

akanevsky 11-30-2005 12:13 PM

Quote:

Oh you think so?
Of course. Like, if you make a book, and have some pages mixed up either by accident or on purpose, then it can be considered a bug in that book. IMHO :D

Lea Verou 11-30-2005 12:16 PM

Then I sloud probably rush a bit more with it I guess :)
Btw you didn't explain what you meant before!

Lea Verou 11-30-2005 12:19 PM

Quote:

Originally Posted by Psionic Vision
I said that in my post, I referred to your hack because it is on the same topic as mine. My hack - Invite Hack - is for issuing new referrals (invitations) on a higher level, yours is for listing the referrer stats. So you maybe could have your hack detect mine and change the link that says "Click here to blah blah blah" if it is detected.

Oh, I just saw that! It sounds nice! :)

Boofo 11-30-2005 12:25 PM

Quote:

Originally Posted by Psionic Vision
That definitely is mean. Come on, Boofo, give her a break... She put her efforts in. You are not obliged to always express your dislike for every person's work :)

It was not an expression of dislike. It just didn't suit my needs at the time and will probably do so in the future when the fix is added. Generalizations are not a good thing to get started.

akanevsky 11-30-2005 12:53 PM

Quote:

Then I sloud probably rush a bit more with it I guess
Yes, you should :)

Quote:

Oh, I just saw that! It sounds nice!
Ok, here's what you gotta do.

Somewhere in your file after inclusion of global.php put this:

PHP Code:

if (isset($vbulletin->userinfo['invites']))
// Psionic Vision's Invite Hack Installed, Adjust Template Settings
    
if ($canmanageinvites AND ($vbulletin->userinfo['invites'] > OR !$vbulletin->options['invites_reg_only_by_invite']))
    {
        
$show['invites_link'] = 'c_psi_inv_link';
        
$show['invites_left'] = ($vbulletin->options['invites_reg_only_by_invite'] ? true false);
    }
    else
    {
        
$show['invites_link'] = false;
        
$show['invites_left'] = false;
    }
}
else
// Psionic Vision's Invite Hack Not Installed, use e-steki link
    
$show['invites_link'] = 'c_def_link';
    
$show['invites_left'] = false;


And then, in template:

HTML Code:

<if condition="$show['invites_link'] == 'c_def_link'">
        YOUR CURRENT HTML CODE
<else />
        <if condition="$show['invites_link'] == 'c_psi_inv_link'">
        <!-- ############## INVITES LINK ##############  -->
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
        <tr>
                <td class="tcat">$vbphrase[invites_issue_new_invite] <if condition="$show['invites_left']"><phrase 1="$bbuserinfo[invites]">($vbphrase[invites_x_left])</phrase></if></td>
        </tr>
        <tr>
                <td class="alt1"><span class="smallfont"><a href="invites.php?$session[sessionurl]">$vbphrase[invites_click_here_to_invite_new_users]</a></span></td>
        </tr>
        </table>
        <br />
        <!-- ############## END INVITES LINK ##############  -->
        </if>
</if>

P.S. Just noticed - nice threadid :) I put that ID in my hack so that it is linked to yours (listed in add-ons in your top post). If you put my ID in, you hack will be listed on my page.
P.P.S. If you are confused, don't worry about variables in my code. They are defined in global_start by one of the plugins that make up the Invite System.

Boofo 11-30-2005 01:35 PM

If she adds that, are we going to have to have both hacks installed then?

akanevsky 11-30-2005 01:36 PM

Nope. It simply detects whether my hack is installed and adjusts the template link+text accordingly. Both hacks remain independent from each other.:)

lazytown 11-30-2005 09:50 PM

Thank you!! Awesome mod!

I removed the word "posts:" from displaying because I thought it made things look messy. My next thought is to have it re-rank the display or remove the count for users that never posted (or posted less than a certain amount). Example, if a user posted less than 5 times, then it doesn't count as a referral, etc.

-vissa



Quote:

Originally Posted by Michelle
I am going to upload shortly a version with a bugfix and the postcount that vissa requested but I was too bored to think how to do that :o
It will be included in the next version. :)


Lea Verou 11-30-2005 09:55 PM

Quote:

Originally Posted by vissa
Thank you!! Awesome mod!

I removed the word "posts:" from displaying because I thought it made things look messy. My next thought is to have it re-rank the display or remove the count for users that never posted (or posted less than a certain amount). Example, if a user posted less than 5 times, then it doesn't count as a referral, etc.

-vissa

if you want to remove the post count for the referrers that haven't voted you can change
<if condition="$vboptions[showposts]">
to
<if condition="$vboptions[showposts] && referrerposts[$key]">
but if you want to change it for the listed referrals you'll have to edit the php file (not a difficult edit though :))

BTW Psionic Vision I thought about it and I think it's better that we release that as an addon/modification for it and not the original product :)

akanevsky 11-30-2005 10:03 PM

You know what, you're right. Assuming that my product might change with time, there is a chance that the code I gave you will stop working. Is that you reason? :)

I will release the modification separately.

Lea Verou 11-30-2005 10:10 PM

It's not the only reason, I just feel that way is the most suitable one :)

Moya 11-30-2005 11:14 PM

Thanks man

akanevsky 12-01-2005 12:39 AM

Quote:

Originally Posted by Michelle
It's not the only reason, I just feel that way is the most suitable one :)

kk..

Annie^.^ 12-01-2005 03:10 PM

Quote:

Originally Posted by ConqSoft
It has a setting already that may help you with that:


Thank you for your reply to my post and sorry for the long reply back to yours....

I didn't noticed that it was there. Ok today I tried it and I set it to 01-12-2005 and if there is no refferal then I get this error on the top of the page.

Quote:

Warning: Invalid argument supplied for foreach() in /referrers.php on line 156

Warning: arsort() expects parameter 1 to be array, null given in /referrers.php on line 162

Warning: Invalid argument supplied for foreach() in /referrers.php on line 163
I will try to update it to the latest version and see if it fix the problem.

Lea Verou 12-01-2005 03:15 PM

Annie (hopefully) that bug is fixed in the last version :)

Annie^.^ 12-01-2005 03:18 PM

Quote:

Originally Posted by Michelle
Annie (hopefully) that bug is fixed in the last version :)


I just installed the newer version and the error doesn't show up anymore. Thank you so much for this hack!!! You have been wonderfull support and a great coder.

Lea Verou 12-01-2005 03:19 PM

Quote:

Originally Posted by Annie^.^
I just installed the newer version and the error doesn't show up anymore. Thank you so much for this hack!!! You have been wonderfull support and a great coder.

Thank you so much Annie!!! :D

Annie^.^ 12-02-2005 07:39 PM

Hi Me again. I know is not your responsibility but you might could help. I thought I give it a try.
I installed an invitation addon to your addon.
https://vborg.vbsupport.ru/showthread.php?t=101801
I get this error if noone has been reffered.

Quote:

Warning: Invalid argument supplied for foreach() in /referrers.php on line 163

Warning: arsort() expects parameter 1 to be array, null given in /referrers.php on line 173

Warning: Invalid argument supplied for foreach() in /referrers.php on line 174
This is my site http://www.bikerstalkonline.com/forum/referrers.php

Lea Verou 12-02-2005 07:48 PM

I merely had noticed the addon listed here, lol.

Psionic Vision will help you better with that since I have never looked at his code. :nervous:

Perhaps adding a @ before each function will supress error messages, although I've never tried this myself, I have only read it in a book :)

akanevsky 12-02-2005 07:51 PM

Uh.. Michelle, I believe that it a problem with your hack.
You need to check whether your referrer array is empty before you do a foreach(). Otherwise PHP will complain that you are working on a non-array.

Quote:

I installed an invitation addon to your addon.
It is not an "addon for addon". It's a separate hack. It's not listed anymore, I removed it.

Lea Verou 12-02-2005 07:55 PM

Psionic Vision that bug with my hack was fixed at the new version, as Annie admitted above. :)

I have no clue of that addon system and I don't understand a thing you ever told me about it to be honest :nervous: :p

akanevsky 12-02-2005 08:04 PM

As you can see, referrer.php still gives out errors. So there is a problem with your hack. I could just assure you that my hack doesn't affect yours in any way.

Quote:

I have no clue of that addon system
When you edit your hack, there is field which says "addon for thread", where you can specify the ID of the original thread. Then your hack will be listed in that thread. It's kind of stupid, because sometimes two hacks are linked by theme, but they are not add-ons, and them being listed as "addons" is a misconception... I am going to post about it in site feedback, too.

Quote:

Perhaps adding a @ before each function will supress error messages
Yes, althought it will, it is recommended that a software would have some kind of error prevention. :)

Lea Verou 12-02-2005 08:10 PM

Yes but Annie said that after installing your hack the problem occured :)

Thanks about the addon thing and I agree with you for the "addon" misconception. :)

Dead End Society 12-02-2005 08:14 PM

Installed...great hack!

BUT....

My referrers are not coming out the same, and the date is set to 0.....any ideas?

Annie^.^ 12-02-2005 09:22 PM

Yes, this error was fixed when I updated Michelle's hack but after I added the addon hack for the referral I got this error. So I'm not sure. I have a newly reffered person and it's not showing up unless I go back 30 days in the time setting.

akanevsky 12-02-2005 10:31 PM

Ok I'll install this hack on my board and see whether there is a problem.

Annie^.^ 12-02-2005 11:19 PM

Thanks

Lea Verou 12-02-2005 11:34 PM

Did the newly referred person show up before you installed Psionic Vision's hack?

Annie^.^ 12-03-2005 03:00 PM

I already had the addon installed by then....

Lea Verou 12-03-2005 03:19 PM

Can you try to temporarily disable Psionic Vision's hack and see if it will show up?

akanevsky 12-03-2005 03:19 PM

Nope, this hack works fine on my board together with the invites hack.

Lea Verou 12-03-2005 03:19 PM

Darn :( :p

Annie^.^ 12-03-2005 09:59 PM

I will do that and see if it works or not


All times are GMT. The time now is 01:02 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01666 seconds
  • Memory Usage 1,844KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (20)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete