vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Active Topics 0.1 done (https://vborg.vbsupport.ru/showthread.php?t=249)

05-11-2000 03:54 AM

i have no problem requiring it in the php file. the problem is, i need the required active threads text to go in a specific part of the tempalte that generates the hp.

so ideally i want to set a variable = to the include or require and then print that variable whereever i want, but that doesn't work.

does that make sense?

05-12-2000 12:53 AM

Uhm, I'm not following you... :)

05-12-2000 01:04 AM

i wnat to call the include from a template, not from the php file

05-12-2000 01:06 AM

From what I recall this feature is being planned.

05-24-2000 06:20 AM

I get this error when I try to run it.

Fatal error: Call to unsupported or undefined function strip_tags() in /usr/www/users/******/forum/Active.php3 on line 154

I'm running PHP 4.0.0 as a cgi - I can't see why it doesn't understand strip_tags.

Any thoughts?

05-24-2000 06:59 AM

Quote:

Originally posted by Mike
I get this error when I try to run it.

Fatal error: Call to unsupported or undefined function strip_tags() in /usr/www/users/******/forum/Active.php3 on line 154

I'm running PHP 4.0.0 as a cgi - I can't see why it doesn't understand strip_tags.

Any thoughts?


I was having a similar error message and couldn't quite figure out what the problem was, so I just edited the script a bit..

Code:

$latest_array["lastposter"],substr(($result_thread_array["pagetext"]),0,$num_chars),$latest_array["threadid"]);
NOTE - you'll need to edit the image paths to match your own settings.


I have it in place at http://www.wnsp.com/index.php3

What it does is leave the vB URL tags visible in the parsed results... it doesn't bother me all that much, since the site is so new and there's absolutely nobody using it yet. In fact, the station hasn't yet started advertising/plugging the site to their listeners...

Go ahead and test it out there if you want... I don't think it will break! ;)

RobRJ

05-26-2000 01:41 AM

Does anyone sees a chance to put the file-output into html-code?

Does anyone could post a sample line for calling this via cron, i know how to call perl-scripts via cron but php?

05-26-2000 02:03 AM

This is what I use for one of my sites:

0,5,10,15,20,25,30,35,40,45,50,55 * * * * sh activechat.sh

That just calls a shell script every 5 minutes called 'activechat.sh'

activechat.sh consists of:

-----
cd ~/active-chat
./php activechat.php >/dev/null
cd
-----

In the active-chat directory is a separate php 3.0 binary:

-rwxrwxr-x 1 myuser mygroup 1475784 May 9 10:44 php

that I use to run the files.

That is it. The activechat.php is just the active-topics file with the variable set to output to a file in the proper directory.

I know that there are other ways of doing it, but this works for me.

05-31-2000 09:48 PM

Does anyone knows how to exclude private forums from Active Topics?

06-05-2000 04:46 PM

Help! I set up the active topics and didn't give it another thought as it seemed to work fine. I then imported the posts and opened the board. Unfortunately, I never realised that it displayed the contents of private forums so, when we posted a note in one of the staff forums with a rather obvious title, it was displayed on our homepage! :( Although the users couldn't read the topic, the damage was done due to the topic title.

PLEASE could someone make an adjustment to the script to exclude private forums - kinda important, don't ya think ? :) I'd have a go myself, but i've not got a clue how it works :(


All times are GMT. The time now is 06:14 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.01063 seconds
  • Memory Usage 1,733KB
  • 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
  • (1)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