Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications

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.7.5 Rating:
Released: 02-14-2009 Last Update: Never Installs: 6
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

Show Your Support

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

Comments
  #2  
Old 02-15-2009, 11:06 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-19-2009, 11:31 PM
murekhalir murekhalir is offline
 
Join Date: Oct 2006
Posts: 254
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wow no one commented.

REALLY nice.

really fits with my forum
Reply With Quote
  #4  
Old 02-20-2009, 04:57 AM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by murekhalir View Post
wow no one commented.

REALLY nice.

really fits with my forum
I made this for a guy whose members kept on posting links to their ebay sales, other members were complaining about the excess spam on the forums, Now they'll be able to add, their Ebay username to their UserCP and get their very own Ebay logo in their postbit.

That stopped the spam overnight

Thanks, don't forget to click installed
Reply With Quote
  #5  
Old 02-24-2009, 03:37 PM
sowyrgardn sowyrgardn is offline
 
Join Date: May 2008
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where am I putting the template conditional?

Can't wait to add this to my forums, it's awesome!!

Rebecca
Reply With Quote
  #6  
Old 02-24-2009, 04: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 sowyrgardn View Post
Where am I putting the template conditional?

Can't wait to add this to my forums, it's awesome!!

Rebecca

Hi Rebecca,

Its in the instructions in the first post
Reply With Quote
  #7  
Old 02-24-2009, 07:15 PM
sowyrgardn sowyrgardn is offline
 
Join Date: May 2008
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If the obvious is escaping me, I apologize. What template folder do I put this is in:

Quote:
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>
I've done a ton of mods but for some reason I am not understanding that portion, and I do not see it in the OP.

Thanks again.
Rebecca
Reply With Quote
  #8  
Old 02-24-2009, 07: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 sowyrgardn View Post
If the obvious is escaping me, I apologize. What template folder do I put this is in:



I've done a ton of mods but for some reason I am not understanding that portion, and I do not see it in the OP.

Thanks again.
Rebecca
Look at the code below

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>
You'll see the code which you need to add to your postbit and the conditional what we're talking about is in red the top line and the bottom </if>

Just change the numbers in the top line of the conditional to the usergroups that you want the ebay link to be displayed to.

Hope that helps

Reply With Quote
  #9  
Old 05-18-2009, 11:00 PM
sowyrgardn sowyrgardn is offline
 
Join Date: May 2008
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry that I never came back to thank you! Installed on three forums and a big hit with the members. Thank you so much for the extra help you gave me.


Rebecca
Reply With Quote
  #10  
Old 05-19-2009, 05:38 AM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sowyrgardn View Post
Sorry that I never came back to thank you! Installed on three forums and a big hit with the members. Thank you so much for the extra help you gave me.


Rebecca
Glad you liked it
Reply With Quote
Reply

Thread Tools

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 09:02 AM.


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.04509 seconds
  • Memory Usage 2,302KB
  • Queries Executed 23 (?)
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
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)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
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete