Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)

Reply
 
Thread Tools Display Modes
  #1  
Old 06-30-2011, 10:05 AM
Divvy Divvy is offline
 
Join Date: Nov 2008
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default how to add Website(s) name in postbit like WJ

I was doing this for couple of days ,but I just dont get it right.

I wanna add Website(s) name in postbit like wjunction



Did some of my own ,and the results are terrible



Is any of you guys know how to do it right ?

Below is what I did so far.

Added to CSS:
Code:
.tinyfont {
    font-size: 10px;
}
.tinyfont .webs {
    margin-bottom: 4px;
}
.tinyfont .webs div {
    -moz-border-bottom-colors: none;
    -moz-border-image: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
    background-color: #F9FAFA;
    border-color: #E5E5E5 #E5E5E5 #E0E0E0;
    border-radius: 2px 2px 2px 2px;
    border-style: solid;
    border-width: 1px;
    margin-top: 2px;
    overflow: hidden;
    padding: 2px 3px 3px;
    white-space: pre;
    width: 130px;
}
.tinyfont .webs div:hover {
    border: 1px solid #CCCCCC;
}
.tinyfont .webs div a {
    display: block;
}
Added the code below to postbit_legacy:
Code:
<div class="tinyfont"><div class="webs">
<if condition="$post['field5']">$post[field5]</if>
</div></div><br /><br />

What I'm missing?
Can someone help me? :-)

Thank you!
Reply With Quote
  #2  
Old 06-30-2011, 10:09 AM
Jeff Ledger Jeff Ledger is offline
 
Join Date: Jun 2011
Location: Dresden - Germany
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can you give me a link to your site?
Reply With Quote
  #3  
Old 06-30-2011, 10:14 AM
Divvy Divvy is offline
 
Join Date: Nov 2008
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Jeff Ledger, PM sent
Reply With Quote
  #4  
Old 06-30-2011, 10:26 AM
Jeff Ledger Jeff Ledger is offline
 
Join Date: Jun 2011
Location: Dresden - Germany
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Css goes here

Code:
.sitelinks {
    background: none repeat scroll 0 0 #F9FAFA;
    border: 1px solid #EAEAEA;
    margin-bottom: 4px;
    padding: 2px 5px;
    overflow: hidden;      /*important */
    width: 130px; /* set it to your postbit side width */
}
Add this to your postbit

Code:
<div class="sitelinks">
<if condition="$post['field5']">$post[field5]</if>
</div>
also it would be better if the links in field5 will be added like this

<p>link 1</p>
<p>link 2</p>
....
Reply With Quote
  #5  
Old 06-30-2011, 10:56 AM
Divvy Divvy is offline
 
Join Date: Nov 2008
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you mate! It works



Btw, why is not my code worked? I had everything in there... And the other website dont have the .sitelinks css.

I think that don't need to make the <p>link 1</p> thing, because layout is now fine with your code like you can see in the image above

Is difficult to make the website links clickable? :P
Reply With Quote
  #6  
Old 06-30-2011, 11:02 AM
Jeff Ledger Jeff Ledger is offline
 
Join Date: Jun 2011
Location: Dresden - Germany
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

about the <p> tags. It something likes, table works but pure css is better.

I write my own css based on these site you linked and removed some unneeded line. Just it. You don't need 2 classes to display a simple background with border in your old code.

your current stage maybe like this:

link.com
link1.com
link2.com

change it to st like

<a href="link">link.com</a>
<a href="link1">link1.com</a>

Then you get it clickable
Reply With Quote
  #7  
Old 06-30-2011, 11:07 AM
Divvy Divvy is offline
 
Join Date: Nov 2008
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jeff Ledger View Post
your current stage maybe like this:

link.com
link1.com
link2.com

change it to st like

<a href="link">link.com</a>
<a href="link1">link1.com</a>

Then you get it clickable
Ohhh yes I know that, but I dont want this only for me... I need to make automaticly like the other website have, so when my members added their URLS, will auto clickable without need the html code to make that
Is not possible? Too much work? Sorry to boring you mate and thank you for helping me.
Reply With Quote
  #8  
Old 06-30-2011, 11:47 AM
Jeff Ledger Jeff Ledger is offline
 
Join Date: Jun 2011
Location: Dresden - Germany
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

possible only in case you will add multi-type fields

like this
<div class="sitelinks">
<if condition="$post['field5']"><a href="$post[field5]">$post[field5]</a></if>
<if condition="$post['field6']"><a href="$post[field6]">$post[field6]</a></if>
<if condition="$post['field7']"><a href="$post[field7]">$post[field7]</a></if>
<if condition="$post['field8']"><a href="$post[field8]">$post[field8]</a></if>
</div>

Then in every field they just put one link, and it will be clickable
Reply With Quote
  #9  
Old 06-30-2011, 11:59 AM
Divvy Divvy is offline
 
Join Date: Nov 2008
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ohhh damn... is not possible in other way?
Reply With Quote
  #10  
Old 06-30-2011, 12:03 PM
Jeff Ledger Jeff Ledger is offline
 
Join Date: Jun 2011
Location: Dresden - Germany
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You will need to hire someone to creat you a custom mods.

Not anything can be done using custom template.

or your users must fill out st like

<a href="link">link.com</a>
<a href="link1">link1.com</a>

in the field 5.
Reply With Quote
Reply

Thread Tools
Display Modes

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 05:07 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.04162 seconds
  • Memory Usage 2,252KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)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
  • (10)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_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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete