The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

No refresh edit? PHPBB3

2 posters

Go down

No refresh edit? PHPBB3 Empty No refresh edit? PHPBB3

Post by JAN2XONLINE October 25th 2013, 10:44

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
JAN2XONLINE
Forumember

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

http://animeph.4umer.com/

Back to top Go down

No refresh edit? PHPBB3 Empty Re: No refresh edit? PHPBB3

Post by Ange Tuteur October 25th 2013, 10:59

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
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

No refresh edit? PHPBB3 Empty Re: No refresh edit? PHPBB3

Post by JAN2XONLINE October 25th 2013, 11:09

^
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
JAN2XONLINE
Forumember

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

http://animeph.4umer.com/

Back to top Go down

No refresh edit? PHPBB3 Empty Re: No refresh edit? PHPBB3

Post by Ange Tuteur October 25th 2013, 11:18

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

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

No refresh edit? PHPBB3 Empty Re: No refresh edit? PHPBB3

Post by JAN2XONLINE October 25th 2013, 11:21

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
JAN2XONLINE
Forumember

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

http://animeph.4umer.com/

Back to top Go down

Back to top


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