Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-23-2008, 04:56 PM
familyhistory's Avatar
familyhistory familyhistory is offline
 
Join Date: Nov 2006
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Postbit - Profile Field

Hi All,

I have a slight modification where a user profile field has been added below each signature in postbit:
$post[signature]
$post[field8]

But....
On a special forum I want to post Research Information (with HTML) where the signatures AND the $post[field 8] information spoils the post. I have turned off the Signature but the other is still there.

Can anyone advise how to change this please?

Best regards to all,
Dave
Reply With Quote
  #2  
Old 09-23-2008, 07:18 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you post images of the problem? I really don't get a clear picture of how a field can "spoil" a signature.
Reply With Quote
  #3  
Old 09-24-2008, 08:55 AM
familyhistory's Avatar
familyhistory familyhistory is offline
 
Join Date: Nov 2006
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Lynne,

Thanks for the reply.

The profile field is not spoiling the signature (I am happy with that!) its that its spoiling a special forum where posts are for Research information. Here is a simple post with the profile field at the bottom:

Quote:
Cheshire

Here are the research details for the County of Cheshire

....
(This is the profile field)
<----- www.familyhistory.uk.com member researching ancestor names: ----->
Brown, Chadbourne, Holmes, Pears, Robinson, Watchorn,
________________________________________________
Now coming to think about it. Maybe I could put this Profile Field actually inside the signature. Then we could remove the signature at the post or remove from that forum.
Where would I put this code for the signature? $post[field8] ?

Thanks,
Dave
Reply With Quote
  #4  
Old 09-24-2008, 03:50 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you want to add it into the signature, this is what you want to look for in the postbit (or postbit_legacy, whichever you use):

HTML Code:
$template_hook[postbit_signature_start]
        
        <if condition="$post['signature']">
        <!-- sig -->
            <div>
                __________________<br />
                $post[signature]
            </div>
        <!-- / sig -->
        </if>
        
        $template_hook[postbit_signature_end]
So, it looks like you could even use a Template Hook for it.
Reply With Quote
  #5  
Old 09-28-2008, 08:39 PM
familyhistory's Avatar
familyhistory familyhistory is offline
 
Join Date: Nov 2006
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Lynne,

Sorted it. Thanks for your help. The only problem is if they have no signature, the field ($post[field8]) will not show........ How could I get it to show even if the signature is blank?

Another question Lynne on the same field.

This $post[field8] is a number of names each member is researching, for example mine is:
Admin Hallam, Wilson, Harris, Crowder, Lane, Crisp, Naylor, Downs

Is there anyway of adding a separate VBulletin page to display all members and their names ($post[field8]) (with an alphabetical search menu similar to what we see in memberlist.php) - basically the same as memberlist!

Thanks again,
Dave
Reply With Quote
  #6  
Old 09-28-2008, 10:29 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by familyhistory View Post
Thanks Lynne,

Sorted it. Thanks for your help. The only problem is if they have no signature, the field ($post[field8]) will not show........ How could I get it to show even if the signature is blank?
Don't put it within the <if> statement.

Quote:
Originally Posted by familyhistory View Post
Another question Lynne on the same field.

This $post[field8] is a number of names each member is researching, for example mine is:
Admin Hallam, Wilson, Harris, Crowder, Lane, Crisp, Naylor, Downs

Is there anyway of adding a separate VBulletin page to display all members and their names ($post[field8]) (with an alphabetical search menu similar to what we see in memberlist.php) - basically the same as memberlist!

Thanks again,
Dave
Sure there is a way. The information is in the database, so there is always a way to grab it out of the database and do something with it. It's just a matter of how involved that is. Depending on the database structure and exactly what you want done, it could be super simple or a bit more complicated. It also depends on how familiar you are with writing queries and php pages.
Reply With Quote
  #7  
Old 10-01-2008, 09:01 AM
familyhistory's Avatar
familyhistory familyhistory is offline
 
Join Date: Nov 2006
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks again Lynne. That sorted it.

Now to have a go at displaying that field.

Could I just copy and edit memberlist.php (calling it something else!) and show the fields against each member there?

All I would need is the Username, Field, PM (Contact),

Regards and thanks,
Dave
Reply With Quote
  #8  
Old 10-01-2008, 03:48 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You could try copying memberlist.php to something like memberlist2.php and see if you can get it how you want. You may have to copy some templates and change the template name in that page if you need to. I actually do this sort of thing all the time on my forum when I'm working on something new and don't want to screw up the original.
Reply With Quote
  #9  
Old 10-01-2008, 10:07 PM
familyhistory's Avatar
familyhistory familyhistory is offline
 
Join Date: Nov 2006
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep! I will try that Lynne - Thanks

Going back the that field, I have a forum (id=88) that I need to not show anything, apart from the actual post. Obviously when posting un-ticking "show your Signature", but that field was showing STILL ....../

So I added a if condition as follows:
Quote:
<if condition="$forumid == 88"> <p> html follows...forum 88 </p>
<else />
<div align="center" class="time"><----- www.familyhistory.uk.com member researching ancestor names: -----><br />
$post[field8]<br />
________________________________________________
<br />
</if>
But it will not work! Can you see what's wrong with the code please,

many thanks,
Dave
Reply With Quote
  #10  
Old 10-01-2008, 10:30 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try one of these in place of $forumid:
$forum[forumid]
$foruminfo[forumid]
$thread[forumid]
$threadinfo[forumid]
$GLOBAL[forumid]
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 11:37 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.05410 seconds
  • Memory Usage 2,258KB
  • 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_html
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (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_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