Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vb3 Arcade Profile Hack Details »»
vb3 Arcade Profile Hack
Version: 1.00, by EH-Jay EH-Jay is offline
Developer Last Online: Oct 2009 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 02-26-2005 Last Update: Never Installs: 11
 
No support by the author.

If your wondering, of course I'm aware of the current Profile hack that comes with vb3 arcade, but I wanted something better so I kinda coded a tiny new hack. It's pretty basic, but I think it looks better. Have a look:

Code:
This came with the Profile hack. If you didn't do this already:
Edit: member.php

find: 

if (!$userid)

Above it, add:

if ($arcadegeneral['awardson']==1) {
	// declares the arcade image directory
	$stylevar['imgdir_arcade'] = "images/arcade";
	$arcade_result = $DB_site->query("SELECT shortname,title,gamesettings,highscorerid,highscore,miniimage,gameid FROM " . TABLE_PREFIX . "games ");
	while ($arcade = $DB_site->fetch_array($arcade_result)){
		if (($arcade[gamesettings] & $_GAMESCHECK['showaward'])){
			$awards[$arcade[shortname]]['userid'] = $arcade['highscorerid'];
			$awards[$arcade[shortname]]['gametitle'] = $arcade['title'];
			$awards[$arcade[shortname]]['icon'] = $arcade['miniimage'];
			$awards[$arcade[shortname]]['highscore'] = $arcade['highscore'];
			$awards[$arcade[shortname]]['gameid'] = $arcade['gameid'];
		}
	}
	foreach ($awards as $key => $award) {
		if ($award['userid']==$userid) {
			eval('$arcadeawards .= "' . fetch_template('arcade_awards_bit') . '";');
		}
	}
}
The above came with the hack, but I was just restating it. Moving on...

Code:
Templates to modify: MEMBERINFO

Find:

<if condition="$show['signature']">

Above it, add:

<!-- arcade awards -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
	<td class="thead">Arcade Awards - <a href="arcade.php?$session[sessionurl]">Click to play the arcade!</a></td>
</tr>
<tr>
	<td class="alt1">$arcadeawards</td>
</tr>
</table>
<!-- / arcade awards -->
<br />
That's all. Nothing big but it looks better.

If it doesn't look like the attatched screen shot, then do this:

Code:
Go to the template ARCADE_AWARDS_BIT

Find:

<if condition="$award[icon]!=' ' "><a href="arcade.php?do=play&gameid=$award[gameid]"><img src="$stylevar[imgdir_arcade]/$award[icon]" alt="High Score: $award[highscore]" align="absmiddle" border=0></a> </if><span class="smallfont">$award[gametitle] Champion!</span><br>

Replace that with:

<if condition="$award[icon]!=''"><a href="arcade.php?do=play&gameid=$award[gameid]"><img src="$stylevar[imgdir_arcade]/$award[icon]" alt="$award[gametitle] Champ, score: $award[highscore]" align="absmiddle" border=0></a>&nbsp;</if>
Should be working after that. And god I hope no one else posted something like this, I'll feel like such an idiot lol. Look below for the attatched ss.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 03-19-2005, 04:38 PM
Harry72's Avatar
Harry72 Harry72 is offline
 
Join Date: May 2004
Location: Germany, Bavaria
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Acers
using3.07 and followed exactly what you said.

Only i am now getting that profile field:

Arcade Awards - Click to play the arcade!

But below that is coming empty :S
And needless to say the user in question has about 10 games under his belt.
Activate in Arcade-Settings "Show Arcade Awards in Postbit".

I think that`s the solution for your problem. :nervous:

Cheers
Reply With Quote
  #13  
Old 03-20-2005, 11:58 PM
EH-Jay's Avatar
EH-Jay EH-Jay is offline
 
Join Date: Oct 2004
Location: Canada
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

whoops! I forgot about that too LOL.
Reply With Quote
  #14  
Old 03-21-2005, 05:28 AM
Acers's Avatar
Acers Acers is offline
 
Join Date: Feb 2005
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Harry72
Activate in Arcade-Settings "Show Arcade Awards in Postbit".

I think that`s the solution for your problem. :nervous:

Cheers
Oh i am an ass :P
That was exactly what was wrong...
thx man......thx a lot

ps: I think you should mention that at the top in the hack steps.. I guess there will be plenty of asses like me :P
Reply With Quote
  #15  
Old 03-21-2005, 11:32 AM
Acers's Avatar
Acers Acers is offline
 
Join Date: Feb 2005
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey is there a way so that these show up only in the profile of user when its clicked and not in the postbit? Cos for members having many game titles its filling up the screen.
Reply With Quote
  #16  
Old 03-21-2005, 03:39 PM
Harry72's Avatar
Harry72 Harry72 is offline
 
Join Date: May 2004
Location: Germany, Bavaria
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Acers
hey is there a way so that these show up only in the profile of user when its clicked and not in the postbit? Cos for members having many game titles its filling up the screen.
Yes. That`s no problem. Delete in postbit Template $post[arcadeawards].
Easy ... :nervous:
Reply With Quote
  #17  
Old 03-23-2005, 03:52 PM
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Posts: 893
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how many queries does this hack add to member.php?? does any know?
Reply With Quote
  #18  
Old 05-16-2005, 10:35 PM
Vevina Vevina is offline
 
Join Date: Dec 2004
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sweet installed
Reply With Quote
  #19  
Old 05-17-2005, 01:39 AM
m0nde's Avatar
m0nde m0nde is offline
 
Join Date: Mar 2005
Location: Toronto, ON Canada
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice Work!

Looks very clean!
Reply With Quote
  #20  
Old 08-07-2005, 06:22 PM
o0Hubba0o's Avatar
o0Hubba0o o0Hubba0o is offline
 
Join Date: Mar 2005
Location: Minnesota
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/me installs

I had to add the member.php bit, for some reason I didn't have it in there lol. Looks good now, thanks for the "enhancement".
Reply With Quote
  #21  
Old 08-07-2005, 09:02 PM
Forumi Shqiptar's Avatar
Forumi Shqiptar Forumi Shqiptar is offline
 
Join Date: Aug 2005
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

followed everything and to say the true it didnt change nothing at all in the way it appears in the forum dont know why but im sure i followed everything that was told on this thread can someone help me plz?
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 11:45 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.04859 seconds
  • Memory Usage 2,306KB
  • Queries Executed 25 (?)
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
  • (3)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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