vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Forum Home Enhancements - Latest Album Pictures - Forum Home (https://vborg.vbsupport.ru/showthread.php?t=174445)

gim 10-31-2008 06:23 PM

Good work but a littlebit not-compatible with aqua-soft template in some positions :(

Cocko 10-31-2008 07:04 PM

I'd like to ask again how to limit showing pictures only from specified usergroups
Best way would be by ACP, but also interessting with a short snippet manuelly?

Who can help?

Jespah 11-02-2008 09:45 PM

Quote:

Originally Posted by manuelsechi (Post 1655910)
does it works for registered users only?

I have the same question - the gallery can only be seen by logged-in members, I want it to "snag' new people into looking further into my site.

Jespah

rob01 11-02-2008 09:57 PM

the pictures dont show up.. with windows internet explorer
any ideas?

:(

Lefteris (Athen 11-03-2008 03:16 PM

Works fine! :)
Thank you
Lefteris

Mr.samy 11-03-2008 03:34 PM

great .... but this code $lpicture[title]

apear the album name not picture name ? ..

Come2Daddy 11-04-2008 04:46 PM

I was about to suggest that you make it random instead of latest, then I found that option in the hack option, thanx a lot, great work :)

geckoz 11-05-2008 12:12 PM

Hey all! I'm a newbie but I fixed this picture title problem. To show the picture title of an image you will have to change a few lines in the file product-afm.xml. This is what I did:

open the file product-afm.xml in a text editor and find this:

Code:

  $lpictures = $db->query("
  SELECT albumpicture.*, album.*, user.username, user.usergroupid,
  IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
  FROM " . TABLE_PREFIX . "albumpicture AS albumpicture
  LEFT JOIN " . TABLE_PREFIX . "album AS album ON(album.albumid = albumpicture.albumid)
  LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = album.userid)
  WHERE album.state = 'public'
  $sorgu 
  ");
  if ($db->num_rows($lpictures))
  {
        while ($lpicture = $db->fetch_array($lpictures))
        {
        $lpicture['musername'] = fetch_musername($lpicture);
        $lpicture['title'] = trim(strip_quotes($lpicture['title']));
        eval('$resimler .= "' . fetch_template('afm_picture') . '";');
        }
    switch ($vbulletin->options['afm_yer'])

and replace it with this:

Code:

  $lpictures = $db->query("
  SELECT albumpicture.*, album.*, picture.caption, user.username, user.usergroupid,
  IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
  FROM " . TABLE_PREFIX . "albumpicture AS albumpicture
  LEFT JOIN " . TABLE_PREFIX . "album AS album ON(album.albumid = albumpicture.albumid)
  LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = album.userid)
  LEFT JOIN " . TABLE_PREFIX . "picture AS picture ON(picture.pictureid = albumpicture.pictureid)
  WHERE album.state = 'public'
  $sorgu 
  ");
  if ($db->num_rows($lpictures))
  {
        while ($lpicture = $db->fetch_array($lpictures))
        {
        $lpicture['musername'] = fetch_musername($lpicture);
        $lpicture['title'] = trim(strip_quotes($lpicture['title']));
        $lpicture['caption'] = trim(strip_quotes($lpicture['caption']));
        eval('$resimler .= "' . fetch_template('afm_picture') . '";');
        }
    switch ($vbulletin->options['afm_yer'])

Then upload / update the addon.

Then you must change the template "afm_picture". Use this variable wherever you want the title of the picture to be displayed:

Code:

$lpicture[caption]
It works for me! DEMO: Sims 3 Forum

Hope it helps!

porscheman170 11-05-2008 04:24 PM

Hello,

Will do
Thanks

Digital Jedi 11-07-2008 04:42 AM

Code:


       
Quote:

       
       
               
       
       

                       

                       
                               

                                        Originally Posted by porscheman170
                                        (Post 1659983)
                               

                               
Hello,
 
Just wanted to warn everybody and the coder of this script that there is a serious security issue with it. My website got hacked last night through this script. Please contact me for more info porscheman170 at gmail
 
Thanks

                       
                       

               

Then it's probably not the wisest thing to announce it in this
thread, as you just alerted every hacker who reads this that
everyone who has it installed is now a potential target.
You should contact vB.org with the potential problem and
they'll take care of it with those who have installed privately.



All times are GMT. The time now is 08:30 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.01544 seconds
  • Memory Usage 1,746KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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