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)

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:15 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.01489 seconds
  • Memory Usage 1,746KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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