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)

Collussus 06-25-2009 12:05 PM

1 Attachment(s)
Sorry for double post, For the lazy people i attached the fixed functions_conquest.php.

blissend 06-26-2009 02:33 AM

Would you be so kind to add the time left till next cycle in the next release? 8)

I was able to by adding these lines (you'll have to excuse my crappy coding)...

conquest.php
PHP Code:

// ### blissend's fugly modification
$countDownMin $settings[gCycleMinutes]-(date(i,(time() - $settings[gLastCycle])));
$countDownSec 60-(date(s,(time() - $settings[gLastCycle])));
if (
$countDownSec == 60$countDownSec--; // ugh
if ($countDownSec 10$countDownSec '0'.$countDownSec;
// yes I know its really bad to mod the $vbphrase variable but I didn't fee like changing a template file to get this working
$vbphrase[conquest_navigation] = "Navigation (".$countDownMin.":".$countDownSec.")";
// ###  end of blissend's fugly modification 

Only works on page load but better than nothing. Would be great with live updating.

therogueforums 06-26-2009 07:55 AM

That's actually an awesome idea.

Skyrider 06-26-2009 08:16 AM

How do I remove nations? I still can't figure that out.

therogueforums 06-26-2009 08:20 AM

If you do Sky, let me know.

Itchy Nips 06-26-2009 01:42 PM

i've created a 2nd navbar under the default one, for just extra links. How do I get rid of the "conquest system" link that gets created when I installed this mod?

I've looked under the "navbar" template and I dont see a link in there.

BlueNinjaGo 06-26-2009 01:50 PM

Quote:

Originally Posted by Itchy Nips (Post 1837843)
i've created a 2nd navbar under the default one, for just extra links. How do I get rid of the "conquest system" link that gets created when I installed this mod?

I've looked under the "navbar" template and I dont see a link in there.

I haven't looked at the code, but he probably used a template hook...

Go to ACP -> options -> Conquest -> The location on your navbar for the link to the conquest system -> Disable

Collussus 06-26-2009 03:04 PM

I found a fix for the max troops bug. It seemed that the "int" for the pTroops column in conquest_players had to be bigint. Change it with this sql:

Code:

ALTER TABLE  `conquest_players` CHANGE  `pTroops`  `pTroops` BIGINT UNSIGNED NOT NULL DEFAULT  '0'
add a prefix before conquest_ if you have one.


Quote:

Originally Posted by Itchy Nips (Post 1837843)
i've created a 2nd navbar under the default one, for just extra links. How do I get rid of the "conquest system" link that gets created when I installed this mod?

I've looked under the "navbar" template and I dont see a link in there.



There's also a conquest settings in vbulletin options. Disable it there.

Skyrider 06-27-2009 08:09 PM

Great, you can't even remove nations when you add some or wish to keep it at 2. What's the point in that? The owners of this plugin has been around in the last few days but doesn't seem to reply in this thread. Haven't received a private message from him either when I send him a message qute some time ago.

gezgas 06-28-2009 07:27 PM

i went into myphpadmin and looked it up there, and was able to remove nations and change nations for players and so. so take a look there.


All times are GMT. The time now is 11:00 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.02072 seconds
  • Memory Usage 1,745KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_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