![]() |
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 |
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.
|
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 |
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. :) |
Quote:
Code:
<if condition="$post['fieldx']">$post[fieldx]</if> |
1 Attachment(s)
Quote:
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 |
hi there i have done it,
Thanks for you reply |
Cool! I definitely like self-serve service. LOL.
|
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! |
All times are GMT. The time now is 02:19 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|