vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   End-User Options - UKBL ~ Selling on Ebay Link in Postbit (https://vborg.vbsupport.ru/showthread.php?t=205435)

UKBusinessLive 02-14-2009 10:00 PM

UKBL ~ Selling on Ebay Link in Postbit
 
1 Attachment(s)
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 ;)



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://vborg.vbsupport.ru/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

Quote:

<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

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>

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://vborg.vbsupport.ru/external/2009/02/73.png

Now to add our Code

In template postbit_legacy or postbit:

find

Code:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]
and below it add your code

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 02-15-2009 11:04 AM

:D reserved :cool:

Tilly 02-15-2009 02:57 PM

2nd reserved

redlabour 02-18-2009 07:03 AM

Why not as a Product?

UKBusinessLive 02-18-2009 07:08 AM

Quote:

Originally Posted by redlabour (Post 1747633)
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 02-26-2009 02:17 PM

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 02-26-2009 05:26 PM

Quote:

Originally Posted by trulylowcarb (Post 1755276)
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 02-26-2009 06:34 PM

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 02-27-2009 01:21 AM

1 Attachment(s)
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 02-27-2009 12:13 PM

Quote:

Originally Posted by trulylowcarb (Post 1755688)
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 02-28-2009 01:01 PM

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 02-28-2009 01:46 PM

Quote:

Originally Posted by Ocean-Wonders (Post 1756885)
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 03-08-2009 10:25 PM

Ez install, works good, thanks!

UKBusinessLive 03-09-2009 06:19 AM

Quote:

Originally Posted by Sooner95 (Post 1763536)
Ez install, works good, thanks!

Thanks :D

Spika 03-10-2009 03:36 PM

Installed!
Thanks!

NukeOZ 10-04-2009 08:05 AM

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 10-12-2009 06:35 AM

great little mod but it doesn't appear to be working for Mac users. Has anyone else had a similar problem?

Dabbi 02-02-2010 11:00 PM

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?
Code:

<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 02-15-2010 09:21 AM

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. :)


All times are GMT. The time now is 12:53 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01132 seconds
  • Memory Usage 1,765KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (19)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete