vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Logician NEWS: Drag Any Message to Your Main Page (https://vborg.vbsupport.ru/showthread.php?t=39278)

MeTaL_oRgY 04-09-2004 12:09 AM

hey logician... humm.. sorry for being such an annoying guy... but I think u are the only one who can help me....

first of all, I don?t care about the avatar thing anymore.... I create a news template that looks quite good :)... but I have a functionality problem...

I have my site in both, english and spanish, so I need two news scripts (I used to use fusionnews... but it was too slow to login, write the news, then logout and then do it all over again on the other script... it worked, but it was too slow...). I?ve installed this script in two different folders, noticias and news. Then installed the advanced way and post a news item on my spanish forum. worked.. perfectly... then posted on the english one.. perfect again, both showing on their respective pages. The problem came when I posted agian on the english forum, one newswriter posted and the old post dissapeared from the mainpage... I thought it may be a installation error but no. I then tried to post another news on the english forum and nothing, the post my friend created was(and still is) the only one that can be viewed on the english main page... even if I post a newer news item.. X.x...

I can post again on the spanish forum and it works perfectly... they started deleting each others [news]tags, but that was an easy tsolve problem... (just had to set "$remove_news_tag" to 0) but now I?m desperate... plz help!

here are some URLS that may be helfull:

http://zelda.wi3k.net/home2.php <-- english mainpage
http://zelda.wi3k.net/foro/forumdisplay.php?forumid=22 <-- english news forum
http://zelda.wi3k.net/home.php <-- spanish mainpage
http://zelda.wi3k.net/foro/forumdisplay.php?forumid=23 <-- spanish news forum

hope u can help me... I think the solution is to create a whole new script.. kinda... for the english news... I mean, with different variables, tags and everything.. but I?m unsure.... :)

thnx in advance and sorry for being so annoying (again)...

BTW I?ve double and triple checked the phpheader.php file of both, english and spanish and they are right. also, every post has the tags within it :o...

Logician 04-09-2004 05:20 AM

The script is designed to turn off news tags when a news is not pulled into the news page for a reason. In your example when spanish script runs, english news is not pulled since their forum id is not matched so the script deletes them.

This should fix your problem:
find:
PHP Code:

if (($remove_news_tag==1) AND ($news[$i][printable]==0)) 

and replace it as:
PHP Code:

if (($remove_news_tag==1) AND ($news[$i][printable]==0) AND inarray($news[$i][forumid],$news_forums)) 


MeTaL_oRgY 04-09-2004 04:24 PM

lol.. it didn?t.... I, the administrator, can?t post news.. I logged in as "Zeldafan" (my other news poster" and it worked... kinda... it replaced the other new with the one I posted under his name... of course I?ve checked this: $max_news=0; so I dunno what the problem is... :oops:..... again sorry for beeing so annoying :s...

[EDIT]

mmmm.. now it?s weirder.. it says: "news hve been compied in xxxxx seconds" but nothing appears!!... Oo... and the spanish one has just 1 news (there are 2 news on the forum @@....

[EDIT]

I installed all over again from start, of course, replacing the text that u gave me logician, and here?s what I get:

PHP Code:

Fatal errorCall to undefined function: inarray() in /usr/home/wi3knet/public_html/zelda/noticias/newsconfig.php on line 409 

:(......

Logician 04-09-2004 07:13 PM

sorry should be in_array not inarray

MeTaL_oRgY 04-09-2004 07:30 PM

lol, thnx, it solve the fatal error problem, but it?s not compiling the news.. I?ll try erasing the forums and creating new ones and installing all over.. I?ll tell u how it came out after :)

[EDIT]

lol, I did what stated above... english poster posted a news on english and I posted in spanish... again, spanish is working and english isn?t... english just says: "News has been compiled in 0.0535 seconds." but the news don?t appear... I did a new install (downloaded and started all over again) for both files, I erased the old forums and created new ones, what changed their ID?s.... I checked all twice and it?s not working. I think it?s the hack since it?s not created to support two different languages in two different pages.... but I dunno :ermm:

any ideas?... if it?s too much trouble just tell me and I?ll install fusionnews or something for the enlgish part.. (damn.. >.<).....

gmarik 06-17-2004 12:19 PM

Logicina,
Warning: mysql_connect(): Access denied for user: 'a0005075@localhost' (Using password: YES) in /home/logician/public_html/newsdemo/newsconfig.php on line 26
Couldnt find MYSQL!

higmet 06-17-2004 12:25 PM

check your database settings in phpheader.php

vBTotal 08-10-2004 09:35 PM

will this work for 3.x?

jalliday 02-20-2005 06:23 PM

i've installed this hack a year ago, now i've upgraded to vb3 and it still works.
great
works with vbulletin 3.06

Logician 02-20-2005 06:32 PM

Quote:

Originally Posted by jalliday
i've installed this hack a year ago, now i've upgraded to vb3 and it still works.
great
works with vbulletin 3.06

really??? even I didn't know this lol


All times are GMT. The time now is 12:09 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.01339 seconds
  • Memory Usage 1,751KB
  • 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
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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