vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   Rap Battle System -=RBS=- (https://vborg.vbsupport.ru/showthread.php?t=68161)

el diablo 03-20-2005 04:18 AM

update will come soon...

Sleepyk 03-20-2005 03:57 PM

Quote:

Originally Posted by el diablo
lol...


?

Well u one thats been fixcin this, whats the problem why wins n losses arnt in profile or postbit?

James T Brock 03-21-2005 04:08 AM

The wins and losses are in the profile and postbit, maybe you did something wrong?

Diablo, I've been trying to contact you in AIM, but you're never on when I am.

Sleepyk 03-21-2005 05:45 AM

yeah
its postbit not postbit legacy that u have to edit

*****************************
Open POSTBIT_LEGACY template
*****************************

Find
-----------------------------------------------
<div>
$vbphrase[posts]: $post[posts]
</div>
-----------------------------------------------
After add
-----------------------------------------------
<div>
<b>Battles:</b><br />
Wins: $post[bs_wins]<br />
Loses: $post[bs_loses]
</div>
-----------------------------------------------

Replace with

*****************************
Open POSTBIT template
*****************************

Find
-----------------------------------------------
<div>
$vbphrase[posts]: $post[posts]
</div>
-----------------------------------------------
After add
-----------------------------------------------
<div>
<b>Battles:</b><br />
Wins: $post[bs_wins]<br />
Loses: $post[bs_loses]
</div>
-----------------------------------------------

Sleepyk 03-23-2005 02:24 AM

ok ima ask everything in 1 post deleted a couple of mine

1st how do i make it so you cannot vote for yourself?

Also is there any way to make it work in more than 1 forum? (too late now) but i got a tourney goin, and it would be awesome to make tourney wins count on records

http://www.kleptikmusic.com/

the random quote text is same color as BG how i fix that?

and is there any way i can input peoples records, because people do have records they want to keep and you know record is 0-0 as of now.


and i forgot who did the update with k.o's added n stuff, but i noticed there was no ko mention in postbit or postbit legacy, how do i add ko's in the postbit?

Sleepyk 03-23-2005 03:22 PM

<a href="http://www.kleptikmusic.com/newvbforum/showthread.php?t=504" target="_blank">http://www.kleptikmusic.com/newvbfor...read.php?t=504</a>

opponent never got loss

Sleepyk 03-23-2005 08:33 PM

Quote:

Originally Posted by Logik
Look for:
Code:

// get permissions to view forumhome
if (!($permissions['forumpermissions'] & CANVIEW))
{
        print_no_permission();
}

And Below it add:
Code:

// 3 Newest Battles
$logik = $DB_site->query("SELECT replycount,title,threadid,lastpost,postusername,lastposter,views FROM thread WHERE forumid='X' ORDER BY lastpost DESC LIMIT 3");
while ($logiktop = mysql_fetch_array($logik)):
        ++$logiktopnbsp;
      $logikthread .= "<a href=showthread.php?s=$session[sessionhash]&threadid=$logiktop[threadid]>$logiktop[title]</a>&nbsp;<a href=showthread.php?s=$session[sessionhash]&goto=newpost&threadid=$logiktop[threadid]&goto=lastpost><font size=1><b>[View Unread]</b></font></a><br>";
           

endwhile;

change X to the forum number
And then in your ForumHome template look for:
Code:

$navbar
Now after that, add this:
Code:

<br>
<if condition="$bbuserinfo['userid']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" width="100%" valign="top">
<normalfont><b>Newest 3 Battles</b></normalfont></td>
</tr>
<tr><td>
$logikthread</td>
</tr>
</table>
</if>
<br>

Any problems, let me know.


i did everything and added ranks and it does not work

Sleepyk 03-23-2005 09:13 PM

Quote:

Originally Posted by ericgtr
I decided to add a confirmation page so they must read it and then click on the link to take them to a new post.

Attached is the confirm.php and the template, confirm.txt. Upload the confirm.php to your forum directory and create a new template called confirm. In the confirm template you will need to add your own html with what you want it to say, then you can add a static link that takes them directly to the post page in that forum.

Adding the conditions for your specified battle forum, this will replace all 3 instances of "Submit New Thread":

Important: Be sure to change your forum ID as specified.

In the forumdisplay template find:

PHP Code:

    <td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]border="0" /></a

Replace with:

PHP Code:

    <td class="smallfont"><if condition="$show['newthreadlink']">
<if 
condition="$foruminfo[forumid] == 100"//<--- Change to your battle forum ID number
<a href="http://www.yoursite.com/vb/confirm.php"
<else /> 
<
a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]"
</if> <
img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]border="0" /> 

Find:

PHP Code:

    <td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]border="0" /> 

Replace with:

PHP Code:

    <td class="smallfont"><if condition="$show['newthreadlink']">
<if 
condition="$foruminfo[forumid] == 106"//<--- Change to your battle forum ID number
<a href="http://www.yoursite.com/vb/confirm.php"
<else />
<
a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]">
</if>
<
img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]border="0" /> 

Find:

PHP Code:

    <if condition="$show['newthreadlink']"><tr><td class="vbmenu_option"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]">$vbphrase[post_a_new_thread]</a></td></tr></if> 

Replace with:

PHP Code:

    <if condition="$show['newthreadlink']"><tr><td class="vbmenu_option">
<if 
condition="$foruminfo[forumid] == 106"//<--- Change to your battle forum ID number
<a href="http://www.yoursite.com/vb/confirm.php"
<else /> 
<
a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]"></if>$vbphrase[post_a_new_thread]</a></td></tr></if> 



yeah that dont work, u didnt give the right stuff to put in confirm template, what we supposed to do? guess?

Rukas 04-02-2005 11:50 AM

Nice, Ive installed it but wasnt happy with how it worked (or unfortunatly didnt work at times) so I re did it custom code at http://forum.streethop.com and http://www.2pacboard.com

We are going to be doing a fully sponsored battle with prize money and other prizes very very soon, Ill make sure to give you a nice shout out ;).

Peace.

Sleepyk 04-02-2005 08:43 PM

^wanna help out fixin?


All times are GMT. The time now is 09:12 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.01824 seconds
  • Memory Usage 1,784KB
  • 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
  • (4)bbcode_code_printable
  • (6)bbcode_php_printable
  • (3)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