Go directly to the message quoted (Punbb)

Go down

Go directly to the message quoted (Punbb)

Post by la valle dell'eco on Wed 5 Nov - 9:10

I would like to be added to the icon you see in the image.



Clicking on the icon allows you to go directly to the message quoted.

Is possible?


Forum link: http://proveprovate.forumattivo.it/
Punbb
avatar
la valle dell'eco
Forumember

Female Posts : 103
Reputation : 2
Language : Italian/English

http://www.lavalledelleco.net/

Back to top Go down

Re: Go directly to the message quoted (Punbb)

Post by la valle dell'eco on Fri 14 Nov - 18:33

I am not yet able to solve. Nobody can help me? I am posting link to a site that has this feature.


http://www.italianseduction.it/
avatar
la valle dell'eco
Forumember

Female Posts : 103
Reputation : 2
Language : Italian/English

http://www.lavalledelleco.net/

Back to top Go down

Re: Go directly to the message quoted (Punbb)

Post by Ange Tuteur on Fri 14 Nov - 23:04

Hello la valle dell'eco,

The forum you linked is using a different software. I believe that would be something that needs to be added by Forumotion.
avatar
Ange Tuteur
Forumaster

Male Posts : 13195
Reputation : 2910
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Re: Go directly to the message quoted (Punbb)

Post by SarkZKalie on Sat 15 Nov - 7:07

I found this from devs.cf. Hope it works!

CSS:
.post .quoteLink{display:inline-block;height:10px;width:12px;background:url(http://i83.servimg.com/u/f83/16/58/89/73/viewpo10.png) no-repeat transparent;margin-left:3px}

Add this to last line of Viewtopic_body:
<script type="text/javascript">
//<![CDATA[
$(".post a[href*='&mode=quote']").attr("href", function () {
  return this.href + "&r=" + location.pathname.replace(/\/(t\d+(p\d+)?)\-.*/, "$1");
});
$(".post a[href*='/t'][href*='-quote#']").next("br").remove().end().each(function () {
  $(this).addClass("quoteLink").attr("href", function () {
       return this.href.replace("quote", location.pathname.replace(/\/t\d+(p\d+)?-(.+)/, "$2"))
  }).appendTo($(this).next("blockquote").find("cite:first"));
});
//]]>
</script>

Add this before {SCEDITOR} in your posting_body:
<script type="text/javascript">
  //<![CDATA[
  if (/r\=t\d+(p\d+)?/.test(location.search)) {
     $("#text_editor_textarea").val("[url=http://" + location.host + "/" + GetParam("r") + "-quote#" + GetParam("p") + "][/url]" + $("#text_editor_textarea").val());
  }
  $(".post a[href*='/t'][href*='-quote#']").next("br").remove().end().each(function () {
     $(this).addClass("quoteLink").appendTo($(this).next("blockquote").find("cite:first"));
  });
  //]]>
</script>
avatar
SarkZKalie
Forumember

Male Posts : 737
Reputation : 111
Language : English

http://rotavn.forumotion.com

Back to top Go down

Re: Go directly to the message quoted (Punbb)

Post by SLGray on Sat 15 Nov - 7:58

Is that tutorial for punBB?


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

avatar
SLGray
Administrator
Administrator

Male Posts : 43094
Reputation : 3050
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Re: Go directly to the message quoted (Punbb)

Post by la valle dell'eco on Sat 15 Nov - 8:32

@ sarkzkalie01

Thank you very much for your help, but unfortunately it does not work. There appeared the icon and instead appeared to be the bar of the vote.



My templates are modified. Maybe that's why. I send?


@ Ange

Thanks
avatar
la valle dell'eco
Forumember

Female Posts : 103
Reputation : 2
Language : Italian/English

http://www.lavalledelleco.net/

Back to top Go down

Re: Go directly to the message quoted (Punbb)

Post by SarkZKalie on Sat 15 Nov - 9:32

@SLGray: yes, for punbb, Sir.
@la valle dell'eco: I don't think this scripts was conflicted with other libraries. Just tested it on another page, and it worked perfect! Try to make a new quote post after you added the code

Here, take a look on my page :3
avatar
SarkZKalie
Forumember

Male Posts : 737
Reputation : 111
Language : English

http://rotavn.forumotion.com

Back to top Go down

Re: Go directly to the message quoted (Punbb)

Post by la valle dell'eco on Sat 15 Nov - 10:33

I disabled the point system.  cool-blue

You're right. In the new "Quote" appears. Very good
http://proveprovate.forumattivo.it/t13-faccine#61



Did you find a solution to something that I try to solve from June.  Thanks very much .
Thanks  also to all who answered me.  Wink

P.s.
A question.
The forum where you found the code is written in that language? What country is it? I'm curious.
avatar
la valle dell'eco
Forumember

Female Posts : 103
Reputation : 2
Language : Italian/English

http://www.lavalledelleco.net/

Back to top Go down

Re: Go directly to the message quoted (Punbb)

Post by SarkZKalie on Sat 15 Nov - 11:06

You're welcome!
avatar
SarkZKalie
Forumember

Male Posts : 737
Reputation : 111
Language : English

http://rotavn.forumotion.com

Back to top Go down

Back to top


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