vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Gallery for vBulletin 3.5.X (https://vborg.vbsupport.ru/showthread.php?t=92875)

Harald_T 11-15-2005 01:37 PM

I'm actually checking it out.

Harald_T 11-15-2005 01:41 PM

I've got it.

I missed a

Code:

}
at the end. That was all. Sorry for the causing trouble.

Updates:

I will clean up the whole code and after this i'll updating the whole hack. So be patient. I think it will be tonight.

Brandon Sheley 11-15-2005 03:48 PM

sounds good :)
thank you time ;) we appreciate what you've done so far, at least i do :) saves me 60$ on the vba gallery :p

Harald_T 11-15-2005 04:40 PM

Next version will have the random-pictures integrated. And you can set it by option if it will be shown or not. Same for latest-pictures.

Brandon Sheley 11-15-2005 04:45 PM

cool :) ill check back on this thread after i get home from work tonight then ;) thx again

Harald_T 11-15-2005 08:31 PM

So, fixed some minor bugs, and renamed some variables.

Also did i make an extra Gallery-Section in the vBulletin-Options, where you can set some little options for the gallery. Now random-pictures from the gallery are a fix part of the gallery.

And i removed the number of rows from the forums-options. This isn't needed anymore. It will be defined now from the Gallery-Options.

Next i will test it with vB 3.5.1 and after this i will update the hack completly.

Here are two little screenshots from what's coming:

Brandon Sheley 11-16-2005 02:58 AM

cool :)

I added the } and the random code works now.
looking foward to the update,

what will be involved in updating if we have this installed already ?

Harald_T 11-16-2005 08:32 AM

Best solution will be to deinstall the product and import the new version. Otherwise it could be, that there will be some trouble.

But i will post it in the new installation-manual.

The next thing that i'm working on at the moment will be a new page for showing the picture and posting a picture. This means, it will no longer use the standard-postbit-template.

DrewM 11-16-2005 11:17 AM

Harald_T,

I thought i'd share this with you on your gallary hack currently there is no forum tools and search forums also there is not a display options form to add all this edit the the gallary forum display templeat delete ever thing and insert this code:
HTML Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<meta name="description" content="$foruminfo[description]" />
<title>$vboptions[bbtitle] - $foruminfo[title]</title>
$headinclude </head> <body> $header $navbar <br>
<!-- Display options -->
<form action="forumdisplay.php" method="get">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="f" value="$forumid" />
<input type="hidden" name="page" value="$pagenumber" />
<input type="hidden" name="pp" value="$perpage" />

  <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <tr>
      <td class="tcat">$vbphrase[display_options]</td>
      <if condition="$show['activeusers']"> </if> <if condition="$show['moderators']">
      </if> </tr>
    <tr>
      <td class="thead"><phrase 1="$limitlower" 2="$limitupper" 3="$totalthreads">$vbphrase[showing_threads_x_to_y_of_z]</phrase></td>
      <if condition="$show['activeusers']"> </if> <if condition="$show['moderators']">
      </if> </tr>
    <tr valign="top">
      <td class="alt1"> <table cellpadding="0" cellspacing="1" border="0" width="auto">
          <tr>
            <td class="smallfont" style="padding-right:6px">$vbphrase[sorted_by]</td>
            <td><select name="sort">
                <option value="title" $sort[title]>$vbphrase[thread_title]</option>
                <option value="lastpost" $sort[lastpost]>$vbphrase[last_post_time]</option>
                <option value="replycount" $sort[replycount]>$vbphrase[number_of_replies]</option>
                <option value="views" $sort[views]>$vbphrase[number_of_views]</option>
                <option value="postusername" $sort[postusername]>$vbphrase[thread_starter]</option>
                <if condition="$show['threadratings']">
                <option value="voteavg" $sort[voteavg]>$vbphrase[thread_rating]</option>
                </if> <if condition="$show['threadprefix']">
                <option value="threadprefix" $sort[threadprefix]>$vbphrase[threadprefix]</option>
                </if> </select></td>
            <td class="smallfont" style="padding-right:6px; padding-left:12px">$vbphrase[sort_order]</td>
            <td><select name="order">
                <option value="asc" $order[asc]>$vbphrase[ascending]</option>
                <option value="desc" $order[desc]>$vbphrase[descending]</option>
              </select></td>
          </tr>
          <tr>
            <td class="smallfont" style="padding-right:6px">$vbphrase[from_the]</td>
            <td><select name="daysprune">
                <option value="1" $daysprunesel[1]>$vbphrase[last_day]</option>
                <option value="2" $daysprunesel[2]>$vbphrase[last_2_days]</option>
                <option value="7" $daysprunesel[7]>$vbphrase[last_week]</option>
                <option value="10" $daysprunesel[10]>$vbphrase[last_10_days]</option>
                <option value="14" $daysprunesel[14]>$vbphrase[last_2_weeks]</option>
                <option value="30" $daysprunesel[30]>$vbphrase[last_month]</option>
                <option value="45" $daysprunesel[45]>$vbphrase[last_45_days]</option>
                <option value="60" $daysprunesel[60]>$vbphrase[last_2_months]</option>
                <option value="75" $daysprunesel[75]>$vbphrase[last_75_days]</option>
                <option value="100" $daysprunesel[100]>$vbphrase[last_100_days]</option>
                <option value="365" $daysprunesel[365]>$vbphrase[last_year]</option>
                <option value="-1" $daysprunesel[all]>$vbphrase[beginning]</option>
              </select></td>
            <td colspan="2" class="smallfont">&nbsp;</td>
          </tr>
          <tr>
            <td class="smallfont">&nbsp;</td>
            <td>&nbsp;</td>
            <td colspan="2" align="$stylevar[right]"><input type="submit" class="button" value="$vbphrase[show_threads]" /></td>
          </tr>
        </table></td>
      <if condition="$show['activeusers']"> </if> <if condition="$show['moderators']">
      </if> </tr>
  </table>

</form>
<br>
<!-- / Display options -->
<br>
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<tr valign="top">
<td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/upload.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else />&nbsp;</if></td>
<if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>
</tr>
</table>
<if condition="$show['threadslist']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">
  <tr>
    <td class="tcat" width="100%">$vbphrase[threads_in_forum]<span class="normal">
      : $foruminfo[title]</span></td>
    <td class="vbmenu_control" id="forumtools" nowrap="nowrap"><a href="$show[nojs_link]#goto_forumtools" rel="nofollow">$vbphrase[forum_tools]</a>
      <script type="text/javascript"> vbmenu_register("forumtools"); </script></td>
    <if condition="$show['forumsearch']">
    <td class="vbmenu_control" id="forumsearch" nowrap="nowrap"><a href="$show[nojs_link]#goto_forumsearch" rel="nofollow">$vbphrase[search_this_forum]</a>
      <script type="text/javascript"> vbmenu_register("forumsearch"); </script></td>
    </if> </tr>
</table>
<!-- threads list -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
  <tr>
    <td class="thead">&nbsp;</td></td>
  </tr>
  <if condition="$show['threads']">
  <tr>
    <td colspan="6"> <table class="tborder" align="center">
        <tr> $threadbit_gallery <if condition="$col">
          <td colspan=$col class="alt1">&nbsp;</td>
          </if> </tr>
      </table></td>
  </tr>
  <!-- end show threads -->
  <else />
  <!-- show no threads message -->
  <tr>
    <td class="alt1" colspan="$foruminfo[bottomcolspan]" align="center"> <div style="padding: 16px">
        <if condition="$show['noposts']"><strong>$vbphrase[no_posts_in_this_forum]</strong><else /><strong><phrase 1="$daysprune">$vbphrase[no_posts_last_x_days_forum]</phrase></strong><br />
        <span class="smallfont">$vbphrase[try_controls_below_for_older_posts]</span></if>
      </div></td>
  </tr>
  <!-- end show no threads message -->
  </if>
</table>
<!-- controls below thread list -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-top:3px">
  <tr valign="top">
    <td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else />&nbsp;</if></td>
    <if condition="$pagenav">
    <td align="$stylevar[right]">$pagenav</td>
    </if> </tr>
</table>
<!-- End Active Users in this Forum (and sub-forums) and Moderators -->
<if condition="$show['popups']"> <br />
<!-- popup menu contents -->
<!-- forum tools menu -->
<div class="vbmenu_popup" id="forumtools_menu" style="display:none">
  <form action="moderator.php" method="post" name="forumadminform">
    <table cellpadding="4" cellspacing="1" border="0">
      <tr>
        <td class="thead">$vbphrase[forum_tools]<a name="goto_forumtools"></a></td>
      </tr>
      <if condition="$show['newthreadlink']">
      <tr>
        <td class="vbmenu_option"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]" rel="nofollow">$vbphrase[post_a_new_thread]</a></td>
      </tr>
      </if>
      <tr>
        <td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread&amp;f=$foruminfo[forumid]" rel="nofollow">$vbphrase[mark_this_forum_read]</a></td>
      </tr>
      <tr>
        <td class="vbmenu_option"><a href="subscription.php?$session[sessionurl]do=addsubscription&amp;f=$foruminfo[forumid]" rel="nofollow">$vbphrase[subscribe_to_this_forum]</a></td>
      </tr>
      <tr>
        <td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]f=$foruminfo[parentid]" rel="nofollow">$vbphrase[view_parent_forum]</a></td>
      </tr>
      <if condition="$show['adminoptions']">
      <tr>
        <td class="thead">$vbphrase[admin_tools]<a name="goto_forumadmin"></a></td>
      </tr>
      <tr>
        <td class="vbmenu_option" title="nohilite"> <div>
            <label for="fa_mpo">
            <input type="radio" name="do" id="fa_mpo" value="modposts" checked="checked" />
            $vbphrase[view_posts_queue]</label>
          </div>
          <div>
            <label for="fa_mat">
            <input type="radio" name="do" id="fa_mat" value="modattach" />
            $vbphrase[view_attachment_queue]</label>
          </div>
          <div>
            <label for="fa_mov">
            <input type="radio" name="do" id="fa_mov" value="move" />
            $vbphrase[massmove_threads]</label>
          </div>
          <div>
            <label for="fa_prn">
            <input type="radio" name="do" id="fa_prn" value="prune" />
            $vbphrase[massprune_threads]</label>
          </div>
          <if condition="$show['addmoderator']">
          <div>
            <label for="fa_amd">
            <input type="radio" name="do" id="fa_amd" value="addmoderator" />
            $vbphrase[add_moderator]</label>
          </div>
          </if> <if condition="$foruminfo['allowprefix']">
          <div>
            <label for="fa_cat">
            <input type="radio" name="do" id="fa_cat" value="manageprefix" />
            $vbphrase[manage_threadprefix]</label>
          </div>
          </if> </td>
      </tr>
      <tr>
        <td class="vbmenu_option" title="nohilite" align="center"> <input type="hidden" name="s2" value="$session[sessionhash]" />
          <input type="hidden" name="f2" value="$forumid" /> <input name="submit" type="submit" class="button" value="$vbphrase[perform_action]" />
        </td>
      </tr>
      </if>
    </table>
  </form>
</div>
<!-- / forum tools menu -->
<!-- inline mod menu -->
<if condition="$show['inlinemod']">
<div class="vbmenu_popup" id="imod_menu" style="display:none" align="$stylevar[left]">
  $threadadmin_imod_menu_thread </div>
