vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   RPG Integration Hack (https://vborg.vbsupport.ru/forumdisplay.php?f=102)
-   -   Newest messages at the top? (https://vborg.vbsupport.ru/showthread.php?t=78351)

Dorign 03-18-2005 10:50 PM

Newest messages at the top?
 
Would doing something like this be possible? Currently, the battle messages (in battle arena) have the oldest at the top and the newest at bottom.. is there a way to reverse this? Would be helpful! Thanks! :D

Revan 03-19-2005 09:17 AM

Of course mate :)
Open battlefight.php, find:
[sql]SELECT battleaction, battleactionid, username FROM " . TABLE_PREFIX . "rpg_battle_posts WHERE battlenumber='$battlenumber' ORDER BY battleactionid ASC[/sql]
change to
[sql]SELECT battleaction, battleactionid, username FROM " . TABLE_PREFIX . "rpg_battle_posts WHERE battlenumber='$battlenumber' ORDER BY battleactionid DESC[/sql]

For a future version, I will make this into an admin level setting :)

Dorign 03-20-2005 04:24 PM

Thank ya thank ya! :D This battle mod is the best I've seen yet. I've been doing research over the last few days between paid ones and this one, and this one is just much better. The only thing I wish it had (which I know isn't possible) is animations. It'd be neat to see your guy jump over to the other side and swing his weapon, just like in FFVI. Maybe in the fy00ture, when there's an IE 10. :P

Great work, Revan. Top quality, free to the userbase, and great support. I support this mod until my dying breath. x-D If there's anything I can do, let me know. I'm not a coder, but I can tinker, and I can create graphics and beautify templates. Also, I added support for a "midi-jukebox" you might like.

http://www.forum-central.com/sigs/rpg1.jpg - Choose Battle Music!
http://www.forum-central.com/sigs/rpg2.jpg - The Pop-up
http://www.forum-central.com/sigs/rpg3.jpg - The List
http://www.forum-central.com/sigs/rpg4.jpg - The Song

Keeps playing, even when minimized, and users can change songs mid-battle. I'm not good at making code "public" for people, but I can show you what I did in the templates if you want.. it's not hardcoded into the system, though. I don't even use the "add/delete" midi section of your mod, since I have this, but.. anyway, if it's something you're interested in, let me know.


All times are GMT. The time now is 03:11 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.01019 seconds
  • Memory Usage 1,719KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete