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)
-   -   PluhNews 1.5 (https://vborg.vbsupport.ru/showthread.php?t=21875)

Goldfinger 09-15-2001 11:35 AM

doesnt work.

P1aGu3 09-15-2001 11:35 AM

Yep ... fixed it ...

On my index I simply added the 3 includes before my header include.

Cookies have to be loaded prior to the first < html > tag (I am positive, but quite often wrong)

P1aGu3 09-15-2001 11:39 AM

Quote:

Originally posted by Goldfinger
doesnt work.
Hrm ... wierd ...

Worked on my end ...

Those includes must be loaded before ANY html is parsed.

Goldfinger 09-15-2001 11:40 AM

try deleting your cookies. because it wiill work if logged onto your board. cause your coookies are still there.

P1aGu3 09-15-2001 11:47 AM

I did ... closed browser the works ...

It fixed it for me ...

http://www.fnqgl.com/testindex.php You can go there for a test.

Goldfinger 09-15-2001 11:51 AM

require("forum/fnqglglob.php");
require("forum/fnqglconfig.php");

those 2 files which are they for the average person.

P1aGu3 09-15-2001 11:58 AM

fnqglglob.php is a copy of global.php edited with absolute references to admin/config.php
fnqglconfig.php is a copy of the admin config (which didnt work, and I havent deleted yet)

I am guessing it didnt work for you ...

Bugger ...

I deleted the cookies, and closed the browser (i.e.6 delete cookies) and it didnt cause that.

*looks into it further*

Goldfinger 09-15-2001 12:05 PM

Fatal error: Cannot redeclare stripslashesarray() in /path/to/sfiles/forum/global.php on line 11

i edited the path for privacy ;).

thats the new error i get after i add the paths to these.

P1aGu3 09-15-2001 12:06 PM

Hmmm ... thats a new one for me

webhost 09-15-2001 12:10 PM

Is this what you guys are trying to do?

http://www.realwebhost.net/PluhHeadlines.php


or something else

P1aGu3 09-15-2001 12:11 PM

No, including PluhNews.php into a php index page that already generated the HTML headers before the PluhNews.php inclusion (thus causing problems with vB cookies)

Goldfinger 09-15-2001 12:13 PM

goto back to the previous page it'll explain the problem.

webhost 09-15-2001 12:20 PM

Guys go to your control panel under options and look for this.

Cookie Domain
The domain on which you want the cookie to have effect. If you want this to affect all of yourhost.com rather than just forums.yourhost.com, enter .yourhost.com here (note the 2 dots!!!). Can be left blank.
This may help

P1aGu3 09-15-2001 12:28 PM

I am pretty certain I have it sorted on my end ... I have got a half dozen friends to check it and its working no problem for them.

I think the .domain.com fixed it.

Thanks

Goldfinger 09-15-2001 12:32 PM

stilll doesnt work for me. this is making me mad.

P1aGu3 09-15-2001 12:37 PM

Which error are you getting ... still the header, or the stripslash ?

Goldfinger 09-15-2001 12:38 PM

header error.. .. the only reason i was getting stripslash was because i was calling gobal.php and config.php twice. so like it didnt work..

P1aGu3 09-15-2001 12:45 PM

Try adding the domain in like suggested .domain.com and then put the includes before any html in the file.

Delete the cookies and try again.

Cookies have to be processed prior to any html with PHP (checked on that, its a fact)

Goldfinger 09-15-2001 12:48 PM

I think i fixed it :D. goto this link

http://sfiles.equaked.com/

P1aGu3 09-15-2001 12:50 PM

Lookin sweet to me ... no errors that I can see

:D

What was it ?

webhost 09-15-2001 12:50 PM

Great! I bet you are happy

Goldfinger 09-15-2001 12:53 PM

i dunno.. i just required the global.php before my <html> tag and deleted the require global.php from PluhNews.php and did that domain cookie thing and it works :).

Goldfinger 09-15-2001 12:53 PM

Yes i am very happy thanks for all the help guys. :)

P1aGu3 09-15-2001 12:54 PM

Yep, thats exactly what I did

:D

Cookies are evil dammit ... but they make life much easier than typing the username/password each time you visit :D

P1aGu3 09-15-2001 12:55 PM

webhost, thanks for the cookie domain suggestion :D

Goldfinger 09-15-2001 12:55 PM

yes i think cookies were created by the devil. and are possesed. :)

usbnuts 09-16-2001 06:10 PM

Do you what is causing the header problem?

webhost 09-16-2001 06:35 PM

usbnuts

Go back and read the last 15 post's you will see how to fix the problem you are having.

Goldfinger 09-17-2001 11:55 AM

How can you make it so it only shows the last 4 headlines and still shows the last 10 news items? Cause i dont want it to show ALL of the headlines.

usbnuts 09-17-2001 06:29 PM

u have to define the two mySQL queries with different LIMIT value.

