vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - Media Gallery (Photos, Audio, YouTUBE) (https://vborg.vbsupport.ru/showthread.php?t=319444)

RichieBoy67 07-25-2015 04:10 AM

Or just go into the maintenance section, view php info. :)

TheAdminMarket 07-25-2015 04:13 AM

Quote:

Originally Posted by ArcadeSyndicate (Post 2551242)
how about adding PREV and NEXT buttons to the viewmedia-page? :)

Finally it's not so easy. Not from the coding side as I already added the code as you can see below. The problem is: Usability. Let me explain. The view media page opens from different sections. eg from browsing category xxxx, from browsing search results etc.

By adding Prev - Next, should ignores are these and it will shows just the previous and next id without any criteria something that will confuse the users. To solve this I must add queries and/or section flags to view media page, something not so easy.

But as I said, I already wrore the code, so you can use the attached media.php. Then in mediagalley_view_media template add anywhere you want to show the links:
Code:

<vb:if condition="!empty($prev_link)">
    <a href="{vb:raw prev_link}">Previous</a>
</vb:if>
<vb:if condition="!empty($next_link)">
    <a href="{vb:raw next_link}">Next</a>
</vb:if>


ArcadeSyndicate 07-25-2015 05:43 AM

thank you, works fine :up:

BlackxRam 07-25-2015 06:26 AM

Quote:

Originally Posted by madness85 (Post 2551266)
Im happy donate when BlackxRam pms ya with his changes, checked his site all thumbs added and looks really tidy.

I sent NTG the template changes I did. I am sure they might need some cleaning up as they were hurriedly thrown together lol.


Like this mod guys, click that install button and if you are like me... Nominate it!

TheAdminMarket 07-25-2015 06:34 AM

Quote:

Originally Posted by ArcadeSyndicate (Post 2551289)
thank you, works fine :up:

If you plan to use it, and as the common listing-> View page is the category listing I can modify a bit the code to work like "Prev - Next" on the same category.

TheAdminMarket 07-25-2015 06:37 AM

Quote:

Originally Posted by BlackxRam (Post 2551290)
I sent NTG the template changes I did. I am sure they might need some cleaning up as they were hurriedly thrown together lol.

Thank you for sharing. By the way I want to ask you something. In a previous post you wrore that 0.jpg is the most common filename to get video thumb, but in your PM you wrote that you're using hddefault.jpg. Finally which filename is the one that works in most cases? I plan to update my code.

ArcadeSyndicate 07-25-2015 09:35 AM

Quote:

Originally Posted by NickTheGreek (Post 2551292)
If you plan to use it, and as the common listing-> View page is the category listing I can modify a bit the code to work like "Prev - Next" on the same category.

for me it's good as it is now, but if that isn't too much work for you, it even would be better :)

the idea was to skip the latest uploaded pictures one after another without going back to the main site after viewing an image every time. pictures in a single category are not so important.

TorrentMan 07-25-2015 12:34 PM

Quote:

Originally Posted by ArcadeSyndicate (Post 2551285)
to get the absolute server path just upload this file to your directory and check it in the browser.

remove when you don't need it anymore.

I know my forum path and it is correct...
I was asking what file do i edit to correct this?

TheAdminMarket 07-25-2015 12:35 PM

Quote:

Originally Posted by ArcadeSyndicate (Post 2551304)
for me it's good as it is now, but if that isn't too much work for you, it even would be better :)

It was just a: AND categoryid=$itemcatid in the query. So, no problem.

TheAdminMarket 07-25-2015 12:37 PM

Quote:

Originally Posted by TorrentMan (Post 2551311)
I know my forum path and it is correct...
I was asking what file do i edit to correct this?

Is on Admincp-> Media Gallery-> General Options-> Server Path to Uploads (5th from the end)


All times are GMT. The time now is 05:06 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.01314 seconds
  • Memory Usage 1,744KB
  • 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_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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