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);
...


nighthalk 04-16-2008 11:33 AM

What type of server are you running this on?

Can you send me the link to the file.

SUSN 04-16-2008 12:05 PM

Quote:

Originally Posted by nighthalk (Post 1492032)
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 :D

Cheers :D

nighthalk 04-16-2008 12:11 PM

Quote:

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

Cheers :D

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

:D

Meatshield 04-16-2008 01:11 PM

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

nighthalk 04-16-2008 01:24 PM

Quote:

Originally Posted by Meatshield (Post 1492115)
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.

nighthalk 04-17-2008 07:13 PM

Quote:

Originally Posted by Mr.619 (Post 1492050)
Yes, I did.

PHP Code:

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


Did you ever get this working?

Triky 04-19-2008 07:09 PM

Great!

Jack Jones 04-22-2008 10:27 PM

It all installed OK but the links are broken. See:
http://www.stereo.net.au/newstopics.inc.php

MPDesignZ 04-25-2008 05:28 AM

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.

Triky 04-29-2008 10:59 AM

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?

xparticle 04-30-2008 02:12 AM

I Installed it but gettng this error

-------------------------------------------------
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /homepages/19/klh154523/htdocs/klh/newstopics.inc.php on line 53

Who is the hottest celeberity today!
Posted on 02/18/08 03:07 PM
-------------------------------------------------

Also the links are broken, its only showing
http://www.........../gossip/showthread.php?p=

Who is the hottest celeberity today!
Posted on 02/18/08 03:07 PM

Nassou 05-02-2008 01:48 PM

Quote:

Originally Posted by xparticle (Post 1502934)
I Installed it but gettng this error

-------------------------------------------------
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /homepages/19/klh154523/htdocs/klh/newstopics.inc.php on line 53

Who is the hottest celeberity today!
Posted on 02/18/08 03:07 PM
-------------------------------------------------

Also the links are broken, its only showing
http://www.........../gossip/showthread.php?p=

Who is the hottest celeberity today!
Posted on 02/18/08 03:07 PM

Yes :confused:

I have the same prob , i think there are a bug in a script !

nighthalk 05-03-2008 07:37 PM

There was a typo in the script redownload. I had a extra _ in it.

Nassou 05-03-2008 08:17 PM

Quote:

Originally Posted by nighthalk (Post 1507219)
There was a typo in the script redownload. I had a extra _ in it.

Yes , now it work correctly !

it was the probleme ?

Jack Jones 05-04-2008 02:32 AM

Quote:

Originally Posted by Jack Jones (Post 1496896)
It all installed OK but the links are broken. See:
http://www.stereo.net.au/newstopics.inc.php

I'm still patiently waiting a response to my problem above.

Nassou 05-04-2008 04:54 AM

Quote:

Originally Posted by Jack Jones (Post 1507602)
I'm still patiently waiting a response to my problem above.

Yeah , r?install it , get the new file posted by nighthalk !

and all work correctly ;)

nighthalk 05-04-2008 09:32 PM

Quote:

Originally Posted by Jack Jones (Post 1507602)
I'm still patiently waiting a response to my problem above.

I fixed the file. I posted above that I fixed it.

Jack Jones 05-05-2008 10:14 AM

Thankyou very much. All fixed :)

Big Barry 05-11-2008 04:30 PM

I've found a fault with this, it is picking up the latest repliers name to the threads and not the thread creators name. This in turn is causing items to get bumped to the top of the box when someone replies to the threads! Is there any way of fixing this?

thanks

Barry

Big Barry 05-13-2008 01:40 PM

Anything?

Nassou 05-15-2008 08:27 AM

Quote:

Originally Posted by Big Barry (Post 1516204)
I've found a fault with this, it is picking up the latest repliers name to the threads and not the thread creators name. This in turn is causing items to get bumped to the top of the box when someone replies to the threads! Is there any way of fixing this?

thanks

Barry

Yes and other bug......

To try SQL INJECTION VUL maybe... ;)

rooban12 06-15-2008 05:03 AM

hello
It jst showing blank page
I dont know why
could someone help me please
http://www.lovetack.com/newstopics.inc.php


All times are GMT. The time now is 03:28 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.01265 seconds
  • Memory Usage 1,813KB
  • 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
  • (6)bbcode_php_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (32)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete