vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Styles (https://vborg.vbsupport.ru/forumdisplay.php?f=161)
-   -   Kirsch (https://vborg.vbsupport.ru/showthread.php?t=104744)

evenmonkeys 01-26-2006 05:30 PM

Well, the only two places it's going to do that is in the actual template or the replacement variable. Take a look in the FORUMDISPLAY template. Search for newthread.gif and see if you can find it in there. Maybe it specified itself as 25x25 in there. Though I have no idea how. It could also be occuring because of parents templates.

I also had a problem like that when I made it on my own site. There was no logical explination for why something was happening. I ended up hard-coding something I didn't want to. However, it made it work and it didn't really bother anything.

Let me know if that works for you. If not, I might be able to think of some other ideas.

MattKitchen 01-26-2006 05:31 PM

Alright, i re-installed the template and it looks good again - must have been something i did somewhere.... thanks neway.

evenmonkeys 01-26-2006 11:49 PM

Haha. No problem.

darkman 01-27-2006 07:28 PM

I really like this skin alot.
Very clean looking.
Thank you very much.

*installs

ProjectTR 01-28-2006 12:04 PM

and additional 2 steps to view paperclip pic.

1. change name /kirsch/misc/paperclip.gif to paperclip.png
2. open threadbits templates
find
paperclip.gif
change it paperclip.png

thanks..

evenmonkeys 01-29-2006 01:22 AM

Wha? That should already be working. >_>

croberts 02-02-2006 09:09 PM

I installed the style and it looks great. I am having a problem with the plug in though.

I created a new plugin, cut and pasted all the XML code in the "plugin PHP code" box and edited the path line. I have the hook location set to ajax start. The plugin is active.
The transparancy is not working.

Is there something I missed? I like this look and would really like to get it fully working. Thanks, Chris

Win 2003 Server, Vbulletin 3.5.3, IE 6.0

evenmonkeys 02-02-2006 09:15 PM

Your hook location is incorrect. Your hook location needs to be global_complete. The plugin needs to be as follows:
PHP Code:

 $output replacePngTags($output);  
function 
replacePngTags($x,$img_path='images/kirsch/',$sizeMeth='scale',$inScript=FALSE){
    
$arr2=array();
    
// make sure that we are only replacing for the Windows versions of Internet
    // Explorer 5.5+
    
$msie='/msie\s(5\.[5-9]|[6-9]\.[0-9]*).*(win)/i';
    if( !isset(
$_SERVER['HTTP_USER_AGENT']) ||
        !
preg_match($msie,$_SERVER['HTTP_USER_AGENT']) ||
        
preg_match('/opera/i',$_SERVER['HTTP_USER_AGENT']))
        return 
$x;
    if(
$inScript){
        
// first, I want to remove all scripts from the page...
        
$saved_scripts=array();
        
$placeholders=array();
        
preg_match_all('`<script[^>]*>(.*)</script>`isU',$x,$scripts);
        for(
$i=0;$i<count($scripts[0]);$i++){
            
$x=str_replace($scripts[0][$i],'replacePngTags_ScriptTag-'.$i,$x);
            
$saved_scripts[]=$scripts[0][$i];
            
$placeholders[]='replacePngTags_ScriptTag-'.$i;
        }
    }
    
// find all the png images in backgrounds
    
preg_match_all('/background-image:\s*url\(([\\"\\\']?)([^\)]+\.png)\1\);/Uis',$x,$background);
    for(
$i=0;$i<count($background[0]);$i++){
        
// simply replace:
        //  "background-image: url('image.png');"
        // with:
        //  "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(
        //      enabled=true, sizingMethod=scale, src='image.png');"
        // I don't think that the background-repeat styles will work with this...
        
$x=str_replace($background[0][$i],'filter:progid:DXImageTransform.'.
                
'Microsoft.AlphaImageLoader(enabled=true, sizingMethod='.$sizeMeth.
                
', src=\''.$background[2][$i].'\');',$x);
    }
    
// find all the IMG tags with ".png" in them
    
$pattern='/<(input|img)[^>]*src=([\\"\\\']?)([^>]*\.png)\2[^>]*>/i';
    
preg_match_all($pattern,$x,$images);
    for(
$num_images=0;$num_images<count($images[0]);$num_images++){
        
// for each found image pattern
        
$original=$images[0][$num_images];
        
$quote=$images[2][$num_images];
        
$atts=''$width=0$height=0$modified=$original;
        
// We do this so that we can put our spacer.png image in the same
        // directory as the image - if a path wasn't passed to the function
        
if(empty($img_path)){
            
$tmp=split('[\\/]',$images[3][$num_images]);
            
$this_img=array_pop($tmp);
            
$img_path=join('/',$tmp);
            if(empty(
$img_path)){
                
// this was a relative URI, image should be in this directory
                
$tmp=split('[\\/]',$_SERVER['SCRIPT_NAME']);
                
array_pop($tmp);    // trash the script name, we only want the directory name
                
$img_path=join('/',$tmp).'/';
            }else{
                
$img_path.='/';
            }
        }else if(
substr($img_path,-1)!='/'){
            
// in case the supplied path didn't end with a /
            
$img_path.='/';
        }
        
// If the size is defined by styles, find them
        
preg_match_all(
            
'/style=([\\"\\\']).*(\s?width:\s?([0-9]+(px|%));).*'.
            
'(\s?height:\s?([0-9]+(px|%));).*\\1/Ui',
               
$images[0][$num_images],$arr2);
        if(
is_array($arr2) && count($arr2[0])){
            
// size was defined by styles, get values
            
$width=$arr2[3][0];
            
$height=$arr2[6][0];
            
// remove the width and height from the style
            
$stripper=str_replace(' ','\s','/('.$arr2[2][0].'|'.$arr2[5][0].')/');
            
// Also remove any empty style tags
            
$modified=preg_replace(
                
'`style='.$arr2[1][0].$arr2[1][0].'`i',
                
'',
                
preg_replace($stripper,'',$modified));
        }else{
            
// size was not defined by styles, get values from attributes
            
preg_match_all('/width=([\\"\\\']?)([0-9%]+)\\1/i',$images[0][$num_images],$arr2);
            if(
is_array($arr2) && count($arr2[0])){
                
$width=$arr2[2][0];
                if(
is_numeric($width))
                    
$width.='px';
    
                
// remove width from the tag
                
$modified=str_replace($arr2[0][0],'',$modified);
            }
            
preg_match_all('/height=([\\"\\\']?)([0-9%]+)\\1/i',$images[0][$num_images],$arr2);
            if(
is_array($arr2) && count($arr2[0])){
                
$height=$arr2[2][0];
                if(
is_numeric($height))
                    
$height.='px';
    
                
// remove height from the tag
                
$modified=str_replace($arr2[0][0],'',$modified);
            }
        }
        if(
$width==|| $height==0){
            
// width and height not defined in HTML attributes or css style, try to get
            // them from the image itself
            // this does not work in all conditions... It is best to define width and
            // height in your img tag or with inline styles..
            
if(file_exists($_SERVER['DOCUMENT_ROOT'].$img_path.$images[3][$num_images])){
                
// image is on this filesystem, get width & height
                
$size=getimagesize($_SERVER['DOCUMENT_ROOT'].$img_path.$images[3][$num_images]);
                
$width=$size[0].'px';
                
$height=$size[1].'px';
            }else if(
file_exists($_SERVER['DOCUMENT_ROOT'].$images[3][$num_images])){
                
// image is on this filesystem, get width & height
                
$size=getimagesize($_SERVER['DOCUMENT_ROOT'].$images[3][$num_images]);
                
$width=$size[0].'px';
                
$height=$size[1].'px';
            }
        }
        
        
// end quote is already supplied by originial src attribute
        
$replace_src_with=$quote.$img_path.'spacer.png'.$quote.' style="width: '.$width.
            
'; height: '.$height.'; filter: progid:DXImageTransform.'.
            
'Microsoft.AlphaImageLoader(src=\''.$images[3][$num_images].'\', sizingMethod='.
            
$sizeMeth.');"';
        
// now create the new tag from the old
        
$new_tag=str_replace($quote.$images[3][$num_images].$quote,$replace_src_with,
            
str_replace('  ',' ',$modified));
        
// now place the new tag into the content
        
$x=str_replace($original,$new_tag,$x);
    }
    
    if(
$inScript){
        
// before the return, put the script tags back in. (I was having problems when there was
        // javascript that had image tags for PNGs in it when using this function...
        
$x=str_replace($placeholders,$saved_scripts,$x);
    }
    
    return 
$x;



croberts 02-03-2006 05:25 AM

Thank you for the quick answer. I'll try it out.

evenmonkeys 02-03-2006 11:21 PM

Actually, the top three lines of the plug-in needs to be this:

PHP Code:

 $output replacePngTags($output);  
function 
replacePngTags($x,$img_path='http://yoursite.com/images/kirsch/',$sizeMeth='scale',$inScript=FALSE){
    
$arr2=array(); 

This is needed because certain modifications will not see the images folder correctly. So set the image location to http://yoursite.com/images/kirsch/.

croberts 02-05-2006 04:41 AM

Thank you, it now works. I also had to globally turn on plugins/hooks.

It looks great.

evenmonkeys 02-05-2006 07:09 AM

Haha- yeah. That might help. Thanks.

Barteken 02-06-2006 05:33 PM

got a problem with Vbadvanced, the style goes out of his border, so people have to scroll to the right to see the whole page. On the portal it's fine on the forum page, with firefox is everything all right.

how can i solve this problem?

Grtz

evenmonkeys 02-07-2006 03:45 AM

Could you PM me the location of the style so that I could see it? I honestly can't think of any reason it'd do that.

Barteken 02-07-2006 03:27 PM

pm sent... :-)

Bart

evenmonkeys 02-07-2006 05:08 PM

I am truthfully stumped by this. I installed the CMPS on my test board along with my fluid style and did not have your problem. Honestly, I think it's a problem within one of your customized templates. Maybe even in one of your modules on your CMPS. I honestly don't know what the problem is. =\

So as of now, I'm not sure I can help you. However, I'll continue to poke around.

Mattikana 02-08-2006 01:02 PM

Great style! :D
but I've got a little problem with your style:
When I enter forumdisplay I see this...
normally there is a paperclip icon instead of the attachments text, so I found out that paperclip.png is missing, but paperclip.gif exists in your style folder... so paperclip.gif should be paperclip.png :rolleyes:

evenmonkeys 02-08-2006 03:13 PM

Okay... go into your Replacement Variables under the Kirsch style. In there, look for a replacement variable for paperclif.gif. If you see it, delete it. If not, let me know. I'll update the ZIP with the correct images.

My apologies.

Mattikana 02-08-2006 03:39 PM

Quote:

Originally Posted by xYarub
Okay... go into your Replacement Variables under the Kirsch style. In there, look for a replacement variable for paperclif.gif. If you see it, delete it. If not, let me know. I'll update the ZIP with the correct images.

My apologies.

I already looked into the Replacement Variables.. there is no replacement for paperclif.gif :glasses:

forumsoup.com 02-08-2006 06:46 PM

I put this on my site, love it, and clicked installed. Thanks! (By the way, I installed it and it works fine with internet explorer without adding the additional plugin. But with vbadvanced, the borders a little off.)

evenmonkeys 02-10-2006 04:35 AM

Yeah- I know it's not working on the CMPSs. I have no idea why though. What version of IE are you running? I am using MyIE2 from almost two years ago so that may be why it doesn't work for me. =D

Lucas 02-11-2006 01:24 PM

Could anyone help me get the avatars/member info at the right instead of the top like currently is? Just like vBulletin.org Smooth Blue theme.

Thanks & Regards.

Smiry Kin's 02-12-2006 09:59 AM

Hi, could some one help me with moving a few things around?? pm me a msn address or something? its really annoying and i need to learn! :(

also how would i center this?
Code:

<td><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" /></td>
                        <td class="smallfont">&nbsp; $vbphrase[forum_contains_new_posts]</td>

               
                        <td><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" /></td>
                        <td class="smallfont">&nbsp; $vbphrase[forum_contains_no_new_posts]</td>
               
               
                        <td><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /></td>
                        <td class="smallfont">&nbsp; $vbphrase[forum_is_closed_for_posting]</td>

i tried using

<tr align="center"> </tr>

but no luck! :(

###2

also! how do i remove the
Powered by vBulletin Copyright ?2000 - 2006, Jelsoft Enterprises Ltd.

i moved it some where else.. i want the bottom of the forum to be at the bottom of the page if you get me?

evenmonkeys 02-13-2006 04:12 AM

<td align="center">

You cannot remove that copyright notice without breaking the Jelsoft agreement. It's originally in the footer though. Just create a new style without a parent style and find it in the footer.

Smiry Kin's 02-13-2006 10:06 AM

Quote:

Originally Posted by xYarub
<td align="center">

You cannot remove that copyright notice without breaking the Jelsoft agreement. It's originally in the footer though. Just create a new style without a parent style and find it in the footer.

Thanks, and i managed to remove it, and move it else where

Aaron_j 02-16-2006 02:24 AM

Can someone tell me what I am missing?

My forum is looking for *png files in the /forum/images/kirsch/statusicon/ folder but there are two problems.

1. There is no "statusicon" folder in the "kirsch" folder.

2. There are no *png images to be found anywhere except for the spacer.png.

Where are all of the *png images? There should be a lot of them from what I can see.

(edit: I do have the buttons. An example of a missing png would be : /forum/images/kirsch/statusicon/thread_dot_hot.png)

(another edit: this is a great style BTW) :D

evenmonkeys 02-17-2006 04:34 AM

I downloaded the ZIP file just to make sure, and it's got all of the images there. >_> Maybe your file was corrupted, or you did not upload all of the folders. Try uploading the images again just to make sure.

I am releasing a GIF version of this soon. =D PNGs are just causing too many problems; my site and yours.

Smiry Kin's 02-17-2006 09:41 AM

here i just downloaded and uploaded

i love this style :D

Aaron_j 02-17-2006 11:54 AM

Quote:

Originally Posted by xYarub
I downloaded the ZIP file just to make sure, and it's got all of the images there. >_> Maybe your file was corrupted, or you did not upload all of the folders. Try uploading the images again just to make sure.

I am releasing a GIF version of this soon. =D PNGs are just causing too many problems; my site and yours.

Apparently, this was the problem. A corrupted download. I have the PNGs now but I will look forward to the release of the GIF version.

Again, great style. :)

evenmonkeys 02-17-2006 09:02 PM

I have released the GIF version of Kirsch and should eliminate all of the problems with replacement variables and missing images. However, there will always be problems somewhere, right? =D That's what I'm here for.

Enjoy the new version and let me know if anyone has any questions.

Smiry Kin's 02-18-2006 12:39 AM

Dude, i've edited the png version so much, please tell us how to update :S :( ill cry.... lol

i must admit i can view some things in FF, and some not in IE :( please dude, how to upgrade from png would be ideal! :(

EricaJoy 02-18-2006 02:27 AM

oooo teh gorgeous.

evenmonkeys 02-18-2006 03:26 AM

Quote:

Originally Posted by Smiry Kin's
Dude, i've edited the png version so much, please tell us how to update :S :( ill cry.... lol

i must admit i can view some things in FF, and some not in IE :( please dude, how to upgrade from png would be ideal! :(

Your're not really upgrading. However, here's what you can do. Go into your Styles & Templates and then into your Replacement Variables. Then delete every single replacement variable. Now upload the new images in the GIF version to your server. After that, delete all PNGs. That should fix everything.

Smiry Kin's 02-18-2006 09:36 PM

Quote:

Originally Posted by xYarub
Your're not really upgrading. However, here's what you can do. Go into your Styles & Templates and then into your Replacement Variables. Then delete every single replacement variable. Now upload the new images in the GIF version to your server. After that, delete all PNGs. That should fix everything.

dun get it ? :S replacement variables? im vbulletin noob dude,

DannyMilner 02-18-2006 10:05 PM

That is super neat. Very nice, I may install it soon

wizardace 02-19-2006 01:58 PM

Very nice. Ta

hotrod1 02-19-2006 03:03 PM

Can't wait to start using it, thanks!!!

evenmonkeys 02-19-2006 07:59 PM

Quote:

Originally Posted by Smiry Kin's
dun get it ? :S replacement variables? im vbulletin noob dude,

Haha. No problem. It's rather easy actually.

In your adminc, click on Styles & Templates. Then go to Style Manager. Then it's going to list your styles on the right side. Of the Kirsch style's drop down list option, select Replacement Variables. This is going to give you a list of about 50-60 variables. Check the delete option in every single one of them. After you've checked them all, click Save at the bottom of the page. This will remove them all.

After that, just make sure you have the new GIF images uploaded and it will all work. You can delete all of the PNG images off of your server as well. Let me know if this still doesn't help.

evenmonkeys 02-25-2006 05:06 PM

The versions of the style have been updates to 3.5.4. Let me know if anyone has any problems.

Smiry Kin's 02-25-2006 05:49 PM

Quote:

Originally Posted by xYarub
The versions of the style have been updates to 3.5.4. Let me know if anyone has any problems.

im still using the old version? whats new then? before i upgrade the style n ad all the changes again?..


All times are GMT. The time now is 01:24 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.01665 seconds
  • Memory Usage 1,914KB
  • 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
  • (2)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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