vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   RPG Integration Hack (https://vborg.vbsupport.ru/forumdisplay.php?f=102)
-   -   RPG Integration Hack - Old Support Thread (https://vborg.vbsupport.ru/showthread.php?t=73868)

Creed 12-22-2004 11:02 PM

Thats my problem, its only giving that amount of EXP per NEW THREAD. Its not giving any exp for a reply. I have a character with 195 exp, when I reply to other people's threads I get 0 exp. When I create a new thread of my own, I get 5exp. Any ideas?

Revan 12-23-2004 10:41 AM

If you are sure you set the points per reply prop, then you have found a "bug" that only affects your forum outta the 200+ users that downloaded this :)
In other words, no clue what to do :P

Creed 12-23-2004 04:47 PM

Honestly I'm leaning toward it being a file edit that I have done wrong somewhere. I don't believe its a 'bug' I believe that this is something I've done. I was just looking for some input on what you guys think that I may have missed or messed up. I would be happy to take suggestions, as opposed to looking over all of the file edits 1 by 1. So, if you have any thoughts on where this might be, I'm all ears.

boydekort 12-24-2004 04:19 AM

Hi I been told by transverse styles to come to here for help.

my problem is in navbar transverse works with some different code as in vbb default .

you have your code for the navbar addon but transverse uses this one:

Code:

if condition="$show['registerbutton']">
  <td class="vbmenu_control"><a href="register.php?$session[sessionurl]">$vbphrase[register]</a></td>
 </if>

now i tried changing this code so it could fit but it gave me parse errors in admin_functions.php because well it's logic it can't find the code for it.

So now I would like some help with this and hope someone can because this sucks :(

thanks in advance.

Ts reply:

Quote:

Originally Posted by TS
Transverse Styles Yesterday, 03:49 PM Post #2


President & CEO


Group: Admin
Posts: 324
Joined: 14-May 04
Member No.: 1



Hi depax,

If you want to do that, you should ask the RPG modification author.

I haven't tampered with any of the JavaScript menus, so I am unsure why it will not work.

Did this work in the default style at all?


--------------------

Transverse Styles President & CEO
IPB, vB, phpBB Coder & Graphics Guru

He makes very good styleset just wish they where a bit easier to work on but his real profession is the ivb sets so I can't blame him for not knowing it all.

Revan 12-24-2004 07:15 PM

I assume you tried to install the dropdown version of the navbar addons.
Well see I didn't make that, so I dont know why it wont work... sorry.
You can try installing the other one, that uses no jscript. :)

Creed 12-25-2004 04:17 PM

BTW, I did find out what was wrong. In the new reply file edit in the instructions:
Code:

#####################################
pick open newreply.php
#####################################


#########
find
#########

                // fetch the quoted post title
                $_POST['title'] = fetch_quote_title($postinfo['title'], $threadinfo['title']);
        }

That line is there twice, I had the edited code in the wrong place. Working fine now :)

givemeplain 12-26-2004 09:07 PM

I installed both navigations (drop down, and seperate bar) and the links dont work. I get this error

Code:

Database error in vBulletin 3.0.3:

Invalid SQL:
                SELECT
                        user.userid,
                        user.username,
                        user.rpgclass,
                        user.element,
                        user.rpgrace,
                        user.rpgtype AS rpgtype,
                        user.alignment,
                        user.rpggender,
                        user.posts,
                        user.maxhp,
                        user.maxma,
                        user.maxpp,
                        user.inbattle,
                        user.xp,
                        user.ma AS uma,
                        user.hp AS uhp,
                        user.pp AS upp,
                        user.ap AS uap,
                        user.uttpoints AS money,
                        rpg_battle_options.namefield AS namefield,
                        userfield.*,
                        rpg_battle_options.exprate,
                        rpg_battle_options.privacy AS battleprivacy,
                        rpg_items_user.*,
                        rpg_battle_stats.*,
                        rpg_rpg_race.name AS rpgracename,
                        rpg_rpg_race.alignment AS rpgalignmentname,
                        rpg_rpg_classf.name AS fclassname,
                        rpg_rpg_classf.folder AS fclassfolder,
                        rpg_rpg_classm.name AS mclassname,
                        rpg_rpg_classm.folder AS mclassfolder,
                        rpg_rpg_element.name AS elename
                FROM rpg_battle_options
                        LEFT JOIN user ON user.userid=1
                        LEFT JOIN userfield ON userfield.userid=user.userid 
                        LEFT JOIN rpg_items_user ON rpg_items_user.userid=user.userid
                        LEFT JOIN rpg_battle_stats ON rpg_battle_stats.userid=user.userid
                        LEFT JOIN rpg_rpg_classf ON rpg_rpg_classf.id=user.rpgclass
                        LEFT JOIN rpg_rpg_classm ON rpg_rpg_classm.id=user.rpgclass
                        LEFT JOIN rpg_rpg_element ON rpg_rpg_element.elementid=user.element
                        LEFT JOIN rpg_rpg_race ON rpg_rpg_race.raceid=user.rpgrace AND rpg_rpg_race.alignmentid=user.alignment
       
mysql error: Unknown column 'user.uttpoints' in 'field list'

mysql error number: 1054

Date: Sunday 26th of December 2004 06:06:01 PM
Script: http://www.shiburaonline.com/rpgcp.php?
Referer: http://www.shiburaonline.com/index.php?
Username: givemeplain
IP Address: 67.123.84.48

Thanks!

oh, and also I'm really new at this. Do I just download the two images.zips and upload them to my image folder in vbulletin? Thanks

Creed 12-26-2004 09:13 PM

Quote:

Originally Posted by boydekort
Hi I been told by transverse styles to come to here for help.

my problem is in navbar transverse works with some different code as in vbb default .

you have your code for the navbar addon but transverse uses this one:

Code:

if condition="$show['registerbutton']">
  <td class="vbmenu_control"><a href="register.php?$session[sessionurl]">$vbphrase[register]</a></td>
 </if>

now i tried changing this code so it could fit but it gave me parse errors in admin_functions.php because well it's logic it can't find the code for it.

So now I would like some help with this and hope someone can because this sucks :(

thanks in advance.

Ts reply:



He makes very good styleset just wish they where a bit easier to work on but his real profession is the ivb sets so I can't blame him for not knowing it all.


Code:

###################
# NAVBAR template #
###################

Find:
--------------------------------

<td class="vbmenu_control"><a href="calendar.php?$session[sessionurl]">$vbphrase[calendar]</a></td>


Above add:
---------------------------------

<if condition="$show['member']">
<td class="vbmenu_control" id="rpg"><a href="#rpg">RPG</a> <script type="text/javascript"> vbmenu_register("rpg"); </script></td>
</if>


Find:
--------------------------------
<!-- / NAVBAR POPUP MENUS -->



Above add:
---------------------------------

<if condition="$show['member']">
    <!-- RPG Menu -->
    <div class="vbmenu_popup" id="rpg_menu" style="display:none">
        <table cellpadding="4" cellspacing="1" border="0">
       
                <tr><td class="thead">RPG</td></tr>       
        <tr><td class="vbmenu_option"><a href="rpgcp.php">RPG Main</a></td></tr>
        <tr><td class="vbmenu_option"><a href="battle.php">Battle Arena</a></td></tr>
        <tr><td class="vbmenu_option"><a href="itemshop.php">Itemshop</a></td></tr>
        <tr><td class="vbmenu_option"><a href="profile.php?do=updaterpg">Edit Your Character</a></td></tr>
<tr><td class="vbmenu_option"><a href="heal.php">Healing Center</a></td></tr>
<tr><td class="vbmenu_option"><a href="battle.php?action=showbattlestats">RPG Top 10</a></td></tr>
<tr><td class="vbmenu_option"><a href="battle.php?action=showuserstats">Check Your Stats</a></td></tr>
<tr><td class="vbmenu_option"><a href="clancp.php">Clan CP</a></td></tr>
<tr><td class="vbmenu_option"><a href="lottery.php">Lottery</a></td></tr>

        </table>
    </div>
    <!-- / RPG Menu -->
    </if>

#################
Done.

Did you try that one, it is working absolutely fine for me! Note that the last edit section is at the extreme end of your NAVBAR template. If you're placing it above the
Code:

<!-- NAVBAR POPUP MENUS -->
then that would be your problem.

givemeplain 12-26-2004 09:21 PM

Thanks for quick reply, but I don't think that is the problem

see http://www.shiburaonline.com/index.php?

the nav looks like it works fine, but when you click on one of the links it gives the mysql error. not sure what's wrong =(!

Creed 12-26-2004 09:27 PM

You should try rerunning the installer, if you haven't already. It seems that it delted the tables, but didn't recreate them.


All times are GMT. The time now is 11:07 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.02787 seconds
  • Memory Usage 1,765KB
  • 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
  • (6)bbcode_code_printable
  • (2)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