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

Reply
 
Thread Tools Display Modes
  #1  
Old 02-11-2012, 05:58 AM
merfitudinal merfitudinal is offline
 
Join Date: Feb 2012
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Several questions

Hello,

I have several questions.

1) I would like to be able to change the display name of the widgets on the main page. For example, I have a calendar widget, who's header displays the term "Calendar". Instead, I would want to have it say something like "Past Updates". How would I do that?

2) What is the best way to do a total backup of my publishing suite, where all the settings, styles, layouts, forum posts, blog posts, CMS posts and so on would be saved to some file that I can download?

3) If I customize my navbar to have additional links and I have a multi language site, how would I be able to translate those links into other languages?

4) Can I create my own template variables?

5) Can I output any PHP variables in the template editor?

Thank you in advance.
Reply With Quote
  #2  
Old 02-11-2012, 01:39 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by merfitudinal View Post
Hello,

I have several questions.

1) I would like to be able to change the display name of the widgets on the main page. For example, I have a calendar widget, who's header displays the term "Calendar". Instead, I would want to have it say something like "Past Updates". How would I do that?
On the Widget page, click "Go" next to the dropdown with "Edit" selected, and you can change the title.


Quote:
2) What is the best way to do a total backup of my publishing suite, where all the settings, styles, layouts, forum posts, blog posts, CMS posts and so on would be saved to some file that I can download?
I don't know of any way other than to make a backup of the database.


Quote:
3) If I customize my navbar to have additional links and I have a multi language site, how would I be able to translate those links into other languages?
If you use phrases for the text, you can provide a translation for each language you have.


Quote:
4) Can I create my own template variables?

5) Can I output any PHP variables in the template editor?

I'm not sure exactly what these mean. You can use a php variable in a template by registering or preRegistering it (probably preRegister if you want to use it in an existing template). Here's an article that describes that: https://vborg.vbsupport.ru/showthread.php?t=228078
Reply With Quote
  #3  
Old 02-11-2012, 09:35 PM
merfitudinal merfitudinal is offline
 
Join Date: Feb 2012
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok. Got the first issue.

What way do you recommend backing up the database?

As for whether I use phrases for the text, I'm not sure if I use them. I only recently installed my vBulletin 4.0 Publishing Suite and haven't modified anything language-wise, other than uploading a language pack (though it is incomplete and needs work). Basically, I'd like to have the user select their preferred board language and have the board text be displayed in that language.

I also have an additional question which might be related to the language issues. If I want to change the name of the "Home" link or "Forum" link in the navbar to say "Homepage" or "Forums", respectively, how would I go about doing that?

Lastly, when it comes to the PHP variable issue, I'm looking into having forumdisplay.php display the whole "What's Going On" section (that is currently displayed on forum.php), but only for certain type of "forums", specifically, level 2 forum categories. I figure if I can determine whether a given forum is a category AND is a level 2 forum inside the PHP file itself, then I can have a boolean variable there that I can then access from the template and then just put it in a template "script's" conditional statement; and everything would work out from there. The link you gave me in you last reply appears to be helpful, but I just wanted to run by you what I am looking into doing.
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:21 AM.


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.03726 seconds
  • Memory Usage 2,179KB
  • 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
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)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