Thanks for answering all my above 7 queries. I have understood each one of them.
Few more things:-
8. Whenever we create a setting for our product, it is available globally at
$vbulletin->options['var-name']; and we can use this option anywhere as it would be available throughout our site i.e. in all pages. Am I correct?
If yes, then I wanted to know, if suppose we are having 100 products installed with 10 settings each, will there be 1000 unnecessary variables lying in the memory? How can I restrict a setting to be available only to a specific page.php and must not be available on any other vbpage.
9. Also, in relation to above, how do I use the setting variable in the associated template? Say I want to display a link from the template if the option is enabled in the product otherwise not.
10. I have read about vbulletin input cleaner. But can someone please explain me, when to use
TYPE_STR and when
TYPE_NOHTML coz I am able to achieve what i want from both and both allow $db->escape_string
11. vB uses this code to redirect to any location (in our case page.php), how do I redirect to previous page that user accessed?
PHP Code:
$vbulletin->url = "page.php" . $vbulletin->session->vars['sessionurl'];
if (isset($_SERVER['QUERY_STRING'])) {
eval(print_standard_redirect('redirect_linkdir', true, true));}
Thank You