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

Reply
 
Thread Tools
Latest News on FORUMHOME Details »»
Latest News on FORUMHOME
Version: 1.00, by imported_Ashkarita imported_Ashkarita is offline
Developer Last Online: Apr 2005 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 05-24-2004 Last Update: Never Installs: 3
 
No support by the author.

This is a modification of this mod for vB3. This is the first time I've ever done this and all the necessary variables are correct, I just left what I didn't need alone. Soo, to all you real hackers, this will seem very infantile but it's a huge step for me

I kept looking for it and asking if someone could make it and nobody ever did so I did it myself I have mine attached to my welcome panel but that isn't necessary I explain how to have it separated in the instructions and how to have it like mine should you have that welcome panel mod

Show Your Support

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

Comments
  #2  
Old 05-29-2004, 09:55 AM
imported_Kalipo imported_Kalipo is offline
 
Join Date: Apr 2004
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edit the mod description you say VB2 when its VB3

Installed

Oh and btw don't need to do step 1 adding phpinclude_start

// begin last news event on forumhome
if (strpos($_SERVER['PHP_SELF'], 'index.php') != false)
{
$newsforumid = 4; // change to the id of your news forum
$result = mysql_query("SELECT threadid,title,postusername,postuserid,replycount
FROM thread
WHERE forumid=$newsforumid
AND visible=1
ORDER BY dateline DESC LIMIT 1");
if (!$result)
{
$lastnews = "Couldn't get last news event";
}
else
{
$s = mysql_fetch_row($result);
$threadid = $s[0];
$title = $s[1];
$postusername = $s[2];
$postuserid = $s[3];
$replycount = $s[4];
$shash = $session[sessionhash];

if ($replycount == 0)
{
$replycount = 'no replies';
}
else if ($replycount == 1)
{
$replycount = 'one reply';
}
else
{
$replycount = "$replycount replies";
}
$lastnews = "Latest news: <a href=\"showthread.php?s=$shash&threadid=$threadid\ ">$title</a> by <a href=\"member.php?s=$shash&action=getinfo&userid=$ postuserid\">$postusername</a> with $replycount.";
}
}
// end last news event on forumhome

Just do stage 2!!!


Will work fine, ive tweaked the text which is shown
Reply With Quote
  #3  
Old 05-29-2004, 11:16 AM
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Location: United Kingdom
Posts: 1,833
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sure you need step one because thats what does all the querys etc, bleh

Nice little mod thank you i will be using, one question, why rub out all the parts on your screenshot to hide your forums name etc when theres a link in your profile to your site so people will still see it
Reply With Quote
  #4  
Old 05-29-2004, 11:34 AM
imported_Kalipo imported_Kalipo is offline
 
Join Date: Apr 2004
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually if you look at the template mentioned in step one you will see that the script is already there to run the script and queries..

Whats the point in loopin the same querie?

See mine, Stage ones missed out..

www.frozentoast.co.uk/index.php
Reply With Quote
  #5  
Old 05-29-2004, 11:44 AM
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Location: United Kingdom
Posts: 1,833
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

HUH??? Step one on thefile is the phpinclude_start stuff, which is assigning the querys to the variables, Step 2 is the template which outputs everything and displays them.
Reply With Quote
  #6  
Old 05-29-2004, 11:47 AM
imported_Kalipo imported_Kalipo is offline
 
Join Date: Apr 2004
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bleh,

I just looked in another template i have and it seems that the current template already has that peice of code in for some reason? i don't know why :S because i never entered it

Sorry for the confusion :S
Reply With Quote
  #7  
Old 05-31-2004, 03:58 AM
imported_Ashkarita imported_Ashkarita is offline
 
Join Date: Mar 2004
Location: Texas
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<--is totally confused.

Anyhow, glad you're liking it, I was doing cartwheels that I could actually contribute to all the great people that have helped me so much I'm glad it's working out for everyone
Reply With Quote
  #8  
Old 10-15-2004, 08:23 AM
Kru's Avatar
Kru Kru is offline
 
Join Date: Nov 2002
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can it just show the latest news of one forum or can I change it to $newsforumid = 1,2,3,4,5,6; so it shows the news from my other forums, too?
Reply With Quote
  #9  
Old 12-28-2004, 02:20 AM
imported_Ashkarita imported_Ashkarita is offline
 
Join Date: Mar 2004
Location: Texas
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Kru - sorry, I haven't worked on my boards in a while so I haven't checked this board. I'm sure you could tweak it to do that, though I haven't a need for it so I haven't done it I'm sorry I'm not more helpful!
Reply With Quote
  #10  
Old 12-28-2004, 04:31 PM
Edison Chen Edison Chen is offline
 
Join Date: Oct 2003
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Worked like a charm. Thanks Ash.
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 09:04 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07203 seconds
  • Memory Usage 2,289KB
  • Queries Executed 23 (?)
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)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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • postbit_imicons
  • 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