Bouddha 09-18-2001 07:56 PM

I use the PluhNews on my homepage and I would like to "ameliorate" it. I would like to log on my homepage and see new or updated news (pluhnews) with the arrow of the board.

PHP Code:

require("./forum/global.php");

if ($bbuserinfo['userid']!=0) {
$username=$bbuserinfo['username'];
  
print("<p align='center'>Welcome back,<br /> <b>$username!</b></p>");
print("<p align='center'><b>[ <a href='forum/index.php'>Enter</a> ]</b></p>");

} else {

?>
<form action="http://www.site.com/forum/member.php" method="post" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="action" value="login" />
<table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr>
    <td align="left"><font class="verdana, arial, helvetica" size="1"><b>Username:</b></font></td>
    <td align="left"><input type="text" name="username" size="7" /></td>
  </tr>
  <tr>
    <td align="left"><font class="verdana, arial, helvetica" size="1"><b>Password:</b></font></td>
    <td align="left"><input type="password" name="password" size="7" /></td>
  </tr>
  <tr>
    <td align="center" colspan="2"><input type="submit" value="Login!" /></td>
  </tr>
</table>
</form>
<?

}

?>

this small code (see hacks for version 2.x) allow to login on a non VB page. When you log, you go on the index of forum.
I would like to stay on the homepage and view the news for my session.
I hope you understand what I said ;)
Thx in advance for help

IanMFT 09-19-2001 05:37 AM

Ok, 1 problem and one request

PROBLEM
The PluhHeadlines.php file seems to be constantly connected to my forums as seen here:
http://www.mainframetech.net/screencaps/headlines.gif
This is wierd, any ideas as to why this would be happening?

REQUEST
Ok, if I turn off my board, here is how a section of my front page looks:
http://www.mainframetech.net/screencaps/borked.gif
It would be awesome if it would display a little message if the board was turned off instead of getting the templates and stuff in there too...any ideas or suggestions?

thnx,
~Ian :)

SirSteve 09-21-2001 07:22 PM

Nice hack but I need categories! I want to be able to pull the latest news from all forum categories!

Example

Forum (NEWS)
-Category 1
-Category 2
-Category 3
etc

A few things like, "E-mail this to a friend" and "Print View" would be cool as well.

usbnuts 09-21-2001 10:25 PM

SirSteve,

I think you just have to change one line to grab any thread titles forum catergoies you want.

// create sql statement
$sql = "SELECT threadid, title, forumid, replycount, postusername, postuserid, lastposter, dateline, iconid FROM thread WHERE forumid = "1" AND forumid = "2" AND forumid = "3" ORDER BY dateline DESC LIMIT $newsitems";

Harry 09-23-2001 03:16 PM

Anyone knows what to change, that not the complete Article, but after 100 or 200 letters it ends with a "...more..." linked to the complete article???

Craig Armstrong 09-29-2001 09:26 AM

Quote:

Originally posted by Harry
Anyone knows what to change, that not the complete Article, but after 100 or 200 letters it ends with a "...more..." linked to the complete article???
vB's screwing up the code, so I'll attached the instructions as a .txt file... :)

Here's a working demo: http://www.coldplayonline.com/forums/Test_PluhNews.php

SirSteve 09-29-2001 01:13 PM

Quote:

Originally posted by usbnuts
SirSteve,

I think you just have to change one line to grab any thread titles forum catergoies you want.

// create sql statement
$sql = "SELECT threadid, title, forumid, replycount, postusername, postuserid, lastposter, dateline, iconid FROM thread WHERE forumid = "1" AND forumid = "2" AND forumid = "3" ORDER BY dateline DESC LIMIT $newsitems";

I tried but it didn't work for me or I did something wrong...

:(

Craig Armstrong 09-29-2001 06:01 PM

You could just install multipul PluhNews' on your server...

PluhConfig1.php
PluhNews1.php
PluhHeader1.txt
PluhFooter1.txt

PluhConfig2.php
PluhNews2.php
PluhHeader2.txt
PluhFooter2.txt

et cetera...

Just set up each one to pull the news from different forums, then include them wherever you want on any page.

Harry 09-29-2001 07:14 PM

Thanks Craig, the ...more... thing works perfect, with the multiple Newsfiles I had the same idea :D also works.

SirSteve 09-29-2001 10:39 PM

Quote:

Originally posted by Craig Armstrong
You could just install multipul PluhNews' on your server...

PluhConfig1.php
PluhNews1.php
PluhHeader1.txt
PluhFooter1.txt

PluhConfig2.php
PluhNews2.php
PluhHeader2.txt
PluhFooter2.txt

et cetera...

Just set up each one to pull the news from different forums, then include them wherever you want on any page.

Seems like a lot of work. A more featured version of Pluh News would be better.

;)


All times are GMT. The time now is 01:54 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.01524 seconds
  • Memory Usage 1,814KB
  • 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_php_printable
  • (4)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
  • (40)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