View Full Version : New Posting Features - New Threads on Non VB page
nighthalk
04-15-2008, 10:00 PM
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.
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.
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.
I'm getting an error off of line 46
warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/XXXXXXX/XXXXXXX/newstopics.inc.php on line 46.
Line 46 is:
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
I'm getting an error off of line 46
warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/XXXXXXX/XXXXXXX/newstopics.inc.php on line 46.
Line 46 is:
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
Does not work on my site. (blank page)
can you put this just below the <?php tag at the top?
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
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
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.
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
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
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
Yes, I did.
<?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:
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. (http://localhost/test/forum/showthread.php?p=)
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
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
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
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
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
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
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
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.