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.

No refresh edit? PHPBB3

View previous topic View next topic Go down

No refresh edit? PHPBB3

Post by JAN2XONLINE on October 25th 2013, 9:44 am

I tried this code on my forum but didn't work:
Code:

$(function() {
if(!document.getElementById('logout')) {
 $('.cont_code').text("Please login or register, to see code content.");
}
});
Source:
IF NEEDED:

EDIT* bounce Now, I think it didn't work for me because that code is for punBB forums?

JAN2XONLINE
Forumember

Male Posts : 943
Reputation : 32
Language : Tagalog, English
Location : Alberta, Canada

http://animeph.4umer.com/

Back to top Go down

Re: No refresh edit? PHPBB3

Post by Ange Tuteur on October 25th 2013, 9:59 am

Hello JAN2XONLINE,

You're correct, its for punbb. All that's needed is a selector change for the version you're using.

Try this for phpbb3:
Code:
$(function() {
if(!document.getElementById('logout')) {
 $('.codebox code').text("Please login or register, to see code content.");
}
});

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Re: No refresh edit? PHPBB3

Post by JAN2XONLINE on October 25th 2013, 10:09 am

^
Okay but still not working for me though.

I chose 'In the topics' for placement first and tried to edit a post of mine but it's still refreshing. I also tried putting it 'in all pages' and still the same.

JAN2XONLINE
Forumember

Male Posts : 943
Reputation : 32
Language : Tagalog, English
Location : Alberta, Canada

http://animeph.4umer.com/

Back to top Go down

Re: No refresh edit? PHPBB3

Post by Ange Tuteur on October 25th 2013, 10:18 am

Wait, the code you supplied is for hiding code content for users who are not logged it. What is causing this refreshing?

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Re: No refresh edit? PHPBB3

Post by JAN2XONLINE on October 25th 2013, 10:21 am

Aw, I thought its for no page change when you edit a post.

[TUTORIAL] Fast topic edit
<font face="bad script" size="3px">This tutorial will allow you to fast edit your post without page change.</font>
Link-> http://punbb-design.forumotion.com/t26-list-of-tutorials

JAN2XONLINE
Forumember

Male Posts : 943
Reputation : 32
Language : Tagalog, English
Location : Alberta, Canada

http://animeph.4umer.com/

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