</if>
<!-- / inline mod menu -->
<!-- / popup menu contents -->
<else />
<!-- controls for non-popup browsers -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-top-width:0px">
  <tr>
    <td class="thead">$vbphrase[forum_tools]<a name="goto_forumtools"></a></td>
    <td class="thead">$vbphrase[search_this_forum]<a name="goto_forumsearch"></a></td>
  </tr>
  <tr valign="top">
    <!-- forum tools -->
    <td class="alt1"> <div class="smallfont">
        <div><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[mark_this_forum_read]" vspace="1" />
          <a href="forumdisplay.php?$session[sessionurl]do=markread&amp;f=$foruminfo[forumid]" rel="nofollow">$vbphrase[mark_this_forum_read]</a></div>
        <if condition="$show['member']">
        <div><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" vspace="1" />
          <a href="subscription.php?$session[sessionurl]do=addsubscription&amp;f=$foruminfo[forumid]" rel="nofollow">$vbphrase[subscribe_to_this_forum]</a></div>
        </if>
        <div><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[view_parent_forum]" vspace="1" />
          <a href="forumdisplay.php?$session[sessionurl]f=$foruminfo[parentid]" rel="nofollow">$vbphrase[view_parent_forum]</a></div>
      </div></td>
    <!-- / forum tools -->
    <!-- search this forum -->
    <td class="alt1"> <form action="search.php" method="post">
        <div class="smallfont">
          <input type="hidden" name="s2" value="$session[sessionhash]" />
          <input type="hidden" name="do2" value="process" />
          <input type="hidden" name="forumchoice[]" value="$forumid" />
          <input type="hidden" name="childforums" value="1" />
          <strong>$vbphrase[search_this_forum]</strong> :<br />
          <input type="text" class="bginput" name="query" size="20" style="width:175px" />
          $gobutton<br />
          <a href="search.php?$session[sessionurl]f=$forumid" rel="nofollow">$vbphrase[advanced_search]</a>
        </div>
      </form></td>
    <!-- / search this forum -->
  </tr>
</table>
<br />
<!-- / controls for non-popup browsers -->
</if> <if condition="$show['ajax_js']">
<script type="text/javascript" src="clientscript/vbulletin_ajax_threadslist.js"></script>
<script type="text/javascript">
        <!--
        vB_AJAX_Threadlist_Init('threadslist');
        //-->

        </script>
</if>
<!-- ############## END THREADS LIST ##############  -->
<div class="vbmenu_popup" id="forumsearch_menu" style="display:none">
  <form action="search.php" method="post">
    <table cellpadding="4" cellspacing="1" border="0">
      <tr>
        <td class="thead">$vbphrase[search_this_forum]<a name="goto_forumsearch"></a></td>
      </tr>
      <tr>
        <td class="vbmenu_option" title="nohilite"> <input type="hidden" name="s2" value="$session[sessionhash]" />
          <input type="hidden" name="do2" value="process" /> <input type="hidden" name="forumchoice[]" value="$forumid" />
          <input type="hidden" name="childforums" value="1" /> <input type="text" class="bginput" name="query" size="20" />
          $gobutton<br /> </td>
      </tr>
      <tr>
        <td class="vbmenu_option"><a href="search.php?$session[sessionurl]f=$forumid" rel="nofollow">$vbphrase[advanced_search]</a></td>
      </tr>
    </table>
  </form>
</div>
<!-- / forum search menu -->
<else /> </if> <if condition="$show['popups'] AND $show['forumsearch']">
<!-- forum search menu -->
</if>
<!-- icon key -->
<if condition="$show['threadslist']"> </if>
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr valign="top">
<td align="right" width="100%">
$forumjump
<if condition="!$show['popups'] AND $show['adminoptions']">
<br />
<form action="moderator.php" method="get">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="f" value="$forumid" />
<div class="smallfont"><strong>$vbphrase[admin_tools]</strong>:</div>
<select name="do" onchange="this.form.submit();">
<optgroup label="$vbphrase[admin_tools]">
<option value="modposts" selected="selected">$vbphrase[view_posts_queue]</option>
<option value="modattach">$vbphrase[view_attachment_queue]</option>
<option value="move">$vbphrase[mass_move]</option>
<option value="prune">$vbphrase[mass_prune]</option>
<if condition="$show['addmoderator']">
<option value="addmoderator">$vbphrase[add_moderator]</option>
</if>
</optgroup>
</select>$gobutton
</form>
</if>
</td>
</tr>
</table>
<!-- / forum rules & forum jump -->
$footer
</body>
</html>


Harald_T 11-16-2005 12:35 PM

*gg*

I removed those parts as i found them not so needful for the gallery. But thanks, might be usefull for those users who need those tools.


All times are GMT. The time now is 09:34 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.03307 seconds
  • Memory Usage 1,925KB
  • 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
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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