vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Any-forum News hack (https://vborg.vbsupport.ru/showthread.php?t=33314)

JJR512 07-16-2002 06:40 PM

It should. It does for me, and I don't remember having to modify it.

Lethal 07-17-2002 04:25 PM

thank you

Lethal 07-18-2002 06:39 PM

This is a great hack. I have a little problem. I have 5 different sections in my site and each of them have a different news forum. Is it possible to use this hack and have the news from each news forum show up and their respective index pages. Meaning I will need to have basically a different homeindex.php for each index page. Is something like this possible for this hack? Also, why is the news posted on the right sidebar and not in the middle? I hope this is possible to do this. Maybe not with this hack but maybe there is another one here that I haven't found yet. I tried pluhnews but i didn't like that because I couldnt' get that to use the current style of my board and I had to edit it with html and what if I have a different style then the colors won't match and stuff like that. Help please.

Tarion 07-18-2002 08:24 PM

i think i found a Bug:

when i make a new thread, mark this thread as news and would start a poll, i got a with page, i fgured it out that the poll function now work but only when i don't try to do both makr as news and start a poll.

Any idears or is this only my problem???

I use VB 2.2.4

BigJohnson 07-19-2002 03:04 AM

I get this as an error please help

Warning: ChDir: No such file or directory (errno 2) in /usr/local/psa/home/vhosts/url.com/httpdocs/index.php on line 6


[QUOTE]Originally posted by Nakkid
01. open homeindex.php. place:
PHP Code:

chdir("/home/yoursite/forum"); 

above:
PHP Code:

require("./global.php"); 

02. find:
PHP Code:

$editlink="<a href=\"newspost.php?s=$session[sessionhash]&action=editnews&newsid=$gnresults[newsid]\">(edit this news item)</a>"

and add in front of it your site location:
PHP Code:

$editlink="<a href=\"$bburl/newspost.php?s=$session[sessionhash]&action=editnews&newsid=$gnresults[newsid]\">(edit this news item)</a>"

03. replace all { imagesfolder } code with your actual folder location (http: //www.yoursite.com/forum/images) or simply edit the imagesfolder variable to point to the full url.

04. find:
PHP Code:

$pagenav getpagenav($totalnews,"homeindex.php?s=$session[sessionhash]&perpage=$perpage"); 

and replace the homeindex.php with the name of your file, for example index.php.

**************************
01. open newspost.php. find the code:
PHP Code:

eval("standardredirect(\"".gettemplate("redirect_postnews-done")."\",\"homeindex.php?s=$session[sessionhash]\");"); 

and replace homeindex.php with the url of your main page (or use the variable $homeurlindex.php). this will make it look like:
http: //yoursite.com/index.php

02. find:
PHP Code:

eval("standardredirect(\"".gettemplate("redirect_editnews")."\",\"homeindex.php?s=$session[sessionhash]\");"); 

and replace homeindex.php with the url of your main page (or use the variable $homeurlindex.php).

03. find:
PHP Code:

  if ($deletenews=="yes") {
    
$DB_site->query("DELETE FROM news WHERE newsid='$newsid'");
    eval(
"standardredirect(\"".gettemplate("redirect_deletenews")."\",\"homeindex.php?s=$session[sessionhash]\");");
  } else {
    eval(
"standardredirect(\"".gettemplate("redirect_nodeletenews")."\",\"homeindex.php?s=$session[sessionhash]\");");
  } 

and replace homeindex.php with the url of your main page (or use the variable $homeurlindex.php).

BigJohnson 07-20-2002 01:00 PM

Can someone please help me. Read above. PLEASE@!!!!!


All times are GMT. The time now is 02:49 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.01112 seconds
  • Memory Usage 1,755KB
  • 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
  • (8)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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