![]() |
I am using this hack right here: http://www.3dnewz.com/forumz/allnewspage.php but it's reporting the wrong date. Why is it doing that and how can I fix it?
|
Is this the dunamic scroll srcipt
|
Quote:
|
Just installed it TubeD, took a bit of hacking around to get it to display the way I wanted to, but it's a brilliant script, works perfectly with VB3, and does exactly what it says on the tin.
10/10 |
in last10.php ... change line 189 from
Code:
$fd = date($fdt,$threads[lastpost]); Code:
$fd = vbdate($fdt,$threads[lastpost]); |
Quote:
PHP Code:
PHP Code:
Thanks for any help, anybody can provide. |
I changed my password and I get this error on my front page
Warning: mysql_connect(): Access denied for user: 'ryanmcba@localhost' (Using password: YES) in /home/ryanmcba/public_html/last10.php on line 15 Can't open connection to MySQL I changed the password in my config.php file and I still get this. Im guessing I have to change my password some where else. What do I do? |
does this work with vb3?
|
and in answer to my own question, yes it does :) :D Nice 1.
|
|
Gutspiller,
I actually had similar problems with changing the colors, so i stripped most of the other code out and manually coded the html ... be aware of the style sheets that vB uses, and it can make your life a bit easier on the recoding. |
Quote:
Onetake |
its dosnt work with vb3 gold
or jest with me the problem its give this note Fatal error: main(): Failed opening required '/nabdhat/includes/config.php' and Warning: main(/nabdhat/includes/config.php): failed to open stream: No such file or directory but the directory is correct |
Quote:
however a similar version have been realsed for vb3 gold :) |
Quote:
I have tried searching for a similar hack for vb3, but I can't seem to find it. Would it be possible for you to provide me with a URL to the vb3 version of a similar hack? Thanks! Kirupa :) |
<a href="https://vborg.vbsupport.ru/showthread.php?t=62624" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=62624</a>
|
hi guys. for reasons i wont go into, im using an iFrame and displaying the last10.php file through as as when i tried to include it, it threw out other info on the page.
i want to set the links so that they load in the parent window. i tried adding target="_parent" to these lines.. Quote:
*edit* i worked it out :-) you cant use normal html, i had to use target=\"parent\" and then it worked :D |
installed, nice hack man.. thanks.
|
Thank you very much for this. :)
I required a simple list of recent postings rather than to display all that information. So, I changed all the HTML in the hack to suit my needs, maybe someone else will also find this useful?: PHP Code:
|
Maybe we can see an example of what your modifications do?
|
The attached file is a patched version that will fix the security bug reported here:
http://www.securityfocus.com/bid/11658/info/ http://www.securitytracker.com/id?1012197 http://www.vbulletin.com/forum/showthread.php?t=120915 https://vborg.vbsupport.ru/showthread.php?t=71772 |
Quote:
whats the vb 3.x version of this hack :) ? |
hello ,,
i just recive a message from some visitor , he said that this hack can allow others to get admin user & password if click on this link : http://www.domain.com/last.php?fsel=...6%20LIMIT%201/ the full link is : PHP Code:
is this true ? i have noi idea .. regards, |
hi,
has anybody else had problems with the links if you select to show part of the post? my links show up as [ U R L ] somedomain.com [ / u r l ] ie. in VB code so the link is not working at all :( can anybody help.... so in short does the Parses [ url ] work for everyone else???? cheers Darren |
Quote:
|
right im having a problem with this code
Code:
$query = "SELECT thread.lastpost,thread.title,thread.lastposter,thread.replycount,thread.views,user.userid,thread.threadid,thread.forumid$fsel,thread.iconid FROM thread,user$ftitle $wheresql ORDER BY thread.$ob $obdir LIMIT $maxthreads"; I assume it has something to do with Code:
// destroy some var's to prevent SQL injection (patch by Brad.loo, added 11/16/04) Code:
MySQL reported this error while trying to retreive the info: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 5' at line 1 |
Dummy Inc. here. This php stuff is killing me :(
I installed the hack on both my localserver (running winXP, Apache for Windows) and my host. Both have SSI enabled. I get this very encouraging error message: An error occurred while processing this directive Very informative. Here's how my php10config looks: ---snip---- /////////////// CONFIG /////////////// // $path = "localhost/vbulletin/includes"; // path to your config.php file (usually in the /admin directory) - NO TRAILING SLASH! Do not include "config.php" $url = "localhost/vbulletin"; // URL to your board - NO TRAILING SLASH! $urlimg = "localhost/vbulletin/images/smilies"; // URL to your board's images - NO TRAILING SLASH! $maxthreads = "10"; // max threads to show. will show less if $last24 or $last7 limits it to less results than this number $ob = "lastpost"; // set to one of the following: replycount , views , lastposter , title , lastpost (lastpost is most popular. it's the thread most recently replied to, then the second-to-last most recent, etc.) $obdir = "desc"; // which direction to sort? "desc" goes from bottom to top (9 to 1, z to a, etc.). "asc" goes top to bottom (1 to 9, a to z, etc.). if you use lastpost for $ob, leave this set to desc or it will not work correctly! $last24 = "0"; // 1 = last 24 hours; 0 = all (must set this to 0 if $last7 is set to 1) $last7 = "0"; // 1 = last 7 days; 0 = all (must set this to 0 if $last24 is set to 1) $bc1 = "#696969"; // first alt color $bc2 = "#5c5c5c"; // second alt color $hc = "#999999"; // head background color $lc = "#EEEEEE"; // link color $tc = "#FFFFFF"; // text color $f = "Verdana"; // font face $fs = "8"; // font size in points - 8 is normal, 6 is on the small side, 10 on the large side. play around with it. :) $lastposter = "0"; // show last poster? 1 = yes; 0 = no $views = "0"; // show view count? 1 = yes; 0 = no $replies = "0"; // show reply count? 1 = yes; 0 = no $lastpostdate = "1"; // show last post date and time? 1 = yes; 0 = no $len = 25; // maximum number of characters of the title to show. e.g. if the title is 60 characters and this is set to 25, only the first 25 characters of the title will be shown (followed by ...) $excludeforums = ""; // if you want to exclude a forum, put it's ID here. more than one, seperate them with commas, NO SPACES! e.g. 1,2,3,4 $includeforums = ""; // if you only want to include certain forums, put their ids here. separate more than one with commas, NO SPACES! e.g. 1,2,3,4 $showmessages = "0"; // show the text of the last post too? 1 = yes; 0 = no $lplen = "300"; // character length of last post text (if $showmessages is set to 0 this won't do anything). $tw = ""; // width of the table that shows the info, in either a percent ( e.g. 95% ) or in pixels ( e.g. 300 ). leave blank if you want the table to be sized naturally $showdate = "0"; // show the date, as well as the time? if the posts that show up in the list are likely to all be from today (or you set $last24 to "1"), you can set this to 0. if the posts are spread over multiple days, you probably want this set to 1. $cs = "0"; // this is the cellspacing. 1 makes a thin line around the cells. 0 makes no line. $showicon = "1"; // shows the posts' icon next to the post $showforumtitle = "0"; // shows the forum title (linked to that forum) next to the thread title $nb = "0"; // do you want breaks in text to appear as such? this may cause problems if there are large breaks in the text // ///////////// END CONFIG ///////////// ---- snip------ The simpletest.shtml I'm running to test is situated in the localhost/vbulletin directory and looks like this: <HTML> <HEAD> <TITLE>Untitled Page</TITLE> <META http-equiv="Content-Type" content="text/html; charset=utf-8"> </HEAD> <BODY> <!--#include file="http://localhost/vbulletin/last10.php"--> </BODY> </HTML> What do I do wrong???????? PS. Running vBulletin 3.0.5 (will update to 3.0.6 when or if I get this working) Thanking bunches in advance for any help!!!!! |
hi all,
this hack looks great, anyway I use VB 3.0.0 beta x, so the hack does not work for me :( i need to put 1-2 links of new posts of 1 forum into another forum, is there any most SIMPLE way? Many thx for help. |
How can I make this great hack work as well in VBadvance portal CMPS... what variables should I set in the default setting their for enabling this hach to work as well in my Poratl vbadvanced CMPS ?
|
this hacks awesome! thank you so much. my forum members absolutely love it.
|
How can I make this great hack work as well in VBadvance portal CMPS... what variables should I set in the default setting their for enabling this hach to work as well in my Poratl vbadvanced CMPS ?
|
Quote:
PHP Code:
|
I'm trying to put this hack into a templated CMS. Unfortunately it doesn't allow you to simply paste PHP code into the template and suffice it to say that putting it into the PHP is an incredible pain like you cannot believe. What I need to do is create an output stream that is the HTML captured so that I can put it into a templating system in a CMS like evoarticles like Miraserver has instructions to do. Has anyone been able to do this with the use of a few simple lines so that the output could be captured to a variable that is in HTML format?
|
I was trying to put this hack work for 3.0.7. but i can't manage to do that.. Do anyone have done this?
|
Quote:
Hmm I get that too....grrr But only with the 'security bugfixed' version of the last10.php file that was posted on the previous page by someone. Using last10.php from the ZIP file works fine, but is it safe to use? |
Quote:
that is what you are doing wrong As far as I know you need to put the absolute path to the file you want to include, not a web address. ie something like "/home/username/www/vbulletin/last10.php" but will obviously depend on your server |
Quote:
It gave my the "error in mysql near LIMIT 1" error. Here's how to fix it... in last10.php change this.... Code:
// let's get connected Code:
// destroy some var's to prevent SQL injection (patch by Brad.loo, added 11/16/04) Hope that hasn't defeated the point of the security fix, correct me if I am wrong please, Brad.loo or someone else! Meza |
This worked, but I am still having the issue with the fact that it is not allowing for the DBprefix I added (vb3_). It cannot find the tables. I wish someone could tell me a workaround for this. :)
|
I have a problem showing the original author of the thread. Sort by dateline instead of lastpost is working fine. MySQL queries for original author is looking fine to me. :ermm:
Script is located at http://www.dvdboard.de/news.php I used the code provided in this thread and attached my files below (removed all comments so it's easier to read). Thank you for any kind of help. configfile: PHP Code:
PHP Code:
Edit: To answer myself, look for $threads[lastposter] and replace it with $threads[postusername]. Stupid me. :) |
Quote:
|
All times are GMT. The time now is 09:57 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|