vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - vbNews by Mary (https://vborg.vbsupport.ru/showthread.php?t=144166)

MaryTheG(r)eek 04-05-2007 10:00 PM

vbNews by Mary
 
vbNews
News Publishing & Book Library System
by Mary
http://www.MadeByMary.com

REMOVED BY THE AUTHOR

MaryTheG(r)eek 04-06-2007 05:06 PM

.......................

lovelypk 04-06-2007 05:25 PM

another great hack by Mary :)

DJ XtAzY 04-06-2007 05:30 PM

Wow the screenshots looks this is a cms ... nice nice

Sofia 04-06-2007 06:12 PM

Thanks a lot for this hack, Mary :) Great hack ;)

projectego 04-06-2007 06:35 PM

/me clicks install

RichieBoy67 04-06-2007 07:02 PM

I love it!! I cannot wait to get this installed.. Thanks for your hard work. Looks like it is worth all of the many hours I am sure went into it....

Thank you Mary!! :)

Wulfnoth 04-06-2007 07:47 PM

A very cool hack.
But I have a little problem. If I choose to save the css-stylesheet in vbulletin_css the vbnews.php dosn't works correct. Is their any soluccion for this problem?

Sorry for my bad english, but I had slept in school for the last 10 years... ;)

Antivirus 04-06-2007 10:09 PM

wow - looks really cool, gonna check this out. thanks :)

elmati 04-07-2007 01:48 AM

Quote:

Originally Posted by Wulfnoth (Post 1221339)
A very cool hack.
But I have a little problem. If I choose to save the css-stylesheet in vbulletin_css the vbnews.php dosn't works correct. Is their any soluccion for this problem?

Sorry for my bad english, but I had slept in school for the last 10 years... ;)

same issue :(

font color turned white and some styles dont work...

MaryTheG(r)eek 04-07-2007 04:25 AM

Quote:

Originally Posted by Wulfnoth (Post 1221339)
A very cool hack.
But I have a little problem. If I choose to save the css-stylesheet in vbulletin_css the vbnews.php dosn't works correct. Is their any soluccion for this problem?

Sorry for my bad english, but I had slept in school for the last 10 years... ;)

I know how to solve this problem but I'm still trying to find where the variable $style[css] is hidden:cool: This variable when css is in filesystem adds this line of code at header:
Code:

<link rel="stylesheet" type="text/css" href="clientscript/vbulletin_css/style-2097d366-00001.css" id="vbulletin_css" />
This link must be change to:
Code:

<link rel="stylesheet" type="text/css" href="http//www,domain.com/forums/clientscript/vbulletin_css/style-2097d366-00001.css" id="vbulletin_css" />
When I'll find it, I'll be back:D Please note that this applies only to those installations where vbnews.php is not on your forum directory.

X Quiz 04-07-2007 04:53 AM

Coooool, I like it!!

I will try it today!!

*install*

calorie 04-07-2007 05:03 AM

Quote:

Originally Posted by MicroHellas (Post 1221635)
... but I'm still trying to find where the variable $style[css] is hidden...

The $style variable is set near the style_fetch hook so you could use the next hook:
Code:

$style['css'] = str_replace('clientscript', $vbulletin->options['bburl'] . '/clientscript', $style['css']);

Rican 04-07-2007 05:04 AM

nice hack... however, I am getting this error when trying to upload an image with an article:

Warning: move_uploaded_file(./vbnews/tmp/phpZNIVHh.jpg): failed to open stream: No such file or directory in /vbnews.php on line 444

Warning: move_uploaded_file(): Unable to move '/tmp/phpZNIVHh' to './vbnews/tmp/phpZNIVHh.jpg' in /vbnews.php on line 444

help?

MaryTheG(r)eek 04-07-2007 05:15 AM

Quote:

Originally Posted by Rican (Post 1221653)
nice hack... however, I am getting this error when trying to upload an image with an article:

Warning: move_uploaded_file(./vbnews/tmp/phpZNIVHh.jpg): failed to open stream: No such file or directory in /vbnews.php on line 444

Warning: move_uploaded_file(): Unable to move '/tmp/phpZNIVHh' to './vbnews/tmp/phpZNIVHh.jpg' in /vbnews.php on line 444

help?

Have you CMOD 777 dierectories /photos, /tmp (under vbnews) and /thumbs under /vbnews/photos ?

Rican 04-07-2007 05:32 AM

Yeah, even double checked to make sure I did...

MaryTheG(r)eek 04-07-2007 05:41 AM

Quote:

Originally Posted by Rican (Post 1221669)
Yeah, even double checked to make sure I did...

That's 100% error message of file permissions to write. Please note that even if I post it here just yesterday the mod is already in 1.2.0 version which means that has been tested a lot and all similar errors were depending on file permissions.
Have you follow the directory structure right? eg:
vbnews.php
and directory vbnews must be on the same level. Also variables for paths and URL in vbnews.php have been setup correctly?

Rican 04-07-2007 05:46 AM

alright mate, got it sorted... i had moved the vbnews.php file and forgot to update the urls in the file... :)

now, i just gotta get $40 so i can embed some videos haha...

MaryTheG(r)eek 04-07-2007 06:08 AM

Quote:

Originally Posted by calorie (Post 1221650)
The $style variable is set near the style_fetch hook so you could use the next hook:
Code:

$style['css'] = str_replace('clientscript', $vbulletin->options['bburl'] . '/clientscript', $style['css']);

Thank you Calorie for pointing me to the right way. I always appreciate your help. Actually you're the only one that replies to me.

Maria

MaryTheG(r)eek 04-07-2007 06:13 AM

Quote:

Originally Posted by Wulfnoth (Post 1221339)
A very cool hack.
But I have a little problem. If I choose to save the css-stylesheet in vbulletin_css the vbnews.php dosn't works correct. Is their any soluccion for this problem?

Sorry for my bad english, but I had slept in school for the last 10 years... ;)

There are 2 ways to solve this problem:
  • Open product-vbnews.xml and at after line 1532 add:
Code:

<plugin active="1" executionorder="10">
  <title>Fix CSS Path</title>
  <hookname>cache_templates</hookname>
  <phpcode><![CDATA[
        $style['css'] = str_replace('href="clientscript', 'href="' . $vbulletin->options['bburl'] . '/clientscript', $style['css']);
      ]]></phpcode>
</plugin>

....or....
  • Download again zip file and re-import product-vbnews.xml . Please dont forget to check "Overwrite".
Zip File Updated

Many thanks to Calorie for pointing me to the right way.

MaryTheG(r)eek 04-07-2007 06:20 AM

Quote:

Originally Posted by Rican (Post 1221676)
now, i just gotta get $40 so i can embed some videos haha...

There is a trick to insert at least YouTube video. In Editor's toolbar there is a checkbox. Click it and you'll be turn to HTML code. There you can add HTML code providing by sites like YouTube.

Please note that restriction in use of HTML Editor, have not be placed by me, but from it's author side. That's normal as Editor is a commercial one (costs $49) and is not fair to be including in free scripts.

As for your comment to buy it so you can able to have video, I prefer to buy it because you believe that its a good piece of software and that amount will help me continuing developing more mods.

Cheers
Maria

Gsmdenis 04-07-2007 07:10 AM

hope release the Commercial version

Cagonni 04-07-2007 08:34 AM

you rock :D

Mr_Snob 04-07-2007 10:52 AM

I love you Mary :D:p

MaryTheG(r)eek 04-07-2007 01:21 PM

Quote:

Originally Posted by Gsmdenis (Post 1221719)
hope release the Commercial version

Do you mean to release the Commercial for free??:D

SkyCatcher 04-07-2007 02:14 PM

hmm... I'm using 3.6.3 on my test board and I get a mysql error. The usergroupid variable is null for some reason. This is when trying to publish a new article...

from: /vbnews.php?do=edit

Code:

Invalid SQL:
SELECT userid FROM user
    WHERE userid=1 AND (usergroupid= OR FIND_IN_SET('', membergroupids));

MySQL-Fehler : 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 'OR FIND_IN_SET('', membergroupids))' at line 2

Any thoughts?

MaryTheG(r)eek 04-07-2007 02:45 PM

Quote:

Originally Posted by SkyCatcher (Post 1221900)
hmm... I'm using 3.6.3 on my test board and I get a mysql error. The usergroupid variable is null for some reason. This is when trying to publish a new article...

from: /vbnews.php?do=edit

Code:

Invalid SQL:
SELECT userid FROM user
    WHERE userid=1 AND (usergroupid= OR FIND_IN_SET('', membergroupids));
 
MySQL-Fehler : 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 'OR FIND_IN_SET('', membergroupids))' at line 2

Any thoughts?

What's your PHP and MySQL versions?

4x4 Mecca 04-07-2007 04:47 PM

When I go to your site, and click on the vbnews image on the right to see a sample page, I get an error. Do you have an active demo site?

MaryTheG(r)eek 04-07-2007 05:24 PM

Quote:

Originally Posted by 4x4 Mecca (Post 1221979)
When I go to your site, and click on the vbnews image on the right to see a sample page, I get an error. Do you have an active demo site?

Demo yes. More information not as I pefered to spend time for releasing the Free version plus the 2 updates. You can find the demo at:
http://www.madebymary.com/vbnews.php

SkyCatcher 04-07-2007 06:18 PM

Quote:

Originally Posted by MicroHellas (Post 1221920)
What's your PHP and MySQL versions?


PHP v4.4.0

MySql v4.1.13

b65ran 04-07-2007 06:37 PM

I love this. Thanks for sharing. I am having some problems and questions.
1. My latest articles are not showing in vbnews.php
2. How do I add articles under Editor's Choice and Important News sections.

Thanks

TheBlackPoet 04-07-2007 06:49 PM

mary... you kick ass baby!!!!! imma buy this hack as soon as i got the money!!!!! your work is phenomenal for forums....

MaryTheG(r)eek 04-08-2007 09:10 AM

Quote:

Originally Posted by b65ran (Post 1222086)
I love this. Thanks for sharing. I am having some problems and questions.
1. My latest articles are not showing in vbnews.php
2. How do I add articles under Editor's Choice and Important News sections.


Thanks

Hello,

1.- Latest news, do you mean the listing in category's blocks (down of the page)? If yes that's strange. By mistake in my first release I had them ordering oldest first, so it was logical that they didn't appeared. But from version 1.1.0 I change the ordering to newest first. Please check that in case that approval is on, does these articles have been approved? Only active (approved) articles are appearing there.

2.- With 2 ways. If you have approve articles on, then at the bottom of the article there are checkboxes for all options. Second way is when you read (at site frontend) the article, there are options (checkboxes) on the left side.

b65ran 04-08-2007 02:27 PM

I checked the box to show it in the frontpage and editor choice. But it doesn't show that there for some reason. I dont know what I did wrong.

Thanks

MaryTheG(r)eek 04-08-2007 02:34 PM

Quote:

Originally Posted by b65ran (Post 1222677)
I checked the box to show it in the frontpage and editor choice. But it doesn't show that there for some reason. I dont know what I did wrong.

Thanks

Have you approved the articles? By default the option "Approve articles" is On. So you must approve them at admicp->vbNews->Approve listing
If it dosent solve the problem I wand the url of your installation to give a look.

b65ran 04-08-2007 02:56 PM

I sent you my forum info to your pm. Please take a look.

Thanks

Doc31 04-08-2007 04:24 PM

This looks cool , might have to have a look at it tomorrow , Great stuff :)

Jessi 04-09-2007 10:30 AM

OK, So how do you pick a news editor or how does someone become one? Ive looked through everything.
And can I remove the icons from the editor that says,"Feature only available in paid version". I would like members to try it before I cough up $42.50. Or change it to the VB's editor as it has more working functions compared to the free version of "VBNews"
I can tell you right now, if someone does a news article and has to jump through hoops figuring out which buttons actually work without getting, "Feature only available in paid version", it won't be used and it won't be worth getting the paid version as by that time it will be completely ignored.

Thanks for any input.

MaryTheG(r)eek 04-09-2007 01:41 PM

Quote:

Originally Posted by Jessi (Post 1223216)
OK, So how do you pick a news editor or how does someone become one? Ive looked through everything.

Who should become editor is not controling by vbNews. Which usergroup can post news in specific category is what it's controling. eg You can have a usergroup "Politics" whose members can post on "Politics", another usergroup "Sports" which can post in "Sports" etc. Who will become members in these special usergroups its up to you.

Quote:

Originally Posted by Jessi (Post 1223216)
And can I remove the icons from the editor that says,"Feature only available in paid version". I would like members to try it before I cough up $42.50.

HTML editor is a 3nd party commercial product and I got the authority to include it in the Free version with disabled uploading: Audio/Video. It's author didn't told anything about removing buttons, so I think that there is no problem to remove them.

Quote:

Originally Posted by Jessi (Post 1223216)
Or change it to the VB's editor as it has more working functions compared to the free version of "VBNews"

Are you kidding?:rolleyes: Can you list some of the features that vbEditor has and the HTML editor (even in the Free version dosen't). eg Has vbEditor ability to design special pages by use of tables, or does vbEditor supports page breaks?

Quote:

Originally Posted by Jessi (Post 1223216)
I can tell you right now, if someone does a news article and has to jump through hoops figuring out which buttons actually work without getting, "Feature only available in paid version", it won't be used and it won't be worth getting the paid version as by that time it will be completely ignored.

Only 3 buttons doesn't work. Audio upload, Video Upload and YouTUBE which actually is my own custom addon. So, where you found tha "had to jump throught hoops".?

And just for your information, as I dont want you to waste your time, except that it's a bit complicated to change editor, you must keep in mind:
  1. That changing editor you're loosing combatibility with the commercial version, in case that someday you'll decide to upgrade.
  2. Prepare yourself for many crashes, as I'm using editor's functions throught my code.
  3. Last but not least, by changing the editor, you're breaking the rules of my copyright, which clearly states that the mod "can't reproduced"

dizzy100 04-09-2007 02:39 PM

Quote:

Originally Posted by MicroHellas (Post 1223288)

Only 3 buttons doesn't work. Audio upload, Video Upload and YouTUBE which actually is my own custom addon. So, where you found tha "had to jump throught hoops".?

Mmmm not entirely correct here mary. Heres the buttons that flag up as disabled in the free version
  • Text Color
  • Fill
  • Create Image (fundamental to any article)
  • Create Flash
  • Create Video
  • Create Anchor
  • Paste From Word
  • Insert Char
  • Create Table (rendering all the other table buttons completely useless)
  • Find&Replace
The editor is so crippled its a joke to be honest and why include both a video block and a video tick box if the free version can't use either ?

Its a valiant attempt but its just too crippled i think. You can't even include a good sized picture in the news body and have to approve everything (even as admin). Add to that that featured articles and promotions to the front pages are incredibly confusing, having to disable one for the others to replace and it all works to something that's insanely strange and difficult to use.

It has huge potential and the front end user interface is nice but needs some refinements.

Why cant the last 3 articles posted in a category be the featured articles on those category locations ? Also the last posted should be the featured main article or better still, rotate the last 3 there so its constantly changing as the featured article. This way you take away the work of having to do it manually whilst still retaining a great user front end.

Also, what is the forum option for per category ? I enabled that and assumed it posted a thread to the forum within, but nothing appears, Very confused.

BTW, i also, to be frank here, much prefer the functionality of the vbulletin editor. The members are used to that and introducing a second system just confuses them.

What has stopped me buying any of your hacks is the constant use of a third party editor. I think, if your going to market at commercial you should use the built in vbulletin editor or if your really against that, have a switch toggle for both.


All times are GMT. The time now is 05:07 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.01593 seconds
  • Memory Usage 1,849KB
  • 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
  • (7)bbcode_code_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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