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 04-13-2006, 04:35 AM
webmastershome webmastershome is offline
 
Join Date: Apr 2005
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi there,

Thanks for view on this.

i want to add some variable in showthread.php or just define a varibale like below

$post['myvariable']='sometext';

and want to print in postbit

$post['myvariable']

when i use the above code , there is no value in the variable

How can i get this value in postbit template ?

Regards
jitender
Reply With Quote
  #12  
Old 04-13-2006, 06:01 AM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm...Can you please give us an idea what variable you want to add in postbit? The reason I ask is that if it's simple text, image or template you do not need to mess with the core vB PHP files; you can simply use the plugin system.
Reply With Quote
  #13  
Old 04-13-2006, 06:15 AM
webmastershome webmastershome is offline
 
Join Date: Apr 2005
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks sir,

it's a number+text content,

if there is an simple way to add plugin with vb, i will try,

Because i am very new with VB programming

Regards
Jitender
Reply With Quote
  #14  
Old 04-13-2006, 07:37 AM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, a number and text can be done using the $vbphrase. Something more complex I'd create a custom template, add the plugin for it and call the content within the template.

I'm heading to bed now, however, so I'll check back tomorrow.
Reply With Quote
  #15  
Old 04-13-2006, 07:55 AM
user02934123123 user02934123123 is offline
 
Join Date: Apr 2006
Location: UK
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jordan17
<if condition $post['fieldx'];>$post['fieldx'];</if>

I think that should work.
If editing in posbit, it should be the case that you need to remove the inverted-commas around 'fieldx' outside the conditional, so the code looks like this:

Code:
<if condition="$post['fieldx']">$post[fieldx]</if>
Reply With Quote
  #16  
Old 04-13-2006, 08:15 AM
webmastershome webmastershome is offline
 
Join Date: Apr 2005
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Freesteyelz
Well, a number and text can be done using the $vbphrase. Something more complex I'd create a custom template, add the plugin for it and call the content within the template.

I'm heading to bed now, however, so I'll check back tomorrow.

it's very good for me. please help me to make it, i am collecting some data from datastore with a template after 'hidprofilecache',
mytemplate

and add some condition on it for postbit.

it's a hack for 3.0.7 and i want to convert it to 3.5.4 and i want to add more option on it,

please help me to make it plugin system

Regards
Jitender
Attached Files
File Type: php admin_adsense.php (3.6 KB, 2 views)
File Type: txt info.txt (5.0 KB, 3 views)
Reply With Quote
  #17  
Old 04-13-2006, 12:50 PM
webmastershome webmastershome is offline
 
Join Date: Apr 2005
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi there i have done it,

Thanks for you reply
Reply With Quote
  #18  
Old 04-13-2006, 11:09 PM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool! I definitely like self-serve service. LOL.
Reply With Quote
  #19  
Old 04-26-2006, 04:51 PM
Quarterbore Quarterbore is offline
 
Join Date: Mar 2005
Location: Valley Forge PA
Posts: 538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

May I ask for some help to expand this a little more?

What I want to build is a Trouble ticket system and I could do this by simply creating a forum were all members can see the forum with permsssions to create a new thread, see their own posts, and reply to their own posts... They should not see other threads. So, if I was to set up a forum with pemissions like that and then give my Mods full permission to see and do all... this might make an easy site support system, right.

I believe what I need to do is include the info above with some forumid conditional such as assuming my forum #1 was trouble tickets...

<if condition="$foruminfo[forumid] == 1">
$post['subject']
$post['name']
$post['username']
$post['e-mail']
$post['phone']
</if>

where:

subject = Site Feedback, Registration issues, Log-In Problem, Other
name = Real Name
username = obvious but defined by system in logged in or entered if user can not log in
e-mail = obvious
phone = obvious

Is the best way to do this to add fields to the POST table? Next, I assume that the inputs need to get into the newthread template as well as the postbit as described in here for this to work... I assume a preview template and edit templates would need to be changed too?

Sorry to run off with this thread but the darned Contact Us e-mails are starting to kill me and I have a full staff that could handle 90% of the issues if only the issue would go on the forums.

For more info I did have my own thread on this posted here but this is the first chance to see if I could figure out how to do this on my own...

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

Most of the code already exists in the contactus template plus the minor upgrade I posted here:

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

I just need something like this and I don't claim any ownership to the idea... I just need to get out from under the 50 or more e-mails I seem to get every day from the four vBulletin forums I am trying to run!
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:53 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.03951 seconds
  • Memory Usage 2,267KB
  • Queries Executed 14 (?)
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_code
  • (2)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
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)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
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete