vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=263)
-   -   Customer Header/Footer Integration (https://vborg.vbsupport.ru/showthread.php?t=317983)

raghav712 03-26-2015 06:22 PM

Customer Header/Footer Integration
 
Hi,

My forum is www.coachingadda.com/forum

An external contractor made the site and added a custom header/footer to the forum. Since then, I've changed some of the URLs. Now, some links in my custom forum header are broken.

I've tried everything (looking in the packages folder, APIs folder), doing a text search through total commander in the file contents, etc.

However, I am still not able to change the contents of the header or the footer.

If anyone around here can help, that would be great. I know it's quite a basic question, but I'm just a beginner over here, so nay help is appreciated :)

Replicant 03-26-2015 08:10 PM

Look at the header template in your style manager under AdminCP>>Styles and Templates>> Style Manager.

raghav712 03-27-2015 05:58 AM

I have tried reverting to all the default templates in template manager. Didn't help.

ForceHSS 03-27-2015 06:25 AM

looks ok in firefox

raghav712 03-27-2015 07:23 AM

Yeah, it looks ok, but there are some broken links in the header/footer since we have changed some of the links post inserting the custom header in vb.

So basically, I'm just looking for suggestions as to how I can access the header/footer file so that I can edit it.

ForceHSS 03-27-2015 08:06 AM

I have checked in a few browsers and seems ok maybe you can upload a ss so we can see what you see but without seeing a problem it's hard to help

raghav712 03-27-2015 08:56 AM

1 Attachment(s)
Sure, I've tried to explain the problem in the attached image. Just need to find the file from which I can change the contents of my header.

ForceHSS 03-27-2015 11:48 AM

I see what you mean I thought the style was messed up not the link well, I don't run vb5 so can't help with that part, but now as we know what the problem is someone will help faster as your first post was not clear on what the problem really was

Replicant 03-27-2015 01:35 PM

Login as admin and turn on site-builder with the switch beside the login on the forum page. Select "Navigation bar". You should be able to edit them there.

raghav712 03-27-2015 04:03 PM

Quote:

Originally Posted by Replicant (Post 2541680)
Login as admin and turn on site-builder with the switch beside the login on the forum page. Select "Navigation bar". You should be able to edit them there.

Since it's a custom header, I cannot edit it through site builder (It is not a "navbar" built with vbulletin tools).

Lynne 03-27-2015 04:55 PM

Try turning on AdminCP > Settings > Options > General Settings > Add Template Name in HTML Comments > Yes. Then look at your page source and see if you can tell which template it is.

Also, have you looking in your Products & Hooks to see if it was added via a Hook?

raghav712 03-27-2015 08:39 PM

1 Attachment(s)
Quote:

Originally Posted by Lynne (Post 2541691)
Try turning on AdminCP > Settings > Options > General Settings > Add Template Name in HTML Comments > Yes. Then look at your page source and see if you can tell which template it is.

Also, have you looking in your Products & Hooks to see if it was added via a Hook?

Doing what you said, I saw the links to the other were inside the "Footer" template-
Code:

<!-- BEGIN: footer --></div>
So within that, when I try to reach the code for the links part, i see the following code-

Code:

<div class="Footerleft">
<div class="footer_menue_inner clearfix">
<ul>
<li style="color:#ffffff;"><a style="cursor:pointer;">COURSE HUBS</a></li>

<li><a href="http://www.coachingadda.com/material/course_hub/2">Engineering</a></li>

<li><a href="http://www.coachingadda.com/material/course_hub/3">Medical</a></li>

</ul>
<!--<ul>
<li><a href="http://www.coachingadda.com/home/viewinstitute">Coaching Center Listings</a></li>
</ul>-->
<ul>
<li style="color:#ffffff;"><a style="cursor:pointer;">TUITIONS</a>
</li><li><a href="http://www.coachingadda.com/home/view_tution">Find Tutors</a></li>
</ul>

<ul>
<li><a href="http://www.coachingadda.com/blog">BLOG</a></li>
</ul>



<ul>
<li><a href="http://www.coachingadda.com/home/suggested_material">RECOMMENDED BOOKS</a></li>
</ul>

<ul>
<li><a href="http://www.coachingadda.com/forum">FORUM</a></li>
</ul>

</div>

<div class="copytxt">&copy;2014 coaching adda. all rights reserved</div>
</div>
</div>
</footer>

So then I assume that some sort of hook/product is being called, but there is no hook by that name (screenshot attached)

As an added precaution, I disabled the hooks from the admin settings, but still, the header is coming on the page. So any more suggestions? Am I going wrong somewhere?

Replicant 03-27-2015 09:00 PM

They are probably hard coded into a template. Do a search in templates for one of the items like RECOMMENDED BOOKS and see if it pops. If they are in the templates, that should show you where.

raghav712 03-27-2015 09:09 PM

Quote:

Originally Posted by Replicant (Post 2541713)
They are probably hard coded into a template. Do a search in templates for one of the items like RECOMMENDED BOOKS and see if it pops. If they are in the templates, that should show you where.

Tried that but those words were not in the template. I also reverted to the default. Sad to say, but still no help.

Lynne 03-28-2015 05:14 PM

It really does look like it is from a hook. But, that is all that is listed in your Manage Hooks page?

I suppose it could have been added via a file. Do you have all default vbulletin files on the site?

raghav712 04-02-2015 11:03 AM

Quote:

Originally Posted by Lynne (Post 2541757)
It really does look like it is from a hook. But, that is all that is listed in your Manage Hooks page?

I suppose it could have been added via a file. Do you have all default vbulletin files on the site?

How can I check about having only default vbulletin files?

Yeah, that's all that is listed under the Hooks manage. The path I used to get there is AdmicCP-Products & Hooks-Manage Hooks

--------------- Added [DATE]1427987413[/DATE] at [TIME]1427987413[/TIME] ---------------

With my talk with some experts, I have figured out that the header is in some XML file. Any ideas which one it could be?

Lynne 04-02-2015 10:21 PM

I supposed you can do a search on your server for all .xml files? You would have to do that via command line. Just google your server OS and see what is out there for the command to use.


All times are GMT. The time now is 01:41 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01459 seconds
  • Memory Usage 1,754KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete