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.

Go directly to the message quoted (Punbb)

View previous topic View next topic Go down

Go directly to the message quoted (Punbb)

Post by la valle dell'eco on November 5th 2014, 9:10 am

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

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 November 14th 2014, 6:33 pm

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/

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 November 14th 2014, 11:04 pm

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.

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2684
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Re: Go directly to the message quoted (Punbb)

Post by SarkZKalie on November 15th 2014, 7:07 am

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>

SarkZKalie
Forumember

Male Posts : 419
Reputation : 74
Language : English

http://rotavn.nstars.org/

Back to top Go down

Re: Go directly to the message quoted (Punbb)

Post by SLGray on November 15th 2014, 7:58 am

Is that tutorial for punBB?


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


SLGray
Administrator
Administrator

Male Posts : 35672
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Re: Go directly to the message quoted (Punbb)

Post by la valle dell'eco on November 15th 2014, 8:32 am

@ 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

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 November 15th 2014, 9:32 am

@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

SarkZKalie
Forumember

Male Posts : 419
Reputation : 74
Language : English

http://rotavn.nstars.org/

Back to top Go down

Re: Go directly to the message quoted (Punbb)

Post by la valle dell'eco on November 15th 2014, 10:33 am

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.

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 November 15th 2014, 11:06 am

You're welcome!

SarkZKalie
Forumember

Male Posts : 419
Reputation : 74
Language : English

http://rotavn.nstars.org/

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