Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-31-2012, 03:33 AM
stoute stoute is offline
 
Join Date: May 2010
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default modification help-postbit popup

I originally posted this here.

I made this and got it to work for all of a couple minutes then all of a sudden it stopped showing up...

https://vborg.vbsupport.ru/showthread.php?t=287287

Here is the code and modifications etc. Please help. I can't figure out where I went wrong.

It stopped working when I deleted an unused profile field (unrelated to this).

------

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 30 Aug 2012 at 20:05 ---------------

Originally Posted by ForceHSS
Quote:
{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 -->

Obiwan your my only hope!
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 08:42 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.03226 seconds
  • Memory Usage 2,159KB
  • Queries Executed 11 (?)
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
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)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
  • (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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete