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)

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 03:32 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.01145 seconds
  • Memory Usage 1,750KB
  • 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
  • (6)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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