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


All times are GMT. The time now is 11:29 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.01134 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete