vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - vbF Journal by vbFreelancers (https://vborg.vbsupport.ru/showthread.php?t=167531)

vbFreelancers 01-10-2008 10:00 PM

vbF Journal by vbFreelancers
 
Removed by the Author
due to luck of free time to support it.
------------------------------------------------------------



vbF Journal
Article Publishing Module
by



1.- Credit goes to:
  1. MicroHellas, as this module has developed by her.
  2. Olympic, for his corrections to secure this module according to vB's standards.
2.- General information
  • This module is mainly for use for Article posting with 1 photo. Unlike vbNews and vbArticles which are using 3nd party HTML editor, vbJurnal uses vB's Editor.
  • Editors choice Articles
  • Breaking Articles
  • Important Articles
  • RSS per category
  • Newest Articles by category
  • Most Active Authors (according to the number of post Articles)
  • All these blocks can be turn off in case that you don't need them, by setting 0 as the number of appearing articles
  • All these blocks are following the active category. eg Breaking news in main page shows articles from all categories. Breaking news while you're in X category shows breaking news from X category only.
3.- Installation
  1. Open vbjournal.php file with a text editor like notepad. At line 9 you'll find a variable: $mydateformat = 'm/d/Y'; This is set to default US date format. You can change it according to your country's setting eg. for UK d/m/Y or for other European countries to d.m.Y or d-m-Y. You can also add the time if you want. eg 'd/m/Y H:ia' this will give 20/8/2007 14:15pm. The reason that I didn't used the internal vbdate function is because that some users from Scandinavian countries, Spain and France had problems with vbdate().
  2. Upload the contains of /forum directory to the same directory where you've installed vBulletin. Please note that if you've another vbF module already installed, you'll get a message for file "loading.gif" that already exists. Don't worry. You can skip or overwrite it as it's the same image.
  3. CMOD following directories to 777
    1. /photos (inside vbjournal directory)
    2. /tmp (inside vbjournal directory)
    3. /thumbs (inside vbjournal/photos directory)
  4. For security reasons backup your database AND turn your board off
  5. Check at your AdminCP->vBulletin Options->Plugin/Hook System that Plugin system is enabled.
  6. From your AdminCP->Plugin System->Manage Products choose Add/Import Product and import the product: product_vbjournal.xml
  7. If you want to add a link to your nav bar then you must edit the NAVBAR template:
    1. Search For:
      Code:

      <td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
    2. Add Below:
      Code:

      <td class="vbmenu_control"><a href="vbjournal.php$session[sessionurl_q]">Journal</a></td>
      ....or use any other word you want.
  8. By default none usergroup has permissions to use vbjournal, so you need to give permissions to any group. Goto AdminCP->Usergroups->Usergroup Manager and edit any usergroup you like to give permissions.
  9. In your adminCP, under vbJournal, choose vbJournal options and configure it depending on your needs. If you can't see vbJournal's menu, press F5 to refresh the page, or logout and login again to your admincp.
  10. Now, you can access vbJournal at: www.youdomain.com/vb_installation/vbjournal.php
4.- Copyright


The script cannot be redistributed, reproduced, or published in any way. Modifying this
script and sharing or publishing your modification A-N-Y-W-H-E-R-E (including here)without the author's written permission is not allowed, but you can modify it as you want but just for your own use.

In addition to above restrictions you can't develop and share addons for 3nd party scripts (eg for vBadvanced).

Greetings
vBulletin Freelancers

VeeDubZ 01-11-2008 05:00 PM

cool may give this a try

edit:

Installed and working great thanks

Barakat 01-11-2008 05:50 PM

yes installled from ++++++++++ and the same one here so i overwrite it ....

thanks

cdi320 01-11-2008 09:10 PM

Installed

Efharisto :)

Qamdad 01-11-2008 10:24 PM

Thank you

Ipuck 01-12-2008 05:33 PM

Can I change the name? from Journal to News?

vbFreelancers 01-12-2008 06:10 PM

Quote:

Originally Posted by Ipuck (Post 1420249)
Can I change the name? from Journal to News?

Sure. Just edit the phrase: vbjournal_navbar

vbFreelancers 01-12-2008 06:11 PM

Quote:

Originally Posted by cdi320 (Post 1419800)
Installed

Efharisto :)

Parakalo :) (En: you welcome)

Alfa1 01-12-2008 06:51 PM

News seems much more applicable.

Extreme24 01-13-2008 07:54 PM

I installed it and everything seems fine. Only problem is I can only have one picture for my articles...

If I create a new article and give it it's own image, all other articles made before that one will get that one's article image as well..

What could be causing this?

Would the Attachment options be scewing it up? (I've turned them off and set the size of attachments to be really low.)

Olympic 01-14-2008 05:44 AM

Quote:

Originally Posted by Extreme24 (Post 1420831)
I installed it and everything seems fine. Only problem is I can only have one picture for my articles...

Later today we'll post an upgrade which will add a photo gallery per article.

Quote:

Originally Posted by Extreme24 (Post 1420831)
If I create a new article and give it it's own image, all other articles made before that one will get that one's article image as well..

What could be causing this?

Would the Attachment options be scewing it up? (I've turned them off and set the size of attachments to be really low.)

This happen once in another of my mods (vbPhotoVote). For some unknow reason your PHP can't give the random name according to our function, so it gives to all uploaded files the same filename.
We'll check it again.

Extreme24 01-14-2008 07:39 AM

Well what I meant about the "one image" was about the whole "all images are the same image" problem. Not necessarily that I wanted more images in a single article. I think it's ok the way it is (with just one pic per article) but it would be a plus to have more :)

But yeah, my whole post was about all articles having the same image :p

Thanks for the answer :) Hope a fix is made for this for people like me :p

Olympic 01-14-2008 07:50 AM

Quote:

Originally Posted by Extreme24 (Post 1421077)
Well what I meant about the "one image" was about the whole "all images are the same image" problem. Not necessarily that I wanted more images in a single article. I think it's ok the way it is (with just one pic per article) but it would be a plus to have more :)

But yeah, my whole post was about all articles having the same image :p

Thanks for the answer :) Hope a fix is made for this for people like me :p

You're the only one having this problem for 100+ installation (this mod was under Mary's name before), but be sure that we try to correct even single incompatibilities.

seangworld 01-14-2008 07:53 AM

installed, looks great. im loving all your products!
im lookin forward to the vbclub and vbevents!

Extreme24 01-14-2008 07:56 AM

Quote:

Originally Posted by Olympic (Post 1421087)
You're the only one having this problem for 100+ installation (this mod was under Mary's name before), but be sure that we try to correct even single incompatibilities.

Oh wow, thank you so very much! :D This mod will definitely be handy at my site. Wow, GREAT support! :D

Dilldogs 01-15-2008 04:03 AM

Since this was restore has the problem been fixed?

vbFreelancers 01-15-2008 04:40 AM

Quote:

Originally Posted by Dilldogs (Post 1421711)
Since this was restore has the problem been fixed?

The problem has been fixed and the updated file has been uploaded in less than 2 hours. After it, the delay was due to checing by staff. So the file is ok.

vbFreelancers 01-15-2008 04:44 AM

Hello,

A new version (1.3.0) of vbJournal is available for download. In this version:
  1. A bug which was appearing by removing the article's photo when you're editing the article, has been fixed.
  2. Added feature. Now every article can has a photo gallery and not just a photo.
  3. Code correction. It appeared in one installation that every photo upload was taking the same filename, so we change the way that the files are naming.
How to upgrade:
  1. Upload file: vbjournal.php in your vB installation directory.
  2. Import product-vbjournal.xml from your admincp. Don't forget to check "Overwite" option.
Of course is always wise to backup the table XXXX_vbjournal_articles before upgrade.

Regards
Marina

Extreme24 01-15-2008 04:55 AM

Thank you so much! Works great now! :)

One question though... Aren't images in the "Breaking News" section supposed to be scaled down? Mine stay the same size as the originals. They are scaled down in the right side column though.

Small thing but I was just wondering (don't remember if they were before or not). :) A great mod :)

vbFreelancers 01-15-2008 05:06 AM

Quote:

Originally Posted by Extreme24 (Post 1421730)
Thank you so much! Works great now! :)

One question though... Aren't images in the "Breaking News" section supposed to be scaled down? Mine stay the same size as the originals. They are scaled down in the right side column though.

