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)
-   -   [HTL] & [TXT] Awards/Medals/Cards Hack [vB3] (https://vborg.vbsupport.ru/showthread.php?t=61108)

The Quibbler 02-16-2004 05:13 PM

I get an error when trying to install the hack using the Hack Tracking Log at /admincp/index.php?loc=install_htl.php?inside=1:

Parse error: parse error in /home/quibbler/public_html/forums/includes/functions.php on line 1805

Fatal error: Call to undefined function: exec_nocache_headers() in /home/quibbler/public_html/forums/admincp/global.php on line 37


Looked at the code, but couldn't figure anything out. Any idea what's wrong? I think it has something to do with the file edits I did for this hack.

The Watcher 02-16-2004 08:25 PM

I have installed this successfully on RC3 and I have to say - GREAT HACK !!!

I followed the txt instructions and there were some differences in the codes quoted and what are in my phps but that was only a minnor problem. Also I spotted one very small error. In awards.php line 179 should be:

PHP Code:

<td class=\"$bgclass\" align=\"center\"><img src=\"../$award[icon_url]\" border=\"0\"></td> 

Instead of ...

PHP Code:

<td class=\"$bgclass\" align=\"center\"><img src=\"$award[icon_url]\" border=\"0\"></td> 

(You missed out the ../ and as a result the images don't preview in the admin cp)

2 questions ...

1) How do I split the awards up. Currently they are directly next to each other with no spaces.
3) Any chance of some more medals/awards/trophy images being posted?

Thanks Again Great Work

neocorteqz 02-17-2004 02:05 AM

Quote:

Originally Posted by The Watcher
I have installed this successfully on RC3 and I have to say - GREAT HACK !!!

I followed the txt instructions and there were some differences in the codes quoted and what are in my phps but that was only a minnor problem. Also I spotted one very small error. In awards.php line 179 should be:

PHP Code:

<td class=\"$bgclass\" align=\"center\"><img src=\"../$award[icon_url]\" border=\"0\"></td> 

Instead of ...

PHP Code:

<td class=\"$bgclass\" align=\"center\"><img src=\"$award[icon_url]\" border=\"0\"></td> 

(You missed out the ../ and as a result the images don't preview in the admin cp)

2 questions ...

1) How do I split the awards up. Currently they are directly next to each other with no spaces.
3) Any chance of some more medals/awards/trophy images being posted?

Thanks Again Great Work

Add a <br> tag before, or after $post[arcadeawards] depending on how you would like it to look.

In postbit or postbit_legacy depending on which you use.

InfiniteWebby 02-17-2004 04:37 AM

@ the quibbler: Line 1805 or any lines surrounding that in /includes/functions.php has nothing to do with this hack unless you put something in the wrong place.

@the watcher: I am aware of the changes in code. I am trying to setup my own board and am not worried about some minor indescretions in the find and replace parts.

Also that isn't so much a mistake if you use full url's to your awards images which I thought people woulc use. But I will take this into account and build some added functionality.

1) shove a couple of &nbsp; at the end of the awards template or you can add some <br />'s depending on how you want them split up.
3) I think you meant 2) but oh well :P Not at the moment I am too busy, and not too graphical.

The Watcher 02-17-2004 12:53 PM

thanks :)

Ill find my own images and post them here haha

With reference to the spacing, this is what i was trying to acheive - sorry if I did not explain clearly ...

Ideally i would like my 5 medals on one line with 2 spaces inbetween and then my 3 trophies on the line below with perhaps 3 spaces in between.

couldn't work out how to do that though

thanks again

mtha 02-17-2004 08:48 PM

ERROR!!!

Quote:

Warning: Invalid argument supplied for foreach() in /XXXXXXXXXXXXXXX/forums/public_html/includes/functions_showthread.php on line 693
when you run forums/showpost.php?p=xxxxx


You may want to add $awards array into showpost.php too, like you did in showthread.php

InfiniteWebby 02-19-2004 05:30 AM

I will be moving it to the top of showthre_functions.php in the next version please bare with me.

trackpads 02-19-2004 11:56 AM

Quote:

Originally Posted by AnimeWebby
I will be moving it to the top of showthre_functions.php in the next version please bare with me.

Thanks again for all the work!

M.C. 02-19-2004 10:59 PM

i`ve got small bug! In Private Messages Page i got that:

Quote:

Warning: Invalid argument supplied for foreach() in z:\home\localhost\www\forum\includes\functions_sho wthread.php on line 691
on that line is hack code:

PHP Code:

    foreach($awards AS $useraward)
    {
        
$userawardid "award$useraward[awardid]";
        if (!empty(
$post[$userawardid]))
        {
            
$userawardid_desc $userawardid."_desc";
            if (
$post[$userawardid_desc] != '')
            {
                
$useraward[description] = $post[$userawardid_desc];
            }
            eval(
'$awardsbit .= "' fetch_template('award') . '";');
        }
    } 


Face Off Mobile 02-24-2004 09:21 PM

cant run both sql queries in the txt file can someone please tell me what they should be

thank you


All times are GMT. The time now is 09:23 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.01709 seconds
  • Memory Usage 1,759KB
  • 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
  • (5)bbcode_php_printable
  • (4)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