View Single Post
  #5  
Old 08-31-2012, 01:36 AM
stoute stoute is offline
 
Join Date: May 2010
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes it is mine, lol.

I wrote it all and it worked perfect. Only until after I posted the tutorial did it start NOT working. Showed the links in postbit and everything. Now it doesn't show anything.

I'll look at removing the extra space and see if that fixes it.

--------------- Added [DATE]1346382318[/DATE] at [TIME]1346382318[/TIME] ---------------

Quote:
Originally Posted by ForceHSS View Post
{vb:raw post.B}" TARGET="_blank"
At b and c you seem to have an extra space just before TARGET not sure if that is the main problem have not checked all coding yet if I notice anything else wil post unless someone else points it out
No joy. I removed the extra space and updated the code and it still doesn't pull up. I even removed the

<vb:if condition="is_member_of($bbuserinfo, X, Y)">

option to see if maybe it wasn't pulling up the usergroup info properly.

I have also pulled the: <vb:if condition="$post['A']"> to see if it would at least show up. It does show up the links, but only the base link. ie. http://twitter.com/
so it doesn't seem to be recognizing the profile field name...

for example the code below should show up IF the user has a twitter username (or anything) in field5 in their user profile.

<!-- Twitter -->
<vb:if condition="$post['field5']">
<li class="left">
<a href="http://twitter.com/{vb:raw post.field5}" TARGET="_blank" class="siteicon_twitter">Twitter</a>
</li>
</vb:if>

The link that would show up would be [http://twitter.com/[what ever the user put into that field]. However even when I remove the first <vb:if condition..> it still only gives me the link of http://twitter.com/

Is the code actually incorrect or am I looking at this incorrectly? All the other mods that use similar code or <vb:if...> statements all seem to work... even one using the same field name works. Proven that the fieldname works the below code placed inside the postbit_legacy template works perfect...

<!-- Twitter -->
<vb:if condition="$post['field5']">
<center><a href="http://twitter.com/{vb:raw post.field5}" class="twitter-follow-button">Follow @{vb:raw post.field5}</a></center>
<script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
</vb:if>
<!-- Twitter -->



--------------- Added [DATE]1346384659[/DATE] at [TIME]1346384659[/TIME] ---------------

Quote:
Originally Posted by Lynne View Post
Questions/Problems regarding modifications/styles need to be asked in the modification/style thread. That is where the support for modification/style is - not out here in the main forums. Please note that if a modification/style is unsupported (or even if it says it is supported), you may be on your own if you chose to install it.
I'm sorry I didn't mean to post it into the wrong place I just read the description of this forum and it says "template modifications"

Quote:
vB4 Design and Graphics Discussions (2 Viewing)
Discuss anything related to creating vBulletin styles, graphics, [bold]template editing[/bold], etc.
Can you move it so I can get the support or should I repost this to the other forum?
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01138 seconds
  • Memory Usage 1,784KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete