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)
-   -   Major Additions - PhotoPlog: The Lite Gallery (https://vborg.vbsupport.ru/showthread.php?t=101368)

Smiry Kin's 02-06-2006 09:42 AM

could you please upload a image about the same size as the status images in the default style, its just i've added there own Gallery there.

would be nice to turn it into an image instead??? plus the code would help also!

funinthesun 02-06-2006 11:30 AM

Whenever I try to upload a photo I get error: sorry, bad open.

What does that mean?

ubblite 02-06-2006 07:17 PM

Quote:

Originally Posted by Smiry Kin's
put it in a .txt file upload it. change it to .php, then run it in your browser...

Thanks

ubblite 02-06-2006 07:47 PM

After going to (mysite.com/photoplog) I am asked to login. After logging in, I receive the following error:

In order to accept POST request originating from this domain, the admin must add this domain to the whitelist.

Any ideas?

argash 02-06-2006 09:53 PM

Quote:

Originally Posted by argash
Anyway to alter the postbit code to display the number of photos a user has in their gallery?

Bumping my question so it doesnt get lost

Dark s.s. Trunk 02-06-2006 11:44 PM

Edit: NVM ..

Edit2: IS there a way to change the View to include like rows and colums of images with lil bits of info underneath like a normal looking image gallery?

ubblite 02-07-2006 06:11 AM

Got this mod working, nice stuff.

Question...

Is there a way to remove the [img] & [url] tags which show up right under "Average Rating" when viewing a photo?

wdlove 02-07-2006 08:11 PM

I'm anxious to have it working myself.

ThePimp 02-07-2006 08:27 PM

It may be coincidence, but, I've installed this 2x so far, and both times my site got hacked. Anyone else?

vakvak 02-09-2006 12:24 AM

Quote:

Originally Posted by KayDEE
@redundanthost

yes it works with 3.5.3, flawless

@natralis

yes, i've added that kinda option a while ago

open photoplog settings.php
find:
Code:

$photoplog_random_bits = $photoplog_cat_id = $photoplog_subcat_bar = $photoplog_letter_id = '';
below it add:
Code:

$photoplog_latest_bits = $photoplog_cat_id = $photoplog_subcat_bar = $photoplog_letter_id = '';
find:
Code:

// ####################### INITIALIZE LETTER BAR ##########################
above it add:
Code:

// ###################### INITIALIZE LATEST BITS ##########################

$photoplog_latest_bits = '';
if (defined('PHOTOPLOG_LATEST') && !isset($_REQUEST['c']) && !isset($_REQUEST['n']) && !isset($_REQUEST['u']) && !isset($_REQUEST['q']))
{
        $photoplog_file_infos = $db->query_read("SELECT *
                                                FROM photoplog_fileuploads
                                                WHERE moderate = 0
                                                ORDER BY dateline DESC
                                                LIMIT 3
        ");

        $photoplog_cnt_bits = 0;
        $photoplog_row_top = '';
        $photoplog_row_bottom = '';

        while ($photoplog_file_info = $db->fetch_array($photoplog_file_infos))
        {
                $photoplog_cnt_bits++;

                $photoplog_fileid = $photoplog_file_info['fileid'];
                $photoplog_userid = $photoplog_file_info['userid'];
                $photoplog_username = $photoplog_file_info['username'];

                $photoplog_row_top .= "

                        <td class=\"alt2\" nowrap><nobr>
                        <table class=\"alt1\" width=\"100%\" border=\"0\" cellpadding=\"5\" cellspacing=\"1\">

                        <td class=\"alt2\" align=\"center\" width=\"20%\">
                                <a href=\"".$photoplog_location."/index.php?".$vbulletin->session->vars['sessionurl']."n=".$photoplog_fileid."\">
                                        <img src=\"".$photoplog_location."/file.php?".$vbulletin->session->vars['sessionurl']."n=".$photoplog_fileid."&amp;w=s\" border=\"0\" />
                                </a>
                        </td>

                        </table>
                        </td>

                ";

                $photoplog_row_bottom .= "
                        <td class=\"alt2\" align=\"center\" width=\"20%\">
                                <div class=\"smallfont\">
                                        ".$vbphrase['posted_by']." <a href=\"".$photoplog_location."/index.php?".$vbulletin->session->vars['sessionurl']."u=".$photoplog_userid."\">".$photoplog_username."</a>
                                </div>
                        </td>
                ";
        }

        $db->free_result($photoplog_file_infos);

        $photoplog_table_start = "<table class=\"tborder\" border=\"0\" cellpadding=\"".$stylevar['cellpadding']."\" cellspacing=\"".$stylevar['cellspacing']."\" align=\"center\" width=\"100%\"><tr>

                <td colspan=\"5\" class=\"tcat\"><a style=\"float: ".$stylevar['right'].";\" href=\"#top\" onclick=\"return toggle_collapse('photoplog_latest_bits')\"><img id=\"collapseimg_photoplog_latest_bits\" src=\"".$stylevar['imgdir_button']."/collapse_thead".$vbcollapse['collapseimg_photoplog_latest_bits'].".gif\" alt=\"\" border=\"0\" /></a><span class=\"smallfont\"><strong>Latest Pictures</strong></span></td>

                </tr> <tbody id=\"collapseobj_photoplog_latest_bits\" style=\"".$vbcollapse['collapseobj_photoplog_latest_bits']."\"><tr>";

        $photoplog_table_end = "</tr></tbody></table><br />";

        $photoplog_latest_bits = $photoplog_table_start.$photoplog_row_top."</tr>".$photoplog_table_end;

        if (!$photoplog_cnt_bits)
        {
                $photoplog_latest_bits = '';
        }
}

open photoplog functions.php

find:
Code:

        global $photoplog_random_bits, $photoplog_cat_id, $photoplog_subcat_bar, $photoplog_letter_id;
replace with:
Code:

        global $photoplog_random_bits, $photoplog_latest_bits, $photoplog_cat_id, $photoplog_subcat_bar, $photoplog_letter_id;
open photoplog index.php

find:
Code:

define('PHOTOPLOG_RANDOM','bits');
below it add:
Code:

define('PHOTOPLOG_LATEST','bits');
open template photoplog_file_list

add to top:
Code:

$photoplog_latest_bits
done ... hope i didnt forget anything, i changed and added alotta things on it ;)

Cheers


thank but user no loding help me?


All times are GMT. The time now is 04:23 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.02763 seconds
  • Memory Usage 1,777KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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