![]() |
Logician only one remark: please change the design of http://www.turkhukuksitesi.com/, if you need help - I could help you ... :o)
|
Quote:
|
Seem i'm quite a bit outdated, till now then I know got such hack from you.
Too bad as I already got vbHome (lite) installed.. anyway, it's still a nice one. |
The link to the download is broken.
From: vBulletin.org Forum > Hacks Database > Major Additions > Logician NEWS: Drag Any Message to Your Main Page I'm interested in seeing if this add-on will allow me to send a new post in certain forums to an email address automagically. Mark |
well...
I have two suggestions for add-ons. One, is the ability to add a picture to the news, so when you post you can make a tab like [newsimage]http://www.blah.com/image.gif[/newsimage] and that image will not be displayed on the forum post, but it will be displayed on the main page where the news is (some new variable can do that) The other is the ability to make it optional to put each news post into a category, so for example, if I wanted to sort my news by console, I could stick a tag like [newscategory]PS2[/newscategory]. Then you can be able to show only news from each category, or you can show all news. srry if that dun make sense...hehe |
May I know what's the difference between this hack and vbLite? I also installed vbWebtemplate also..and I think the combination of vbWebtemplate and this hack can do what vbLite does? Correct me if I am wrong.
Is it possible to drag only certain messages in the main page? Or can it be possible to drag the latest 5 posts? Can this be hack be integrated with Webtemplate? If can, I might consider to install this one also. |
Quote:
Webtemplates hack can be used together with this hack only if you are using them in different pages. Say you can have this hack drag news to your main page and use webtemplates in other site pages. But they can not be in the same page. Quote:
This is different because this will allow you to drag any message from any boards. You just need to mark it as news and it apprears in your home page. |
I hate to post this here...
well first off, thank you for making such great add-ons logician... im currently setting up forums with your webtemplates add-on and its excellent... but anyway... I set this up according to the directions, I've tried making a couple of news test posts... but nothing shows up on the main page... www.solicenet.com/index2.php - main page, theres a lot of php lines in it, I don't know if maybe thats interfeering with the script? www.solicenet.com/main/ - forums If anyone could assist me with this, it would be greatly appreciated. |
Quote:
2- Make sure you marked a post as news correctly eg. [news]This is a News Title[/news] 3- Make sure configurations in options file does not clash with your news. For instance if you set a forum id for news, you can not post news in a different forum. Check phpheader.php file carefully. |
1 - checked
2 - checked 3 - checked I've looked at everything twice and I can't figure out whats wrong :( |
it is the post itself that should include tag [news]This is a News Title[/news] not its title, you are aware of this right?
|
yea, i made one post with it in the post and one with it in the subject...
|
well I'm not sure how I can help you more. This hack is an old one so tested for a long time by different users. Thus I believe that it should be something related to you, not the hack itself. But if you think that it is a hack bug and want me to debug, I can do it if I'm granted admin access/FTP access/PHPmyadmin access to your server.
|
Well it may be my server or something, but if you would be willing to debug, i think it would be worth the try and I can give you temporary access, do you have ICQ, AIM, MSN or Yahoo?
|
please send access details via email or PM
|
Quote:
Your mistakes were: 1- I couldnt find [news]news title [/news] tag in any of your messages. When I added one, it is dragged to the main page. 2- You didnt configure $news_posters variable in the options file correctly. You have to enter news posters USERNAMEs there to authorize them access. I added your username (Stellice) and it is all ok now.. You can remove my access to your board. |
|
Try to change these 2 vbcodes like this and lets see if it will work
vB Code tag: news vB Code replacement: & nbsp; vB Code tag: intro vB Code replacement: & nbsp;{param} (Remove space between & and nbsp; ) |
Great!! That fixed it!
--> clicks install :D |
I would like to know if we drag a post to the main page, can we add picture for that post in the main page or do we need to edit the post and add the picture in order to have the picture displayed in the main page? I would like to install this one if it can have picture in it.
|
Quote:
|
SVTBlackLight01, I visited your forum and saw that you got a great forum and the nice news in front page with picture. Are you attaching the picture manually using HTML editor? Is the news using this hack?
|
Yes, the news section on the front page is manually edited. I had switched to this hack for a while because I liked having the views, posts etc. I wanted to have the pictures, though so I switched back to what I have now.
|
That's a nice site. Please check your PM also.
|
great hack, will it work on vb3?
/me tries but oops we get a problem mySQL error:Table 'deadlyf_PUB.post' doesn't exist which it clearly does, is there a way to sort this or will this not work with vb3? |
Hack looks great. However Im having a small problem?
Im getting these error messages: Notice: Use of undefined constant threadid - assumed 'threadid' in c:\inetpub\wwwroot\moodle\newsconfig.php on line 64 Notice: Use of undefined constant lastpost - assumed 'lastpost' in c:\inetpub\wwwroot\moodle\newsconfig.php on line 67 Notice: Use of undefined constant lastposter - assumed 'lastposter' in c:\inetpub\wwwroot\moodle\newsconfig.php on line 68 Notice: Use of undefined constant forumid - assumed 'forumid' in c:\inetpub\wwwroot\moodle\newsconfig.php on line 69 Notice: Use of undefined constant open - assumed 'open' in c:\inetpub\wwwroot\moodle\newsconfig.php on line 70 Notice: Use of undefined constant views - assumed 'views' in c:\inetpub\wwwroot\moodle\newsconfig.php on line 71 Notice: Use of undefined constant replycount - assumed 'replycount' in c:\inetpub\wwwroot\moodle\newsconfig.php on line 72 etc. The new table loads, but is preceded by those errors. Any help? Thanks, /DJ |
BTW heres lines 52-72 if that helps:
$news = array(); while($tableLine = mysql_fetch_assoc($cekilen_news)) { $tmpTableArray = array($tableLine); $news = array_merge($news, $tmpTableArray); } } // Getting thread information for news articles for ($i=0; $i<$news_number; $i++) { $cekilecek_thread_id=$news[$i][threadid]; $cekilen_thread=mysql_query("select lastpost, lastposter, forumid, open, views, replycount from thread where threadid=$cekilecek_thread_id"); if (mysql_error()) {echo "mySQL error:"; echo mysql_error(); exit;} $news[$i][lastpost]=mysql_result($cekilen_thread,0, "lastpost"); $news[$i][lastposter]=mysql_result($cekilen_thread,0, "lastposter"); $news[$i][forumid]=mysql_result($cekilen_thread,0, "forumid"); $news[$i][open]=mysql_result($cekilen_thread,0, "open"); $news[$i][views]=mysql_result($cekilen_thread,0, "views"); $news[$i][replycount]=mysql_result($cekilen_thread,0, "replycount"); //getting forum name |
it is because of error reporting settings of your PHP installations. Adding:
PHP Code:
should fix the problem.. Or you can ask your server admin and make him disable NOTICE errors in php.ini but my solution is easier.. :) |
I really appreciate the quick reply! Hack rocks, and support rocks!
Thanks again. /DJ |
hey hey... i don't agree...
the notice say that these constant are undefined, so it will assume their name... look at this... Quote:
Quote:
btw, disable the error on production site is the general rule, instead use an error log... but let's think... if somewhere in the app, there's some constant named [threadid] defined before this code line... i'm sure it will mess up the result... every parser error messages are bad... [notice] is just not as bad as [error] ^_^ |
clicked install button...
great script... thank you... a lil note... i think the logician_query.php script is not needed after advanced install... maybe no need at all... why do you don't tell everyone to remove it after install? |
looks like a great script, and i was looking for sumthin as goos as this.. going to install it right now!
|
Logician i hope u see this as need some info
I use a portal system where everything has a set place in boxes etc - but in these boxes i can enter any html code i want and it works. Now if i install this hack - i know u can mark certain posts to be shown on a front page but what commands are used on the front page to actually call this in ?? Would they go in an html box etc |
hm.. i installed it but i get this error on the main page where the news is supposed to be...
"mySQL error:Table 'db-name.post' doesn't exist" .. db-name = MY Database .. |
have u ran the queries m8 as it seems its looking for a table that dont exist.
|
um.. since i dont know how to do that ... i dont think i ran queriers...
|
give me 2 mins while i download hack and see what needs to be done m8
|
ok
|
ok in the zip is a file called logician_query.php
you need to edit it with the relevant details ## Username and password to log onto your MYSQL database server $dbusername='root'; //MYSQL username $dbpassword=''; //MYSQL password ## Name of the MYSQL database that you want to access. $dbname='test'; so basically these are the same as you use for your vbull board so is quite easy. so once u edited it - upload it to the admin folder and then run it forums/logician_query.php and it will add the tables for you. Also dont forget to edit phpheader with same details m8 |
Ill try it but since i did the basic instalation ... it says i dont need to upload the logican_query.php ... thats what it says in the installation file...
|
All times are GMT. The time now is 12:47 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:
|