Trying to load a back ground pic
3 posters
Page 1 of 1
Trying to load a back ground pic
I am at G3GM.com and want to know how to let a member when he / she posts, How do you make a back ground pic of there Automobile ?
www.G3GM.com
www.G3GM.com
THE MALIGOON- New Member
- Posts : 4
Reputation : 0
Language : ENGLISH
Re: Trying to load a back ground pic
Hello THE MALIGOON,
You are wanting to place a background image on the posts ?
You are wanting to place a background image on the posts ?
Re: Trying to load a back ground pic
Yes I am ...well They are when they make a post they would like there car to be a show background pic
THE MALIGOON- New Member
- Posts : 4
Reputation : 0
Language : ENGLISH
Re: Trying to load a back ground pic
Go to :
Administration panel > users & groups > profiles > contact fields > create a new field
Choose the following settings for the field :
Save, and then go to :
Administration panel > modules > javascript codes management > create a new script
Title : what you wish
Placement : in the topics
Paste the code below and save :
Now that profile contact field you added will be used as a hook for finding a valid image URL. If one is found, it will remove the link off the profile and add it as a background image to that users post.
Administration panel > users & groups > profiles > contact fields > create a new field
Choose the following settings for the field :
Save, and then go to :
Administration panel > modules > javascript codes management > create a new script
Title : what you wish
Placement : in the topics
Paste the code below and save :
- Code:
$(document).ready(function() {
$('.postprofile a[href$=".png"], .postprofile a[href$=".bmp"], .postprofile a[href$=".gif"], .postprofile a[href$=".jpeg"], .postprofile a[href$=".jpg"]').each(function() {
var src = $(this).attr('href');
$(this).parent().parent().parent().parent().attr('style','background-image:url('+src+')');
$(this).remove();
})
})
Now that profile contact field you added will be used as a hook for finding a valid image URL. If one is found, it will remove the link off the profile and add it as a background image to that users post.
Re: Trying to load a back ground pic
hello thats looks great work i tried it for my forum but didn`t work is there the same thing for phpbb2 i have some reasons to not change from bb2 to bb3Ange Tuteur wrote:Go to :
Administration panel > users & groups > profiles > contact fields > create a new field
Choose the following settings for the field :
Save, and then go to :
Administration panel > modules > javascript codes management > create a new script
Title : what you wish
Placement : in the topics
Paste the code below and save :
- Code:
$(document).ready(function() {
$('.postprofile a[href$=".png"], .postprofile a[href$=".bmp"], .postprofile a[href$=".gif"], .postprofile a[href$=".jpeg"], .postprofile a[href$=".jpg"]').each(function() {
var src = $(this).attr('href');
$(this).parent().parent().parent().parent().attr('style','background-image:url('+src+')');
$(this).remove();
})
})
Now that profile contact field you added will be used as a hook for finding a valid image URL. If one is found, it will remove the link off the profile and add it as a background image to that users post.
Michael_vx- Forumember
- Posts : 664
Reputation : 29
Language : Arabic and some English
Location : Egypt
Re: Trying to load a back ground pic
I also tried this with NO LUCK please advise Ty Maligoon
THE MALIGOON- New Member
- Posts : 4
Reputation : 0
Language : ENGLISH
Re: Trying to load a back ground pic
i changed the forum to phpbb3 to test works but on phpbb2 not working
Ange is there any way to have same thing on phpbb2
this is the 2nd time im asking here
please say yes or no
thanks
Ange is there any way to have same thing on phpbb2
this is the 2nd time im asking here
please say yes or no
thanks
Michael_vx- Forumember
- Posts : 664
Reputation : 29
Language : Arabic and some English
Location : Egypt
Re: Trying to load a back ground pic
Have you made sure that the contact field is shown in the messages ? If so what was the image format you used ?THE MALIGOON wrote:I also tried this with NO LUCK please advise Ty Maligoon
That may be a bit more tricky since phpbb2's selectors are almost all the same.Michael_vx wrote:i changed the forum to phpbb3 to test works but on phpbb2 not working
Ange is there any way to have same thing on phpbb2
this is the 2nd time im asking here
please say yes or no
thanks
Re: Trying to load a back ground pic
looks not the reason you might find it in the test forumAnge Tuteur wrote:Have you made sure that the contact field is shown in the messages ? If so what was the image format you used ?THE MALIGOON wrote:I also tried this with NO LUCK please advise Ty MaligoonThat may be a bit more tricky since phpbb2's selectors are almost all the same.Michael_vx wrote:i changed the forum to phpbb3 to test works but on phpbb2 not working
Ange is there any way to have same thing on phpbb2
this is the 2nd time im asking here
please say yes or no
thanks
http://micsoft-test.allgoo.net/t2-here-is-test-topic
only link apper if th javascript need change let me know what it should be changed thanks
Michael_vx- Forumember
- Posts : 664
Reputation : 29
Language : Arabic and some English
Location : Egypt
Similar topics
» Back ground
» How does this back ground look?
» back ground
» Transperant back ground
» Back ground trouble
» How does this back ground look?
» back ground
» Transperant back ground
» Back ground trouble
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum