Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 09-01-2000 Last Update: Never Installs: 0
 
No support by the author.

I'd like to have certain memebers of my forum, Admins, moderators and SuperModerators, be able to post news to the front page of my site, and have a 'comments' link at the bottom of the summary that links through to a new thread that was generated when the news article was posted. Then other members of the site can comment on the story from within the regular vB system.

Stallion and others talk about it in the Suggestions forum: http://www.vbulletin.com/forum/showt...?threadid=2746 and he says it would be a pretty easy hack to do.

One other thing about the initial news post. I'd like it to show a small mugshot of the news poster (here's mine: ) much like the ones used at http://www.highervoltage.net.

Also, since my forum is based on individual games, it would be cool if the news thread was created in the corresponding forum. Quake news goes to the Quake forum and such. Plus, a special icon, color or title should distinguish the news thread from the regular threads in the destination forum.

What do you think?

-Nathan

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 09-02-2000, 07:02 PM
Guest
 
Posts: n/a
Default

You'd do better to learn a little PHP - it's similar to Perl anyway.
Reply With Quote
  #23  
Old 09-03-2000, 07:20 AM
Guest
 
Posts: n/a
Default

I heard that some of ya'll were having problems locating the BFC weblog that I wrote a month or two ago...sorry about the problems, I had to go offline after I lost my hosting provider and have just now been able to get back on. I have put the "official" BFC weblog zip back onto my site, but I can't find the instructions page I had on the site so you will have to make do with what is in the zip. It's all the same thing anyway. I actually posted it to a thread awhile ago, I'll see if I can dig that up... There is a readme in the zip that goes into egregious detail about the whole install. Here is the link:

http://www.eternityproductions.com/d...ble/bfc_ws.zip

The BFC Weblog System provides the following:
  • A slashdot-like interface
  • simple* integration into your already exisiting vB
  • easily meshes with other PHP pages (ie, you can add it to your homepage quickly with the addition of one line of code)
  • highly extensible output in bfc.php

I get good use out of it and maybe you can too. It's also released under the GPL to you can play with it (only my code, not the vB libs).

if there are requests I'll provide support or more info in this thread.

-- Paul
Reply With Quote
  #24  
Old 09-03-2000, 01:40 PM
Guest
 
Posts: n/a
Default

Hey, cool - thanks man!

Just DL'd it and will give it a go a little later...I guess I'll post the results here.
Reply With Quote
  #25  
Old 09-03-2000, 02:46 PM
Guest
 
Posts: n/a
Default

Dagnabbit! Still corrupted.
Reply With Quote
  #26  
Old 09-03-2000, 09:53 PM
Guest
 
Posts: n/a
Default

I'm using Pauls script on my site at http://oldamigos.com I've made a few changes, I have hid the news forum from view in the main forum so you just see the news on the front page, but that's controllable with vBulletin as to however you want to implement it. I also added a Introduction field, the only field that shows on the frontpage, the readmore takes you to the thread and main text. This keeps the front page text to a minimum, I set it to 250 char. as it's done with Slashdot.

The only thing I'm lacking now is members, I have hesitated seeking out members until I got it all up and running. Then I had to change Hosts. I was using Cihost and got tired of the lack of service. My email was down for over a week and my service ticket request wasn't even assigned to a tech. yet.

So who wants to be the first member, how about helping out a fellow vB'er get started. At least let me know what you think about my site design and check out Pauls hack. I grabbed a few of the new icons from here. But I'm color blind and only see blue and bright colors. So Blue it stays for now.

Sorry for rambling off into a topic that should be in another forum... So YELL at me if you must.
Reply With Quote
  #27  
Old 09-04-2000, 09:49 PM
Guest
 
Posts: n/a
Default

Paul, i was wondering if you might want to add these extra feautres I need for my site to your code. There are only a few:

1. The ability for the news thread to be posted to any forum, instead of a designated news forum (Quake News would be added to the Quake forum). Plus, a special icon, color or title should distinguish the news thread from the regular threads in the destination forum.

2. automaticly insert the author's logo into the news post.

3. would it be possible to track how many news stories a member has posted?

4. Would it be possible to list the 5 previous stories in a box on the side of the front page?

If Paul's not interested, does anyone else want to help me by adding to his hack? Is anyone else working on a system like this?

BTW, this is for a new gaming community site at http://www.tournament.com (nothing there right now, check in a few days).
Reply With Quote
  #28  
Old 09-05-2000, 05:47 PM
Guest
 
Posts: n/a
Default

Just installed the BFC weblog and it went in quite smoothly.

I did hack in a summary field like wajones did so I can have a short intro on the front page, then the main story in the forum.

The only two suggestions I would make is to put the above summary field into it, and to use something besides the prinf() for the output of the article listings.

I changed it to echo statements and it made it much easier to move things around to where I wanted them, without having to worry about the order in the comma list below.

Anyway just my .02 but a great script... THANKS!!
Reply With Quote
  #29  
Old 09-06-2000, 04:33 AM
Guest
 
Posts: n/a
Default

I had toyed w/ the idea of limiting the front page characters in but decided to wait on it until I had a more elegant solution than just gutting the story after 255 chars or whatever... Did ya'll solve this problem so that the script can cut it at an arbitrary point or just chops it @ 255? I didn't want to lose it in mid sentence...maybe I'll have it parse for \n\n or something, but that would limit pagination in the news script...that's no good either. I'll have to think about it.

Also, to the person who had asked about the additional hacks...

1) Yes it would be *possible* to have the script search through all the threads in all the forums for specially designated news threads but IMHO it would be a bad idea, because it would be a HUGE strain on the server as opposed to how it is now, where it just grabs the first X amount of threads from X forum. I could probably advise you on how to do it, but I don't really want to. sorry.

2) Logo like a picture or an avatar? Yes that would be a very simple and easy to add hack. If there is a "standard" avatar hack for vB could someone please point me to it and I'll add the code for the BFC, otherwise it would be a unique hack for every vB according to the mySQL field you added for your avatars...

3) I think so...I'll look into it.

4) Possible, and probable! In fact, here is the code:
Code:
<?php

require("bfc.php");

$footer_sql = "SELECT * FROM thread WHERE forumid=$newsforum ORDER BY dateline DESC LIMIT $bfcnewslimit,5";

$footer_result = mysql_query($footer_sql);

while($myrow = mysql_fetch_array($footer_result))
	{
	$threadid = $myrow["threadid"];
	$subsql = "SELECT * FROM post WHERE threadid=$threadid ORDER BY postid LIMIT 1;";
	$subresult = mysql_query($subsql);
	$posts = mysql_fetch_array($subresult);
	   	
	printf("<a href=\"%s/showthread.php?threadid=%s\">%s</a><br><br>",$forum_url,$threadid,$myrow["title"]);
	   }
   	
?>
Add that to your PHP file, I wrote it off the top of my head so if it doesn't work play w/ it or let me know...you'll obviously have to change your db settings.

Regards,
Paul
Reply With Quote
  #30  
Old 09-06-2000, 01:14 PM
Guest
 
Posts: n/a
Default

AC-3

What I did (and what I THINK that wajones did) for the front page abbreviation, was to add an additional column in the post table for a summary.

Granted you have to type your info twice, but sometimes and intro might be better written a different way then just the first sentance of the story.

I did hack the create a post template to add the additional text field as well.

Hope that sheds some light on what I did.
Reply With Quote
  #31  
Old 09-10-2000, 07:12 AM
Guest
 
Posts: n/a
Default

Can someone please post a full hack for this one, so I can implement the slash with VBB like the one used on http://www.disneysites.com
I really appreciate your help
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:45 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.05303 seconds
  • Memory Usage 2,278KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete