vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   v3arcade - Challenge a user via profile link (https://vborg.vbsupport.ru/showthread.php?t=101897)

Jon_Simmonds 11-28-2005 10:00 PM

v3arcade - Challenge a user via profile link
 
This is a simple profile edit, that adds a link to "Challenge this user" using the v3arcade system - www.v3arcade.com, from the user's profile page if the user has enabled the challenges optioin via their user CP

Find in template MEMBERINFO:
Code:

<if condition="can_moderate()">
                <td class="vbmenu_control"><a href="moderator.php?$session[sessionurl]do=useroptions&amp;u=$userinfo[userid]">$vbphrase[user_options]</a></td>
        </if>

Below that, add the following:
Code:

<!-- v3arcade challenge user via profile -->
<if condition="($userinfo['arcadeoptions'] & 1) AND $userinfo['userid']!=$bbuserinfo['userid']"><td class="vbmenu_control">
<a href="arcade.php?do=newchallenge&userid=$userinfo[userid]">Challenge  <b>$userinfo[username]</b> in the arcade</a></td></if>
<!-- / v3arcade challange user via profile -->


dieselpowered 11-29-2005 09:57 PM

Great, thanks!!

**clicks install**

FYI, mods will probably ask that you place this in a text file and attach it. I have attached one for you :)

rb290 11-30-2005 01:47 AM

wow alotta kool hacks for this Arcade, i gotta upgrade to 3.5.1 cause v3 Arcade aint working for me

Jon_Simmonds 11-30-2005 05:20 AM

Quote:

Originally Posted by xtremeoff-road
Great, thanks!!

**clicks install**

FYI, mods will probably ask that you place this in a text file and attach it. I have attached one for you :)


Thanks for that :)

Jon_Simmonds 11-30-2005 05:09 PM

how many games do you have installed on your arcade? On my arcade, it displays all of the games I have installed. (and this mod will not affect how many games are displayed, it just links to the arcades challange function)

dieselpowered 11-30-2005 05:32 PM

This hack should have nothing to do with how many games are installed...it is simply a link to the challenge system. :)

dieselpowered 11-30-2005 05:33 PM

Quote:

Originally Posted by Jon_Simmonds
Thanks for that :)

My pleasure :) Thanks for the hack!

Jon_Simmonds 11-30-2005 07:02 PM

Quote:

Originally Posted by one9er
Jon I have 18 games installed.

It list at random 7 of them? Same ones all the time.

one9er

have you double checked all the permisons in the usergroups and the game settings for the arcade?

Jon_Simmonds 11-30-2005 07:03 PM

Quote:

Originally Posted by xtremeoff-road
My pleasure :) Thanks for the hack!

hopefully the first of many! i only joined vb.org to download the hacks, i got semi involved with a few on a previous nick (linked to a forum i no longer admin), guess ive caught the hackign bug :d

Snake 12-01-2005 03:15 PM

Nice! Installed...


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