vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Header/Footer For Each Forum and Threads in that Forum (https://vborg.vbsupport.ru/showthread.php?t=65890)

floridaideal 07-25-2004 10:45 AM

Hi ChurchMedia

Any update on the header image change for us? I really need this asap and would like to pay you for your extra work, can you please contact me?

Thank you

Stu

Lord Brar 07-25-2004 10:56 AM

ChurchMedia - working well for forum homepages but not forum threads in that forum...

sv1cec 07-25-2004 02:09 PM

Quote:

Originally Posted by hdraye
Great mod, although I did not try it yet, but can the above be done?

Thanx

Hani

Yes, you could do that, but that (I suppose) is part of the changes you should do in your standard forum header (in the header profile). What this hack does, is to give you the ability to have a dedicated banner as an advertisement, in the top and the bottom of your forums. Have a look at my site.

Then scroll down until you find a forum called "Knives Store", and click on it.

(Note to moderators: My sites are not commercial, so I am not advertising here)

In there, when the page loads, you will see a banner below the words "This forum brought to you by". This is the banner that gets posted by this hack, in this particular forum. Of course, you can use the hack to alter your header, but I would assume you want the top part of your forum to be the same and fixed, so that your site is easily identifiable. Of course, this is your choice.

Kind regards

ChurchMedia 07-25-2004 06:44 PM

Sorry for not getting back to everyone on mod requests. I wasn't getting all of the replies by email for some reason. I'm having surgery next week and will be out of it for probably close to 2 months (hip replacement on a 34 year old - what a drag!). If anyone else wants to make mods to this hack and post them here, feel free. Otherwise, I'll get to it when I've recovered.

floridaideal: Sorry, I've been slammed with work. The easiest thing to do is to install the hack as-is and put this code in the header/footer fields to insert an image:

Code:

<img src="http://www.yourdomain.com/path/to/image/image.gif">
Just replace the url in between the quotes with the url to your image and you are good to go!

See ya soon,

Lord Brar 07-26-2004 12:04 AM

Quote:

I'm having surgery next week and will be out of it for probably close to 2 months (hip replacement on a 34 year old - what a drag!). If anyone else wants to make mods to this hack and post them here, feel free. Otherwise, I'll get to it when I've recovered.
Best Wishes and Quick Recovery!

hdraye 07-26-2004 05:05 PM

sorry to hear about you have to under go this operation, i wish you the best, and to recover quickly and to see you soon again on the forum

Hani

In arabic (may be a very local arabic) we have a saying that I cant translate it, but at times you you have to do something you dont like, but it prevents a much greater harm, a similar but not quite the same saying in english is "every cloud has a silver lining" or whatever. :)

All the best

Spinball 07-28-2004 08:57 PM

This is a great hack. Problem for me is that I want to include an external HTML file into the forum header.
E.g.
Quote:

<?php include(http://www.mydomain.com/myfile.html"); ?>
If I try to use php in the header or footer, it doesn't like it.
How would I do some php scripting, please?

sv1cec 07-29-2004 05:00 AM

Quote:

Originally Posted by Spinball
This is a great hack. Problem for me is that I want to include an external HTML file into the forum header.
E.g.

If I try to use php in the header or footer, it doesn't like it.
How would I do some php scripting, please?

Spinball,

What exactly are you trying to do? Is it possible to create a template with the contents of your external html file? If yes, then create it and then you go in global.php, and find

PHP Code:

    // misc useful 

Above that add something like

PHP Code:

    'sponsorspanel'

in between the list you see there. Then, go into your phpinclude_start template and add a line like

PHP Code:

eval('$sponsorspanel = "' fetch_template('sponsors_panel') . '";'); 

Then, you can use the variable $sponsorpanel wherever you want in the other templates.

Another method is to do the evaluation of the templates in global.php, instead of phpinclude_start. Several ways exist.

In either case, all you have to do, is to make sure that the template sponsors_panel contains the HTML code you want.

Sorry if this is not the case of what you are trying to do. The above helped me.

Rgds

Spinball 07-29-2004 07:06 AM

sv1cec thanks for the reply. No it's a little different to what you ask.
I have people writing DVD reviews at a sister site (using a database on a different server), and each time they do, a html file is created with the latest reviews listed and linking to them. This file is php included into the sister site's home page. I want to include this list at the top of our 'DVD Talk' forum.
I tried it manually and it looked good (image attached), but I really need to be able to include the external file and ideally do some other PHP stuff later on aswell.

This is the exact code I want to use:
Quote:

<P></P><TABLE class="tborder" CELLSPACING="0" CELLPADDING="5" ALIGN="CENTER">
<TR>
<TD class="alt1">
<P STYLE="font-size: 10px"><B>Latest DVD Reviews from <A HREF="http://www.totaldvd.net/" TARGET="_blank">Total DVD</A></B><BR>
<?php include("http://www.mydomain.com/myfile.html") ?>
</P>
</TD>
</TR>
</TABLE><P></P>
Any help you can give would be very much appreciated.

sv1cec 07-29-2004 07:20 AM

Quote:

Originally Posted by Spinball
sv1cec thanks for the reply. No it's a little different to what you ask.
I have people writing DVD reviews at a sister site (using a database on a different server), and each time they do, a html file is created with the latest reviews listed and linking to them. This file is php included into the sister site's home page. I want to include this list at the top of our 'DVD Talk' forum.
I tried it manually and it looked good (image attached), but I really need to be able to include the external file and ideally do some other PHP stuff later on aswell.

This is the exact code I want to use:


Any help you can give would be very much appreciated.

I am not sure I understand, does the code you provided work? I can't test it, since my only vB forum is on-line (I do not have a test environment). But if the code you showed me works, and shows the file myfile.html, why can't you include it in your navbar template?

I want to help but I am not the greatest php expert here, so please don't swear at me.

Rgds


All times are GMT. The time now is 02:18 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
  • Page Generation 0.01254 seconds
  • Memory Usage 1,757KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete