vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Please Help!! (https://vborg.vbsupport.ru/showthread.php?t=304508)

mort2412 11-14-2013 01:23 AM

Please Help!!
 
1 Attachment(s)
Hi, I've recently installed a mod and it's working perfectly however if you look in the attached image something is not aligning correctly.

The code for this is:

PHP Code:

<vb:if condition="$show['btu_canban']">

<
li class="{vb:raw menu_item_position}"><img src="images/site_icons/ignore.png" alt="{vb:rawphrase btu_unban}" />
<
a href="postings.php?{vb:raw session.sessionurl}do=btu_ban&amp;t={vb:raw tredotid}&amp;u={vb:raw juserid}" rel="nofollow">Thread Ban/Unban</a>

</
li>
</
vb:if> 

Can someone please tell me what to edit here to get things to align properly.

Many thanks

ozzy47 11-14-2013 01:25 AM

Questions/Problems regarding modifications/styles need to be asked in the modification/style thread. That is where the support for

modification/style is - not out here in the main forums. Please note that if a modification/style is unsupported (or even if it says it is

supported), you may be on your own if you chose to install it.

mort2412 11-14-2013 02:02 AM

Im fully aware of that, all I want to know is if there is anything in that script that I can edit to tidy things up a little

Max Taxable 11-14-2013 02:05 AM

Quote:

Originally Posted by mort2412 (Post 2460559)
Im fully aware of that, all I want to know is if there is anything in that script that I can edit to tidy things up a little

I'd say save the code in a txt file on your desktop for easy revert, and experiment with the live code.. It's a great and safe way to learn.

ozzy47 11-14-2013 02:05 AM

Then that would have to be handled in the mod's thread. :(

tbworld 11-14-2013 02:21 AM

Provide a link to a working page, we might be able to help. :)

ozzy47 11-14-2013 03:06 AM

TBH that looks like vB3 code that is trying to be used in a vB4 template, what mod is this from?

kapii 11-14-2013 03:18 AM

Quote:

Originally Posted by ozzy47 (Post 2460576)
TBH that looks like vB3 code that is trying to be used in a vB4 template, what mod is this from?

Nice catch sir.

ozzy47 11-14-2013 03:19 AM

I managed to find the mod, https://vborg.vbsupport.ru/showthread.php?t=259017

So what I would do is change that code to this:

Code:

        <vb:if condition="$show['btu_canban']">
            <li class="left">
                <a class="siteicon_ban" rel="nofollow" href="postings.php?{vb:raw session.sessionurl}do=btu_ban&amp;t={vb:raw tredotid}&amp;u={vb:raw juserid}">
                    Thread Ban/Unban
                </a>
            </li>
        </vb:if>

You can change this line, <li class="left"> to right, if you want it on the right side of the menu.

mort2412 11-14-2013 03:39 AM

Thank you ozzy you are a legend, works perfectly, shame you can't take over that mod and bring it up to date, with some added extras. As it would be great to make it available for moderators to use not just admins.

ozzy47 11-14-2013 03:42 AM

Not a problem, glad to help. :)

I may incorporate it's functions into my other mod, https://vborg.vbsupport.ru/showthread.php?t=302780

It won't be much to re write, in my own style it and bring it up to date. But i got some other things going on at the moment.

mort2412 11-14-2013 03:50 AM

Would be great if you did as I already have that mod of yours installed!!

ozzy47 11-14-2013 04:14 AM

Cool, then you would be able to condense the mods. I would of course have to import the info that the other mod stores in the DB into my own column, so you would not loose people who are banned in that mod.

mort2412 11-14-2013 10:01 AM

Be great if you could, a definite canditade for month of the month if you were to create it

ozzy47 11-14-2013 11:49 AM

Would be nice, but it already has won MOTM, just last month. :)


All times are GMT. The time now is 04:54 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.01106 seconds
  • Memory Usage 1,747KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (15)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