vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Home Enhancements - New Latest Album Pictures - Forum Home (https://vborg.vbsupport.ru/showthread.php?t=228618)

pokusek 04-05-2013 08:03 PM

Is there a way to display the name of the image?

pokusek 04-05-2013 08:52 PM

Got it. $lpicture['mpicname'] = trim(strip_quotes($lpicture['caption']));

fxdigi-cash 04-06-2013 02:38 PM

Quote:

Originally Posted by RFViet (Post 2411488)
It doesn't work for me. I'm using vb 4.2 p3, after importing the plug-in and turn it on. It shows nothing but the picture links as shown in the attachment. Any idea about this problem ?

are you using vbseo mod or shortening url mod??

if yes, disable it and try it again to see if it works or not.

If things are fine, then you'll need to check the links that are brought to your main forum.

And then check the permissions to viewing attachments

RFViet 04-07-2013 06:24 PM

Quote:

Originally Posted by fxdigi-cash (Post 2414729)
are you using vbseo mod or shortening url mod??

if yes, disable it and try it again to see if it works or not.

If things are fine, then you'll need to check the links that are brought to your main forum.

And then check the permissions to viewing attachments

\

Thanks for the advice, actually I ran rebuild album update and that fixed my problem :D

RFViet 04-07-2013 06:50 PM

Quote:

Originally Posted by pokusek (Post 2414568)
Got it. $lpicture['mpicname'] = trim(strip_quotes($lpicture['caption']));

I added that line but it doesn't work for me.

Chadi 04-25-2013 02:56 AM

Hey guys,

How can I put this in a custom location?

fxdigi-cash 05-06-2013 08:21 PM

Quote:

Originally Posted by RFViet (Post 2414967)
I added that line but it doesn't work for me.

where did you add this line?? to the product as additional code? or where?

RFViet 05-06-2013 11:54 PM

Quote:

Originally Posted by fxdigi-cash (Post 2420346)
where did you add this line?? to the product as additional code? or where?

In the Hook Location : forumhome_start -> add that line in the while loop as shown below:

PHP Code:

while ($lpicture $db->fetch_array($lpictures))
    {
    
$lpicture['musername'] = fetch_musername($lpicture);
    
$lpicture['title'] = trim(strip_quotes($lpicture['title']));
    
$lpicture['mpicname'] = trim(strip_quotes($lpicture['caption']));
    
// eval('$resimler .= "' . fetch_template('afm_picture') . '";');
    
$templater_x1 vB_Template::create('newalbum_picture');
    
$templater_x1->register('lpicture',$lpicture);
  
$resimler .= $templater_x1->render();

    } 


pokusek 05-07-2013 06:49 AM

Quote:

Originally Posted by RFViet (Post 2414967)
I added that line but it doesn't work for me.

Are you using it in the product's plugin that is hooked to "forumhome_start"?


Quote:

Originally Posted by Chadi (Post 2418399)
Hey guys,

How can I put this in a custom location?

I am using this: {vb:raw template_hook.forumhome_wgo_posX}

Replace X with a number that is assigned to the template. In the .xml file it seems to be 2 but my number is higher.

RFViet 05-07-2013 05:34 PM

Quote:

Originally Posted by pokusek (Post 2420416)
Are you using it in the product's plugin that is hooked to "forumhome_start"?

Yes !!. Go to plug-in manager -> under New Album Picture forum Home.
I don't know where else to place that line ?


All times are GMT. The time now is 11:02 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.01728 seconds
  • Memory Usage 1,748KB
  • 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
  • (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