Small thing but I was just wondering (don't remember if they were before or not). :) A great mod :)

I checked the template: vbjournal_breakingarticlebit and it's correct as it's shows the thumb and not the full photo.
Could you please check at your admincp vbJournal->Options what's the setting for thumb width? The default is 150px

vbFreelancers 01-15-2008 05:19 AM

Quote:

Originally Posted by Extreme24 (Post 1421730)
Thank you so much! Works great now! :)

One question though... Aren't images in the "Breaking News" section supposed to be scaled down? Mine stay the same size as the originals. They are scaled down in the right side column though.

Small thing but I was just wondering (don't remember if they were before or not). :) A great mod :)

I found the bug:D As I copied the code for image manipulation from another mod, in 3 instances I forgot to rename vbjengine to vbjournal, so the mod was trying to find settings from vbFEngine:eek:. I apologize for my novice mistake. Please upload the attach file.

Extreme24 01-15-2008 05:39 AM

Oh wow works great now! :D

Great support and work :) Nominated this Mod for Mod of the Month :)

I was about to post an issue I was having where uploaded images looked a bit "uglier" (lower quality) after I uploaded them. But that fixed it! :) (Also of course fixed the "images not resizing" issue of course :))

Thank you so very much and I look forward to any new updates you have planned :)

adiboy.net 01-15-2008 06:56 AM

Just checking. In the screenshot above, 'Breaking News' is actually 'Latest News'? Am I right?

And can the 'Member Menu' be invisible to registered user? I only want Moderators and Admins to be able to post something.

vbFreelancers 01-15-2008 07:15 AM

Quote:

Originally Posted by adiboy.net (Post 1421761)
Just checking. In the screenshot above, 'Breaking News' is actually 'Latest News'? Am I right?

There is seperate block "Newest News". Breaking News and Important News, are articles marked as "Breaking" or "Importants", from those who have permissions to Moderate.

Quote:

Originally Posted by adiboy.net (Post 1421761)
And can the 'Member Menu' be invisible to registered user? I only want Moderators and Admins to be able to post something.

Each menu option is visible only to those who have permissions for that action. If all options are "Off" for the current user, then the whole block is invisible. This is the way that as I remember it works. But even if it's not, you can easily do it as you like by adding in the template:
Code:

<if condition="$permissions[vbjournal] & $vbulletin->bf_ugp[vbjournal][canmod]">
....
</if>


adiboy.net 01-15-2008 07:21 AM

By the way, the screenshot looks similar to the vBnews version, What are the differences between the two?

vbFreelancers 01-15-2008 07:33 AM

Quote:

Originally Posted by adiboy.net (Post 1421775)
By the way, the screenshot looks similar to the vBnews version, What are the differences between the two?

Just the screenshoot it's similar. vbNews has 10x features than vbJournal. Some of them:
  • Uses HTML Editor and not vbEditor. This has plus and minus. Everything is depending on admin's needs.
  • Has subcategories
  • Supports Attahcments, Chapters and/or Pagination for long articles like books or Tutorials
  • and others that really I can't remember right now. Don't forget that it's not a mod that I developed, so I can't remember it's features.
But everything is depending on your special needs. For example I'm designing our new site based on vbFJournal. I don't need subcategories, I don't need chapters etc etc.

adiboy.net 01-15-2008 07:41 AM

Thanks! :)
I think I'll get the vBnews instead. :)

hollosch 01-16-2008 03:51 PM

Hello,
is it possible to have more characters then 255 in the description of an article?

thx

vbFreelancers 01-16-2008 04:11 PM

Quote:

Originally Posted by hollosch (Post 1422563)
Hello,
is it possible to have more characters then 255 in the description of an article?

thx

Only if you modify with phpMyAdimn the field description in table TABLE_PREFIX ."vbjournal_articles from varchar to mediumtext

TCooper 01-16-2008 05:22 PM

When you click on a category like vbjournal.php?do=category&categoryid=2 if u look at the left column the categories are not populating the table. I glanced at the code and didn't see what was wrong.

Olympic 01-16-2008 05:34 PM

Quote:

Originally Posted by TCooper (Post 1422600)
When you click on a category like vbjournal.php?do=category&categoryid=2 if u look at the left column the categories are not populating the table. I glanced at the code and didn't see what was wrong.

Nothing is wrong with the code there. I just let it as is planing to add subcategories there.

TCooper 01-17-2008 08:53 PM

Quote:

Originally Posted by Olympic (Post 1422610)
Nothing is wrong with the code there. I just let it as is planing to add subcategories there.

well on other pages my categories list in the left side but not on that particular page for some reason, thats why I asked about it. As you can see that on one page the cats are listed and in the other they aren't.

vbFreelancers 01-18-2008 05:13 PM

Quote:

Originally Posted by TCooper (Post 1423353)
well on other pages my categories list in the left side but not on that particular page for some reason, thats why I asked about it. As you can see that on one page the cats are listed and in the other they aren't.

Yes, that's correct. As I seen the 2nd screenshoot is the list of articles from category xxx. As there are no subcategories there, it shows nothing. This block in a furture upgrade will populate with the list of subcategories. You must use the link in NavBar to go back.
But if you need this block populated with categories again, I can modify the code. It's trivial.

Chris

SuperDave71 01-18-2008 06:53 PM

Excellent!!

GREAT JOB and marked as installed!

Thank you so much!

-Dave

TCooper 01-18-2008 09:12 PM

hmm i didnt see much of a difference in the code other than
the sql call for $_REQUEST['do'] == 'main' is below
Code:

  $categories_get = $vbulletin->db->query_read("

            SELECT *

      FROM " . TABLE_PREFIX . "vbjournal_categories

      ORDER BY display ASC

            ");

      while ($category = $vbulletin->db->fetch_array($categories_get)){

            $totalcats ++;

            eval('$categories .= "' . fetch_template('vbjournal_categorybit') . '";');

            eval('$vcategories .= "' . fetch_template('vbjournal_vcategorybit') . '";');

      }

the one for $_REQUEST['do'] == 'category'
Code:

  $categories_get = $vbulletin->db->query_read("

            SELECT *

        FROM " . TABLE_PREFIX . "vbjournal_categories

        ORDER BY display ASC

            ");

        while ($category = $vbulletin->db->fetch_array($categories_get)){

              $totalcats ++;

              eval('$vcategories .= "' . fetch_template('vbjournal_vcategorybit') . '";');

        }

I must be looking at the wrong spot or something can you tell me what to edit for the time being until the sub cats are integrated? That would be great

TCooper 01-19-2008 01:29 AM

For some reason if I have a breaking article, on the main page the no photo is not showing. I changed a line in the template vbjournal_breakingarticlebit and the line
Code:

<if condition="$breakingarticle[photo]<>''">
to
Code:

<if condition="$breakingarticle[photo]>'0'">
and now the image shows...

vbFreelancers 01-19-2008 05:51 AM

Quote:

Originally Posted by TCooper (Post 1424015)
hmm i didnt see much of a difference in the code other than
the sql call for $_REQUEST['do'] == 'main' is below

Sure you didn't found any difference in the code, as the difference is not there. To resolve it is much more easier than you can imagine. Just open template: sitenews_categorylisting. 24 lines from the begining you'll see:
Code:

<table width="100%" cellspacing="2" cellpadding="2">
</table>

Then just enter between 2 lines: $vcategories

Save it and the categories will appear.

Marina

pcoskat 01-19-2008 03:23 PM

Is it possible to add video (from Youtube and/or Brightcove) instead of an image and have it display a thumbnail of the video on main pages?

I would be willing to pay for such a modification.

vbFreelancers 01-19-2008 03:35 PM

Quote:

Originally Posted by pcoskat (Post 1424511)
Is it possible to add video (from Youtube and/or Brightcove) instead of an image and have it display a thumbnail of the video on main pages?

I would be willing to pay for such a modification.

If you mean on article's main photo, no, currently you can't. But as I know there is a plugin to add YouTUBE video in vB's editor.

Marina

TCooper 01-20-2008 02:43 AM

Quote:

Originally Posted by vbFreelancers (Post 1424215)
Sure you didn't found any difference in the code, as the difference is not there. To resolve it is much more easier than you can imagine. Just open template: sitenews_categorylisting. 24 lines from the begining you'll see:
Code:

<table width="100%" cellspacing="2" cellpadding="2">
</table>

Then just enter between 2 lines: $vcategories

Save it and the categories will appear.

Marina

Thanks, did you notice the next post about the breaking image i think its in the editors box too but just got to the pc and this was first thing i did since i was already on the page haha.


All times are GMT. The time now is 06:23 AM.

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.01515 seconds
  • Memory Usage 1,863KB
  • 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
  • (9)bbcode_code_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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