![]() |
Quote:
Where does the "?action=points" go? That's the thing I'm tripped up on. Thanks :) |
Any link to give points should read...
your.domain.here.com/board/mod/points.php?action=points |
Avenger,
I am not sure how to go about the decimal points then. I am kind of curious about this myself so I may putz around with it over the next couple of days. I will post if I find anything. About your other question, we are currently using two instances of the points hack successfully. The easiest way I can think to do this would be to install the first hack and get that working successfully. Then rename points.php to something else, lets be original and say points1.php, and install it the same way you went about installing the hack the first time around. Just remember that you will need a NEW custom profle field that you will need to reference. You will also need to change link in the postbit to point to the correct file. BTW: Is this for a win / loss record ? |
Sleepbryd,
Unfortunately, this will not work with vb 2.0.1 - when you create the custom profile field you are not presented with the option of making it invisible / uneditable by the user. Hence they can change the value placed. If your moderately good with php and sql, you can manually add the field and reference it directly in the script. Thats about as much support as I could give pertaining to this. Reeve |
Ok I'm sorry I'm such a pest, but I truly don't understand this...In the template_postbit thing that you edit, when you add that big link so when a mod clicks on "Points" under someone's name they can add the points. But, it doesn't work becuz it just opens a blank page. I have read all of the posts in here several times ans I still cannot figure it out. I want mods to be able to give out points, and I realize you have to make the link point to where you want it to, and I've tried, but it doesn't work. Again, sorry for being such a pest!!
|
Did you edit moderator.php properly?
|
Yep, I added the stuff in the instructions like you said.
|
[QUOTE]Originally posted by Reeve of shinra
Avenger, I am not sure how to go about the decimal points then. I am kind of curious about this myself so I may putz around with it over the next couple of days. I will post if I find anything. About your other question, we are currently using two instances of the points hack successfully. The easiest way I can think to do this would be to install the first hack and get that working successfully. Then rename points.php to something else, lets be original and say points1.php, and install it the same way you went about installing the hack the first time around. Just remember that you will need a NEW custom profle field that you will need to reference. You will also need to change link in the postbit to point to the correct file. BTW: Is this for a win / loss record ? |
Ok I've followed the instructions to the tee..But I still cannot figure out how to do the linking thing to points.php so that mods can give out points. Please assist if you can, thanks!! :)
|
I reistalled the hack, and the link where it says "Points:" still doesn't work. Everything else works, just I can't get that link to work...I'm gonna go crazy figruin this thing out... :confused:
|
Radon3k - Your problem might be because you have your VB setup in your main directory .... (not under FORUM like VB.org does).
In your postbit template, Try replacing: <a href="../mod/points.php?s with: <a href="http://www.thessp.net/mod/points.php?s Leaving the rest of the url intact. |
Yeah, I've tried that...I'll try again though, don't see the harm...I see you've registerd on my board, so I suppose you can witness my testing this ;)
|
Well that's what I get now when I try it...bah...It's better than a blank page I suppose...what now? hah...Thx:)
|
Gettin there...this is the error I get now: Parse error: parse error in H:\webspace\websites\thessp.net\thessp.net\www\mod \moderate.php on line 28
Now what? Thanks :) |
In the postbit, Try changing:
http://www.thessp.net/mod/moderate.php? to: http://www.thessp.net/mod/points.php?s |
< a href="http://www.thessp.net/moderate.php?s=$session[sessionhash]&action=points&userid=$userinfo[userid]" target=_blank >
That's what it currently says...What do I change? Edit: Meant to also add that the link is correct, but for the purposes of this board and I'm not sure if it would take it or not, so to be on the safe side I put spaces right after the "<" and before the ">" |
change it to this:
< a href="http://www.thessp.net/mod/points.php?s=$session[sessionhash]&action=points&userid=$userinfo[userid]" target=_blank > |
Works! Great!! Thanks very much sir!!!! I appreciate all the help!! :)
|
I see the roblem now...
The link is supposed ot point to MODERATOR You pointed it at MODERATE ATE - ATOR Notice the difference? Moderator.php adds an extra layer of security checking to the process and doesn't place any noticable strain on the server. |
I don't have moderaTOR, I only have moderATE. And I'm running vBulletin 2.2.1. But it's working now so thanks a lot! :)
|
Can I buy the store from you please? I think it would be perfect on my site
|
Some people were talking about installing this hack twice - and I thought it was once to add points and once to take them away.
I am probably wrong about that, but in case I'm not (fat chance) to do that you only need to install the hack once, and then to take away points you just type in a negative number :) Work great though! I am using "mithril" for my lord of the rings boards lol :) |
Lord of the Rings board ... oooo - I will have to drop by sometime.
Yeah, to take away 'points' just use a neg #. |
Can I buy the store from you please? I think it would be perfect on my site
|
No
|
Quote:
I'm writting my own version of the store hack, its not that hard |
great hack!
|
Problem:
When entering text into box, it says it got submited, but it doesnt change i did reeve's 0 defult thing, could that have messed it since i made it int? |
Quote:
|
if one of you could release it that would be nice:)
|
Nope, i cant
i have to hardcode it into my site personally, releasing it will be too hard because everyone will have probs with it |
Quote:
I can't put text in the point field on the profile though - if I change it back to how it was originally, will it work? And if I can get a store type thing working on my boards, I'll post it here. :) |
Quote:
|
First, great hack, and thanks for sharing.
We have a reward site where points are an actual currency that can be converted to tangible goods so a hack like this made perfect sense for us. We ended up dumping it and writing our own. The reason I'm contacting you is to offer to share the code we've written. Our hack is very specific to our system and wouldn't work to just give it to users (it would take some cleaning up and generalizing and removing our point inserts (into other database tables) etc, but we've added a couple of core features that I think would enhance your hack immeasurably. First, we've put a short segment of php into the include template and then added a few lines to the postbit template and now we have the ability to assign points inline to the posts (save a click). This of course is a time saver and its fairly simple for any user to do. I'm uploading a screenshot with this post so you can understand what I am referring to. This also eliminates the edit to moderator.php and just sends the request straight to points.php which validates the request itself. The add points box you see in the screenshot below only appears to moderators (end users do not see this box). Second, we've created a user on our system called PointFairy and when we add points we have the points.php automatically insert a post into the thread saying that points were added as well as update the pointfairy user's sig to show total points issued to date by the point fairy. You can see an example of this in action at http://forums.primarewards.com/forum....php?forumid=7. Most of the threads there have an automated "pointfairy" message appended to them. You'll notice it updates post/thread counts and the links as well (we didn't make it e-mail because our system triggers an e-mail when points are added anyway, but that wouldn't be a big change either). Once we remove our own database inserts (just dealing with vBulletin field5 and inserting the post, etc.), we've got points.php down to around 40 lines of PHP (this doesn't account for the mass processing that's in the original). Anyway, the point in contacting you is to offer to send our code to you if you want to generalize it, document it, and either merge it with yours or perhaps even use it instead of yours for your next release. If you're interested, contact me at ceo@primainternet.com. I clean it up and make it a hack and post it here myself, but I just don't have the time to come back and support it, so you're welcome to it if you'd like it. Thanks for the inspiration. |
We haven't released it here yet, but after a million and a half minor revisions we settled on a similiar inline text field that can award the needed points to the specific user. Our only addition to that is a pop up alert that tells you it was successful.
The Point Fairy is a very HOT idea. If your willing to share, then I would deffinitely love to intergrate that into what we're currently using and re-release it here. |
Thanks for dropping me a line. I sent the code to you, hope it helps :)
|
Quote:
But really... once you realize what you need to do, it becomes mind-numbingly simple. Part of the problem with mine is that it's dependent on a whole whack of mini-hacks already added to our forum... and not documented... Plus the code is a real mess. Though I would be interested in seeing what others come up with for this... |
Im actually having probs making it
I can do the layout and stuff, but i dont know how to get it to actually how to take the points to make something |
anyway I can make it so I give ITEMS instead of points, for example:
There are 3 fields Misc. Items Armor Weapon Misc. Item example=potion armor example=steel plate weapon=long sword so u can go and edit the users ITEMs instead of points? can someone PLZ make this it would help me and a lot of other members a lot im sure |
ya that would be cool as #&@$
|
All times are GMT. The time now is 01:54 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:
|