This is a Hitskin.com skin preview
Install the skin • Return to the skin page
4 posters
I want to code "Adffine friend in threads"
AlFoROoN- New Member
- Posts : 11
Reputation : 1
Language : arabic
AlFoROoN- New Member
- Posts : 11
Reputation : 1
Language : arabic
UP
Guest- Guest
Hello AlFoROoN,
Could you please explain more about what it is you are wanting done. Your first message doesn't explain what you want, where you want to add it, what your site link is, where you found that image at, ect. This information is very helpful and will help us provide the information you are looking for.
-Jad
Could you please explain more about what it is you are wanting done. Your first message doesn't explain what you want, where you want to add it, what your site link is, where you found that image at, ect. This information is very helpful and will help us provide the information you are looking for.
-Jad
Ramdaman- Active Poster
- Posts : 1590
Reputation : 99
Language : English, Albanian, Macedonian, Russian | HTML, CSS
Location : New York City
You mean you want a code (JavaScript) to be able to add a friend from a thread?
AlFoROoN- New Member
- Posts : 11
Reputation : 1
Language : arabic
I found it in one of the Arab forumsJadster wrote:Hello AlFoROoN,
Could you please explain more about what it is you are wanting done. Your first message doesn't explain what you want, where you want to add it, what your site link is, where you found that image at, ect. This information is very helpful and will help us provide the information you are looking for.
-Jad
I want a code to activate this feature next to each postRamdaman wrote:You mean you want a code (JavaScript) to be able to add a friend from a thread?
AlFoROoN- New Member
- Posts : 11
Reputation : 1
Language : arabic
-_-
Guest- Guest
Hello again AlFoROoN,
Could you please link us to your site and link us to the site that you found this at so that we can take a further look. I cannot read what the text says in the image so I am at a loss here right now. If you can link me to the site where you found this I can translate it and be able to provide more support.
-Jad
Could you please link us to your site and link us to the site that you found this at so that we can take a further look. I cannot read what the text says in the image so I am at a loss here right now. If you can link me to the site where you found this I can translate it and be able to provide more support.
-Jad
AlFoROoN- New Member
- Posts : 11
Reputation : 1
Language : arabic
Translate what's in the code is a rectangle appears in every contribution has a "friend Adffine"
+
forum whose property was lost to me, but this property basis, "vb" was the work of code to work on forumotion
www.malware-site.www/vb
+
forum whose property was lost to me, but this property basis, "vb" was the work of code to work on forumotion
www.malware-site.www/vb
AlFoROoN- New Member
- Posts : 11
Reputation : 1
Language : arabic
up
_Twisted_Mods_- Helper
- Posts : 2083
Reputation : 336
Language : English
Location : Ms
not sure this is gonna be possible because theirs no way to get the posters name because in the template the posters name is in link form
_Twisted_Mods_- Helper
- Posts : 2083
Reputation : 336
Language : English
Location : Ms
this was a pain to figure out but i was wrong it was posible
Admin panel -Display - Templates - General - viewtopic_body
place the code for your version under
"<script type="text/javascript">//<![CDATA[" at the top of the page
punbb
phpbb2
Admin panel -Display - Templates - General - viewtopic_body
place the code for your version under
"<script type="text/javascript">//<![CDATA[" at the top of the page
punbb
- Code:
$(function(){
var posts = $('.user-contact', document.getElementById('main-content')), i = 0, p;
for(; (p = posts[i++]); ) {
var userlink = p.getElementsByTagName('a')[0]
, name = userlink.innerHTML.replace(/<.*/g, '');
p.innerHTML += '<a href="/profile?friend=' + name + '&mode=editprofile&page_profil=friendsfoes"><img src="http://i884.photobucket.com/albums/ac50/TwistedKilla/Stuff/add-icon-25x25_zpsa0962703.png" width="20" height="20"></a>';
}
});
phpbb2
- Code:
$(function(){
var posts = $('.poster-profile', document.getElementById('main-content')), i = 0, p;
for(; (p = posts[i++]); ) {
var userlink = p.getElementsByTagName('a')[0]
, name = userlink.innerHTML.replace(/<.*/g, '');
p.innerHTML += '<a href="/profile?friend=' + name + '&mode=editprofile&page_profil=friendsfoes"><img src="http://i884.photobucket.com/albums/ac50/TwistedKilla/Stuff/add-icon-25x25_zpsa0962703.png" width="20" height="20"></a>';
}
});
Last edited by thetwistedkilla on October 5th 2014, 10:07 pm; edited 1 time in total
SLGray- Administrator
- Posts : 51561
Reputation : 3524
Language : English
Location : United States
Did you mean phpBB 2 and phpBB 3?
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.
_Twisted_Mods_- Helper
- Posts : 2083
Reputation : 336
Language : English
Location : Ms
no - fixed - ty
AlFoROoN- New Member
- Posts : 11
Reputation : 1
Language : arabic
do not work
_Twisted_Mods_- Helper
- Posts : 2083
Reputation : 336
Language : English
Location : Ms
the punbb still works but the phpbb 2 stopped working for some reason im trying to figure out y
AlFoROoN- New Member
- Posts : 11
Reputation : 1
Language : arabic
thank you
wait you
wait you
AlFoROoN- New Member
- Posts : 11
Reputation : 1
Language : arabic
-_-
_Twisted_Mods_- Helper
- Posts : 2083
Reputation : 336
Language : English
Location : Ms
do what i said up there in my other post just use this code ...put it at the very top of the page
- Code:
<script>
$(function(){
var posts = $('.poster-profile', document.getElementById('main-content')), i = 0, p;
for(; (p = posts[i++]); ) {
var userlink = p.getElementsByTagName('a')[0]
, name = userlink.innerHTML.replace(/<.*/g, '');
p.innerHTML += '<a href="/profile?friend=' + name + '&mode=editprofile&page_profil=friendsfoes"><img src="http://i884.photobucket.com/albums/ac50/TwistedKilla/Stuff/add-icon-25x25_zpsa0962703.png" width="20" height="20"></a>';
}
});
</script>