Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #21  
Old 02-13-2002, 03:05 PM
slideboxer's Avatar
slideboxer slideboxer is offline
 
Join Date: Dec 2001
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sweet, I'm counting the minutes, Lesane. Thanks alot.
Reply With Quote
  #22  
Old 02-14-2002, 05:52 PM
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Location: The Netherlands
Posts: 1,149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Aight its done, it works perfect on my board. I hope its gonna work perfect aswell by the rest

U can expect the hack soon in the Beta Hack's Forum :up:
Reply With Quote
  #23  
Old 02-14-2002, 08:16 PM
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Location: The Netherlands
Posts: 1,149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

After testing the hack succesfully on 2 boards i decided to put the hack in the Full Releases forum :up:

https://vborg.vbsupport.ru/showthrea...threadid=35075
Reply With Quote
  #24  
Old 02-15-2002, 05:22 AM
Darren Evans Darren Evans is offline
 
Join Date: Jan 2002
Location: Lakewood, CA
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks again Lesane!

Again, how do I go about lining them up 3 abreast in order by precedence? See my pic in above post.
Reply With Quote
  #25  
Old 02-15-2002, 06:10 AM
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Location: The Netherlands
Posts: 1,149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

U could do that by using only <img src="$awardsp[url]" alt="$awardsp[name]"> in the awards template. Then it will display all the awards near eachother without the name, however the way u want it u need to add $post[hasaward] between <td> </td> in the postbit.

Example to put in the postbit instead of $post[hasaward]:

PHP Code:
<td width="100" valign="middle" nowrap>$post[hasaward]</td
U probably must change the width...
Reply With Quote
  #26  
Old 02-15-2002, 04:13 PM
Darren Evans Darren Evans is offline
 
Join Date: Jan 2002
Location: Lakewood, CA
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lesane, I haven't tried the suggestion yet, but won't that just line up the medals horizontally instead of vertically... all in a line?

I need it to do that, but break after the third award.

Code:
[award] [award] [award] <br>
[award] [award] [award] <br>
[award] [award] [award] <br>
Reply With Quote
  #27  
Old 02-15-2002, 06:22 PM
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Location: The Netherlands
Posts: 1,149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I thought it could be done by templates, if all the awards have the same sizes then u can do it what i above said with <td> but thats the hard way.

The easy way:

Open admin/functions.php

Find:

PHP Code:
// awards/medals/cards hack by lesane

if ($post[award]=="1"
    {
     
$result=$DB_site->query("SELECT * FROM useraward WHERE userid='$post[userid]' AND awardsid=aw ");
       while (
$awardsp=$DB_site->fetch_array($result))  
        { 
          eval(
"\$post[hasaward] .= \"".gettemplate("awards")."\";");

        }            
   }
   
// awards/medals/cards hack by lesane 
And change it to:

PHP Code:
// awards/medals/cards hack by lesane

if ($post[award]=="1"
    {
     
$result=$DB_site->query("SELECT * FROM useraward WHERE userid='$post[userid]' AND awardsid=aw ");
               
$count=0;         
       while (
$awardsp=$DB_site->fetch_array($result))  
        {      
          if (
$count%3=="2") {  
            
$rule="<br>";
       } else {
            
$rule="";
    }
        eval(
"\$post[hasaward] .= \"".gettemplate("awards")."\";");
          
$count++;
        } 
   }
   
// awards/medals/cards hack by lesane 
Open the template: awards

Replace all code with this code:

PHP Code:
<img src="$awardsp[url]alt="$awardsp[name]">$rule 
That should work
Reply With Quote
  #28  
Old 02-15-2002, 06:32 PM
Darren Evans Darren Evans is offline
 
Join Date: Jan 2002
Location: Lakewood, CA
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lesane,

That works perfect. I just need to fix it now so there is a small space between the medals:

http://www.bombs-away.net/forums/sho...&threadid=5095
Reply With Quote
  #29  
Old 02-15-2002, 06:36 PM
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Location: The Netherlands
Posts: 1,149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad its working

To put a space between every award u can use
PHP Code:
&nbsp
Like this in the awards template:

PHP Code:
<img src="$awardsp[url]alt="$awardsp[name]">&nbsp;$rule 
Reply With Quote
  #30  
Old 04-05-2002, 01:35 PM
Ignite Ignite is offline
 
Join Date: Mar 2002
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I cannot locate a headinsert template in my new vBulletin 2.2.4 software to modify for the Awards hack. Essentially, I can create the Award and it's graphic in the admincp, and can see the new section when I attempt to ADD a New User from the admincp, but I can't every add one to an existing user. Most everything else with the installation of the hack went well. What am I missing (besides finding the headinsert template) that controls the adding a an Award to a user? I also don't see the option as a Mod even though I installed all the mod options in the 1.2 version. Help

Dale Kubler
octothorp@bigfoot.com
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:16 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.04433 seconds
  • Memory Usage 2,292KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (6)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete