The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

I want to code "Adffine friend in threads"

View previous topic View next topic Go down

I want to code "Adffine friend in threads"

Post by AlFoROoN on October 1st 2014, 11:14 am

I want to code "Adffine friend in threads"
Such as
https://i39.servimg.com/u/f39/16/49/97/40/10710.png


AlFoROoN
New Member

Posts : 13
Reputation : 1
Language : arabic

http://www.7roof-des.net/

Back to top Go down

Re: I want to code "Adffine friend in threads"

Post by AlFoROoN on October 1st 2014, 3:45 pm

UP

AlFoROoN
New Member

Posts : 13
Reputation : 1
Language : arabic

http://www.7roof-des.net/

Back to top Go down

Re: I want to code "Adffine friend in threads"

Post by Soul on October 1st 2014, 7:06 pm

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

Soul
Forumember

Male Posts : 673
Reputation : 79
Language : English
Location : United States

http://adminvortex.forumotion.com

Back to top Go down

Re: I want to code "Adffine friend in threads"

Post by Ramdaman on October 1st 2014, 9:21 pm

You mean you want a code (JavaScript) to be able to add a friend from a thread?

Ramdaman
Active Poster

Male Posts : 1614
Reputation : 97
Language : English, Albanian, Macedonian, Russian | HTML, CSS
Location : New York City

http://ndihme.forumotion.com/forum

Back to top Go down

Re: I want to code "Adffine friend in threads"

Post by AlFoROoN on October 1st 2014, 10:37 pm

Jadster 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 found it in one of the Arab forums
@Ramdaman wrote:You mean you want a code (JavaScript) to be able to add a friend from a thread?
I want a code to activate this feature next to each post

AlFoROoN
New Member

Posts : 13
Reputation : 1
Language : arabic

http://www.7roof-des.net/

Back to top Go down

Re: I want to code "Adffine friend in threads"

Post by AlFoROoN on October 2nd 2014, 4:21 pm

-_-

AlFoROoN
New Member

Posts : 13
Reputation : 1
Language : arabic

http://www.7roof-des.net/

Back to top Go down

Re: I want to code "Adffine friend in threads"

Post by Soul on October 2nd 2014, 4:28 pm

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

Soul
Forumember

Male Posts : 673
Reputation : 79
Language : English
Location : United States

http://adminvortex.forumotion.com

Back to top Go down

Re: I want to code "Adffine friend in threads"

Post by AlFoROoN on October 2nd 2014, 4:36 pm

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

AlFoROoN
New Member

Posts : 13
Reputation : 1
Language : arabic

http://www.7roof-des.net/

Back to top Go down

Re: I want to code "Adffine friend in threads"

Post by AlFoROoN on October 5th 2014, 5:13 pm

up

AlFoROoN
New Member

Posts : 13
Reputation : 1
Language : arabic

http://www.7roof-des.net/

Back to top Go down

Re: I want to code "Adffine friend in threads"

Post by _Twisted_Mods_ on October 5th 2014, 6:36 pm

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
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Re: I want to code "Adffine friend in threads"

Post by _Twisted_Mods_ on October 5th 2014, 9:46 pm

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


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

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Re: I want to code "Adffine friend in threads"

Post by SLGray on October 5th 2014, 9:58 pm

Did you mean phpBB 2 and phpBB 3?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36748
Reputation : 2449
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Re: I want to code "Adffine friend in threads"

Post by _Twisted_Mods_ on October 5th 2014, 10:08 pm

no - fixed - ty

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Re: I want to code "Adffine friend in threads"

Post by AlFoROoN on October 6th 2014, 1:45 am

do not work

AlFoROoN
New Member

Posts : 13
Reputation : 1
Language : arabic

http://www.7roof-des.net/

Back to top Go down

Re: I want to code "Adffine friend in threads"

Post by _Twisted_Mods_ on October 6th 2014, 2:38 am

the punbb still works but the phpbb 2 stopped working for some reason im trying to figure out y

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Re: I want to code "Adffine friend in threads"

Post by AlFoROoN on October 6th 2014, 1:23 pm

thank you
wait you

AlFoROoN
New Member

Posts : 13
Reputation : 1
Language : arabic

http://www.7roof-des.net/

Back to top Go down

Re: I want to code "Adffine friend in threads"

Post by AlFoROoN on October 11th 2014, 4:27 pm

-_-

AlFoROoN
New Member

Posts : 13
Reputation : 1
Language : arabic

http://www.7roof-des.net/

Back to top Go down

Re: I want to code "Adffine friend in threads"

Post by _Twisted_Mods_ on October 11th 2014, 5:37 pm

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>

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


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