View Full Version : Can't Find Images Or File
legionofangels
08-06-2008, 07:39 PM
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:
$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
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/images/styles/heaven/misc/redcard_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
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
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.
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.
Opserty
08-06-2008, 11:08 PM
AdminCP > Styles & Templates > Search in Templates > Text to search for "$card"
Results:
Member Info Templates:
memberinfo_infractionbit
User Infraction Templates:
userinfo_infractionbit
legionofangels
08-06-2008, 11:23 PM
I only get userinfo, not memberinfo, but there it is. I'll modify the extension and see if it works.
Worked, how did you come up with memberinfo, or were you searching in a 3.7 version?
Opserty
08-06-2008, 11:30 PM
Oh yeah, that was for 3.7 sorry.
legionofangels
08-06-2008, 11:34 PM
Oh yeah, that was for 3.7 sorry.
No problem thanks man. I was like, what the hell? lolz
I'll remember that $card or things like that to search for. It was hard to find one of the other images to, as they were done similarly like that with a bunch of code and then [.gif] like by itself, so it makes it more difficult.
Anyways fixed:
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.