![]() |
module VBA: add sub title ?
in VBA template adv_portal i have:
Code:
<title>$vboptions[hometitle] <if condition="$pagetitle">- $pagetitle</if></title> my module name is "book" and I see it as: Code:
www.mysite.com/index.php?id_page=book&nr=22 In the page <TITLE> tag there is: "My site name - book" "book" is $pagetitle, definite in the Admin CP module, OK? how do I do to add in page module also the title of the book nr.22? es. title book nr. 22 is "THE LAST HISTORY" I would want the title of the page to be: "My site name - book - THE LAST HISTORY" I could pass in GET variable es: Code:
www.mysite.com/index.php?id_page=book&nr=22&subtitle=THE LAST HISTORY in adv_portal i have add: Code:
<title>$vboptions[hometitle] <if condition="$pagetitle">- $pagetitle</if> in my php module I have add Code:
$subtitle= $_GET['subtitle']; help me please thanks |
|
Quote:
I read the manual and : https://vborg.vbsupport.ru/showthread.php?t=119372&highlight=%24_GET+clean_gp c() but I did not understand how use vBulletin Input cleaner in my example $subtitle= $_GET['subtitle']; $vbulletin->input->clean_gpc('g', 'subtitle', TYPE_STR); $subtitle = htmlspecialchars($vbulletin->GPC['subtitle']); ????? or: $subtitle = $vbulletin->input->clean_gpc('g', 'subtitle', TYPE_NOCLEAN); I have done this plugin Code:
<?xml version="1.0" encoding="ISO-8859-1"?> Code:
<title>$vboptions[hometitle] <if condition="$pagetitle">- $pagetitle</if> you can give me an example please? thanks --------------- Added [DATE]1235584089[/DATE] at [TIME]1235584089[/TIME] --------------- wow! now it works ! this is my plugin Code:
<?xml version="1.0" encoding="ISO-8859-1"?> product="vBadvanced CMPS" location hook = "vba_cmps_print_output" |
PHP Code:
|
All times are GMT. The time now is 05:48 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:
|