The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

How to change the inscription Similar topics in another language?

Page 1 of 2 1, 2  Next

View previous topic View next topic Go down

Solved How to change the inscription Similar topics in another language?

Post by smurfavr on September 1st 2015, 10:28 pm

How to change the inscription Similar topics in another language?

psp
Can you only show similar themes of my forum? Currently showing threads and other forums.


Last edited by smurfavr on October 31st 2015, 3:29 pm; edited 1 time in total

smurfavr
Active Poster

Male Posts : 1425
Reputation : 13
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How to change the inscription Similar topics in another language?

Post by SLGray on September 1st 2015, 11:16 pm

Is it not already translated when you have your forum in a non-English language?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36743
Reputation : 2449
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: How to change the inscription Similar topics in another language?

Post by smurfavr on September 2nd 2015, 11:29 am

EN - Similar topics BG- Подобни теми

smurfavr
Active Poster

Male Posts : 1425
Reputation : 13
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How to change the inscription Similar topics in another language?

Post by Klemen on September 2nd 2015, 11:55 am

AP > display > colors > CSS and add this code:

Code:
#ptrafic_open .cattitle{
    font-size:0px;
}

#ptrafic_open .cattitle:after{
    font-size:12px;
    content: 'Подобни теми';
}


The 'similar topic' is a traffic exchange feature and can be turned off or modified in
AP > General > Forum Promotion > Traffic exchange



Klemen
Forumember

Male Posts : 292
Reputation : 32
Language : English, German, Slovene

http://www.bannedbrotherhood.com

Back to top Go down

Solved Re: How to change the inscription Similar topics in another language?

Post by smurfavr on September 2nd 2015, 2:01 pm

Thank you Klemen code works.


Can anybody tell how to do dase show only links from my forum.

smurfavr
Active Poster

Male Posts : 1425
Reputation : 13
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How to change the inscription Similar topics in another language?

Post by Klemen on September 2nd 2015, 2:12 pm

You can't.

Klemen
Forumember

Male Posts : 292
Reputation : 32
Language : English, German, Slovene

http://www.bannedbrotherhood.com

Back to top Go down

Solved Re: How to change the inscription Similar topics in another language?

Post by smurfavr on September 2nd 2015, 2:15 pm

There may be a way. Maybe @Ange Tuteur know how.

smurfavr
Active Poster

Male Posts : 1425
Reputation : 13
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How to change the inscription Similar topics in another language?

Post by Klemen on September 2nd 2015, 2:25 pm

@smurfavr wrote:There may be a way. Maybe @Ange Tuteur know how.
You can't modify the existing 'similar topics' feature to show topics only in your forum, but you might want to look at these:
- http://help.forumotion.com/t140447-how-to-modify-similar-topic
- http://help.forumotion.com/t142528-thumbnails-of-similar-topics

Klemen
Forumember

Male Posts : 292
Reputation : 32
Language : English, German, Slovene

http://www.bannedbrotherhood.com

Back to top Go down

Solved Re: How to change the inscription Similar topics in another language?

Post by smurfavr on September 2nd 2015, 2:39 pm

I put the code in this topic, but still appear links to other forums. http://help.forumotion.com/t140447-how-to-modify-similar-topic#954799

psp
My forum is PHPBB2.

smurfavr
Active Poster

Male Posts : 1425
Reputation : 13
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How to change the inscription Similar topics in another language?

Post by smurfavr on September 4th 2015, 12:14 pm

Up

smurfavr
Active Poster

Male Posts : 1425
Reputation : 13
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How to change the inscription Similar topics in another language?

Post by smurfavr on September 6th 2015, 3:30 pm

Up

smurfavr
Active Poster

Male Posts : 1425
Reputation : 13
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How to change the inscription Similar topics in another language?

Post by smurfavr on September 24th 2015, 11:02 am

Up

smurfavr
Active Poster

Male Posts : 1425
Reputation : 13
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How to change the inscription Similar topics in another language?

Post by Niko on September 24th 2015, 1:50 pm

Hello @smurfavr,

sure you can Wink
for example, create a new widget in all the pages with the following content:
Code:
<script>jQuery(document).ready(function(){r='/search?change_version=prosilver&search_keywords='+encodeURIComponent(document.title)+'&search_terms=any&search_where=-1&search_time=0&show_results=topics&sort_by=2&sort_dir=ASC';jQuery.get(r,function(d){t='a.topictitle';if(jQuery(t,d).length>10){n=9}else{n=jQuery(t,d).length-1};i=0;for(i=0;i<=n;i++){jQuery('.smlarf').append('<li style="overflow:hidden;height:18px;line-height:18px;max-height:18px;list-style:none outside none"><span class=genmed> <a href="'+jQuery(""+t+":eq("+i+")",d).attr("href")+'" target=_blank>'+jQuery(""+t+":eq("+i+")",d).text()+'</a><br></span></li>')}})})</script><div class=smlarf id=ptrafic_scroll_div></div>

It should work even in other places where html is enabled :rose:

Niko
Hyperactive

Male Posts : 2298
Reputation : 97
Language : English, French, Italian, Spanish, Latin

Back to top Go down

Solved Re: How to change the inscription Similar topics in another language?

Post by smurfavr on September 24th 2015, 2:41 pm

@Niko Can you explain what exactly is the purpose of this widget? I did not understand.

smurfavr
Active Poster

Male Posts : 1425
Reputation : 13
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How to change the inscription Similar topics in another language?

Post by Niko on September 24th 2015, 2:42 pm

@smurfavr when you are on a topic, you will see in this widget the similar topics only from your forum Smile

Niko
Hyperactive

Male Posts : 2298
Reputation : 97
Language : English, French, Italian, Spanish, Latin

Back to top Go down

Solved Re: How to change the inscription Similar topics in another language?

Post by smurfavr on September 24th 2015, 2:55 pm

I want this to be done on similar themes but not as a widget.

smurfavr
Active Poster

Male Posts : 1425
Reputation : 13
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How to change the inscription Similar topics in another language?

Post by Niko on September 24th 2015, 3:01 pm

@smurfavr You can place it where you prefer Wink

just create a new javascript code in all pages
Code:
jQuery(document).ready(function(){r='/search?change_version=prosilver&search_keywords='+encodeURIComponent(document.title)+'&search_terms=any&search_where=-1&search_time=0&show_results=topics&sort_by=2&sort_dir=ASC';jQuery.get(r,function(d){t='a.topictitle';if(jQuery(t,d).length>10){n=9}else{n=jQuery(t,d).length-1};i=0;for(i=0;i<=n;i++){jQuery('.smlarf').append('<li style="overflow:hidden;height:18px;line-height:18px;max-height:18px;list-style:none outside none"><span class=genmed> <a href="'+jQuery(""+t+":eq("+i+")",d).attr("href")+'" target=_blank>'+jQuery(""+t+":eq("+i+")",d).text()+'</a><br></span></li>')}})})

and then add this html code where you want it to be shown:
Code:
<div class=smlarf id=ptrafic_scroll_div></div>

Niko
Hyperactive

Male Posts : 2298
Reputation : 97
Language : English, French, Italian, Spanish, Latin

Back to top Go down

Solved Re: How to change the inscription Similar topics in another language?

Post by smurfavr on September 24th 2015, 3:11 pm

How to do this code?
Topics want to appear in similar topics as a picture of my first post.
Code:
<div class=smlarf id=ptrafic_scroll_div></div>

smurfavr
Active Poster

Male Posts : 1425
Reputation : 13
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How to change the inscription Similar topics in another language?

Post by KpuCk0 on September 24th 2015, 4:17 pm

Go to your viewtopic_body and find this:
Code:
<!-- BEGIN promot_trafic -->
<table class="forumline" width="100%" border="0" cellpadding="1" cellspacing="0" id="ptrafic_close" style="display:none;margin: 1px 0px 1px 0px">
   <tr>
      <td class="catBottom" height="28">
         <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
               <td valign="top"><div class="cattitle">&nbsp;{PROMOT_TRAFIC_TITLE}</div></td>
               <td align="right" valign="middle" width="10"><span class="gensmall"><a href="javascript:ShowHideLayer('ptrafic_open','ptrafic_close');"><img src="{TABS_MORE_IMG}" alt="+" align="middle" border="0" /></a></span></td>
            </tr>
         </table>
      </td>
   </tr>
</table>

