Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

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
  #2  
Old 04-16-2008, 09:38 AM
SUSN SUSN is offline
 
Join Date: Dec 2007
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks excellent mate! Will fit perfectly on my site (that is currently under construction). Is there any way of doing exactly the same with the VB blogs system?

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

If I had the blog system then I could do it but I don't even know the tables etc.
Reply With Quote
  #4  
Old 04-16-2008, 10:54 AM
SUSN SUSN is offline
 
Join Date: Dec 2007
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm getting an error off of line 46

PHP Code:
warningmysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/XXXXXXX/XXXXXXX/newstopics.inc.php on line 46. 
Line 46 is:

PHP Code:
while($tthread_get=mysql_fetch_array($tthread_sql)) 
Any ideas?

Cheers.
Reply With Quote
  #5  
Old 04-16-2008, 10:59 AM
Mr.619 Mr.619 is offline
 
Join Date: May 2007
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does not work on my site. (blank page)
Reply With Quote
  #6  
Old 04-16-2008, 11:03 AM
nighthalk nighthalk is offline
 
Join Date: Oct 2005
Location: Maryland
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SUSN View Post
I'm getting an error off of line 46

PHP Code:
warningmysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/XXXXXXX/XXXXXXX/newstopics.inc.php on line 46. 
Line 46 is:

PHP Code:
while($tthread_get=mysql_fetch_array($tthread_sql)) 
Any ideas?

Cheers.
Do you use the default prefix vb3_
Reply With Quote
  #7  
Old 04-16-2008, 11:04 AM
nighthalk nighthalk is offline
 
Join Date: Oct 2005
Location: Maryland
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mr.619 View Post
Does not work on my site. (blank page)
can you put this just below the <?php tag at the top?

Code:
error_reporting(E_ALL ^ E_NOTICE);
Then paste the error here?


p.s. Please mark as Installed or you wont get much support from me.
Reply With Quote
  #8  
Old 04-16-2008, 11:11 AM
Mr.619 Mr.619 is offline
 
Join Date: May 2007
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Then paste the error here?
There is only a blank page.
Reply With Quote
  #9  
Old 04-16-2008, 11:17 AM
nighthalk nighthalk is offline
 
Join Date: Oct 2005
Location: Maryland
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you put what I put in the code box in your file. There should be something if you told it to tell you errors.
Reply With Quote
  #10  
Old 04-16-2008, 11:25 AM
Mr.619 Mr.619 is offline
 
Join Date: May 2007
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, I did.

PHP Code:
<?php
error_reporting
(E_ALL E_NOTICE);
...
Reply With Quote
Reply

Thread Tools

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 11:21 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.06061 seconds
  • Memory Usage 2,295KB
  • 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
  • (2)bbcode_code
  • (5)bbcode_php
  • (3)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
  • (2)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