Usernames not visible to guests after applying a Javascript code
2 posters
Page 1 of 1
Usernames not visible to guests after applying a Javascript code
Because my forum is phpBB3, I was not able to modify the template. So in order to move usernames above avatars, I added a Javascript code which seemed to work flawless. But when I view a thread as a guest, usernames do not appear at all. Is there any way I can fix this? Here is the code:
- Code:
$(function(){
$('.postprofile dl').each(function(){
var theBox = $(this).children('dt:first');
var uNameX = theBox.children('strong').html()+'<br>';
theBox.children('a').before(uNameX);
theBox.children('strong').hide();
});
});
Last edited by pAiNleSS. on 5/8/2012, 21:16; edited 2 times in total
Guest- Guest
Re: Usernames not visible to guests after applying a Javascript code
Could you try this instead ? :
Not sure. Can you provide your forum url?
- Code:
$(function(){
$('.postprofile dl').each(function(){
var theBox = $(this).children('dt:first');
var uNameX = theBox.children('strong').html()+'<br>';
theBox.children('a').before(uNameX);
});
});
Not sure. Can you provide your forum url?
Re: Usernames not visible to guests after applying a Javascript code
Forum URL: http://te-mafia.createatopic.com/t1-forum-rules
With that code, the username appears under the avatar when viewing as a guest, but when logged in it's both below and above the avatar.
With that code, the username appears under the avatar when viewing as a guest, but when logged in it's both below and above the avatar.
Guest- Guest
Re: Usernames not visible to guests after applying a Javascript code
Ok. Nothing seems wrong with the code either when I look at it.
Have you tried making guests able to view someone's profile?
Have you tried making guests able to view someone's profile?
Re: Usernames not visible to guests after applying a Javascript code
Thank you, Sir! That seemed to be the issue.Ahkrir wrote:Have you tried making guests able to view someone's profile?
The code added a link to the profile to the username, which is probably why guests couldn't view it.
Issue solved.
Guest- Guest
Re: Usernames not visible to guests after applying a Javascript code
Topic Solved & Locked |
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» [code]s do not be visible for guests
» Custom JavaScript for Guests
» Code visible only under conditions
» the code is visible, inserted as is from the tutorial
» Code for Shadow in usernames on chatbox
» Custom JavaScript for Guests
» Code visible only under conditions
» the code is visible, inserted as is from the tutorial
» Code for Shadow in usernames on chatbox
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum