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)
-   -   Insert HTML or (pre-processed!) PHP file above specific forum (https://vborg.vbsupport.ru/showthread.php?t=67942)

YLP1 08-29-2004 12:38 AM

Can you use this mod to pull in the Latest Topics mod used in the portal? Or is there a way to pull in the latest topics/posts without using the portal mod?

I'm very new to VB and PHP so any help is greatly appreicated.

I am trying to put the most recent topics/posts at the top of the forum and get it scroll when moused over...I'm having a devil of a time figuring this out.

Spinball 08-29-2004 07:13 AM

Not familiar with the Latest Topics mod and don't have time right now to investigate.
I would imagine that nearly anything is possible with a little coding.

dr.science 10-28-2004 01:16 AM

I've added this, and it looks very good. I just have a couple questions. How do I center the image on top of my forum list? It is far left right now. Also, I can't seem to get the images links to work. I have been playing with it for a while and can't seem to figure out how to get the perl scripts working, or even functional.

thanks for your help!

gfd 10-28-2004 08:38 PM

you can wrap your banner/link in a div:

<div style="text-align:center;">
<a href......>banner</a>
</div>

.... i don't know about the links. It would help if you can post a link to your page.

dr.science 10-29-2004 02:36 AM

Sorry, it's here:

http://www.d-series.org/forums/?

Thanks!

dr.science 11-24-2004 07:47 PM

Quote:

Originally Posted by dr.science
Sorry, it's here:

http://www.d-series.org/forums/?

Thanks!

Can someone help me please? I am trying to do a couple oth things and I can't seem to get them done right.

My banner images do not link correctly to the sites they are for. I am not familiar ith how to make a perl script.

Also, where do I input the code to center the banners on the forum home page? Do I just use this code: <div style="text-align:center;">
<a href......>banner</a>
</div> ???

Thanks for all of your help. I would really appreciate it if someone would help me so I can get this fixed.

Thanks again!
http://www.d-series.org/forums/?

Spinball 11-24-2004 08:38 PM

What code are you using to display the banner?
You just need to put a centre that. Ill help if you post the HTML which is displaying the banner.

With regard to the perl script to make the link work, if you want to count the number of clicks of the banner then you need to use a perl script as the target of the banner. This is so you can count the number of times the perl script has been opened using a normal log file analysis program like Webtrends.
The perl script should be located in your cgi-bin folder and you will need to make your banner link <A HREF= 'link to your perl script' target='_blank'>
The link itself can be relative e.g.: '../cgi-bin/yourperlscript.pl'
or direct 'htp://www.yoursite.com/cgi-bin/yourperscript.pl'.
The first one is preferable.
It looks like you haven't got the link location correct.
The perl script will work if you put it in your cgi-bin folder and in telnet or with an appropriate ftp program chmod 755 yourperlscript.pl
Presumably you have copied my example to create the correct perl script?

Note : it's possible to have an alternative to using a perl script if you instead have the link fire up your own php application which counts the clicks for you.
But you will need some programming and database experience to do this.

Mamochka 12-06-2004 09:47 PM

Hi,Spinball

you typed for Ex:
#!/usr/bin/perl
print "Location: http://www.targetdomain.com/";

Can you make Ex with next info -> www.mylink.com alttext=MyLink

and Ex for Forumhome,because I want to put the Banner above a navlink.

Thanks again!

Spinball 12-07-2004 06:01 AM

You'll have to use one of the other hacks for banners above the navbar.
The perl script you quoted above is simply for couning the hits as explained in the description accompanying this thread.

turkforum 12-28-2004 04:05 AM

it will be a very nice hack but!
It only shows at forumdisplay.php when someone reads the thread showtread.php does not show the banner
i have more than 100 forums and some categories is not possible to make this hack available for categories?
or lets say how can i enable multiple forums
like
if ($forumid==76) {
$mycustomheader = file_get_contents("http://domain.net/hosting.htm");
}
// get external data
do i have to copy and paste te code for multiple fourms or is there comma like code for multiple forums
like
if ($forumid==76,x,y,z) { i tried comma but doesnot work


All times are GMT. The time now is 06:51 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.01271 seconds
  • Memory Usage 1,740KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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