PDA

View Full Version : Mark User as Contributor


Boofo
17 Aug 2005, 18:43
Mark User as Contributor
(By Boofo)

Original vB 3 version: assassingod

Thanks to assassingod for allowing me to port his hack to vBulletin 3.5 RC 2 and creating the original hack. And to Revan for teaching me about product management.

// Description:
This allows you as an Administrator to mark users if they have donated to your web site. The setting in in the Admin CP profile for each user.

You can use text/icon, whatever you want by editing the phrase. It appears in the postbit and the user's profile.

Chris_D
17 Aug 2005, 18:49
Nice work :)

I've got the PayPal Donations mod installed already so I won't need this one, but good work nonetheless.

Boofo
17 Aug 2005, 18:53
Nice work :)

I've got the PayPal Donations mod installed already so I won't need this one, but good work nonetheless.

This just gives your contributors a page to have "their name in lights" so to speak. A thank you jester for donating to your site.

Zachariah
17 Aug 2005, 19:28
Nice job sir. I was gana start that going.

Boofo
17 Aug 2005, 19:40
Nice job sir. I was gana start that going.

Well, hello there, stranger. Nice to see you around, sir. ;)

Asterik
17 Aug 2005, 21:30
Thanks, this is just what i was looking for :D.

Boofo
17 Aug 2005, 22:18
Did you miss the install button then? ;)

Azhrialilu
17 Aug 2005, 22:25
very nice :)

BigIke
18 Aug 2005, 02:40
:: Instaled ::

Nice way to make the non-contributing users contribute ;) Thanks muchly Boofo

Zachariah
08 Sep 2005, 01:29
Error
Footer Edit.


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Try:
<a href="$vboptions/contributors.php">$vbphrase[contribs]</a> -


bf2_contribs :banana: ( you still got the brown bear I made ? as a logo ... ehhehe)





[B]Idea


'POSTBIT', 'MEMBERINFO', template



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



vs.



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




It would be cool to add the same bit of code to the Members list too :o

**Note: In the XML file. I do not know if there is a way, but <if> the mysql Table / field has been done from an older hack ask the Forums Admin durring install to del and reinstall or skip DB edits.

I had the old hack (assassingod) in and when I did the install the DB edits told me to get Bent for the contrib field was already there. I edited the installer by hand and cliped out the DB installer code and all is well.

Guess make 2 XML's ? the upgrade one and the new install ?

Boofo
08 Sep 2005, 02:15
You're probably one of the very few who would ever run into something like that. If it's there, you will find it. LOL

The contributors.php worked fine for me, but, yes, your code would be better, I guess. There! I said it! ;)

Feel free to make whatever additions you see fit and I will link them in the first post. ;)

And glad to see you still alive and kicking, my friend. ;)

Zachariah
08 Sep 2005, 02:28
also some type of WOL plug-in edit.

Perhaps this is a bit much ?



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

ashley53680
27 Oct 2005, 22:47
I have the same issue as Zachariah, but I don't know how to fix it. :(

Anyone have a new xml file for those of us who don't know how to edit it? *purty please*

ashley53680
27 Oct 2005, 23:06
Okay amazingly I edited the xml file correctly... I think at least. I have an error though. I had the old hack on my board, and I am trying to upgrade to this one. This is the error:

Fatal error: Call to a member function on a non-object in /home/XXXXX/public_html/forum/contributors.php on line 43

Boofo
27 Oct 2005, 23:11
Okay amazingly I edited the xml file correctly... I think at least. I have an error though. I had the old hack on my board, and I am trying to upgrade to this one. This is the error:

Fatal error: Call to a member function on a non-object in /home/XXXXX/public_html/forum/contributors.php on line 43

This is for 3.5.0. Do you have 3.0.3 installed by chance? ;)

ashley53680
27 Oct 2005, 23:58
It didn't copy over the old contributors.php file. ;) hehe (user issues oops)

Boofo
28 Oct 2005, 00:36
It didn't copy over the old contributors.php file. ;) hehe (user issues oops)

No problem. Glad you got it working. ;)

cheech4487
02 Nov 2005, 00:09
Where do the images show up? I'm not seeing them. am I supposed to be seeing them in the footer?

cheech4487
03 Nov 2005, 00:53
Anybody?

cheech4487
06 Nov 2005, 02:39
Well if there is no support here then I will scrap this mod. Pretty disappointing because it was a great idea that I was lookin forward too. :tired:

dan35
06 Nov 2005, 05:21
I don't see it at the footer either!

although my footer includes:
<a href="$vboptions[homeurl]">$vboptions[hometitle]</a> -
<a href="contributors.php">$vbphrase[bf2_contribs]</a> -

It just shows: Contact Us - Forumname - - Archive - Top

Boofo
06 Nov 2005, 06:37
I don't see it at the footer either!

although my footer includes:
<a href="$vboptions[homeurl]">$vboptions[hometitle]</a> -
<a href="contributors.php">$vbphrase[bf2_contribs]</a> -

It just shows: Contact Us - Forumname - - Archive - Top

Make sure the phrase is there. ;)

Boofo
06 Nov 2005, 06:42
Well if there is no support here then I will scrap this mod. Pretty disappointing because it was a great idea that I was lookin forward too. :tired:

Maybe if you would learn to click the install button, you might get some answers once in a while. ;)

As far as images, you will have to add your own if you want that. Right now it shows Contributor in the postbit and profile. The images are already there on the Contributors page. ;)

dan35
06 Nov 2005, 07:50
Make sure the phrase is there. ;)


I just followed your instructions in the text file. I search for 'bf2_contribs" phrase but don't see it. So we have to add "bf2_contribs" phrase manually?

Boofo
06 Nov 2005, 07:53
I just followed your instructions in the text file. I search for 'bf2_contribs" phrase but don't see it. So we have to add "bf2_contribs" phrase manually?

Yes. I must have missed that in the xml file. Glad you caught it. ;)

dan35
06 Nov 2005, 08:01
Please update it :p

Boofo
06 Nov 2005, 08:57
Please update it :p

When I get some time, I will.

cheech4487
06 Nov 2005, 21:25
Maybe if you would learn to click the install button, you might get some answers once in a while. ;)


So because I didn't click install "before" I actually installed it, I was being ignored for 5 days while I was waiting for help?

BuRNZau
08 Nov 2005, 07:25
Works great thanks! Clicks install. :)

One questions is there a way to order the list of contributors alphabetically?

Zachariah
08 Nov 2005, 11:26
So because I didn't click install "before" I actually installed it, I was being ignored for 5 days while I was waiting for help?

Ya most of the time. I usually make them wait 2-3 months or ignore them all together.

To me its like clock work. If I download, I hit install even if I install it 3 months later.

5 days is nothing 9/10 time I could care less about people that do not follow a set standard of rules or directions.

Your lucky he took the time IMO.

@BuRNZau
contributors.php

Find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Change:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

cheech4487
08 Nov 2005, 22:04
I could care less about people that do not follow a set standard of rules or directions.



Hey Zachariah. I was not aware that there was a set standard of rules or directions that I should click install "before" I actually had installed it. I have "never" had any problem with this before, & I really appreciate you taking the time to explain this to me, Thank You very much.
Maybe they should consider "you" for a moderator position. :up:

KW802
08 Nov 2005, 22:25
.... I could care less about people that do not follow a set standard of rules or directions.If you 'could care less' then that means you care at least a little bit. :p


:D

Zachariah
08 Nov 2005, 22:27
Maybe they should consider "you" for a moderator position. :up:
It would never happen. I would snap 25 times a day and start banning entire domain names.

If you 'could care less' then that means you care at least a little bit. :p

:D

I do not like bugs. :D

I do not like people to have extra stress, unless I am there to give it too them in person. :squareeyed:

Boofo
08 Nov 2005, 22:40
That wasn't a bug. I left it out intentionally because I like to know what order users donated in. ;)

Zachariah
09 Nov 2005, 02:02
That wasn't a bug. I left it out intentionally because I like to know what order users donated in. ;)

He was talking to me on my outlook of people that don't care to hit the "install" not your contrib port :p

Boofo
09 Nov 2005, 02:19
He was talking to me on my outlook of people that don't care to hit the "install" not your contrib port :p

I was referring to this:

I do not like bugs. :D

My apologies if I took it wrong, sir. ;)

Smiry Kin's
18 Dec 2005, 23:09
work on vb 3.5.2?

lifesourcerec
21 Dec 2005, 09:56
This just gives your contributors a page to have "their name in lights" so to speak. A thank you jester for donating to your site.

If this was to work with the paypal donations, that would have been super nice.. automatically mark them as contributors, so you wouldn't have to do it manually.

beansbaxter
30 Dec 2005, 09:57
I am running 3.5.2 and when I import the XML plugin, I get a database error.

BuRNZau
10 Jan 2006, 11:07
@BuRNZau
contributors.php

Find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Change:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Works great.

TY! :)

EDIT: Also running it on vB v3.5.3 no probs.

Club3G
14 Jan 2006, 20:30
/me clicks install.

3.5.3, two small issues,

- The install doc says:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



But I only see one instance of it.

Additionally, importing the product didn't create the phrase bf2_contribs, I had to make it manually. Working perfectly though, thank you. :)

White Knight
29 May 2006, 13:22
How do you upgrade from 3.0 since i have 3.0 already installed?

White Knight
29 May 2006, 13:30
Nevermind.. fix the code myself..

If you already have 3.0 installed and you need to just do a upgade.. download this xml file.

Dont want anyone that used 3.0 and couldnt get it to work on 3.5 just junk it.. specially when it can make a lot of your members mad

SHalliday
01 Jun 2006, 19:59
Looking for something like this for quite some time. Thank you and Clicks Install

between worlds
12 Jun 2006, 21:54
Installed. Thank you!

ditangquan
16 Jun 2006, 23:28
this thing is buggy. i don't see anything on the memberinfo even though i put the phrase in the right place. i do show it on the regular info page. 3.5.4

Boofo
17 Jun 2006, 00:01
this thing is buggy. i don't see anything on the memberinfo even though i put the phrase in the right place. i do show it on the regular info page. 3.5.4

It is not, buggy. The code to look for my have changed.

Don't use it if you don't want to. ;)

hotwheels
17 Jun 2006, 22:47
will try tonight........

The Wise One
18 Jun 2006, 03:41
installed. thanks for porting it.

i also had to remove the DB code as i got the same error. after that...installed just fine and works great.

between worlds
21 Jun 2006, 22:14
I installed it fine but the link does not appear in the footer it shows up as:

- -

The link should be between the dashes but for some reason isn't showing. Any idea why this might be?

The code looks like this

<td class="tfoot" align="right">
<div class="smallfont">

<strong>
<if condition="$show['contactus']"><a href="$vboptions[contactuslink]" rel="nofollow">$vbphrase[contact_us]</a> -</if>
<a href="$vboptions[homeurl]">$vboptions[hometitle]</a> -
<a href="contributors.php">$vbphrase[bf2_contribs]</a> -
<if condition="$show['admincplink']"><a href="$admincpdir/index.php$session[sessionurl_q]">$vbphrase[admin]</a> -</if>
<if condition="$show['modcplink']"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a> -</if>
<if condition="$vboptions['archiveenabled']"><a href="archive/index.php">$vbphrase[archive]</a> -</if>
<if condition="$vboptions[privacyurl]"><a href="$vboptions[privacyurl]">$vbphrase[privacy_statement]</a> -</if>
<a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a>
</strong>

<br />
$vboptions[copyrighttext]


</td>
</tr>
</table>

VMB
13 Aug 2006, 02:23
How would I get the contributor title to show up above avatars on the postbit_legacy?

brvheart
02 Oct 2006, 22:35
any chance for this on 3.6.x? I sure hope so :)

phpdevrus
03 Oct 2006, 03:31
yep would definitely be great for 3.6.x :-)

spaghie
07 Oct 2006, 22:33
It worked for me on 3.6.1! thanks.

brvheart
09 Oct 2006, 02:04
sweet thank you :)

Sax on the Web
08 Dec 2006, 09:15
Got following error message. What am I doing wrong?

There seems to have been a problem with the The Sax on the Web Forum database.
Please try again by clicking the Refresh button in your web browser.

An E-Mail has been dispatched to our Technical Staff, whom you can also contact if the problem persists.
We apologise for any inconvenience.

Database error in vBulletin 3.5.4:

Invalid SQL:

SELECT `userid`, `username`, `usergroupid`, `displaygroupid`
FROM `user`
WHERE `contrib` = '1';

MySQL Error : Unknown column 'contrib' in 'where clause'
Error Number : 1054
Date : Friday, December 8th 2006 @ 11:41:05 AM
Script : http://forum.saxontheweb.net/contributors.php
Referrer :
IP Address : 84.249.42.17
Username : Harri Rautiainen
Classname : vB_Database

MrPHD
08 Dec 2006, 10:15
Great job. Thanks and installed

BuRNZau
08 Jul 2007, 13:53
I have an old database and I wanted to know if I can use phpMyAdmin to list all my users in the database marked as contributors?

ozmazdaclub
08 Aug 2007, 16:18
Try:
<a href="$vboptions[bburl]/contributors.php">$vbphrase[contribs]</a>

between worlds - Have you tried that?