vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Standalone Add-On for Awards/Medals/Cards Hack (https://vborg.vbsupport.ru/showthread.php?t=76903)

Creed 02-22-2005 10:00 PM

Standalone Add-On for Awards/Medals/Cards Hack
 
Stand Alone Awards/Medals/Cards Add-On Hack


What this hack does:

This hack removes the award showcase from your users profile, but leaves a link to the new standalone version. This hack gives your members (usergroups you specify) the ability to request awards for other members.

Requires: Awards/Medals/Cards Hack installed!

Instructions include:

Template Edits: 5
New Templates: 3
New Files: 1
New Phrases: 2
File Edits: 5
DB Changes: 1


1.01 Update:
-- Removed unused queries in award.php, and cached templates to make sure page loads as fast as possible.
-- Grouped awards templates together, to make styles and templates cleaner
-- Fixed typo in template causing images not to show properly in IE
-- General coding cleanup!

Screenies are attached, and you can see this in use here!

Creed 02-23-2005 02:09 PM

Screenies!!

Polo 02-23-2005 03:01 PM

mmm... :) interesting thanks Creed

willie3wire 02-23-2005 06:19 PM

Nice Addon.

bigcurt 02-23-2005 06:37 PM

Awesome man thanks...

/me installs

Creed 02-24-2005 03:00 AM

Glad some people found use from it ;)

Creed 02-25-2005 10:38 AM

The update is there, I will be hopefully soon adding a nice little optional link to display an available awards list soon :) (Meaning, such as in navbar, or postbit, etc) Also, when I get off my lazy arse, I will make a variable for the User that is emailed the requests for awards in the admincp, so it doesn't have to be hardcoded into the award.php file :D

paulomt1 02-26-2005 12:53 PM

The hack work with vb 3.0.7?

Creed 02-26-2005 12:54 PM

I haven't installed 3.0.7 yet, however there is absolutely NO reason that it wouldn't work. There is only one template edit from the original vBulletin install files.

paulomt1 02-26-2005 01:12 PM

I have this hack installed in my previous vb 3.0.3 but when I upgraded to 3.0.7 this hack doesn’t work anymore.
I have installed it from scratch but didn't work.

Creed 02-26-2005 01:15 PM

Do you have the Awards/Medals/Cards Hack installed as well?

paulomt1 02-26-2005 01:18 PM

No, because don't work in VB 3.0.7

Creed 02-26-2005 01:36 PM

That would likely be the problem, as for why the hack wouldn't work with 3.0.7 I don't know. You need it installed before my add-on will work. Sorry!

Creed 02-26-2005 09:56 PM

What exactly is happening, that causes the Awards/Medals/Cards Hack not to work with 3.0.7? I would like to try to fix it myself ;)

Arial 02-27-2005 10:27 AM

Quote:

Originally Posted by paulomt1
No, because don't work in VB 3.0.7

Can I ask you why the original hacks version does not work with vb 3.0.7 ?

We are considering paying a developer to update the medals hack program but he needs to know waht the basic problem was.

paulomt1 02-27-2005 12:17 PM

I have installed it finally in VB 3.0.7 but with some hard work for who don't know program in PHP.
The queries codes are different in VB 3.0.7.

Arial 02-27-2005 01:03 PM

Would you be interested in installing it on my forum for a fee, seeing as you have managed to get it work?

Arial 02-27-2005 02:47 PM

Or alternatively give us some idea of what you had to do so another modder/coder could attempt to make this work for vb 3.0.7 etc.

paulomt1 02-27-2005 03:36 PM

Sorry, but I'm not a coder for can do this.

The queries that I talk is the code started by this line:
$post = $DB_site->query_first("

You must see the differences and apply the changes yourself or ask for a coder do the job for you.

Arial 02-27-2005 03:40 PM

Ok thanks , Creed is that enough to go on re our PM?

Creed 02-27-2005 07:25 PM

Hrmn, odd. I finally got off my lazy arse and installed a test 3.0.7 board and its working just fine there. So there should be NO problems installing on 3.0.7.

http://caldermonkey.hdclan.org/forums

You can see it in action

Creed 02-27-2005 07:46 PM

I've also re-written the install instructions. So that they are hopefully easier to understand, and yes it DOES work on 3.0.7

Cyricx 03-01-2005 05:00 PM

I didn't have any problems adding the awards in 3.0.7 you just have to toss in the part that says ,useraward
or the left join section.

Basically, whenever you have a HUGE replace this in a hack and you don't have the original code, compare what they want you to take out with what they want you to put in, figure out the differences and then add in those differences.

Creed - How does this hack go about adding the award? Does it automatically add it to the user? That's what I'm hoping for that way I can give my mods the abilities to request these or more directly add them via a controllable link then granting them access to edit users :)

Creed 03-02-2005 02:16 AM

It uses the admin user options to add/remove the awards. I was thinking about adding the ability to let usergroups you specify add/remove awards

Cyricx 03-02-2005 11:51 AM

