Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
UKBL ~ Selling on Ebay Link in Postbit Details »»
UKBL ~ Selling on Ebay Link in Postbit
Version: 1.00, by UKBusinessLive UKBusinessLive is offline
Developer Last Online: Feb 2012 Show Printable Version Email this Page

Category: End-User Options - Version: 3.8.1 Rating:
Released: 02-14-2009 Last Update: Never Installs: 15
Template Edits
Re-useable Code Translations  
No support by the author.

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



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.



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

Enjoy

Click installed if you use

Download Now

File Type: zip eaby.zip (139.2 KB, 78 views)

Screenshots

File Type: png ebay 2.png (103.4 KB, 0 views)
File Type: png ebay field.png (37.9 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 02-28-2009, 01:01 PM
Ocean-Wonders Ocean-Wonders is offline
 
Join Date: Jan 2009
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Going to ask a really stupid question now !
Can i change this so I an have a button that tells users that they are selling in our classifieds section instead of ebay ??
Reply With Quote
  #13  
Old 02-28-2009, 01:46 PM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ocean-Wonders View Post
Going to ask a really stupid question now !
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
Reply With Quote
  #14  
Old 03-08-2009, 10:25 PM
Sooner95 Sooner95 is offline
 
Join Date: Apr 2003
Location: I don't know
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ez install, works good, thanks!
Reply With Quote
  #15  
Old 03-09-2009, 06:19 AM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sooner95 View Post
Ez install, works good, thanks!
Thanks
Reply With Quote
  #16  
Old 03-10-2009, 03:36 PM
Spika's Avatar
Spika Spika is offline
 
Join Date: Jun 2006
Location: Marbella - Spain
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed!
Thanks!
Reply With Quote
  #17  
Old 10-04-2009, 08:05 AM
NukeOZ NukeOZ is offline
 
Join Date: Apr 2007
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #18  
Old 10-12-2009, 06:35 AM
bvbuk bvbuk is offline
 
Join Date: Mar 2008
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great little mod but it doesn't appear to be working for Mac users. Has anyone else had a similar problem?
Reply With Quote
  #19  
Old 02-02-2010, 11:00 PM
Dabbi's Avatar
Dabbi Dabbi is offline
 
Join Date: Sep 2007
Location: Seaway Valley NY
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #20  
Old 02-15-2010, 09:21 AM
Dabbi's Avatar
Dabbi Dabbi is offline
 
Join Date: Sep 2007
Location: Seaway Valley NY
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:07 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.11260 seconds
  • Memory Usage 2,333KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (3)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete