Important: This page is using cookies (cookies). Using this website without turning off cookies in browser, means that you agree for using it.
Buy Now! Features Downloads

Earn with us!

If you would like to start earning money with vBET join to Affiliate Program.
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: custom template homepage links

  1. #1

    Default custom template homepage links

    Hi,

    I have had to create a custom template from scratch (my board is highly customised).

    All is working fine, apart from when a user follows a link to a sub-language, the links to the MAIN language (ie. domain.com) are updated to be the homepage of THAT language, (ie. domain.com/es/).

    How can I override the rewriting of a specific link so that I can maintain the link to the original language (english), while keeping the main site logo using the new link to the country specific homepage?

    thanks

    MOGmartin

  2. #2

    Default

    if you need an example,

    1) please go to my board @ MOGmartin's SEO Forum, FREE SEO Tools & SEO Blog @seoforums.org
    2) click onto another language
    3) click BACK to english (the first flag).

    I need to set that link to go to just the homepage of the main site.

    thanks

  3. #3
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    I see it. What changes did you made in vBET template for flags generation. Also - did you made any vBET code changes?

  4. #4

    Default

    Quote Originally Posted by vBET View Post
    I see it. What changes did you made in vBET template for flags generation. Also - did you made any vBET code changes?
    no changes at all, I just created a hard coded template in html with the languages I wanted, and pointed them at the correct directory:

    ie. spanish flag = link to /es/
    french flag = link to /fr/

    no logic is used.

  5. #5

    Default

    Quote Originally Posted by MOGmartin View Post
    no changes at all, I just created a hard coded template in html with the languages I wanted, and pointed them at the correct directory:

    ie. spanish flag = link to /es/
    french flag = link to /fr/

    no logic is used.
    anything? bump?? help???

    etc.

  6. #6
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    Quote Originally Posted by MOGmartin View Post
    no changes at all, I just created a hard coded template in html with the languages I wanted, and pointed them at the correct directory:

    ie. spanish flag = link to /es/
    french flag = link to /fr/

    no logic is used.
    So you changed completely the way of flags generation. Please note that vBET generates flags URL's normally for not translated pages and for translated pages uses there prefix vbet_flag- which is removed during translation tracking (to recognize your flags links and not add there language code). You changed it and that is why your flag has added language code.

    So please return to vBET template and modify it if you need, or in your code check does exist $_REQUEST['language'] and in this case add vbet_flag- at the beginning of flag URL (not the image - link around image).

  7. #7

    Default

    Quote Originally Posted by vBET View Post
    So you changed completely the way of flags generation. Please note that vBET generates flags URL's normally for not translated pages and for translated pages uses there prefix vbet_flag- which is removed during translation tracking (to recognize your flags links and not add there language code). You changed it and that is why your flag has added language code.

    So please return to vBET template and modify it if you need, or in your code check does exist $_REQUEST['language'] and in this case add vbet_flag- at the beginning of flag URL (not the image - link around image).
    Hi, thanks for the response.

    I took a look at your code last night, couldnt work out how to adapt it... guess I will dive in again.

    the problem with your default template is that for some reason all of the heights and widths are set to zero, so the flags just appear as dots.

    do you know why this is?

    thanks!

    Martin
    Last edited by MOGmartin; 16-09-10 at 16:41.

  8. #8

    Default

    edited above post to include problem with default templates,

    the html I currently see is height="0" and width="0" on all flags.... ??

  9. #9

    Default

    OK - found the problem.

    you are using clear.gif as the link filename, this conflicts with clear.gif that vb uses as well.

    I have fully setup all image size attributes in vbseo, so it creates this conflict.

    I recommend you change the name of clear.gif in a future release.

  10. #10
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    Quote Originally Posted by MOGmartin View Post
    edited above post to include problem with default templates,

    the html I currently see is height="0" and width="0" on all flags.... ??
    Width and height are hard-coded as numbers: width="16" height="11"
    So it cannot be vBET fault - maybe some other mod is parsing your images.

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •