'Copy Code' Javascript not working.
+2
SLGray
ivyleaf
6 posters
Page 1 of 1
'Copy Code' Javascript not working.
Technical Details
Forum version : #phpBB2
Position : Founder
Concerned browser(s) : Google Chrome
Screenshot of problem : https://images2.imgbox.com/f3/c2/ekFMrqBH_o.gif
Who the problem concerns : All members
When the problem appeared : The script has never worked before - it's always acted this way.
Forum link : http://bioluminessence.forumotion.com/
Description of problem
Hello, this is my first time submitting one of these, so apologies if I've done anything wrong.I've been working on a forum, and grabbed a few Javascripts to make it easier to use. However, several of them did not work, this code being one of them. When I click on the Copy Code button, it doesn't do anything. I know next to nothing about Javascript, so I would appreciate if someone more experienced could give me some insight!
I have made little to no changes to the templates, and several other scripts I've tried have not worked either (this and this), perhaps the issues could be related?
Thanks in advance!
Last edited by ivyleaf on May 4th 2018, 1:50 am; edited 2 times in total
Re: 'Copy Code' Javascript not working.
Do you have JavaScript Management turned on?
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.
Re: 'Copy Code' Javascript not working.
Did you set this one to all pages?
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.
Re: 'Copy Code' Javascript not working.
Did you say that you have modified your templates?
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.
Re: 'Copy Code' Javascript not working.
Edit; never mind, it appears that I had misread the post. This change was made to the Javascript and has since then been changed back. Otherwise I don't think I've made any changes to templates.
Re: 'Copy Code' Javascript not working.
@ivyleaf Is this now solved ?
If yes please press the mark solved button that can be found at the top of this thread.
APE.
If yes please press the mark solved button that can be found at the top of this thread.
APE.
Re: 'Copy Code' Javascript not working.
Do you have any other codes installed on your forum?
Remember to mark your topic when a solution is found.
General Rules | Tips & Tricks | FAQ | Forgot Founder Password?
Team Leader
Review Section Rules | Request A Review | Sticker Points
Re: 'Copy Code' Javascript not working.
In Javascript, I have codes for Immediate Redirection (after a message or post), Word Counter, Copy Code, Topic Preview, and Personalized Color Palette, all of which are from this forum except for perhaps the Copy Code. I didn't make any changes to the original Javascript. I don't think CSS should affect this, and I haven't really done much there at all, but the code's in the spoiler. I haven't made any other changes elsewhere with code.
Edit; Never mind, the 'Copy Code' function seems to be working on all the forums necessary when I tried it on other sections of the forum. Will be marking as solved, though I still don't understand why it only works in some forums.
- Spoiler:
- Code:
/*-----HIDDEN THINGS-------*/
a.mainmenu[href="/calendar"] {
display: none;
}
a.mainmenu[href="/gallery"] {
display: none;
}
a.mainmenu[href="/groups"] {
display: none;
}
a.mainmenu[href="/portal"] {
display: none;
}
a.mainmenu[href="/private messages"] {
background: url("http://i45.servimg.com/u/f45/15/95/60/34/glitte10.gif");
}
#fa_share, #fa_search {
visibility:hidden!important;
}
/*------USERNAME EFFECTS------*/
a[href="/g1-administrators"] {
text-decoration: none !important;
text-shadow: 0 0 0.3em #D4F7F7, 0 0 0.3em #D4F7F7, 0 0 0.3em #D4F7F7;
}
a[href="/u1"] {
text-decoration: none !important;
text-shadow: 0 0 0.3em #D4F7F7, 0 0 0.3em #D4F7F7, 0 0 0.3em #D4F7F7;
}
/*-------TOOLBAR-------*/
#fa_toolbar {
background-color: transparent !important; /* Make the main toolbar bg transparent */
}
#fa_right {
padding-left: 10px; /* Left padding */
padding-right: 10px; /* Right padding */
position: relative; /* Position of the toolbar */
right: 20px; /* Décale la toolbar de la droite */
}
#fa_left {
position: relative; /* Position of the toolbar */
left: 20px; /* Spacing to the left of the toolbar */
margin-top: -1px; /* Small -1px correction : may depend on your forum (can be changed) */
padding-left: 10px; /* Left padding */
padding-right: 10px; /* Right padding */
}
/* Color palette icons */
.color-option {
display: inline-block !important;
width: 15px !important; /* width of the icon */
height: 15px !important; /* height of the icon */
border: 2px solid #fff !important; /* white border around the icon */
margin: 3px !important; /* space between each icon */
box-shadow: 0 0 2px #778899; /* shadow */
cursor: pointer !important;
}
.color-option span{
display: block !important;
width: 15px !important; /* width of the icon */
height: 15px !important; /* height of the icon */
}
.color-option, .color-option span {
border-radius: 2px; /* roundness */
}
/* Whole palette - the width influences how many icons appear */
.sceditor-dropdown.sceditor-color-picker {
width: 200px !important; /* width of the palette */
height: 100px !important; /* height of the palette */
padding: 5px !important;
border-radius: 5px !important;
}
Edit; Never mind, the 'Copy Code' function seems to be working on all the forums necessary when I tried it on other sections of the forum. Will be marking as solved, though I still don't understand why it only works in some forums.
Re: 'Copy Code' Javascript not working.
Wait a minute! Is the issue happening in the Your First Subject topic? I see that it looks like a quote, not a code box.
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.
Re: 'Copy Code' Javascript not working.
Oh, you're right! Huh, can't believe I didn't notice that sooner, thanks for letting me know;;
Do you know why the Copy Code text appears there, though, and if there's any way to get rid of it?
Do you know why the Copy Code text appears there, though, and if there's any way to get rid of it?
Re: 'Copy Code' Javascript not working.
Could you please provide a test account so i / we can login it and find out your problem?
P/S : Too lazy to be a member
P/S : Too lazy to be a member
Re: 'Copy Code' Javascript not working.
One has been made - login information is located in the Announcement test thread.
Re: 'Copy Code' Javascript not working.
Hello @ivyleaf,
It seems that your quotes have the class
which is why the Copy Code appears there. Have you changed the blockquote appearance?
It seems that your quotes have the class
|
Forum of the Forums Forumotion Rules | Tips & Tricks | FAQ | Did you forget your password? |
*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
Re: 'Copy Code' Javascript not working.
You did say that you have modified some templates. Which ones did you modify?
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.
Re: 'Copy Code' Javascript not working.
It worked fine for me. So i can say something that :
- Any script put 'in the all page' will be merged into an only one js file, problem could be start from here. I mean a conflict between other js.
- First of all, search and locate this line in your current template
LIVE DEMO
Put the script 'in the sub-forums' do work in blog mode.
P/S: Sorry for my bad English
- Any script put 'in the all page' will be merged into an only one js file, problem could be start from here. I mean a conflict between other js.
- Code:
http://bioluminessence.forumotion.com/t3-announcement-test#4
- First of all, search and locate this line in your current template
- Code:
<tr class="post post--
- Code:
<tr id="previewr" class="post post--
- Code:
.attr('href')+' .post:eq(0)');
- Code:
.attr('href')+' #previewr:eq(0)');
LIVE DEMO
Put the script 'in the sub-forums' do work in blog mode.
P/S: Sorry for my bad English
Last edited by SarkZKalie on May 3rd 2018, 8:13 am; edited 1 time in total (Reason for editing : Wrong text)
Re: 'Copy Code' Javascript not working.
@SarkZKalie the problem is that the tutorial makes the "Copy Code" appear on Quotes as well. It was working fine to the Codeboxes.
Forum of the Forums Forumotion Rules | Tips & Tricks | FAQ | Did you forget your password? |
*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
Re: 'Copy Code' Javascript not working.
1) I'd been mistaken and edited to say so. No templates have been modified to my memory, besides what SarkZKalie advised me to do just now.
2) Thanks so much for your help, it works great now! And yes, the issue Luffy mentioned is what I'm trying to figure out right now.
2) Thanks so much for your help, it works great now! And yes, the issue Luffy mentioned is what I'm trying to figure out right now.
Re: 'Copy Code' Javascript not working.
Ah, I didn't see the 'quote content' but I got the same issue when installing that copy code to my test site.
@ivyleaf have you tried to set its placement this tutorial to 'in the topics' only? Remember, turn off or remove previous copy code before installing a new one.
@ivyleaf have you tried to set its placement this tutorial to 'in the topics' only? Remember, turn off or remove previous copy code before installing a new one.
Re: 'Copy Code' Javascript not working.
Oh, that actually works perfectly, thanks! I think that's all my problems actually solved now, heh.
Re: 'Copy Code' Javascript not working.
Problem solved & topic archived.
|
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
» Copy/paste not working
» Javascript not working..
» Copy Code
» Thanks Like Forumotion JavaScript Not working
» Javascript not working
» Javascript not working..
» Copy Code
» Thanks Like Forumotion JavaScript Not working
» Javascript not working
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum