![]() |
|
Article Options |
#16
|
||||
|
||||
Does anyone know how to get forumIDs and bbuserinfo from this new system?
I'm trying to use it as follows, but it doesn't work...
I'm trying to use this in the HEADER template. It seems that you can no longer call forum and user information in the header template. So it seems forcing specific headers to specific forums is IMPOSSIBLE in VB4. No members have liked this post.
Last edited by Jaxel; 14 Apr 2010 at 21:57. |
#17
|
||||||||||||
|
||||||||||||
i have a template i wish to add to the navbar template
i called it template2 i want to place my custom template above
i tried
link this
but did not work, my template name is navbar2
__________________
http://www.multihunters.co.uk - all your coding needs No members have liked this post.
|
#18
|
|||
|
|||
How would we use $vbulletin->options in this?
I am trying to use {vb ![]() No members have liked this post.
|
#19
|
|||
|
|||
So basically the variables were changed for no reason just so that non-coders could understand it? Those new variables look a lot more confusing to me.
No members have liked this post.
|
#20
|
||||
|
||||
Not sure why it was changed, but Jaxel:
{vb:raw vboptions.media_thumb_dir}
__________________
Looking for ImpEx?
No members have liked this post.
|
#21
|
||||
|
||||
Can someone please convert these for me?
No members have liked this post.
|
#22
|
||||
|
||||
Originally Posted by Abhik
I haven't tested this but it may be something like:![]()
{vb:raw spacer_open} {vb:raw spacer_close} unless 4.x has a different mechanism. Double check the brackets, I'm not sure if they are correct.
__________________
Jim - Webadmin 3:33am Paranormal Research - History will always repeat itself but sometimes the past never leave vb4.x Email Reminders for Inactive Users, Add Mass Child Forums for vb3.8.6 & vb4.1.2 No members have liked this post.
|
#23
|
||||
|
||||
Nope.. they aren't correct. I already tried that before posting here
![]() No members have liked this post.
|
#24
|
||||||||
|
||||||||
TalkVirginia is right:
You might need to pre register the variable, either in plugin or php file.
No members have liked this post.
|
#25
|
||||||||
|
||||||||
Originally Posted by bananalive
Can you tell me how to do that as a plugin?
![]()
No members have liked this post.
|
#26
|
|||
|
|||
Hi everyone
i have a php file that contain some variable and i tried to connect them together like a URL (link) $folder = $folders = $vbulletin->options['folder']; $subfolder = $folders = $vbulletin->options['subfolder']; $file = $folders = $vbulletin->options['file']; $url = $folder/$subfolder/$file; then i got an error like Warning: Division by zero in E:\xampp\htdocs\test\test.php on line 184 note: those code on line 184 any help or suggestion will be appreciated or with those variable how can i put them in my template {vb:var folder}/{vb:var subfolder}/{vb:var file} within $templater->register(''); is it correct ? thanks, No members have liked this post.
|
#27
|
||||
|
||||
Originally Posted by Davidinh
If you are going to use your first example you need to enclose your slashes in quotes like so... $url = $folder . '/' . $subfolder . '/' . $file however I'm sure there is a better way of doing this. Maybe reading the folder path and parsing each part out into separate variables depending on what you want to do.
![]()
__________________
Jim - Webadmin 3:33am Paranormal Research - History will always repeat itself but sometimes the past never leave vb4.x Email Reminders for Inactive Users, Add Mass Child Forums for vb3.8.6 & vb4.1.2 No members have liked this post.
|
#28
|
|||
|
|||
thank you very much TalkVirginia
it works No members have liked this post.
|
#29
|
||||||||
|
||||||||
Originally Posted by TalkVirginia
What's the difference between the "template hook" and "hook location?" Why aren't they the same thing? You've used "showthread_above_posts" template hook and "showthread_complete" hook.
![]()
No members have liked this post.
|
#30
|
|||
|
|||
The template hook, $template_hook['showthread_above_posts'] for example, is the variable you want to populate to display your data. The hook location, showthread_complete for example, is the hook in the php file that you use to load the template variable with your data by rendering a template for instance. You can select these hook locations in the plugin manager drop down when you create a new plugin.
__________________
Add a photo gallery garage to your auto forum and get noticed by your members. Find out how at the vBulletin Computer Help Forum. An informed rider makes their first destination the motorcycle forum at rider info. No members have liked this post.
|
![]() |
«
Previous Article
|
Next Article
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Article Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 13:40.