vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Major Additions - Realm Conquest System (https://vborg.vbsupport.ru/showthread.php?t=211920)

dai-kun 11-18-2009 05:44 AM

Quote:

Originally Posted by New Joe (Post 1915047)
Where in the conquest.php script do you edit?
I followed the link but I am still not sure where to do the edit.
Thanks

after <?php or you can add it to your config.php file for the entire vbulletin. This method is only if you have your own dedicated server. If your host finds out that you are using more memory than they provide, they could contact you.

You can ask your host to increase the memory limit in the php.ini.

geocodes 11-19-2009 09:35 PM

Can anyone help me with that? im trying to make an VIP nation (only a certain usergroup would use this), but, how to do this? (where to set permitions of a certain nation)

dai-kun 11-20-2009 04:21 AM

Quote:

Originally Posted by geocodes (Post 1917406)
Can anyone help me with that? im trying to make an VIP nation (only a certain usergroup would use this), but, how to do this? (where to set permitions of a certain nation)

It's pretty late and I'm tried so this is the best I can come up with.

Edit your conquest_enlist_bit template,

find
Code:

                                <form action="$filename?do=homebase" method="post">
                                <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
                                <input type="hidden" name="joinrequest" value="$nation[nationID]" />
                                <input type="submit" value="<phrase 1="$nation[nName]">$vbphrase[conquest_enlist_join]</phrase>" />
                                </form>

and replace it with
Code:

                        <if condition="is_member_of($vbulletin->userinfo, 6,7)">
                                <form action="$filename?do=homebase" method="post">
                                <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
                                <input type="hidden" name="joinrequest" value="$nation[nationID]" />
                                <input type="submit" value="<phrase 1="$nation[nName]">$vbphrase[conquest_enlist_join]</phrase>" />
                                </form>
                        <else />
                                <if condition="$nation[nationID] != 3">
                                        <form action="$filename?do=homebase" method="post">
                                        <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
                                        <input type="hidden" name="joinrequest" value="$nation[nationID]" />
                                        <input type="submit" value="<phrase 1="$nation[nName]">$vbphrase[conquest_enlist_join]</phrase>" />
                                        </form>
                                </if>
                        </if>

Change the red numbers to your special VIP groups and the green number to that special nation.

First half of code lets special users join any and all nations.
Second half prevents users not set in first part of code from joining specific nation.

RokuDaMerlin 11-20-2009 05:15 AM

hello, i have the product complete edit .. my system have now the name Devils Vs Angels and is in german ;D

we can i add image fields for amor and weapons ?

you can see my project here :D

http://www.diespielhalle.de/conquest.php


http://www.kingofcolors.de/dva1.png

greez from germany Roku

geocodes 11-20-2009 02:34 PM

Quote:

Originally Posted by dai-kun (Post 1917539)
It's pretty late and I'm tried so this is the best I can come up with.

Edit your conquest_enlist_bit template,

find
Code:

                                <form action="$filename?do=homebase" method="post">
                                <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
                                <input type="hidden" name="joinrequest" value="$nation[nationID]" />
                                <input type="submit" value="<phrase 1="$nation[nName]">$vbphrase[conquest_enlist_join]</phrase>" />
                                </form>

and replace it with
Code:

                        <if condition="is_member_of($vbulletin->userinfo, 6,7)">
                                <form action="$filename?do=homebase" method="post">
                                <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
                                <input type="hidden" name="joinrequest" value="$nation[nationID]" />
                                <input type="submit" value="<phrase 1="$nation[nName]">$vbphrase[conquest_enlist_join]</phrase>" />
                                </form>
                        <else />
                                <if condition="$nation[nationID] != 3">
                                        <form action="$filename?do=homebase" method="post">
                                        <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
                                        <input type="hidden" name="joinrequest" value="$nation[nationID]" />
                                        <input type="submit" value="<phrase 1="$nation[nName]">$vbphrase[conquest_enlist_join]</phrase>" />
                                        </form>
                                </if>
                        </if>

Change the red numbers to your special VIP groups and the green number to that special nation.

First half of code lets special users join any and all nations.
Second half prevents users not set in first part of code from joining specific nation.

Im gonna test know... If works i will edit here.
EDIT: Worked great! thx.

RokuDaMerlin 12-08-2009 11:20 AM

hmm can me a coder help ..

- i will add pictures for my weapons and amors ..

- i will add a upload system to the "homebase" (any user can upload a own picture "soldier or warrior") .. hmm

i am a code noob ..

when a coder here.. say "roku i help you or roku i coding this" i will pay the hard work !

(send me a email: info@mightycolors.com)

thx ;)

--- edit:

i have now edit the barracks ..
+ remove all training levels (we have 20+ list give to long)
+ add pictures (and center the buttons)

preview:

(i hope you like it)

http://img704.imageshack.us/img704/3015/vorschau.png

=) more Pictures more fun ;))

RokuDaMerlin 12-09-2009 01:38 PM

sry for double post ..

my ideas for a new update:

- a user can only 1 attack become from the same user pro day
- auto refresh time
- weapons + amor + pictures
(pic <br> weapon titel <br> | power / money |)
- bite link ^^ for one click = 1 Gold or so ;)
- the attacker can louse gold when the other have more power ;)

i hope the owner can 1-2 or all from my wish-lish add

greez

Differentiation 12-11-2009 07:59 AM

I am getting some errors.

Deprecated: Assigning the return value of new by reference is deprecated in URLHERE\vb\includes\init.php on line 55, 107, 111, 119, 130, 134, 142, 211, 289

and as well \includes\class_core.pph on line 2552.

What does this mean?

v12kid 12-11-2009 03:44 PM

shame this is unsupported

anyone want to take it over and fix/update? Maybe we can get a few people to donate to a developer to do that? I would certainly make a "donation" to get this working as I would LOVE to have this

ragtek 12-11-2009 06:02 PM

Quote:

Originally Posted by v12kid (Post 1928891)
shame this is unsupported

anyone want to take it over and fix/update? Maybe we can get a few people to donate to a developer to do that? I would certainly make a "donation" to get this working as I would LOVE to have this

i asked the developer if i'm allowed to take the project over and to create a own on this base, but he didn't answer.

and if i would make it without his permission, it wouldn't be ok(stealing^^)
also it would be very hard to support it, because my english is not the best;)


All times are GMT. The time now is 03:18 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.01683 seconds
  • Memory Usage 1,762KB
  • 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
  • (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