PDA

View Full Version : End-User Options - UKBL ~ Selling on Ebay Link in Postbit


UKBusinessLive
15 Feb 2009, 13:03
https://www.vbulletin.org/forum/external/2009/02/70.png
UKBL ~ Selling on Ebay Link in Postbit

Want to allow members the choice of adding an ebay logo to their postbit?? prevent unindended spamming of threads with members ads??? Well now you can ;)

https://www.vbulletin.org/forum/external/2009/02/71.png

A simple to do Ebay logo in your Postbit so Members can advertise their ebay goods for sale

Just go to your admin cp and make a User Custom profile field Called "My ebay Sales"

and add this to the description = Add your Ebay user name below to show other members what you have for sale

Make a note of the field number as this is what we are going to add to our Code. For example, we'll use Field10 ;)

Your User CP should now have a Field like this

https://www.vbulletin.org/forum/external/2009/02/72.png

Add this template conditional, to prevent guest and non registered from seeing your link, Replace the X's with your UserGroup ID

<if condition="is_member_of($bbuserinfo, X, X, X)">
The Code goes here !!
</if>

So our code should look something along the lines of this, Remember you need to replace the Red parts with your own information

<if condition="is_member_of($bbuserinfo, 6, 7, 9)">
<if condition="$post['field10']">
<a href="http://shop.ebay.com/merchant/$post[field10]" target="_blank" rel="nofollow" title="Click to View my Sales">
<img alt="My Ebay Sales" border="0" src="http://www.yourforum.com/images/misc/ebay.png" border="0"/>
</if></if>

Then we need to Upload our ebay logo to our forums directory images/misc folder and replace the image url in the code with our own url.

https://www.vbulletin.org/forum/external/2009/02/73.png

Now to add our Code

In template postbit_legacy or postbit:

find

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]

and below it add your code

<if condition="is_member_of($bbuserinfo, 6, 7, 9)">
<if condition="$post['field10']">
<a href="http://shop.ebay.com/merchant/$post[field10]" target="_blank" rel="nofollow" title="Click to View my Sales">
<img alt="My Ebay Sales" border="0" src="http://www.yourforum.com/images/misc/ebay.png" border="0"/>
</if></if>

Thats all there is to it and now members can if they want add the ebay logo to their posbit and advertises their goods for sale, without spamming :D

Enjoy

Click installed if you use :p

UKBusinessLive
15 Feb 2009, 13:04
:D reserved :cool:

Tilly
15 Feb 2009, 16:57
2nd reserved

redlabour
18 Feb 2009, 09:03
Why not as a Product?

UKBusinessLive
18 Feb 2009, 09:08
Why not as a Product?

Because its something so simple to install, like all my mods i want users to get a feel of actually installing code themselves, Its a bit of a learning curve :D :up:

trulylowcarb
26 Feb 2009, 16:17
Thanks, I am going to add links to Facebook and Myspace, YouTube, etc. using this same easy method. I think my members will love it.

UKBusinessLive
26 Feb 2009, 19:26
Thanks, I am going to add links to Facebook and Myspace, YouTube, etc. using this same easy method. I think my members will love it.

Great Idea, well done :D Don't forget to click installed ;)

trulylowcarb
26 Feb 2009, 20:34
Oops!
*Clicks Installed*
? Do you know how I can get these new fields to show up in the Profile under the Contact tab instead of the About Me tab? I have never played with the profile template before - guess I will go poke around in there, and read up on Profile Categories, while I am at it. But if you have an easy answer, I'd surely appreciate the pointers. :)

trulylowcarb
27 Feb 2009, 03:21
OK, with categorization I can at least add these new fields under a new tab I called Networking, but I hate the way they show up, non-clickable. (Screenshot attached.)
Any idea how to make it appear more like the postbit? Which is very user-friendly - but I don't think the profile fields are, as-is...
TIA,

UKBusinessLive
27 Feb 2009, 14:13
OK, with categorization I can at least add these new fields under a new tab I called Networking, but I hate the way they show up, non-clickable. (Screenshot attached.)
Any idea how to make it appear more like the postbit? Which is very user-friendly - but I don't think the profile fields are, as-is...
TIA,

I'm afriad i've not done anythong with profile fields, so i can't help sorry :o

Ocean-Wonders
28 Feb 2009, 15:01
Going to ask a really stupid question now ! :D
Can i change this so I an have a button that tells users that they are selling in our classifieds section instead of ebay ??

UKBusinessLive
28 Feb 2009, 15:46
Going to ask a really stupid question now ! :D
Can i change this so I an have a button that tells users that they are selling in our classifieds section instead of ebay ??

If you change the link to ebay for your own members classified, i don't see why not, Don't forget to change the ebay image also

Sooner95
09 Mar 2009, 00:25
Ez install, works good, thanks!

UKBusinessLive
09 Mar 2009, 08:19
Ez install, works good, thanks!

Thanks :D

Spika
10 Mar 2009, 17:36
Installed!
Thanks!

NukeOZ
04 Oct 2009, 10:05
Its people like you that make people like me feel a little smarter...:)

Thank you so much for making me do it..So many times we look for the easy way which would have been to get you to load this or a tutorial...But as I have found its not needed and I have learnt something more.
I did have a few issues but worked my way around them so now I have your hack fully installed and functioning thanks to you...

What a great Idea.....

Kindest regards Nuke.:up:

Note: I will certainly be looking closly at all your other hacks from now on too...:)

bvbuk
12 Oct 2009, 08:35
great little mod but it doesn't appear to be working for Mac users. Has anyone else had a similar problem?

Dabbi
03 Feb 2010, 01:00
I see that the developer hasn't been on for quite a while and I could use a bit of help tweaking this mod.

I've got it installed as it is for eBay and managed to get it to work for Etsy so far but I have vBClassified on my board and I'd I've made up a little icon and would really like to use this to help direct members to sellers stuff there as well. Unfortunately it doesn't seem to want to work with the url and user ID number.

I know basic html & normally follow directions well which saves my butt as admin but am light years away from being a coder.I've tried to figure this out on my own and had hoped I could get this to work but I simply don't have enough knowledge to do so. It seems to need the / before member info but vB doesn't work that way. Anyway, is there a way I can get this to work please?
<if condition="$post['field20']">
<a href="http://www.mywebsite.com/forum/vbclassified.php?do=user&userid=$post[field20]" target="_blank" rel="nofollow" title="My Items For Sale On XXXX">
<img alt="My Items On XXXXX" border="0" src="http://www.mywebsite.com/forum/images/misc/XXXXlogopb.gif" border="0"/>
</if>Thank you for any help. :)

Dabbi
15 Feb 2010, 11:21
NM... please disregard the above post. :)

It took me a bit but I figured out how to tweak this for not only vBClassified but most of the more popular places the online sellers of my board sell at (Etsy, Bonanzle, Amazon, Ruby Lane, etc) and made up icons to go with them as well. :)