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)
-   -   Yet Another Awards System [1.2.1] (https://vborg.vbsupport.ru/showthread.php?t=78934)

Arial 03-29-2005 07:08 AM

It's not a function we would want but I can see how some would require it as a function. I presumed this to mean that members can request an award for another member not for themselves.

Say for instance you have a large group of individuals say over a 100 or so and many of them are in different sub groups etc, only they know whether somebody is deserving of a medal not one potentially aloof admin. , so the system allows the admin to see 'votes' if you like , that a certain member has had for an award from other members then he can authorise it or decline it.

I guess that is the meaning, however I think its of secondary importance to issues like
allowing members to comment on awards given etc.

I will get this new version with posbit installed basically now and put up a link shortly.

TTG 03-29-2005 07:12 AM

thanks for the upgrade mtha .. installed with no problems :)

mtha 03-29-2005 07:29 AM

Quote:

Originally Posted by Arial
allowing members to comment on awards given etc.

Interesting, I give this some thought, and added to the todo list for a later version.

Quote:

Originally Posted by TTG
thanks for the upgrade mtha .. installed with no problems

Wow, it looks nice on your colourful site TTG. I mean your site looks great :D

Can I borrow your site as a demo? :>

mtha 03-29-2005 08:34 AM

2005.03.29 - Version .1.0.1b
+ Display awards in postbit for hybrid and threaded mode
+ Display award users for each awards in ACP/Award Manager
- Upgrade instruction: /docs/UPGRADE2.txt
- Replace /admincp/award.php with the one in zip file

Creed 03-29-2005 10:03 AM

Well, the only thing I could ask for which was included in my add-on to Animewebby's hack is teh ability to request awards :)

ChrisBaktis 03-29-2005 12:33 PM

Quote:

Originally Posted by mtha
Hmm, I dont see any error there. I install/uninstall several times without error.

Why dont you try to download the new version, uninstall the hack (just to make sure your database is clean), and install it again.

If the error still there, try to edit the awards_install.php, remove line 233 (where executing that drop table query) and see how it works out.

Good luck

Tried and same error - I removed that line as you said and now get this error.

PHP Code:

Database error in vBulletin 3.0.7:

Invalid SQLCREATE TABLE award (
              
award_id smallint(5unsigned NOT NULL auto_increment,
              
award_cat_id smallint(5NOT NULL default '1',
              
award_name varchar(50NOT NULL default '',
              
award_desc varchar(250NOT NULL default '',
              
award_icon_url varchar(250NOT NULL default '',
              
award_img_url varchar(225NOT NULL default '',
              
award_displayorder smallint(5NOT NULL default '0',
              
PRIMARY KEY  (award_id)
            ) 
TYPE=MyISAM;
        
mysql errorYou have an error in your SQL syntax near ';
        ' 
at line 10

mysql error number
1064 

Not sure why im the only one getting this error.

mtha 03-29-2005 12:39 PM

Quote:

Originally Posted by ChrisBaktis
Tried and same error - I removed that line as you said and now get this error.

PHP Code:

Database error in vBulletin 3.0.7:

Invalid SQLCREATE TABLE award (
              
award_id smallint(5unsigned NOT NULL auto_increment,
              
award_cat_id smallint(5NOT NULL default '1',
              
award_name varchar(50NOT NULL default '',
              
award_desc varchar(250NOT NULL default '',
              
award_icon_url varchar(250NOT NULL default '',
              
award_img_url varchar(225NOT NULL default '',
              
award_displayorder smallint(5NOT NULL default '0',
              
PRIMARY KEY  (award_id)
            ) 
TYPE=MyISAM;
        
mysql errorYou have an error in your SQL syntax near ';
        ' 
at line 10

mysql error number
1064 

Not sure why im the only one getting this error.

Please try to execute the query in phpMyAdmin or in AdminCP

[sql]
CREATE TABLE award (
award_id smallint(5) unsigned NOT NULL auto_increment,
award_cat_id smallint(5) NOT NULL default '1',
award_name varchar(50) NOT NULL default '',
award_desc varchar(250) NOT NULL default '',
award_icon_url varchar(250) NOT NULL default '',
award_img_url varchar(225) NOT NULL default '',
award_displayorder smallint(5) NOT NULL default '0',
PRIMARY KEY (award_id)
) TYPE=MyISAM;
[/sql]

there's a list of SQL queries in my "Notes.txt", could you try that manually, and see if you can do it.
BTW, do you have the right to CREATE TABLE in the database?

ChrisBaktis 03-29-2005 12:43 PM

I got a message 'effected rows: 0'

I used the vbulletin admin cp to run it. would I have gotten an error or message if it didnt take?

mtha 03-29-2005 01:03 PM

Quote:

Originally Posted by ChrisBaktis
I got a message 'effected rows: 0'

I used the vbulletin admin cp to run it. would I have gotten an error or message if it didnt take?

It seems that you was able to create the database. Check database structure in phpMyAdmin to see if you have that table created?

Is there any different from the query you ran and the one in the installation file?

Or if you are the only one who get this error, I just have you to create the tables manually.

Execute the following queries: (if you run in AdminCP, you need to run each of them individually)

[sql]
DROP TABLE IF EXISTS `award`;
[/sql]
[sql]
CREATE TABLE `award` (
`award_id` smallint(5) unsigned NOT NULL auto_increment,
`award_cat_id` smallint(5) NOT NULL default '1',
`award_name` varchar(50) NOT NULL default '',
`award_desc` varchar(250) NOT NULL default '',
`award_icon_url` varchar(250) NOT NULL default '',
`award_img_url` varchar(225) NOT NULL default '',
`award_displayorder` smallint(5) NOT NULL default '0',
PRIMARY KEY (`award_id`)
) TYPE=MyISAM;
[/sql]
[sql]DROP TABLE IF EXISTS `award_user`;[/sql]
[sql]CREATE TABLE `award_user` (
`issue_id` smallint(5) NOT NULL auto_increment,
`award_id` smallint(5) NOT NULL default '0',
`userid` int(10) NOT NULL default '0',
`issue_reason` varchar(255) NOT NULL default '',
`issue_time` int(10) NOT NULL default '0',
PRIMARY KEY (`issue_id`)
) TYPE=MyISAM;
[/sql]

and then go to the next step:
/admincp/awards_install.php?step=dofileedits


You may also create the award_cat table, for future development:
[sql]
REMOVED
[/sql]

ChrisBaktis 03-29-2005 01:41 PM

Got it all working by doing it manually - I was going to ask if a single user can get the same award more then once...that would make this hack everything I needed - well you can - Thanks!


All times are GMT. The time now is 09:38 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.01229 seconds
  • Memory Usage 1,768KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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