View Full Version : Is this possible to do?
XYZ500
11-04-2014, 10:30 AM
Hi,
I want this done. When I go the URL of my forum, it takes straight to the forum page. I want to have a "home page" that looks a bit like the home page of vbulletin.org except I don't want any widgets like BOTM poll and MOTM poll etc.
I know this can be done via vBulletin CMS but I am finding it very hard to use it plus I think its creating bugs and error in my forum for some reason.
Is there any plugin or product that can do this as well?
As an example of what exactly I want done, see the following image.
https://vborg.vbsupport.ru/external/2014/11/40.png
Disco_Dave
11-04-2014, 10:42 AM
Everything you'll need with this add-on http://www.vbadvanced.com/
XYZ500
11-04-2014, 10:48 AM
Everything you'll need with this add-on http://www.vbadvanced.com/
You gave website link. Can you give me the exact add-on link that you're talking about?
TheLastSuperman
11-04-2014, 10:52 AM
You gave website link. Can you give me the exact add-on link that you're talking about?
Dave did provide the link, you must register an account on vbadvanced then simply download the plugin.
Very versatile, CMS system and such - very handy and best of all free. Just like vBulletin and most plugins - keep it up to date and you're set!
XYZ500
11-04-2014, 02:36 PM
Installed this CMS. Not sure how to get the thing that I wanted. I see a "custom page" option there but don't exactly know how to activate it or edit the custom page.
Lynne
11-04-2014, 03:40 PM
If you have questions about the modification, you will need to ask on the modification site.
TheLastSuperman
11-04-2014, 04:00 PM
For that you simply need to know how to edit the home page OR edit a template and add in some basic html code and css.
Example
Add this to additional.css (template inside of the Style Manager in Admin Control Panel of vBulletin):
.mynewclass {
width:90%
margin:10px;
padding:10px;
color:#000000;
font-size:16px;
}
Now this would be what you add into the template or your new cms system:
<div class="mynewclass">
Hi, this is the home page of our forum. Lorem Epsum Dolor Emit Blah Blah Blah
</div>
That will make the box show as you wanted.
*You can remove the width:90% IF the margin i.e. the outside white-space around the box is too much, by removing the width part of the definition it will inherit the overall width of the site minus (the containers padding AND your div containers margin).
XYZ500
11-04-2014, 04:28 PM
For that you simply need to know how to edit the home page OR edit a template and add in some basic html code and css.
Example
Add this to additional.css (template inside of the Style Manager in Admin Control Panel of vBulletin):
.mynewclass {
width:90%
margin:10px;
padding:10px;
color:#000000;
font-size:16px;
}
Now this would be what you add into the template or your new cms system:
<div class="mynewclass">
Hi, this is the home page of our forum. Lorem Epsum Dolor Emit Blah Blah Blah
</div>
That will make the box show as you wanted.
*You can remove the width:90% IF the margin i.e. the outside white-space around the box is too much, by removing the width part of the definition it will inherit the overall width of the site minus (the containers padding AND your div containers margin).
Hey, thanks. I managed to figure it out.
Now, my forum is located at mysite.com. What I want to do is to make this new home page as my main index page. So when users go to mysite.com, they end up here. Then they click on the "forum" button on the nav bar and are taken to the forum.
How can I do that?
--------------- Added 1415127156 at 1415127156 ---------------
Currently, mysite.com is home page which goes straight to forum. And mysite.com/cmps_index.php is what goes to CMS page. I have to click on "home" from the navbar to go to this page.
I want this page to appear first when someone goes to mysite.com and then they can go to forum by clicking on the "forum" on the navbar.
How can I do this?
HM666
11-04-2014, 08:47 PM
Hey, thanks. I managed to figure it out.
Now, my forum is located at mysite.com. What I want to do is to make this new home page as my main index page. So when users go to mysite.com, they end up here. Then they click on the "forum" button on the nav bar and are taken to the forum.
How can I do that?
--------------- Added 1415127156 at 1415127156 ---------------
Currently, mysite.com is home page which goes straight to forum. And mysite.com/cmps_index.php is what goes to CMS page. I have to click on "home" from the navbar to go to this page.
I want this page to appear first when someone goes to mysite.com and then they can go to forum by clicking on the "forum" on the navbar.
How can I do this?
If you have installed CMPS in the same directory as the forum you just need to login to your admincp and go to "Settings>Options" then click on "Forum Home: Options" in the drop down. Find "Script Name for Forum Home Page" at the top and change it to "index" without the quotes. Then make sure you set your CMPS to index.php instead of cmps_index.php. Then you will need to rename the cmps_index.php to index.php. Be sure to same everything before doing this and back it up just in case. There are also most likely info on the vbadvanced site for doing this you should really check there I think they have a FAQ or something that you can get this info from.
XYZ500
11-05-2014, 08:03 AM
If you have installed CMPS in the same directory as the forum you just need to login to your admincp and go to "Settings>Options" then click on "Forum Home: Options" in the drop down. Find "Script Name for Forum Home Page" at the top and change it to "index" without the quotes. Then make sure you set your CMPS to index.php instead of cmps_index.php. Then you will need to rename the cmps_index.php to index.php. Be sure to same everything before doing this and back it up just in case. There are also most likely info on the vbadvanced site for doing this you should really check there I think they have a FAQ or something that you can get this info from.
Thank you for this. I will try this in the last step. First there is one more problem. I add "meta keywords" and "meta description" while making the page in the CMS settings but after I add these I see no change in my page. Secondly, how to customize the page title? It is showing to be "sitename.com".. not being able to change it.
For example, this site's homepage title looks like to be "vBulletin.org Forum - The official vBulletin resource". How can I edit this?
See the image below to understand what I'm talking about:
https://vborg.vbsupport.ru/external/2014/11/34.png
HM666
11-05-2014, 08:46 AM
Not sure about the Meta Keywords issue you have. That might be something you will definitely have to ask over at vbadvanced. You may want to check your settings for the portal though to be sure before asking over there. The second part you should be able to set in your options of vbulletin I think. admincp - "Settings>Options>Site Name / URL / Contact Details" is where you can set that under "Forum Name".
XYZ500
11-05-2014, 09:53 AM
Not sure about the Meta Keywords issue you have. That might be something you will definitely have to ask over at vbadvanced. You may want to check your settings for the portal though to be sure before asking over there. The second part you should be able to set in your options of vbulletin I think. admincp - "Settings>Options>Site Name / URL / Contact Details" is where you can set that under "Forum Name".
vBadvanced no longer offer support for this CMS. It says that on their website.
I know about this. And it is set this way. And it works fine on the forum which was the homepage until now. If I go to forum, the name is what I have set it in the settings as you said. But it isn't showing that same name on the CMS page. Now I have made this CMS the homepage but not being able to edit the forum name on this CMS page.
Disco_Dave
11-05-2014, 10:30 AM
The way I have mine done is: Rename vbulletins index.php to index-bak.php. Then rename the cmps_index.php to index.php Then go to Forum Home: Options and make sure it's set to index.
XYZ500
11-05-2014, 10:50 AM
The way I have mine done is: Rename vbulletins index.php to index-bak.php. Then rename the cmps_index.php to index.php Then go to Forum Home: Options and make sure it's set to index.
Let me try this and I'll get back to you.
HM666
11-05-2014, 03:25 PM
If I remember there is a setting in CMPS as well for the title, but I do not know where it is right off hand.
XYZ500
11-06-2014, 05:22 PM
The way I have mine done is: Rename vbulletins index.php to index-bak.php. Then rename the cmps_index.php to index.php Then go to Forum Home: Options and make sure it's set to index.
This worked.
One last important problem remains...
How to customize the page title? It is showing to be "sitename.com".. not being able to change it.
For example, this site's homepage title looks like to be "vBulletin.org Forum - The official vBulletin resource". How can I edit this? Couldn't find such an option in CMS settings.
See the image below to understand what I'm talking about:
https://vborg.vbsupport.ru/external/2014/11/34.png
Lynne
11-06-2014, 07:37 PM
You would need to edit the <title> tag in the template.
XYZ500
11-07-2014, 01:17 PM
You would need to edit the <title> tag in the template.
Which template? I'm not a techie guy but I can do little editings and stuff.
If you can tell me the name of the template, I might be able to do it.
Please note that this homepage that I created in the CMS is a "HTML Code" page.
RichieBoy67
11-07-2014, 02:28 PM
Go into styles in your admin cp and search for <title>, It is in the forumhome though.
XYZ500
11-07-2014, 02:52 PM
This is the forum home template.
Can you tell me what to edit here for page title?
{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml"<vb:if condition="$vboptions['enablefacebookconnect']"> xmlns:fb="http://www.facebook.com/2008/fbml"</vb:if> dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
<head>
{vb:raw headinclude}
<title>{vb:raw vboptions.bbtitle}</title>
<script type="text/javascript" src="clientscript/vbulletin_read_marker.js?v={vb:raw vboptions.simpleversion}"></script>
<vb:if condition="$vboptions['storecssasfile']">
{vb:cssfile forumhome-rollup.css}
<vb:else />
{vb:cssfile forumbits.css,forumhome.css,options.css}
</vb:if>
<!--[if lt IE 8]>{vb:cssfile forumbits-ie.css,options-ie.css}<![endif]-->
<vb:if condition="$show['sidebar']">
{vb:cssfile sidebar.css,widgets.css,tagcloud.css}
<!--[if lt IE 8]>{vb:cssfile sidebar-ie.css}<![endif]-->
<script type="text/javascript">
<!--
document.write('<script type="text/javascript" src="' + yuipath + '/animation/animation-min.js?v={vb:raw vboptions.simpleversion}"></script>');
var sidebar_align = '{vb:raw show.sidebarposition}';
var content_container_margin = parseInt('{vb:math {vb:stylevar forum_sidebar_width}+{vb:math {vb:stylevar padding}*2}}');
var sidebar_width = parseInt('{vb:stylevar forum_sidebar_width}');
//-->
</script>
<script type="text/javascript" src="{vb:raw vboptions.bburl}/clientscript/vbulletin-sidebar.js?v={vb:raw vboptions.simpleversion}"></script>
</vb:if>
{vb:raw headinclude_bottom}
</head>
<body>
{vb:raw header}
{vb:raw navbar}
<div id="pagetitle">
<h1>{vb:raw vboptions.bbtitle}</h1>
<p id="welcomemessage" class="description">{vb:rawphrase welcome_to_the_x, {vb:raw vboptions.bbtitle}}</p>
</div>
<vb:if condition="$show['sidebar']">
<div id="content_container" class="{vb:raw $sidebar_class} <vb:if condition="$show['sidebarposition'] == 'left'">contentright</vb:if>">
<div id="content" <vb:if condition="$sidebar_class">class="{vb:raw $sidebar_class}"</vb:if>>
</vb:if>
<!-- main -->
{vb:raw template_hook.forumhome_above_forums}
<ol id="forums" class="floatcontainer">
{vb:raw forumbits}
</ol>
{vb:raw template_hook.forumhome_below_forums}
<!-- /main -->
<div class="navlinksBox"><div class="navlinksBoxWrap">
<a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}forumdisplay.php?{vb:raw session.sessionurl}do=markread&markreadhash={vb:ra w bbuserinfo.securitytoken}" rel="nofollow">{vb:rawphrase mark_forums_read}</a>
<vb:if condition="$vboptions['forumleaders']">|
<a href="showgroups.php{vb:raw session.sessionurl_q}" rel="nofollow">
<vb:if condition="$vb_suite_installed">
{vb:rawphrase view_site_leaders}
<vb:else />
{vb:rawphrase view_forum_leaders}
</vb:if>
</a></vb:if>
</div></div>
{vb:raw ad_location.board_after_forums}
<!-- what's going on box -->
<!-- Start Whats Going Heading ForumThemes -->
<div class="tcatBar">
<div class="tcatLeft"><div class="tcatRight foruminfo L1 collapse">
<h2>
<span class="forumtitle">{vb:rawphrase whats_going_on}</span>
</h2>
</div></div>
</div>
<!-- End Whats Going Heading ForumThemes -->
<div id="wgo" class="collapse wgo_block block">
<div class="blockbody formcontrols floatcontainer">
{vb:raw template_hook.forumhome_wgo_pos1}
<vb:if condition="$show['loggedinusers']">
<!-- logged-in users -->
<div id="wgo_onlineusers" class="wgo_subblock section">
<h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/users_online.png" alt="{vb:rawphrase currently_active_users}" />{vb:rawphrase currently_active_users}</h3>
<div>
<p>{vb:rawphrase there_are_x_y_online_link, {vb:raw totalonline}, {vb:raw session.sessionurl_q}} <span class="shade">{vb:rawphrase x_members_and_y_guests, {vb:raw numberregistered}, {vb:raw numberguest}}</span></p>
<p>{vb:rawphrase most_users_ever_online_was_x_y_at_z, {vb:raw recordusers}, {vb:raw recorddate}, {vb:raw recordtime}}</p>
<vb:if condition="$activeusers">
<ol class="commalist" id="wgo_onlineusers_list">
<vb:each from="activeusers" value="loggedin">
<li>{vb:stylevar dirmark}<a class="username" href="{vb:link member, {vb:raw loggedin}}">{vb:raw loggedin.musername}</a>{vb:raw loggedin.invisiblemark}{vb:raw loggedin.buddymark}{vb:raw loggedin.comma}</li>
</vb:each>
</ol>
</vb:if>
</div>
</div>
<!-- end logged-in users -->
</vb:if>
{vb:raw template_hook.forumhome_wgo_pos2}
<!-- Start Members Today -->
<vb:if condition="$show['wgo_members']">
<div id="wgo_wgo_members_users" class="wgo_subblock section collapse">
<h3 class="blocksubhead"><a href="{vb:raw wgo_members.url}"><img src="{vb:stylevar imgdir_misc}/forum_stats.png" alt="{vb:phrase wgo_members_alt_title}"/></a>{vb:raw wgo_members.whotitle}</h3>
<a class="collapse" id="collapse_wgo_members_list" href="{vb:raw relpath}#top"><img src="{vb:stylevar imgdir_button}/collapse_40b{vb:raw wgo_members.collapse}.png" alt="" title="{vb:rawphrase collapse_expand}" /></a>
<div id="wgo_members_list" {vb:raw wgo_members.style}>
<p>{vb:raw wgo_members.visitors}</p>
<vb:if condition="$vboptions['wgo_members_names']">
<vb:if condition="$wgo_members['totaltoday'] == 0">
{vb:phrase no_members_list}
<vb:else />
<ul class="commalist" id="wgo_wgo_members_list">
<vb:if condition="$wgo_members['template_hook']">
{vb:raw wgo_members.template_hook}
<vb:else />
<vb:each from="wgo_members_list" value="row">
<li>{vb:stylevar dirmark}<a class="username" href="{vb:link member, {vb:raw row}}" title="{vb:raw row.wrdate}">{vb:raw row.musername}</a>{vb:raw row.markinv}{vb:raw row.comma}</li>
</vb:each>
</vb:if>
</ul>
</vb:if>
<vb:else />
{vb:phrase member_list_disabled}
</vb:if>
</div>
</div>
</vb:if>
<!-- End Members Today -->
{vb:raw template_hook.forumhome_wgo_pos6}
<vb:if condition="$show['upcomingevents']">
<div id="wgo_events" class="wgo_subblock section">
<h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/event.png" alt="{vb:rawphrase todays_events}" /><vb:if condition="$show['todaysevents']">{vb:rawphrase todays_events}<vb:else />{vb:rawphrase upcoming_events_for_the_next_x_days, {vb:raw vboptions.showevents}}</vb:if></h3>
<ol>
{vb:raw upcomingevents}
</ol>
</div>
</vb:if>
{vb:raw template_hook.forumhome_wgo_pos3}
<vb:if condition="$show['birthdays']">
<!-- today's birthdays -->
<div id="wgo_birthdays" class="wgo_subblock section">
<h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/birthday.png" alt="{vb:rawphrase todays_birthdays}" />{vb:rawphrase todays_birthdays}</h3>
<ol class="commalist">
<vb:each from="birthdays" value="row">
<li><a href="{vb:link member, {vb:raw row}}">{vb:raw row.username}</a><vb:if condition="$row['age']"> ({vb:raw row.age})</vb:if>{vb:raw row.comma}</li>
</vb:each>
</ol>
</div>
<!-- end today's birthdays -->
</vb:if>
{vb:raw template_hook.forumhome_wgo_pos4}
<div id="wgo_stats" class="wgo_subblock section">
<h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/forum_stats.png" alt="{vb:rawphrase x_statistics, {vb:raw vboptions.bbtitle}}" />{vb:rawphrase x_statistics, {vb:raw vboptions.bbtitle}}</h3>
<div>
<dl>
<dt>{vb:rawphrase threads}</dt>
<dd>{vb:raw totalthreads}</dd>
<dt>{vb:rawphrase posts}</dt>
<dd>{vb:raw totalposts}</dd>
<dt>{vb:rawphrase members}</dt>
<dd>{vb:raw numbermembers}</dd>
<vb:if condition="$show['activemembers']">
<dt>{vb:rawphrase active_members}</dt>
<dd>{vb:raw activemembers}</dd>
</vb:if>
</dl>
<p>{vb:rawphrase welcome_to_our_newest_member_x, {vb:link member, {vb:raw newuserinfo}}, {vb:raw newuserinfo.username}}</p>
{vb:raw template_hook.forumhome_wgo_stats}
</div>
</div>
{vb:raw template_hook.forumhome_wgo_pos5}
</div>
</div>
<div class="bottomBar"><div class="bottomBarLeft"><div class="bottomBarRight"> </div></div></div>
<!-- end what's going on box -->
{vb:raw ad_location.board_below_whats_going_on}
<vb:if condition="$show['sidebar']">
</div>
</div>
<div id="sidebar_home">
<div id="sidebar_container" class="<vb:if condition="$show['sidebarposition'] == 'left'">sidebarleft</vb:if><vb:if condition="$close_sidebar"> sidebar_closed</vb:if>">
<a id="sidebar_button_link" href="#">
<vb:if condition="$show['sidebarposition'] == 'left'">
<img id="sidebar_button" src="{vb:stylevar imgdir_misc}/<vb:if condition="$close_sidebar">tab-expanded-left.png<vb:else />tab-collapsed-left.png</vb:if>" alt="" />
<vb:else />
<img id="sidebar_button" src="{vb:stylevar imgdir_misc}/<vb:if condition="$close_sidebar">tab-expanded.png<vb:else />tab-collapsed.png</vb:if>" alt="" />
</vb:if>
</a>
<ul id="sidebar" <vb:if condition="$close_sidebar">class="sidebar_hidden"</vb:if> >
{vb:raw sidebar}
</ul>
</div>
</div>
</vb:if>
<script type="text/javascript">
<!--
vbphrase['doubleclick_forum_markread'] = "{vb:rawphrase doubleclick_forum_markread}";
init_forum_readmarker_system();
//-->
</script>
{vb:raw footer}
</body>
</html>
XYZ500
11-08-2014, 03:34 PM
Waiting for someone to reply.
Seven Skins
11-08-2014, 03:51 PM
You can do it like this...
Find in FORUMHOME template:
<title>{vb:raw vboptions.bbtitle}</title>
Replace:
<title>{vb:raw vboptions.bbtitle} - SevenSkins</title>
.
XYZ500
11-09-2014, 02:44 AM
You can do it like this...
Find in FORUMHOME template:
<title>{vb:raw vboptions.bbtitle}</title>
Replace:
<title>{vb:raw vboptions.bbtitle} - SevenSkins</title>
.
What you suggested DID NOT work. It changes the title of the forum page. But it does not change the title of the CMS page that I made homepage.
Seven Skins
11-09-2014, 10:48 AM
Goto your CMS page .. there will be a pencil icon near the page title .. you can edit it form there.
Title option is towards the bottom of right column.
BirdOPrey5
11-09-2014, 11:05 AM
The best option would have been to follow Lynne's article on creating your own custom page, then setting that to the homepage via Navigation Manager.
https://vborg.vbsupport.ru/showthread.php?t=228112
Seven Skins
11-09-2014, 07:57 PM
If you are using vbadvanced CMPS then you need to edit "adv_portal" template.
find and edit this line:
<title>{vb:raw vboptions.hometitle} <vb:if condition="$pagetitle">- {vb:raw pagetitle}</vb:if></title>
XYZ500
11-10-2014, 02:08 PM
If you are using vbadvanced CMPS then you need to edit "adv_portal" template.
find and edit this line:
<title>{vb:raw vboptions.hometitle} <vb:if condition="$pagetitle">- {vb:raw pagetitle}</vb:if></title>
This worked.
One more question.
On the homepage, you can choose what modules you want to put there. One of the modules is "popular tags". I enabled it and it is displaying tags that it thinks are important maybe. Is there any way to edit and put tags there that I want?
I want to put my site's keywords there as my SEO agency suggests me that I should have my keywords on the home page.
Seven Skins
11-10-2014, 03:05 PM
You can add more tags going to adminCP > Tagging ... but they will have to be linked to threads in the forums .. meaning some of the threads must have these tags.
XYZ500
11-11-2014, 05:25 PM
You can add more tags going to adminCP > Tagging ... but they will have to be linked to threads in the forums .. meaning some of the threads must have these tags.
Hmm.. doesn't seem to work. The keywords I added in tags as you suggested are not showing up in the popular tags module. Before having this CMS homepage, my index page was the forum itself and I had added to keywords to forum name (in Site Name / URL / Contact Details) and they were showing up on the main index forum page as "Welcome to my forum - The best place for keyword 1, keyword 2, keyword 3" etc.
Do you recommend something how I can add keywords on the CMS homepage now so fulfil the on-page SEO requirement of having keywords on first page? Without making it look like I have forcefully put those keywords there.
Lynne
11-11-2014, 05:40 PM
If you want to add your own tags and make them 'stay' there, you would need to edit the template and add them manually.
To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. (Sometimes the template is the one mentioned at the very top of the page source.)
XYZ500
11-12-2014, 10:10 AM
If you want to add your own tags and make them 'stay' there, you would need to edit the template and add them manually.
To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. (Sometimes the template is the one mentioned at the very top of the page source.)
I did this part: "To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes ."
I couldn't understand how to do the rest. So I went to adminCP > vBa CMPS > Edit modules > Popular Tags. And I took screenshot of everything on that page. Please let me know what to edit to make the tags permanent on the homepage.
http://prntscr.com/55lhlh
http://prntscr.com/55lhsr
--------------- Added 1415799014 at 1415799014 ---------------
If you want to add your own tags and make them 'stay' there, you would need to edit the template and add them manually.
To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. (Sometimes the template is the one mentioned at the very top of the page source.)
I guess this is the tags template that needs to be edited to add my own tags that stay there.
This is tags.php file.
Where to enter my own tags here?
<?php
/*================================================= =====================*\
|| ################################################## ################## ||
|| # vBulletin 4.2.2 Patch Level 1 - Licence Number VBFDAD2BA0
|| # ---------------------------------------------------------------- # ||
|| # Copyright ?2000-2014 vBulletin Solutions Inc. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| ################################################## ################## ||
\*================================================ ======================*/
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT', 'tags');
define('CSRF_PROTECTION', true);
define('ALTSEARCH', true);
// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array('inlinemod', 'search', 'prefix');
// get special data templates from the datastore
$specialtemplates = array(
'tagcloud',
'iconcache'
);
// pre-cache templates used by all actions
$globaltemplates = array(
'humanverify',
'optgroup',
'search_common',
'search_results',
'search_results_postbit', // result from search posts
'search_results_postbit_lastvisit',
'threadbit', // result from search threads
'threadbit_deleted', // result from deleted search threads
'threadbit_announcement',
'newreply_reviewbit_ignore',
'threadadmin_imod_menu_thread',
'threadadmin_imod_menu_post',
'tag_cloud_link'
);
// pre-cache templates used by specific actions
$actiontemplates = array(
'cloud' => array(
'tag_cloud_box',
'tag_cloud_link',
'tag_cloud_page'
),
'tag' => array(
'tag_search',
'threadadmin_imod_menu_thread',
'threadbit',
'search_resultlist',
'search_threadbit'
)
);
if (empty($_REQUEST['do']))
{
if (empty($_REQUEST['tag']))
{
$_REQUEST['do'] = 'cloud';
}
else
{
$_REQUEST['do'] = 'tag';
}
}
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
require_once(DIR . '/includes/functions.php');
require_once(DIR . '/includes/functions_bigthree.php');
require_once(DIR . '/includes/functions_forumdisplay.php');
require_once(DIR . '/includes/functions_search.php');
require_once(DIR . '/includes/functions_forumlist.php');
require_once(DIR . '/includes/functions_misc.php');
//new search stuff.
require_once(DIR . '/vb/search/core.php');
require_once(DIR . '/vb/legacy/currentuser.php');
require_once(DIR . '/vb/search/resultsview.php');
if (!$vbulletin->options['threadtagging'])
{
print_no_permission();
}
($hook = vBulletinHook::fetch_hook('tags_start')) ? eval($hook) : false;
// ################################################## #####################
if ($_REQUEST['do'] == 'cloud')
{
require_once(DIR . '/includes/functions_search.php');
$tag_cloud = fetch_tagcloud('usage');
$navbits = construct_navbits(array(
'' => $vbphrase['tags'],
));
$navbar = render_navbar_template($navbits);
($hook = vBulletinHook::fetch_hook('tags_cloud_complete')) ? eval($hook) : false;
$templater = vB_Template::create('tag_cloud_page');
$templater->register_page_templates();
$templater->register('navbar', $navbar);
$templater->register('tag_cloud', $tag_cloud);
print_output($templater->render());
}
// ################################################## #####################
if ($_REQUEST['do'] == 'tag')
{
$vbulletin->input->clean_array_gpc('r', array(
'tag' => TYPE_NOHTML,
'pagenumber' => TYPE_UINT,
'perpage' => TYPE_UINT
));
if (!$vbulletin->GPC['tag'])
{
standard_error(fetch_error('invalidid', $vbphrase['tag'], $vbulletin->options['contactuslink']));
}
$search_core = vB_Search_Core::get_instance();
$current_user = new vB_Legacy_CurrentUser();
$criteria = $search_core->create_criteria(vB_Search_Core::SEARCH_TAG);
$criteria->add_tag_filter($vbulletin->GPC['tag']);
$errors = $criteria->get_errors();
if ($errors)
{
standard_error(fetch_error($errors[0]));
}
$results = null;
$searchstart = microtime();
if (!($vbulletin->GPC_exists['nocache'] AND $vbulletin->GPC['nocache']))
{
$results = vB_Search_Results::create_from_cache($current_user , $criteria);
}
if (!$results)
{
$results = vB_Search_Results::create_from_criteria($current_u ser, $criteria,
$search_core->get_tag_search_controller());
}
$base = 'tags.php?' . $vbulletin->session->vars['sessionurl'] .
'tag=' . $vbulletin->GPC['tag'] . '&pp=' . $perpage;
$navbits = array('search.php' . $vbulletin->session->vars['sessionurl_q'] => $vbphrase['search_forums']);
$view = new vb_Search_Resultsview($results);
$view->showpage($vbulletin->GPC['pagenumber'], $vbulletin->GPC['perpage'], $base, $navbits);
exit;
}
/*================================================= =====================*\
|| ################################################## ##################
|| # Downloaded: 11:00, Thu Aug 14th 2014
|| # CVS: $RCSfile$ - $Revision: 54782 $
|| ################################################## ##################
\*================================================ ======================*/
Lynne
11-12-2014, 04:01 PM
That templates are found in Style Manager > find your style > Edit Templates. I don't know they name of the group to expand if this is a vBAdvanced template.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.