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
  #2  
Old 02-15-2009, 11:04 AM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

reserved
Reply With Quote
  #3  
Old 02-15-2009, 02:57 PM
Tilly Tilly is offline
 
Join Date: Sep 2007
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

2nd reserved
Reply With Quote
  #4  
Old 02-18-2009, 07:03 AM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why not as a Product?
Reply With Quote
  #5  
Old 02-18-2009, 07:08 AM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by redlabour View Post
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 :up:
Reply With Quote
  #6  
Old 02-26-2009, 02:17 PM
trulylowcarb's Avatar
trulylowcarb trulylowcarb is offline
 
Join Date: Apr 2004
Location: Colorado
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 02-26-2009, 05:26 PM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by trulylowcarb View Post
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 Don't forget to click installed
Reply With Quote
  #8  
Old 02-26-2009, 06:34 PM
trulylowcarb's Avatar
trulylowcarb trulylowcarb is offline
 
Join Date: Apr 2004
Location: Colorado
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 02-27-2009, 01:21 AM
trulylowcarb's Avatar
trulylowcarb trulylowcarb is offline
 
Join Date: Apr 2004
Location: Colorado
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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,
Attached Images
File Type: jpg profile.jpg (25.5 KB, 0 views)
Reply With Quote
  #10  
Old 02-27-2009, 12:13 PM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by trulylowcarb View Post
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
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 02:30 PM.


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.09817 seconds
  • Memory Usage 2,332KB
  • Queries Executed 24 (?)
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
  • (3)bbcode_code
  • (4)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
  • (4)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_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