That would be very cool, kinda cut out the middle man some and let some of the mods do the work. :)

Great hack in any case, gonna roll this onto my test server and then take it live :)

Arial 03-04-2005 07:09 PM

Quote:

Originally Posted by Creed
Hrmn, odd. I finally got off my lazy arse and installed a test 3.0.7 board and its working just fine there. So there should be NO problems installing on 3.0.7.

http://caldermonkey.hdclan.org/forums

You can see it in action

Creed

On the one you had installed on the above URL you had some great looking award graphics. ?

I think they were animated in blue. Where they stock with the hack or did you just locate them somewhere?

Creed 03-05-2005 08:13 AM

My co-admin made them. Unfortunately the test board I had up, is currently dead (not because of the awards hack :-p), because I killed it to save space on a database :)

You can still view the awards images that he's talking about at www.hdclan.org/forums/awards.php

Arial 03-05-2005 08:51 AM

Ahh, shame, they look fantastic. Shame there's not a whole set, I would have paid for those they look that good.

Arial 03-05-2005 01:38 PM

To Creed/ And or any other gurus out there

Anybody interested in earning some $$$ utilising their knowledge of this hack go here:
https://vborg.vbsupport.ru/showthread.php?p=621249

Twiser 03-14-2005 09:26 PM

Thx for a great hack. I have got everything working perfectly except
the following.

U are not allowed to reqeust an award. I have check and the email and its enabled. But I was wondering

"DB QUERY (replace *TABLE.PREFIX* with your VB table prefix, if you don't have one remove it completely along with the underscore),:
*****************************************
ALTER TABLE *TABLE.PREFIX*_usergroup ADD `awrequest` INT( 12 ) NOT NULL"

were to I change that in the db or in the award.php.

thx for any help.

Creed 03-15-2005 08:40 AM

Quote:

Originally Posted by Twiser
Thx for a great hack. I have got everything working perfectly except
the following.

U are not allowed to reqeust an award. I have check and the email and its enabled. But I was wondering

"DB QUERY (replace *TABLE.PREFIX* with your VB table prefix, if you don't have one remove it completely along with the underscore),:
*****************************************
ALTER TABLE *TABLE.PREFIX*_usergroup ADD `awrequest` INT( 12 ) NOT NULL"

were to I change that in the db or in the award.php.

thx for any help.


As far as the request award, that is a setting under your Admincp, you can set so that only certain usergroups can request awards.

For the DB Query, you need to run that for the settings to take effect, if you don't have a prefix on your table just run this:

PHP Code:

ALTER TABLE usergroup ADD `awrequestINT12 NOT NULL 


Twiser 03-15-2005 01:27 PM

That worked liked a charm , Thx for the help =)

Creed 03-15-2005 11:32 PM

No problem, glad you got it working :)

Flow Fusion 03-16-2005 12:13 AM

sorry but where is the "awards_mailselect template" located? I only have ustom Templates

AWARDS [Edit] [Revert] [View Original]

awards_bit [Edit] [Revert] [View Original]

awards_earnawards_bit [Edit] [Revert] [View Original]

awards_userawards_bit [Edit] [Revert] [View Original]?

Creed 03-16-2005 05:25 AM

awards_mailselect is a new template :)

Flow Fusion 03-16-2005 10:54 AM

So far soo good till I get to this...

DB QUERY (replace *TABLE.PREFIX* with your VB table prefix, if you don't have one remove it completely along with the underscore),:<----what does this mean?
*****************************************
ALTER TABLE *TABLE.PREFIX*_usergroup ADD `awrequest` INT( 12 ) NOT NULL<----what does this mean?

also I noticed the java script doesn't work any longer on the drop menu for the usernames. I click o the name and it takes me to his/her member id. Any suggestions?

Marco van Herwaarden 03-16-2005 11:30 AM

If you don't use table prefix, then use:
[sql]ALTER TABLE usergroup ADD `awrequest` INT( 12 ) NOT NULL[/sql]

If you use a table prefix of for example 'vb3_', then use:
[sql]ALTER TABLE vb3_usergroup ADD `awrequest` INT( 12 ) NOT NULL[/sql]

Flow Fusion 03-16-2005 11:37 AM

I'm sorry but what do you mean "if I use table prefix?" I'm lost here and yes I did click the link lol.

Marco van Herwaarden 03-16-2005 12:09 PM

Check either your includes/config.php for a line like:
PHP Code:

$tableprefix ''

If you are using a table prefix, then you will see it here between the quotes.

Or check in myphpadmin, if all tables are prefixed.

Twiser 03-16-2005 03:08 PM

Spoke a bit to soon =) , I have everything set up all the modification done , But in userprofile the awardspicture shows up instead of the link , What can I have missed? ,
I have gone trough all the step in the upgrade a couple of times now and cant see that I missed something.
Sorry to bother u with questions but I really would love to see this mod work perfectly


All times are GMT. The time now is 04:50 AM.

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.01218 seconds
  • Memory Usage 1,810KB
  • 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
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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