Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
New Threads on Non VB page Details »»
New Threads on Non VB page
Version: 1.02, by nighthalk nighthalk is offline
Developer Last Online: Feb 2009 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.6.9 Rating:
Released: 04-15-2008 Last Update: 05-02-2008 Installs: 22
Re-useable Code Additional Files  
No support by the author.

This is very simple all it does is post topics on your non vb pages. This should work on almost every version of vbulletin.

Check the attached screen shot for further explanation.

Instructions to install.
Code:
Here is what you do.

1) Edit settings in newstopics.inc.txt
2) Rename newstopics.inc.txt to newstopics.inc.php
3) Upload newstopics.inc.php.
4) Add the following to your style sheet edit the colors to suit your needs.

.plain {
	background-color:#CCCCCC;
	text-align: left;
	vertical-align: middle;
	font-family: Tahoma, Verdana;
	font-size: 0.9em;
}
.smallfont {
	text-align: left;
	font-family: Tahoma, Verdana;
	font-size: 0.8em;
}
.even {
	background-color: #999999;
	text-align: left;
	vertical-align: middle;
	font-family: Tahoma, Verdana;
	font-size: 0.8em;
}
.odd {
	background-color:#CCCCCC;
	text-align: left;
	vertical-align: middle;
	font-family: Tahoma, Verdana;
	font-size: 0.8em;
}


5) Add this where you want it to show on your site.
<?php require("newstopics.inc.php") ?>

Wrap your content boxes around it or how ever you want to display it.
Live Demo http://www.EliteHackers.Info

If you like it and use it please click install.
I hope its something someone can use.


Update: Added option to set your prefix in one line.

Show Your Support

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

Comments
  #12  
Old 04-16-2008, 11:33 AM
nighthalk nighthalk is offline
 
Join Date: Oct 2005
Location: Maryland
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What type of server are you running this on?

Can you send me the link to the file.
Reply With Quote
  #13  
Old 04-16-2008, 12:05 PM
SUSN SUSN is offline
 
Join Date: Dec 2007
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nighthalk View Post
Do you use the default prefix vb3_
My bad! I use no prefix, so I just removed all the vb3_'s from the.inc.php and it works now

Cheers
Reply With Quote
  #14  
Old 04-16-2008, 12:11 PM
nighthalk nighthalk is offline
 
Join Date: Oct 2005
Location: Maryland
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SUSN View Post
My bad! I use no prefix, so I just removed all the vb3_'s from the.inc.php and it works now

Cheers
Your welcome if you updated to the new file you could of just removed it from the one place.

Reply With Quote
  #15  
Old 04-16-2008, 01:11 PM
Meatshield Meatshield is offline
 
Join Date: Dec 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How can I do this on a vB page I have created?
I used this to make me page:
https://vborg.vbsupport.ru/showthread.php?t=62164
Reply With Quote
  #16  
Old 04-16-2008, 01:24 PM
nighthalk nighthalk is offline
 
Join Date: Oct 2005
Location: Maryland
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Meatshield View Post
How can I do this on a vB page I have created?
I used this to make me page:
https://vborg.vbsupport.ru/showthread.php?t=62164
Use the vbulletin functions to pull the info to that page.
I don't know what they are off hand.
Reply With Quote
  #17  
Old 04-17-2008, 07:13 PM
nighthalk nighthalk is offline
 
Join Date: Oct 2005
Location: Maryland
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mr.619 View Post
Yes, I did.

PHP Code:
<?php
error_reporting
(E_ALL E_NOTICE);
...
Did you ever get this working?
Reply With Quote
  #18  
Old 04-19-2008, 07:09 PM
Triky's Avatar
Triky Triky is offline
 
Join Date: Mar 2007
Location: [Italy]
Posts: 728
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great!
Reply With Quote
  #19  
Old 04-22-2008, 10:27 PM
Jack Jones Jack Jones is offline
 
Join Date: Dec 2004
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It all installed OK but the links are broken. See:
http://www.stereo.net.au/newstopics.inc.php
Reply With Quote
  #20  
Old 04-25-2008, 05:28 AM
MPDesignZ MPDesignZ is offline
 
Join Date: Feb 2007
Location: Daytona Beach, FL
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Might also add that this will only possibly work on a php site. You may or may not have troubles installing this in a template system that is html. I could not get it to work at all and I'm using a template system in CubeCart trying to have the latest threads on my cubecart page. Since the template system is html this hack will not work.
Reply With Quote
  #21  
Old 04-29-2008, 10:59 AM
Triky's Avatar
Triky Triky is offline
 
Join Date: Mar 2007
Location: [Italy]
Posts: 728
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I get this on my newstopic.inc.php:

Quote:
Notice: Undefined variable: tQuery in c:\programmi\easyphp1-8\www\wc_newhome\newstopics.inc.php on line 43

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in c:\programmi\easyphp1-8\www\wc_newhome\newstopics.inc.php on line 53

Notice: Undefined variable: tpidpost in c:\programmi\easyphp1-8\www\wc_newhome\newstopics.inc.php on line 59
Hey there! This is just a test.
Posted on 04/11/08 07:01 PM
Can you help me, please?
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 06:49 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.04510 seconds
  • Memory Usage 2,304KB
  • Queries Executed 27 (?)
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)bbcode_php
  • (5)bbcode_quote
  • (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_onlinestatus
  • (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_postinfo_query
  • fetch_postinfo
  • 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