vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Logician NEWS: Drag Any Message to Your Main Page (https://vborg.vbsupport.ru/showthread.php?t=39278)

gmarik 05-27-2003 05:02 AM

Logician only one remark: please change the design of http://www.turkhukuksitesi.com/, if you need help - I could help you ... :o)

Logician 05-27-2003 05:47 AM

Quote:

Today at 09:02 AM gmarik said this in Post #121
Logician only one remark: please change the design of http://www.turkhukuksitesi.com/, if you need help - I could help you ... :o)
hehe in my to do list for months but well my to-do list is long and I'm tight in time. But it is no big deal, it is kind a "private" site, membership requires approval, members do value functionality and content, not the visual look, so do I.. ;)

Mr. Brian 06-06-2003 09:40 PM

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.

austinspace 06-07-2003 02:16 AM

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

Hobbes 07-20-2003 02:06 AM

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

soccerclue 07-20-2003 02:13 AM

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.

Logician 07-20-2003 07:53 AM

Quote:

Today at 06:13 AM soccerclue said this in Post #126
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.

vblite is a portal that replaces your site home page. This hack is a news script that only compiles posts from your DB that you marked as news. You can use that compiled news in your homepage or in another page. This hack does not have any other features. But vblite has other add-ons for your home page like calendar, show post count etc.

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:

Is it possible to drag only certain messages in the main page? Or can it be possible to drag the latest 5 posts?
If you want to drag latest X posts as news, try others news hacks, all can do it.

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.

Solice 07-20-2003 04:19 PM

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.

Logician 07-20-2003 05:04 PM

Quote:

Today at 08:19 PM Solice said this in Post #128
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.

1- Check you installed the hack correctly
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.

Solice 07-20-2003 05:12 PM

1 - checked
2 - checked
3 - checked

I've looked at everything twice and I can't figure out whats wrong :(

Logician 07-20-2003 05:29 PM

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?

Solice 07-20-2003 05:31 PM

yea, i made one post with it in the post and one with it in the subject...

Logician 07-20-2003 05:35 PM

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.

Solice 07-20-2003 05:47 PM

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?

Logician 07-20-2003 05:55 PM

please send access details via email or PM

Logician 07-20-2003 06:30 PM

Quote:

1 - checked
2 - checked
3 - checked

I've looked at everything twice and I can't figure out whats wrong
it is working ok.

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.

SVTBlackLight01 07-21-2003 06:47 PM

Great hack!

I got this to display on my home page fine. The only thing is that for some reason it underlines the posts I'm pulling from. I'm using [news][/news] and [intro][/intro]

An example can be seen here.

test page

I've gone over everything and can't seem to find what might be causing it.

Logician 07-21-2003 08:27 PM

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

SVTBlackLight01 07-21-2003 10:26 PM

Great!! That fixed it!

--> clicks install :D

soccerclue 08-11-2003 11:59 PM

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.

SVTBlackLight01 08-14-2003 04:10 AM

Quote:

08-12-03 at 01:59 AM soccerclue said this in Post #140
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.
I would be interested in this as well.

soccerclue 08-14-2003 05:00 AM

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?

SVTBlackLight01 08-14-2003 05:16 AM

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.

soccerclue 08-14-2003 10:34 AM

That's a nice site. Please check your PM also.

unit3029 08-16-2003 10:44 PM

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?

digitalJE5U5 09-07-2003 06:46 PM

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

digitalJE5U5 09-07-2003 06:51 PM

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

Logician 09-07-2003 06:54 PM

it is because of error reporting settings of your PHP installations. Adding:
PHP Code:

error_reporting(7); 

(to the hack code at the beginning of it just one line below <?php)
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.. :)

digitalJE5U5 09-07-2003 07:10 PM

I really appreciate the quick reply! Hack rocks, and support rocks!

Thanks again.
/DJ

Frzzy 09-08-2003 07:35 PM

hey hey... i don't agree...

the notice say that these constant are undefined, so it will assume their name...

look at this...

Quote:

$cekilecek_thread_id=$news[$i][threadid];
and this...

Quote:

Notice: Use of undefined constant threadid - assumed 'threadid' in c:\inetpub\wwwroot\moodle\newsconfig.php on line 64
the parser assumed [threadid] is ['threadid'] isn't it? why just replace [threadid] with ['threadid']... the notice sure will gone...

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]

^_^

Frzzy 09-08-2003 09:00 PM

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?

copyninja 09-18-2003 10:56 PM

looks like a great script, and i was looking for sumthin as goos as this.. going to install it right now!

lasto 09-18-2003 11:02 PM

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

copyninja 09-18-2003 11:49 PM

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

lasto 09-18-2003 11:54 PM

have u ran the queries m8 as it seems its looking for a table that dont exist.

copyninja 09-18-2003 11:58 PM

um.. since i dont know how to do that ... i dont think i ran queriers...

lasto 09-19-2003 12:09 AM

give me 2 mins while i download hack and see what needs to be done m8

copyninja 09-19-2003 12:10 AM

ok

lasto 09-19-2003 12:12 AM

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

copyninja 09-19-2003 12:16 AM

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
  • Page Generation 0.01392 seconds
  • Memory Usage 1,833KB
  • 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
  • (1)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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