vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - Yet Another Awards System (https://vborg.vbsupport.ru/showthread.php?t=196244)

RobbieZ 05-04-2009 06:09 PM

Thank you good sir :D

PirateTinman 05-07-2009 05:24 PM

Is there any way to get this mod to be displayed to the left of the Join Date and Post, in the user information field?
----------------------------------------------------------------------- like right above threre ^
I would make the page look allot slimer instead of having it under all the information.
I am sure it is possible, but I have no idea on how to move it to that location, I guess I would need to replace some code, if anyone knows how to do this I would be very greatfull.

Thanks!

Biker_GA 05-07-2009 05:37 PM

Just move the code in your postbit template to the location where you want the award to appear.

PirateTinman 05-07-2009 06:00 PM

Thanks for the response, but I did not get allot closer, would you mind tell me what file I need to edit, one of the YAAS postbits or one of the one for my forum style, havent done allot of modifying, and what code am I supposed to move?

HolyKiller 05-10-2009 08:56 AM

Fine mod, but i get one Warning if i giving avard to some user.

Code:

Warning: mysql_insert_id() [function.mysql-insert-id]: A link to the server could not be established in [path]/adminpanel/award.php on line 581
Award is given, PM sended, everything looks fine, but that messages... i don't know what is wrong.

Thanks

Holy

Biker_GA 05-10-2009 12:11 PM

Quote:

Originally Posted by PirateTinman (Post 1806514)
Thanks for the response, but I did not get allot closer, would you mind tell me what file I need to edit, one of the YAAS postbits or one of the one for my forum style, havent done allot of modifying, and what code am I supposed to move?

I did state which template to edit. Postbit

Find the snippet of code that places the award into the template, and move it to the location where you want it to appear in the template.

Biker_GA 05-10-2009 12:13 PM

Quote:

Originally Posted by HolyKiller (Post 1807897)
Fine mod, but i get one Warning if i giving avard to some user.

Code:

Warning: mysql_insert_id() [function.mysql-insert-id]: A link to the server could not be established in [path]/adminpanel/award.php on line 581
Award is given, PM sended, everything looks fine, but that messages... i don't know what is wrong.

Thanks

Holy

You've made an error somewhere during the installation. Triple check your installation and edits.

fourat 05-11-2009 03:02 AM

hi
when i put Userid for Congratulation PM ... the PM sent to user but the sender is number of the id not the name !!
when i put the id no. 1 its name is "fourat" the pm's sender name shown in the private messeges is "1" .. not "fourat"
when members try to replay this messege the forum say:
The following errors occurred with your submission
The following users were not found: 1

how i fix this problem ?

muslimmomscafe 05-15-2009 04:47 PM

Hello,

I gave a user an award, and it says on the "Users that already received award" her username but it wont show in her postbit. Why is that? I have given awards to other members and theirs did show on the postbit.

thanks

cermi 05-16-2009 08:36 PM

Quote:

Originally Posted by HolyKiller (Post 1807897)
Fine mod, but i get one Warning if i giving avard to some user.

Code:

Warning: mysql_insert_id() [function.mysql-insert-id]: A link to the server could not be established in [path]/adminpanel/award.php on line 581
Award is given, PM sended, everything looks fine, but that messages... i don't know what is wrong.

Thanks

Holy

The problem is in the mod source. The author "hardcoded" usage of (now deprecated, but that's not the point) mysql_insert_id(). But vB can use both mysql and mysqli API. And when you switch vB to new mysqli API, the problem appears:
  1. mysql_insert_id() is called without parameters, so it's supposed to take last opened mysql connection (opened from "old" mysql api)
  2. but there is no mysql connection, all connetions were opened by mysqli api
  3. "no worries!", says php, "we make new connections", so it tooks db credentials from php.ini and tries to make new connection
  4. but credentials in php.ini are usually empty, therefore the connection fails and mysql_insert_id() fails with it

Solution? I don't want to be rude, but hardcoding 1 api when vB is capable of running of 2 different APIs isn't the cleanest way. The cleanest way would be to use vB's build-in class and call some *insert_id() wrapped (if exists) or to dig the mysql(i) link object from vB's classes and use it directly in consideration of selected mysql API in vB conf. Or perhaps something better :) There are always many solutions to those kinds of problems.

But it's nice mod, anyway :)


All times are GMT. The time now is 11:02 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
  • Page Generation 0.01376 seconds
  • Memory Usage 1,746KB
  • 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
  • (3)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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