vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Display Enhancements - Country Display for Who's Online (https://vborg.vbsupport.ru/showthread.php?t=151600)

JD45 07-08-2007 04:16 PM

Quote:

Originally Posted by 1996 328ti (Post 1285902)
What if you do add this to a template?

HTML Code:

<img src="$stylevar[imgdir_misc]/flags/$session[country_iso2].png" alt="$session[country]" />
Look at www.318ti.org/forum/
Do you see the US flag in the lower right of the header banner?

I did add that to mine and it didn't show up and I don't see it on yours either...:confused:

steven s 07-08-2007 04:23 PM

Quote:

Originally Posted by JD45 (Post 1285924)
I did add that to mine and it didn't show up and I don't see it on yours either...:confused:

OK. I figured if it showed on my site the problem was with your installation.
The fact that it is not showing up then has more to do with your ip address as you both figured.
I was just trying to rule out the installation.

Zagis 07-09-2007 06:33 PM

Quote:

Originally Posted by Kaycee123 (Post 1285702)
I've installed GLA and this program and everything is working fine except the flag pictures don't come up. I have them all installed under /images/misc/flags/ Is that where they're supposed to be??

I've got a similar problem here. It doesn't show flag pictures but only country names, even if I have selected the "Display Country Flag" option.
Quote:

Originally Posted by mfyvie (Post 1285707)
Try manually typing in the full URL to one of the flags.

I did and I can see them.
Quote:

Originally Posted by mfyvie (Post 1285707)
The other possibilities is the style variable that points to the misc directory is set somewhere else. If you are using multiple styles and have multiple "misc" directories, then you can put the flags directory in there (this allows you to show different sets of flags according to different styles).

I use only custom style. No others are installed.

Thanks :)

mfyvie 07-09-2007 06:54 PM

Quote:

Originally Posted by Zagis (Post 1286916)
I did and I can see them.I use only custom style. No others are installed.

If you have a custom style then your stylevar might be pointed to a different directory than images/misc - the previous person had the same problem.

Styles and Templates -> (for the right style) Style Vars -> Scroll down to Miscellaneous Images Folder.

On the default installation this is set to "images/misc", which is where you put your flags. If your style has a different location for this directory, then you must move your flags there instead.

Zagis 07-09-2007 07:15 PM

"Miscellaneous Images Folder" is images/misc for the Default Style that I use.

mfyvie 07-09-2007 07:24 PM

Then the most likely possibility is that the automatic template edits were not able to work due to customisations you've made on WHOSONLINE or whosonlinebit templates (very likely if you have a heavily customised style).

However, if your country names are showing up, then it's obviously managed to make these changes.

The only thing you can do now to examine the source of the page (i.e. check the HTML output) for the who's online display. Each cell should contain something like this:
HTML Code:

<td class="alt1"><img title="Switzerland" style="margin-right: 3px;" src="images/misc/flags/ch.png" alt="Switzerland">Switzerland</td>
You should see the img tag in there, along with the relative path (relative to your forum directory) for the image. Is the problem that the img tag is missing from this cell, or that the path to the image is somehow wrong? If this doesn't resolve the problem, then please paste in just the cell (as I have done) for your page.

Zagis 07-09-2007 07:39 PM

This is what I've got
PHP Code:

<td class="alt1"><img style="margin-right: 3px" src="images/misc/flags/gr.png" alt="Greece" /></td


mfyvie 07-09-2007 07:49 PM

Ok, then based on what you've written, I assembled a URL which *should* display your image directly -

http://www.malinoiscanary.gr/forum/i...c/flags/gr.png

However, it doesn't - this URL just brings up some more of your forum, not the image itself. You said when you put the URL in directly it worked? Which URL did you put in to make it work?

tycity 07-10-2007 05:32 AM

This is awesome - thanks! Worked like a charm. :) Only tip is that if you are using a template other than the default VB skin, you have to upload the flags to the template's image directory.

Zagis 07-10-2007 07:19 AM

Ok this is what happened...

The size of all the png files after bz.png in \forum\images\misc\flags dir was 0 bytes for some reason. So, I reupload the \images\misc\flags dir and the prob solved.
Quote:

Originally Posted by mfyvie (Post 1286971)
You said when you put the URL in directly it worked? Which URL did you put in to make it work?

I was checking the first 5-6 files (ad.png, ae.png...) and that is why it was working for me.

Any way, thanks for the support :up:


All times are GMT. The time now is 10:56 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.01172 seconds
  • Memory Usage 1,751KB
  • 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
  • (2)bbcode_html_printable
  • (1)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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