The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Help me please
Hi, I try to code some script but I dont know how to do that.
for ex,: I have this code: PHP Code:
Does anyone know how to do that it will show $mypage[field1] in template mypage_home ? Sorry for my bad English, I dont know how to tell better Thank you |
#2
|
||||
|
||||
PHP Code:
|
#3
|
|||
|
|||
Hello, thank you for your answering.
But I need to use with this, PHP Code:
|
#4
|
|||
|
|||
Quote:
PHP Code:
|
#5
|
||||
|
||||
PHP Code:
|
#6
|
|||
|
|||
I can't tell you what I mean because I am too bad in English
But today I can show you what I need to do. Please browser this page: http://www.mfgz.co.uk/forum/nmaps.php?do=cat&cat_id=1 You can see this ID category is 1 and category name is Site News (this is eval template) Now I need some code which I can add that category name to <title> tag in output template. The code of this script PHP Code:
|
#7
|
||||
|
||||
Just put the variable of the title into the template....
|
#8
|
|||
|
|||
Thank you for your helping Dis.
But I tried to add $cat_news_story into the output template nmaps_pg_cat the title tag but it does not show. nmaps_pg_cat template: HTML Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> $headinclude <title>$vboptions[bbtitle] - $cat_news_story</title> </head> <body> $header $navbar <table cellpadding="0" cellspacing="0" border="0" width="100%" align="center"> <tr> <if condition="$show_left_col == 'YES'"> <td valign="top" width="$col_width_left"> $left_col </td> <td valign="top" width="$col_spacer"><img alt="" src="$vboptions[bburl]/$vboptions[cleargifurl]" /></td> </if> <td valign="top"> <table cellpadding="0" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"><tr><td> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" width="100%" align="center" border="0"> <thead><tr><td class="tcat" colspan="3"><span class="smallfont"><strong>Category: $cat_name</strong></span></td></tr></thead> <tr><td class="thead">Story</td><td class="thead">Author</td><td class="thead">Post Date</td></tr> $pg_cat_bit </table> <table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px"> <tr valign="bottom"> <td class="smallfont"> </td> <if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if> </tr> </table> <img alt="" src="$vboptions[bburl]/$vboptions[cleargifurl]" /> </td></tr></table> </td> <if condition="$show_right_col == 'YES'"> <td valign="top" width="$col_spacer"><img alt="" src="$vboptions[bburl]/$vboptions[cleargifurl]" /></td> <td valign="top" width="$col_width_right"> $right_col </td></if> </tr> </table> $footer </body> </html> thanks Dis |
#9
|
||||
|
||||
The category name is $cat_name...
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|