Current date/time is March 19th 2024, 6:06 am
Search found 11 matches for tutorial
Keyword as prefix in title
Hi! First of all thanks for your help and tutorials, they're very helpful.Now my question is:
I followed the tutorial to use keyword as prefix, the one to write #TUTORIAL and make it show as a plate, i can'd find the tutorial on this forum, but i'll try to explain myself if u can't understand.
Anyway, my problem with that system is that users can insert a title like this "#TUTORIAL #TUTORIAL #TUTORIAL how to blablabla" to have 3 plates and the title.
Like u see, if I manually add "#TUTORIAL"
i'll get more plates
I wanna know how can limit the "plate option" to work only on the first "#", so the title in that case will be: "(plate) #TUTORIAL #TUTORIAL how to blablabla"
This is the code I used:
Javascript:
- Code:
$(function() {
var c = document.querySelectorAll('h2.topic-title, h1.page-title');
for (i=0; i<c.length; i++) {
c[i].innerHTML = c[i].innerHTML.replace(/#TUTORIAL/g,'<span id="TUTORIAL">TUTORIAL</span>');
}
});
and CSS:
- Code:
#TUTORIAL {
background: #FFF;
padding: 0px 5px 1px 4px;
border-radius: 6px !important;
font-size: 11px;
float: left;
margin-right: 4px;
border: 1px solid #CCC;
box-shadow: 0px 1px 1px #FAFAFA;
}
- on November 28th 2020, 11:49 am
- Search in: Garbage
- Topic: Keyword as prefix in title
- Replies: 4
- Views: 409
FM Themes
A new image resizer has been installed.May 2 - 6, 2016
When you share #tutorials , you will receive 100 points for each #tutorial .
FM Themes
The post cards #tutorial by @Ange Tuteur has been installed.April 23 - 28, 2016
Gazelle #Themes - 70 pointsElephant Themes - 80 points
Zebra Themes - 50 points
Warthog Theme - 70 points
Giraffe Themes - 70 points
Ostrich Themes - 70 points
Hippopotamus Themes - 1,200 points
Flamingo Themes - 80 points
Lemur Themes - 50 points
Split from My Promotional Topic
The post cards #tutorial by @Ange Tuteur has been installed.A PC games discussion forum has been added where you can discuss any PC game.
Many new Zoo Tycoon 2 #creations has been released.
- on April 23rd 2016, 6:15 am
- Search in: Garbage
- Topic: Split from My Promotional Topic
- Replies: 208
- Views: 12502
FM Themes
The #portal has been activated.If you want to share special #themes , please subscribe to the Special #Contributors group. If you want to share #tutorials , please subscribe to the #Tutorial Contributors group.
Split from My Promotional Topic
A #code has been installed that style the #tooltips on the #forum . You can locate the #tutorial on @Ange Tuteur's forum (FM Design).- on March 16th 2016, 2:51 am
- Search in: Garbage
- Topic: Split from My Promotional Topic
- Replies: 208
- Views: 12502
FM Themes
A #Christmas #countdown with #music #tutorial has been posted: Click Here.If you would like to share your Christmas tutorial, you need to join the Tutorial #Contributors group.