vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Styles (https://vborg.vbsupport.ru/forumdisplay.php?f=247)
-   -   Suite Style - Avenger Blue Style by TheLastSuperman (https://vborg.vbsupport.ru/showthread.php?t=269253)

pityocamptes 01-22-2015 03:08 AM

I am not sure if this is template related or not, never did it before other templates. When I click on Advanced Search I get a blank.html pop up box that wants to download. Nothing in it though. I don't want to spook users thinking its something bad...

pityocamptes 01-22-2015 03:09 AM

Quote:

Originally Posted by ozzy47 (Post 2518873)
I see you managed to change it @pityocamptes what did you end up doing?

Been so busy never got around to it, plan on working on it this week/weekend... thanks.

TheLastSuperman 01-22-2015 06:27 PM

Quote:

Originally Posted by pityocamptes (Post 2533872)
I am not sure if this is template related or not, never did it before other templates. When I click on Advanced Search I get a blank.html pop up box that wants to download. Nothing in it though. I don't want to spook users thinking its something bad...

Erm that does not sound right... should not do that from ANY style unless something is up. Try switching to another style or actually the default style is best to check issues against. Is the issue present in your default style?

*If you've deleted the default style, simply click on Style Manager then Add New Style - the style it creates will be a 100% default style. Check the site in the new default style, if the issue is gone then it was related to my style, if its not gone then its an issue with your sites files or similar. **Delete the newly created style when done if not using to test further.

pityocamptes 01-23-2015 11:36 PM

The pop up does not occur in the default template. Thanks.

pityocamptes 01-24-2015 12:55 AM

Quote:

Originally Posted by Avros (Post 2518826)
I had made changes to two templates {additional.css, lostpw.css} and utilized an unused color tab from the StyleVars {Blocks}. This allowed me to select the colour of my choice and only affecting the 'Lost Password Form' without altering the rest of the selection boxes elsewhere.

Add this to the [additional.css]
PHP Code:

.avros {
    
background#222937 !important;
    
border2px solid {vb:stylevar blockfoot_border.borderColor};
    
background:{vb:stylevar blockfoot_border};
    
padding:2px 2px;
    
outline:0;
    -
moz-border-radius:3px;
    -
webkit-border-radius:3px;
    
border-radius:3px;


To change the background colour of the input bar, you can alter the code in the second line above from [background: #222937] to [background: #xxxxxx] xxxxxx= any variable (colour) from your choosing.

{eg: #000000 = black, #FFFFFF = white}


Mofiy the [lostpw.cs] (copy the whole code and paste to the lostpw template is fine:)
PHP Code:

{vb:stylevar htmldoctype}
<
html xmlns="http://www.w3.org/1999/xhtml"<vb:if condition="$vboptions['enablefacebookconnect']"xmlns:fb="http://www.facebook.com/2008/fbml"</vb:if> dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}">
<
head>
    {
vb:raw headinclude}
    <
title>{vb:rawphrase lost_password_recovery_form} - {vb:raw vboptions.bbtitle}</title>
    {
vb:raw headinclude_bottom}
</
head>
<
body>
{
vb:raw header}
<
vb:if condition="$navbar">{vb:raw navbar}<vb:else /><br /><br /></vb:if>

<
form action="login.php?do=emailpassword" method="post" class="vbform block">
    <
h2 class="blockhead">{vb:rawphrase lost_password_recovery_form}</h2>

    <
div class="blockbody formcontrols">
        <
div class="blockrow">
            <
class="singledescription">{vb:rawphrase forgotten_password_request_email}</p>
        </
div>

        <
div class="blockrow">
            <
label for="email">{vb:rawphrase email_address}:</label>
            <
input type="text" class="avros" name="email" id="email" size="35" maxlength="90" value="{vb:raw email}" dir="ltr" tabindex="1" />
        </
div>

        <
vb:if condition="$human_verify">
        {
vb:raw human_verify}
        </
vb:if>
    </
div>

    <
div class="blockfoot actionbuttons">
        <
div class="group">
            <
input type="submit" class="button" value="{vb:rawphrase request_username_password_now}" accesskey="s" tabindex="1" />
        </
div>
    </
div>

    <
input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
    <
input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
    <
input type="hidden" name="do" value="emailpassword" />
    <
input type="hidden" name="url" value="{vb:raw url}" />
</
form>

{
vb:raw footer}

</
body>
</
html

To change the colour of the border, enter the 'StyleVars', find 'Blocks', then the 'blockfoot_border'. No need to alter anything else.




Thanks! If I put color: white; in the top portion of the additional.css it will only affect that box? Thanks again!

pityocamptes 01-28-2015 12:45 AM

Checking back on the popup .html box for advanced search issue... thanks

TheLastSuperman 01-28-2015 01:44 AM

Check the files on your server, in the same folder your vbulletin is running from, is there an empty index.html file present? It looks like from the pages source code, that this is being called by a plugin or was edited into the style (not in the version uploaded here though so i.e. you might have been hacked at some point in time, that's the only reason to include an invisible iframe usually but why is it being directed to include a 1kb blank.html file ? very odd imho).

This is found when I view the source code for your forum:
PHP Code:

    <iframe id="yui-history-iframe" src="clientscript/yui/history/assets/blank.html"
            
style="position:absolute;top:0; left:0;width:1px; height:1px;visibility:hidden;"></iframe>
    <
input id="yui-history-field" type="hidden" /> 

Makes no sense to link to an iframe in a 1kb file like that unless it was compromised but then the file size if it contained mal code should be larger than the original file size, which is the same 1kb so odd all around I'd say, can't tell anything specific unless I had access and I'm booked for the night working now and its close to 11pm here so no time to check regardless and not trying to scare you one bit simply saying this seems very odd and that you need to look into it to be safe.

I would replace default vBulletin files to be safe, check in the admincp using suspect file versions under maintenance after replacing them and also check for spare admin accounts. If anything looks odd file-wise then make a new thread in the vB4 forums and ask for feedback/assistance w/ the file names before deleting. *As always make a backup of database and files before removing anything.

Edit: Who is pasting <table and <TR <TD codes all over the place? STOP DAT lol its just an old outdated way to design web pages... it still works but not the standard, only use when absolutely required i.e. you're pulling your hair out because you can't find a way to make something display properly so you cheat and use a table (try not to!). Just one of many examples explaining more in detail - http://www.itegritygroup.com/css-vs-tables/ AND here is an example of how to do a three part fluid header instead of using a table to do the same in vBulletin - https://vborg.vbsupport.ru/showthread.php?t=228319 :cool:

pityocamptes 02-02-2015 11:30 PM

Thanks. Actually I've had this issue since I downloaded the style. Don't know about the table tr stuff as, like I said this is the only template I have been using and adding mods from here on... so with that in mind, do you still suggest the same as above? Thanks.

pityocamptes 02-02-2015 11:33 PM

Lynn over at vbulletin.com indicated this:

"If you do a Search In Templates for part of the code, like "<iframe id="yui-history-iframe", you will see that it is part of the search_common template."

So I assume it is part of the vbulletin files...

pityocamptes 02-02-2015 11:36 PM

So if I delete the code above, am I going to have any issues?


All times are GMT. The time now is 08:10 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.01864 seconds
  • Memory Usage 1,782KB
  • 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
  • (3)bbcode_php_printable
  • (3)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