vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   New Posting Features - New Threads on Non VB page (https://vborg.vbsupport.ru/showthread.php?t=176297)

nighthalk 04-15-2008 10:00 PM

New Threads on Non VB page
 
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.

SUSN 04-16-2008 09:38 AM

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.

nighthalk 04-16-2008 09:53 AM

If I had the blog system then I could do it but I don't even know the tables etc.

SUSN 04-16-2008 10:54 AM

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.

Mr.619 04-16-2008 10:59 AM

Does not work on my site. (blank page)

nighthalk 04-16-2008 11:03 AM

Quote:

Originally Posted by SUSN (Post 1492028)
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_

nighthalk 04-16-2008 11:04 AM

Quote:

Originally Posted by Mr.619 (Post 1492030)
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.

Mr.619 04-16-2008 11:11 AM

Quote:

Then paste the error here?
There is only a blank page.

nighthalk 04-16-2008 11:17 AM

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.

Mr.619 04-16-2008 11:25 AM

Yes, I did.

PHP Code:

<?php
error_reporting
(E_ALL E_NOTICE);
...



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.01135 seconds
  • Memory Usage 1,747KB
  • 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
  • (2)bbcode_code_printable
  • (5)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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