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.

Help me: Want visible related topic both Registered users & Guest users.

View previous topic View next topic Go down

In progress Help me: Want visible related topic both Registered users & Guest users.

Post by guruji on January 27th 2014, 4:15 pm

Hi,

We have added a "Related Topic" in below <div class="noprint">. 

This JavaScript code is should be:

jQuery(document).ready(function(){jQuery(function(){jQuery('.noprint').append('<br></br><div class="releatedp"><div class="head2">Related Topic</div>
......................
</div>

but this related topic visible in Registered users only.

We need to visible Guest users also.

I have attached screenshot below.
 


Kindly give JavaScript for visible both users.


Warm Regards
Muraliraja

guruji
Forumember

Posts : 48
Reputation : 4
Language : Tamil

Back to top Go down

In progress Re: Help me: Want visible related topic both Registered users & Guest users.

Post by Jophy on January 28th 2014, 9:02 am

Hello,

Do you mean the similar topic feature? You can make it visible for guests:
Admin Panel > General > Traffic exchange > Members & Guests
> Save

Jophy
ForumGuru

Male Posts : 17924
Reputation : 835
Language : English
Location : Somewhere

Back to top Go down

In progress Re: Help me: Want visible related topic both Registered users & Guest users.

Post by guruji on January 28th 2014, 2:57 pm

Dear Mr. Jophy,


We don't need your default "Similar topic" feature. 


We have added "Related topics" in under noprint class area. That related topic visible Registered users only, we need both Registered users and Guest users.


Kindly help in this regard.

guruji
Forumember

Posts : 48
Reputation : 4
Language : Tamil

Back to top Go down

In progress Re: Help me: Want visible related topic both Registered users & Guest users.

Post by Jophy on January 28th 2014, 3:00 pm

Where did you add this 'related topic'?

Jophy
ForumGuru

Male Posts : 17924
Reputation : 835
Language : English
Location : Somewhere

Back to top Go down

In progress Re: Help me: Want visible related topic both Registered users & Guest users.

Post by guruji on January 28th 2014, 3:50 pm

We thank you very much for your immediate response.

Our Domain is http://www.amarkkalam.net

This is PHPBB3 type Tamil language forum from http://forumta.net/ 

Forum Name: அமர்க்களம்

We added that "Related Topic" under <div class="noprint">  area

Kindly checkout screenshot https://i55.servimg.com/u/f55/18/08/46/24/screen10.jpg

Code:
jQuery(document).ready(function(){jQuery(function(){jQuery('.noprint').append('<br></br><div class="releatedp"><div class="head2">Related Topic</div>
......................
</div>

Kindly help me.

guruji
Forumember

Posts : 48
Reputation : 4
Language : Tamil

Back to top Go down

In progress Re: Help me: Want visible related topic both Registered users & Guest users.

Post by guruji on January 30th 2014, 3:26 am

Bump Hello

guruji
Forumember

Posts : 48
Reputation : 4
Language : Tamil

Back to top Go down

In progress Re: Help me: Want visible related topic both Registered users & Guest users.

Post by Jophy on January 30th 2014, 2:02 pm

Is this placed on the templates? If so, you have placed the code where the entire area would not be visible for guests, that's why it's not showing for guests.

I have not seen a solution for this yet.

Jophy
ForumGuru

Male Posts : 17924
Reputation : 835
Language : English
Location : Somewhere

Back to top Go down

In progress Re: Help me: Want visible related topic both Registered users & Guest users.

Post by guruji on February 4th 2014, 9:07 am

Hi FM Team,

Finally working that our Related Topic script, while we disabled the Quick Reply with Multi-Quote  in JavaScript. :wouhou: 

Kindly visit page: http://www.amarkkalam.net/t18598-toll-free. (See above Quick Reply area) 

So that Quick Reply with Multi-Quote not working now.  Sad 

Is there any solution for that?  

Related Topic visible now both Guests & Registered users. | Solved.

Thank you Mr. Jophy

Thanks & Regards
Muraliraja

guruji
Forumember

Posts : 48
Reputation : 4
Language : Tamil

Back to top Go down

In progress Re: Help me: Want visible related topic both Registered users & Guest users.

Post by Sir Chivas™ on February 5th 2014, 2:23 am

Is this considered to be solved? The last post was a bit difficult to understand.  scratch 



Attention!
- Please provide your forum URL at all times.
- When the issue is solved, please mark it as solved.



Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6783
Reputation : 430
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

In progress Re: Help me: Want visible related topic both Registered users & Guest users.

Post by guruji on February 6th 2014, 2:27 pm

Sir Chivas™ wrote:Is this considered to be solved? The last post was a bit difficult to understand.  scratch 

If I disabled JavaScript for Quick Quote in Quick Reply then, Related Topics working perfect for both Registered users and Guest users.

I giving below that Quick Quote in Quick Reply JavaScript.

Code:
$(function () {
  var CopyrightNotice = 'Quick Quote in Quick Reply for forumotion boards. Copyright © by AvacWeb. All Rights Reserved. Use and  modification of this script is not allowed without this entire copyright notice in the original, copied, or modified script. No distribution without consent.';
  for(var quote = $('.i_icon_quote'), i = 0, qr = document.getElementById('quick_reply'), q, t = qr.offsetTop - 200; (q = quote[i++]); ) {
      $(q.parentNode).click(function(e) {
        e.preventDefault();
       
        var selection = (function() {
            if (window.getSelection) {
              var e = document.activeElement;
              return (e && e.tagName.toLowerCase() in {textarea:1, input:1}) ? e.value.substring (e.selectionStart, e.selectionEnd) : window.getSelection().toString();
            }
            else if(document.selection.createRange) {
              return (document.selection.createRange()).text || '';
            }
            return null;
        })(), sc = $("#text_editor_textarea").sceditor("instance");
       
        if(selection && selection.length) return sc.insert('[quote]' + selection + '[/quote]');
       
        var div = document.createElement('div'), s = setInterval(function() {
            document.body.scrollTop < t ? document.body.scrollTop += 10 : clearInterval(s);
        }, 5);
        $(div).load(this.href + ' #text_editor_textarea', function() {
            sc.insert( div.getElementsByTagName('textarea')[0].value );
        });
      });
  }
});

Above JavaScript code blocked noprint class area.

Kindly give me solution.

Thanks & Regards
Muraliraja

guruji
Forumember

Posts : 48
Reputation : 4
Language : Tamil

Back to top Go down

In progress Re: Help me: Want visible related topic both Registered users & Guest users.

Post by guruji on February 18th 2014, 5:44 am

Bump.  Hello

guruji
Forumember

Posts : 48
Reputation : 4
Language : Tamil

Back to top Go down

In progress Re: Help me: Want visible related topic both Registered users & Guest users.

Post by Guest on February 19th 2014, 9:09 am

Code:
jQuery(document).ready(function($){
var rules = 'Your rules here';
$('.noprint').append('<br></br><div class="releatedp"><div class="head2">Related Topic</div> '+ rules.innerHTML +' </div>')});

Guest
Guest


Back to top Go down

In progress Re: Help me: Want visible related topic both Registered users & Guest users.

Post by guruji on February 22nd 2014, 3:16 pm

cloner wrote:
Code:
jQuery(document).ready(function($){
var rules = 'Your rules here';
$('.noprint').append('<br></br><div class="releatedp"><div class="head2">Related Topic</div> '+ rules.innerHTML +' </div>')});

This code visible Registered users only. 

Guest not visible. But i want visible both Registered and Guest users.

guruji
Forumember

Posts : 48
Reputation : 4
Language : Tamil

Back to top Go down

View previous topic View next topic Back to top


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