Welcome to Geeklog Sunday, February 16 2020 @ 05:32 pm EST

Geeklog Forums

Updated Referral Block


Status: offline

TechFan

Forum User
Newbie
Registered: 11/05/03
Posts: 12

I just finished updating my first Geeklog block. I took the other available block and pretty much re-wrote how it works, but still using the basic structure for the most part.

  • Fixed logic error and typo that prevented the registered user flag from working
  • Changed the way "boink" works. No longer automatically goes back on referral failure. Instead it displays a custom block header and feedback message with a link to go back.
  • Also made it so that the user can refer another user from the feedback page.
  • Cleaned the code (at least the way I would rather have it) and reworded most feedback messages.
Almost forgot the link: You can get it HERE

Enjoy!

 Quote

Status: offline

TechFan

Forum User
Newbie
Registered: 11/05/03
Posts: 12
I found a glitch with allowing anonymous referrals. It has now been fixed. Download it again if you want the updated version. (1.1.1)
 Quote

Anonymous

Anonymous
I am getting the following error message.. Error in PHP Block. Function, phpblock_referal, does not exist. I have copied the block in it's entirety in to lib-custom.php? Thanks..
 Quote

Anonymous

Anonymous
Sorry, the doc must be outdated. . .part of my cleaning process was to fix the mispelling of referral (it should not be spelled referral now). Ok, just downloaded it again myself at work and there are indeed two typos. One is in the refer.INSTALL doc. It should say add block phpblock_referral. I also missed changing the actual function to be phpblock_referral. Now done. Not sure if this is really what is causing your prob though. If you can connect to the irc channel (irc.freenode.net) #geeklog, and there could be someone there to help you live.
 Quote

All times are EST. The time is now 05:32 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content