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

Reply
 
Thread Tools Display Modes
  #11  
Old 05-20-2006, 09:12 PM
Rich's Avatar
Rich Rich is offline
 
Join Date: Mar 2004
Location: U.S.A
Posts: 921
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would go without the column all together. I was just looking for a different way to allow the users the ability to tweak their journals appearance.

I may have a look at the member.php file and see what I can do about adding some of its functionality to the journal code.

Thanks for giving it a look. I was pulling my hair out trying to get it to work.
Reply With Quote
  #12  
Old 05-20-2006, 09:21 PM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Don't worry, it works perfect, apart from the conditionals. Then it dies.

Let me know what you come up with.
Reply With Quote
  #13  
Old 05-24-2006, 07:10 PM
Rich's Avatar
Rich Rich is offline
 
Join Date: Mar 2004
Location: U.S.A
Posts: 921
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I am still playing with this. (lol) I have been trying to get what the USER chose, but all it keeps displaying is what I have chosen. This is what I am using:

HTML Code:
<if condition="$vbulletin->userinfo['field19']=='1'">THE BOX IS CHECKED<else />not checked so this shows</if>
It works, but it shows MY setting on everyone elses journal. If this is the correct condition for showing the users info, then the page is obviously not identifying the users journal in which I am visiting. How can I work around that or is there another way to write the condition so that it does realize i am seeking the info the user inputed for that value?

Everyone but me should be showing the text "not checked so this shows" since they aren't on my test board physically. However, it shows "THE BOX IS CHECKED" which is my setting.

So far I have tried (unsuccessfully):

HTML Code:
<if condition="$post[field19]=Right">Right Selected<else />left defaulted</if>
<if condition="$vbulletin->userinfo[field19]=Right">Right Selected<else />left defaulted</if>
<if condition="$userinfo[field19]=Right">Right Selected<else />left defaulted</if>
Reply With Quote
  #14  
Old 05-26-2006, 01:47 AM
Rich's Avatar
Rich Rich is offline
 
Join Date: Mar 2004
Location: U.S.A
Posts: 921
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just bumping this so maybe someone will have a suggestion I haven't already tried.
Reply With Quote
  #15  
Old 05-26-2006, 02:46 AM
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Posts: 2,528
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not too familiar with vbJournal, but here is what I found after a quick search:

$entry: contains information of the entry being viewed
$journalinfo: contains information of the user being viewed

[and FYI]:

$bbuserinfo / $vbulletin->userinfo contains information on the current viewer
$post contains information of the current post/poster

Assuming you want information for the journal's owner, you will have to hack the file a bit... the userfield table is not included in the resultsets.

If you want to go ahead with it, I'll show you where to edit it.
Reply With Quote
  #16  
Old 05-26-2006, 10:15 AM
Rich's Avatar
Rich Rich is offline
 
Join Date: Mar 2004
Location: U.S.A
Posts: 921
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That would be great SirAdrian. I am learning as I go, and I figured I was going to have to edit the PHP file, so show away. lol Thanks.
Reply With Quote
  #17  
Old 05-26-2006, 08:47 PM
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Posts: 2,528
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try this:
https://vborg.vbsupport.ru/showpost....44&postcount=2

This is from the latest version....
Reply With Quote
  #18  
Old 05-27-2006, 12:20 PM
Rich's Avatar
Rich Rich is offline
 
Join Date: Mar 2004
Location: U.S.A
Posts: 921
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I will give this a whirl right now. I am running the latest of both vb and the journal, so if it works for you, it should work for me as well. I will let you know.

(Thanks for showing me that thread. I hadn't seen that yet.)

Thanks a great deal SirAdrian. That did the trick.
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:04 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.03867 seconds
  • Memory Usage 2,228KB
  • 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
  • (2)bbcode_html
  • (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
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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