![]() |
ragtek Referrer Tab
Thid add-on adds a Tab to the userprofile where you can see all referred Users.
Installation: Upload the ragtek Folder into your forum directory. Install the xml file changehistory: 1.0.5 =>
|
When installed, priduct is disabled by default. Unexpected. It looked like it wasn't doing aything. I went to uninstall it and discovered it wasn't enabled.
|
Cosmetic bug:
Code:
<phrase name="referrerTab" date="1275564286" username="ragtek" version="1.0.2"><![CDATA[referred Users]]> Code:
<phrase name="referrerTab" date="1275564286" username="ragtek" version="1.0.2"><![CDATA[Referred Users]]> |
Quote:
|
There is also a template eval in member_complete.php that needs to be updated for vb 4.
Why not just add the plugin files code to the XML instead of using separate files for them? |
Quote:
And i have the seperate files because of my build/development add-on. |
vb 4 doesn't use eval anymore. It uses vB_Template::create now. Whether the eval is working or not is immaterial. The correct way to do it for vb 4 is the vB_Template::create. This was all I was trying to point out.
|
Ah, youre right.
It seems that i was completly confused^^ thx |
And you could throw that right in a plugin and save having to use a separate file for that.
|
No i cant because of my build tool;)
And how should i remove the eval? There is no template! Just check the blog Add-on, it's doing it the same way! PHP Code:
|
Okay, well, it's your product so however you choose to do it is for you to decide. I was just tying to offer some help is all.
|
Yea and thx for this, but as you see, you was wrong.
I don't have a template at the member_complete plugin, so i'm not making anything wrong. And atm my build-addon isn't finished, so i have to use the plugins this way (with includes)... There's no other way;) |
You show me anywhere in vb 4 where they are still using the eval statement and only then will I admit I was wrong.
|
Quote:
How else would you make this? |
I would do the whole hack different and get away from the separate files. But since you need the files for your setup, there's not much else you can do, I guess. Like you said, if it works...
|
And what's with the eval?*g* Am i right or not?
Yea, the big part of the files will go away, when my development/builder tool is finished, but until then i have to make it this way (i need them because of the PHP-IDE & SVN Support ;) ) |
Well, as the blogs are still being worked on, IIRC, that eval won't be there long, as I'm sure it was overlkooked when they started replacing the evals. But yes, you are right, if that is what you want to hear for a single eval in the whole scheme of things.
|
Thx, that's very good for my egohttp://ragtek.org/smil/badteeth.gif
|
I gathered that from out posts. ;)
Also, I will PM you when I get it done on my end, but I did manage to find a way to do it all in a plugin. ;) |
And why do you think it's better to do it in an plugin instead of an file and including it?
If you use an php Opcache, my method is better, because eval'd code can't be optimized, the file can;) So it could be better for the performance. And for me as Developer it's easier because i can work with an IDE and use SVN and export the whole add-on path /ragtek/addonid to the SVN Server... Also it's easier for debugging. But when my developer/add-onbuilder is finished, it will put the code into the plugin directly instead of the seperate files. You're right that only a pluginfile is user friendlier than my method, but mine has much more benefits;) |
Both ways have their advantages. But with the user coding level here on the org, plugins are a lot less hassle to support.
|
It's really funny that somebody who have no clue from coding is saying how i should code my add-ons:D
Thx for trying, but ..... Why should files be less hassle to support then plugins? It's the same....... For me it's easier because i can use the ide and version control software Also it's easier for CI and could have better performance with php opcaches... |
Both please stop attacking eachother.
|
Quote:
|
All times are GMT. The time now is 02:17 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|