vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Miscellaneous Hacks - Yet Another Awards System (https://vborg.vbsupport.ru/showthread.php?t=187600)

nul7 09-13-2008 08:00 AM

Quote:

Originally Posted by liwo (Post 1620962)
Thanks for that info! I tested it and there is no need to change anything in member.php. It works with the code in the plugin.
The template edit of course is necessary.

Strange... mine wouldn't work without doing the file edit. Must have interference from another plugin/product. Sorting that out will give me something to do tomorrow... er... later today. lol

Blackhat 09-13-2008 02:34 PM

I dont know if anyone requested this, but when you click the award icons in postbit you are taken to the member profile page.

Is it possible to be taken to the actual award tab on the member profile page ?

Thanks for a great mod! :)

AuroraStorm 09-13-2008 03:01 PM

I'm still waiting on word on how to change the message.

liwo 09-13-2008 04:17 PM

Quote:

Originally Posted by Blackhat (Post 1621217)
I dont know if anyone requested this, but when you click the award icons in postbit you are taken to the member profile page.

Is it possible to be taken to the actual award tab on the member profile page ?

Thanks for a great mod! :)

Look 3 Posts above yours, thank you. (You only need to do the template edit)

SVTCobraLTD 09-13-2008 07:56 PM

Can someone post how a link to one of their member profiles that shows how it should look? I cannot get the awards to show in members profiles. This is on 3.6.10pl2

inciarco 09-13-2008 09:50 PM

Quote:

Originally Posted by nul7 (Post 1620952)
Installed and working fine except for the links in the postbit did not link directly to the "My Awards" tab in the member profile. Here is the fix:

In member.php find:
Code:

        'contactinfo' => array(
                'class' => 'ContactInfo',
                'title' => $vbphrase['contact_info'],
        ),


Below that add the following:
Code:

        'myawards' => array(
                'class' => 'MyAwards',
                'title' => $vbphrase['my_awards'],
        ),


NOTE: It appears the coder is trying to do this with the plugin "YAAS in Member Profile - Profile", but it doesn't seem to be working.

Then, replace the entire awards_postbit_display template with:
Code:

<!-- show awards -->
<if condition="$post[showuserawards]">
<br />
<fieldset><legend><a href="member.php?u=$post[userid]&tab=myawards" title="$vbphrase[more_awards]">$vbphrase[award_showcase]</a></legend>
<div>
$post[userawards]
<br>
<a href="member.php?u=$post[userid]&tab=myawards" title="$vbphrase[more_awards]">$vbphrase[total_awards]</a>: $post[num_awards]
</div>
</fieldset>
</if>
<!-- /show awards -->


For anyone who has edited this template, all you need to do is replace the "#award" appended on the links with "&tab=myawards".

Hope that helps!

Great Help, Thank You Very Much, Works Really Fine. :up::up:

I'd also like to Add that for the Postbit Icons of the Awards to Point Right inside the Tab, you should also Modify the "awards_bit" Template Replacing the Current Code with the Following One (notice that I only Added a "&tab=myawards" before "#aw_issue$award[issue_id]" and after "u=$award[userid]":

Code:

<a href="member.php?$session[sessionurl]u=$award[userid]&tab=myawards#aw_issue$award[issue_id]"><img src="$award[award_icon_url]" alt="$award[award_name]" border="0" /></a>&nbsp;
(All of This Thanks To Your Very Useful Indications). :up:

My Best Regards.

:)

Xanlamin 09-13-2008 10:01 PM

This will not work on 3.6 version, as they do not have the tabs in the profile, you need version 2.1.4 of this hack which can be found HERE

Scarface Claw 09-14-2008 03:04 AM

Quote:

Originally Posted by ImmortalForums (Post 1619391)
For those having the MySQLi error on their member pages open the plugin with your text editor of choice

Go to line 704 or find
Code:

$total_awards = mysql_num_rows($alluserawards);
and change to
Code:

$total_awards = mysqli_num_rows($alluserawards);
I dont know how to make this work in MySQL and MySQLi but MySQLi is recommended over MySQL by both the vbulletin developers and creates of mysql so this is a simple fix.

Maybe this can be thrown into the main post.



Awesome, this fixed my problem also, thanks.


A little bug, my awards disappear from post bit after I edit a post, but display again once I click away.

hjmaier 09-14-2008 07:57 PM

I detected a small error.

I use links with [url] tags in awards. It seems that tags are not turned into html when displaying in the member profile. I can only see the tags there.

oh, i converted from 2.1.4. There everything was fine.

Best regards
hj

FiMeTi 09-15-2008 02:41 PM

Quote:

Originally Posted by ImmortalForums (Post 1619391)
Go to line 704 or find
Code:

$total_awards = mysql_num_rows($alluserawards);
and change to
Code:

$total_awards = mysqli_num_rows($alluserawards);

Cheers bro! It works like a charm ... thx very much


All times are GMT. The time now is 10:59 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.01671 seconds
  • Memory Usage 1,750KB
  • 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
  • (8)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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