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)

amykhar 12-01-2001 05:17 PM

I did quite a bit of editing on this to get it to work with more than one inclusion of PluhNews.php on the same page. However, it's finally working here:

http://www.easilyaddictive.com

This is really a powerful hack with a lot of possibilities.

Amy

DarkReaper 12-01-2001 05:32 PM

What'd you do? And would you be willing to release the modifications?

amykhar 12-01-2001 05:47 PM

I removed the require global.php and admin/config.php from the script.

Then, I modified the queries to use VBulletin functions.

I added the ability to put a <pagebreak> tag in the article so that it will break where you want it to.

My version also uses search engine friendly URLs, but I removed that from this one for you guys.

I have included pretty close to my version. (minus the url changes). To use it, require global.php and admin/config.php in the CALLING script.

Make a copy of this script and a copy of the config script for each instance that you want to include on your page. Edit the news script to point to the proper config script.

Amy

TheUnforgiven 12-12-2001 07:55 PM

simple not if you don't want to escape all your " just delete the echo line and do this
?>
Your stuff here <?= $somevvar?>
<?
thats what i did

Kayn 12-13-2001 04:54 PM

I just got back to this board, oh man, didn't know my hack was growing so much. :)

Hey Amy, could you send me your modifications? I've been really busy with my projects that I haven't had time to really work on PluhNews.

Plus, any other modifications that people have made that improved PluhNews, please send 'em

kayn@pluh.com

Thanks!

amykhar 12-13-2001 05:03 PM

It's in the mail. :)

Amy

Xube 12-13-2001 08:56 PM

Ok, here's my question. This pluhnews program seems to list the most recent THREADs created in a forum. I was hoping to get it to list whatever the most recent thread TOPIC postings are. What I mean is, I'd like to have it load the 5 threads that have the 5 most recent posts on my board.

In my General/Anything goes forum, I have it set so that whatever the most recent topics are.. that they float to the top of the forum (which is what I think most people are doing with their vB boards). I'd like my pluhnews to grab those most recent 5 threads and show them (not the most recent 5 newly created threads regardless of when the last post was on that thread as it pluhnews now does).

Can this be done? I'm guessing that maybe all that I need to do is change some variables in my Pluhconfig.php file? Can anyone help me with some advice on this? Thanks. :)

Xube 12-13-2001 09:08 PM

My other question is about using the posts that this program pulls as Highlights to drive more traffic to my board as opposed to having this program show the entire post. What I'm trying to get is the same effect like over on the Yahoo clubs boards if anyone is familiar with the way those work. What they have over there is when you visit a club, the most recent 5 messsges show with: the Headline of the message, the name of the poster, the Date of the posting, (and here's the tricky(?) part....), the first sentence or so of the text of the post (not the entire post).

Check out this club on Yahoo to see what I'm talking about

http://clubs.yahoo.com/clubs/thelastline

See how this welcome page over at this Yahoo club shows a "highlight" of the 5 most recent messages?

Is there any way this can this be done with this PluhNews program?
First off ... the PluhNews would have to get the 5 most recent thread posts based on date (not just get the 5 most recently created threads as it does now).
Secondly, is there a way to have this program only show the first sentence or so of the text in the post?

Kayn 12-14-2001 02:51 PM

Yeah, all of that stuff is possible. :)

All it would really be is a few more queries and some string manipulation.

I'm taking notes and will work on it for the next version of PluhNews. :)

yulee 12-14-2001 11:30 PM

Hello there!

I need a bit help :)

I'm going to install my vbulletin forum in a different subdomain than where I'm going to show the news. Could you help me to have it? I hope it could be done, but sure I'm waiting your replys because I don't want to miss my license.

My idea is publishing news in http://www.mydomain.com/index.php and have the forum in http://forum.mydomain.com. So I'm going to put the last url in my license.

Any ideas how could I include the files?

Thank you very very much. You are a very helpful people!! :)


All times are GMT. The time now is 08:10 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.01540 seconds
  • Memory Usage 1,741KB
  • 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)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