vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Can't Find Images Or File (https://vborg.vbsupport.ru/showthread.php?t=187393)

legionofangels 08-06-2008 07:39 PM

Can't Find Images Or File
 
1 Attachment(s)
So I'm trying to change my images for my infractions and I cannot find the small card of yellow or red in any of my templates, yet it appears on my board. I also looked at infraction.php, members.php, admininfraction.php, and I still cannot find what controls the images in the picture below.

Anyone have any idea where to find them or what document controls them?

Lynne 08-06-2008 07:47 PM

Maybe this line in class_profileblock.php (I did a search in the files for 'yellow')? Line 1518:
PHP Code:

                $card = ($infraction['points'] > 0) ? 'redcard' 'yellowcard'


legionofangels 08-06-2008 08:14 PM

I don't have

class_profileblock.php

I'm using 3.6.8 PL 2

Lynne 08-06-2008 08:22 PM

Searching for 'yellow' in my 3.6.8 files, I see a similar block of code in the member.php file around line 685.

legionofangels 08-06-2008 08:40 PM

Its' in that file on that line, but there is no specification to gif or png or jpeg or anything else.

Opserty 08-06-2008 09:44 PM

Right click on the image and view properties... not sure why Lynne has gone looking for images in PHP files :D

legionofangels 08-06-2008 09:48 PM

Quote:

Originally Posted by Opserty (Post 1592946)
Right click on the image and view properties... not sure why Lynne has gone looking for images in PHP files :D

Already did that, I know where it's located on my server, I don't know where it's located or editable on my forum software.

http://www.legionofangels.net/forum/...card_small.gif

I've searched redcard, yellowcard, yellowcard_small, etc.

I even searched infraction thinking it might have a bunch of infraction jargon and then state .gif somewhere, I only found it in USER CP but it didn't make sense to be there and didn't fix the problem or change the image.

Opserty 08-06-2008 09:49 PM

It will be in a template most likely. Use the "Search in Templates" feature.

Lynne 08-06-2008 10:20 PM

Quote:

Originally Posted by Opserty (Post 1592946)
Right click on the image and view properties... not sure why Lynne has gone looking for images in PHP files :D

Because it is not explicit in the template. It seems the image is determined in the code.

legionofangels 08-06-2008 11:02 PM

Quote:

Originally Posted by Opserty (Post 1592952)
It will be in a template most likely. Use the "Search in Templates" feature.

That's what I was using.

No results, yet it appears on my board. That means it's not template controlled most likely and is controlled by a file on my server.

Quote:

Originally Posted by Lynne (Post 1592971)
Because it is not explicit in the template. It seems the image is determined in the code.

Exactly.

For some reason I keep thinking that it's an inline image or something, I just cannot fathom which file it is, but I guess I'll have to go one by one through each vb file until I find it.

That line you gave me originally was close, but it needs to somewhere state within that document what type of file extension it is if it's hardcoded. The image is a gif, so there should be a ".gif" somewhere in a file with yellowcard_small and redcard_small in it.


All times are GMT. The time now is 03:21 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.01025 seconds
  • Memory Usage 1,738KB
  • 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_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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