<table class="forumline" width="100%" border="0" cellpadding="1" cellspacing="0" id="ptrafic_open" style="display:'';margin: 1px 0px 1px 0px">
   <tr>
      <td class="catBottom" height="28">
         <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
               <td valign="top"><div class="cattitle">&nbsp;{PROMOT_TRAFIC_TITLE}</div></td>
               <td align="right" valign="middle" width="10"><span class="gensmall"><a href="javascript:ShowHideLayer('ptrafic_open','ptrafic_close');"><img src="{TABS_LESS_IMG}" alt="-" align="middle" border="0" /></a></span></td>
            </tr>
         </table>
      </td>
   </tr>
   <tr>
      <td class="row2 postbody" valign="top">
         <!-- BEGIN link -->
         &nbsp;<a style="text-decoration:none" href="{promot_trafic.link.U_HREF}" target="_blank" title="{promot_trafic.link.TITLE}" rel="nofollow">{promot_trafic.link.TITLE}</a><br />
         <!-- END link -->
      </td>
   </tr>
</table>
<!-- END promot_trafic -->

Replace it with:
Code:
<!-- BEGIN promot_trafic -->
<div class=smlarf id=ptrafic_scroll_div></div>
<!-- END promot_trafic -->
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Don't forget to make backup, because I didn't test it.

KpuCk0
Graphic Designer
Graphic Designer

Male Posts : 787
Reputation : 155
Language : Bulgarian, English
Location : Pleven, Bulgaria

http://www.lfsdrift.org

Back to top Go down

Solved Re: How to change the inscription Similar topics in another language?

Post by smurfavr on September 24th 2015, 4:32 pm

Now it does not show any recent topics.


Сега не ми показва никакви последни теми.

smurfavr
Active Poster

Male Posts : 1425
Reputation : 13
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How to change the inscription Similar topics in another language?

Post by KpuCk0 on September 24th 2015, 4:34 pm

Try to remove BEGIN and END tags, I guess they are the problem now.


Design Team Leader


Rules of the Graphic Design Section || Becoming a Designer || Graphic Requests

Never tell your password to anyone!
No help without your forum URL!
No support via PM!

KpuCk0
Graphic Designer
Graphic Designer

Male Posts : 787
Reputation : 155
Language : Bulgarian, English
Location : Pleven, Bulgaria

http://www.lfsdrift.org

Back to top Go down

Solved Re: How to change the inscription Similar topics in another language?

Post by smurfavr on September 24th 2015, 5:01 pm

I did so but did not appear.

Code:
<!-- promot_trafic -->
<div class=smlarf id=ptrafic_scroll_div></div>
<!--  promot_trafic -->

smurfavr
Active Poster

Male Posts : 1425
Reputation : 13
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How to change the inscription Similar topics in another language?

Post by SLGray on September 24th 2015, 8:38 pm

smurfavr

Please only post in English. There is no need to post in both English and Bulgarian.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36743
Reputation : 2449
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: How to change the inscription Similar topics in another language?

Post by smurfavr on September 26th 2015, 10:32 am

Up

smurfavr
Active Poster

Male Posts : 1425
Reputation : 13
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How to change the inscription Similar topics in another language?

Post by KpuCk0 on September 26th 2015, 12:29 pm

Okay, I get it working.

Find this in your viewtopic_body:
Code:
<!-- BEGIN promot_trafic -->
<table class="forumline" width="100%" border="0" cellpadding="1" cellspacing="0" id="ptrafic_close" style="display:none;margin: 1px 0px 1px 0px">
   <tr>
      <td class="catBottom" height="28">
         <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
               <td valign="top"><div class="cattitle">&nbsp;{PROMOT_TRAFIC_TITLE}</div></td>
               <td align="right" valign="middle" width="10"><span class="gensmall"><a href="javascript:ShowHideLayer('ptrafic_open','ptrafic_close');"><img src="{TABS_MORE_IMG}" alt="+" align="middle" border="0" /></a></span></td>
            </tr>
         </table>
      </td>
   </tr>
</table>

<table class="forumline" width="100%" border="0" cellpadding="1" cellspacing="0" id="ptrafic_open" style="display:'';margin: 1px 0px 1px 0px">
   <tr>
      <td class="catBottom" height="28">
         <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
               <td valign="top"><div class="cattitle">&nbsp;{PROMOT_TRAFIC_TITLE}</div></td>
               <td align="right" valign="middle" width="10"><span class="gensmall"><a href="javascript:ShowHideLayer('ptrafic_open','ptrafic_close');"><img src="{TABS_LESS_IMG}" alt="-" align="middle" border="0" /></a></span></td>
            </tr>
         </table>
      </td>
   </tr>
   <tr>
      <td class="row2 postbody" valign="top">
         <!-- BEGIN link -->
         &nbsp;<a style="text-decoration:none" href="{promot_trafic.link.U_HREF}" target="_blank" title="{promot_trafic.link.TITLE}" rel="nofollow">{promot_trafic.link.TITLE}</a><br />
         <!-- END link -->
      </td>
   </tr>
</table>
<!-- END promot_trafic -->

Replace it with:
Code:
<table class="forumline" width="100%" border="0" cellpadding="1" cellspacing="0" id="ptrafic_close" style="display:none;margin: 1px 0px 1px 0px">
   <tr>
      <td class="catBottom" height="28">
         <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
               <td valign="top"><div class="cattitle">&nbsp;Подобни теми</div></td>
               <td align="right" valign="middle" width="10"><span class="gensmall"><a href="javascript:ShowHideLayer('ptrafic_open','ptrafic_close');"><img src="{TABS_MORE_IMG}" alt="+" align="middle" border="0" /></a></span></td>
            </tr>
         </table>
      </td>
   </tr>
</table>

<table class="forumline" width="100%" border="0" cellpadding="1" cellspacing="0" id="ptrafic_open" style="display:'';margin: 1px 0px 1px 0px">
   <tr>
      <td class="catBottom" height="28">
         <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
               <td valign="top"><div class="cattitle">&nbsp;Подобни теми</div></td>
               <td align="right" valign="middle" width="10"><span class="gensmall"><a href="javascript:ShowHideLayer('ptrafic_open','ptrafic_close');"><img src="{TABS_LESS_IMG}" alt="-" align="middle" border="0" /></a></span></td>
            </tr>
         </table>
      </td>
   </tr>
   <tr>
      <td class="row2 postbody" valign="top">
         <div class=smlarf id=ptrafic_scroll_div></div>   
      </td>
   </tr>
</table>

Great work, @Niko!I just make it easier for smurfavr.

KpuCk0
Graphic Designer
Graphic Designer

Male Posts : 787
Reputation : 155
Language : Bulgarian, English
Location : Pleven, Bulgaria

http://www.lfsdrift.org

Back to top Go down

Solved Re: How to change the inscription Similar topics in another language?

Post by smurfavr on September 26th 2015, 3:26 pm

Did not work.

smurfavr
Active Poster

Male Posts : 1425
Reputation : 13
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How to change the inscription Similar topics in another language?

Post by KpuCk0 on September 26th 2015, 3:47 pm

Did you activate the javascript code which Niko posted here?


Design Team Leader


Rules of the Graphic Design Section || Becoming a Designer || Graphic Requests

Never tell your password to anyone!
No help without your forum URL!
No support via PM!

KpuCk0
Graphic Designer
Graphic Designer

Male Posts : 787
Reputation : 155
Language : Bulgarian, English
Location : Pleven, Bulgaria

http://www.lfsdrift.org

Back to top Go down

Solved Re: How to change the inscription Similar topics in another language?

Post by smurfavr on September 27th 2015, 10:52 am

I tried it with its code, but not working.

smurfavr
Active Poster

Male Posts : 1425
Reputation : 13
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How to change the inscription Similar topics in another language?

Post by KpuCk0 on September 27th 2015, 11:55 am

This is a screenshot from my test forum, how it looks: http://prntscr.com/8kzagg

I don't know.. Did you publish the template, when did the changes.Press to publish it.


Design Team Leader


Rules of the Graphic Design Section || Becoming a Designer || Graphic Requests

Never tell your password to anyone!
No help without your forum URL!
No support via PM!

KpuCk0
Graphic Designer
Graphic Designer

Male Posts : 787
Reputation : 155
Language : Bulgarian, English
Location : Pleven, Bulgaria

http://www.lfsdrift.org

Back to top Go down

Solved Re: How to change the inscription Similar topics in another language?

Post by smurfavr on September 27th 2015, 12:11 pm

Yes, publish the template after the change. With me not working. Give code which you put into your forum and to put it on me.

smurfavr
Active Poster

Male Posts : 1425
Reputation : 13
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Page 1 of 2 1, 2  Next

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum