Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
New Latest Album Pictures - Forum Home Details »»
New Latest Album Pictures - Forum Home
Version: 1.00, by Atakan KOC Atakan KOC is offline
Developer Last Online: Mar 2023 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 4.0.0 Beta 3 Rating:
Released: 11-21-2009 Last Update: Never Installs: 799
DB Changes Uses Plugins Template Edits Auto-Templates
Re-useable Code Translations  
No support by the author.

NEW Latest Album Pictures - Forum Home

It shows the pictures added to the albums on the main page. It shows only the public mentioned files. If not shows the reasons are: vbulletin settings show albums must be enabled.

The user grup that owns the pictures must be enabled show picture setting. Or there is no picture to show.

Additionally you can slect the number of pictures that can be shown.

Hope it works for you as I like it very much.

install

Go to your admin cp, then:
Plugin System -> Manage Products -> [Add/Import Product] -> Select 'product-newalbum.xml' from your computer then press 'Import'

Modifications Info

Plugin : 2
Phrases : 9
Template : 2
Setting : 3
Query : 1 Query

Latest Posts Setting

Go to your admin cp, then:
vBulletin Options -> New Album Picture ->

Versions:
v1.0 -First release

Download Now

File Type: xml product-newalbum.xml (5.6 KB, 4356 views)

Screenshots

File Type: jpg vB4 Forums_1258911725166.jpg (59.3 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
alhidaya, Toorak Times

Comments
  #282  
Old 11-04-2010, 06:43 PM
Polymat Polymat is offline
 
Join Date: Mar 2006
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Octavius. View Post
Where the hell is 'Show Albums' at? I don't even see it. Only registered members can view albums. I want guests to be able to view the random pictures, but not be able to bring up any licks if they click on them. How do I set that up?
I want to know that, too.
Reply With Quote
  #283  
Old 11-05-2010, 03:27 AM
8thos's Avatar
8thos 8thos is offline
 
Join Date: Aug 2010
Location: Pensacola, FL
Posts: 772
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ivanp View Post
SQL query is very slow, should be optimized:
Code:
mysql> explain SELECT albumpicture.*, album.*, user.username, user.usergroupid,
    ->   IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
    ->   FROM attachment AS albumpicture
    ->   LEFT JOIN album AS album ON(album.albumid = albumpicture.contentid)
    ->   LEFT JOIN user AS user ON(user.userid = album.userid)
    ->   WHERE album.state = 'public' and albumpicture.contenttypeid = 8
    ->   ORDER BY dateline DESC LIMIT 0, 5;

+----+-------------+--------------+--------+--------------------------------------+-----------+---------+---------------------+------+----------------------------------------------+
| id | select_type | table        | type   | possible_keys                        | key       | key_len | ref                 | rows | Extra                                        |
+----+-------------+--------------+--------+--------------------------------------+-----------+---------+---------------------+------+----------------------------------------------+
|  1 | SIMPLE      | album        | ALL    | PRIMARY                              | NULL      | NULL    | NULL                | 4929 | Using where; Using temporary; Using filesort |
|  1 | SIMPLE      | albumpicture | ref    | contentid,contenttypeid              | contentid | 4       | forum.album.albumid |    3 | Using where                                  |
|  1 | SIMPLE      | user         | eq_ref | PRIMARY                              | PRIMARY   | 4       | forum.album.userid  |    1 |                                              |
+----+-------------+--------------+--------+--------------------------------------+-----------+---------+---------------------+------+----------------------------------------------+
3 rows in set (0.00 sec)
I'm in Admin Control Panel. I clicked on Execute SQL Query. I copy-n-pasted that code, nothing happened but an error.
Reply With Quote
  #284  
Old 11-05-2010, 07:07 PM
ivanp ivanp is offline
 
Join Date: Sep 2007
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Octavius. View Post
I'm in Admin Control Panel. I clicked on Execute SQL Query. I copy-n-pasted that code, nothing happened but an error.
This was a remark for author of this add-on. There is nothing to do with it in Admin Panel.
Reply With Quote
  #285  
Old 11-18-2010, 10:13 PM
Gav-n-Tn Gav-n-Tn is offline
 
Join Date: Sep 2009
Location: Tennessee
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MikesSite View Post
Looks good, can't wait for some more options! Also want to be able to move this below the navbar.
Yes. Just like the 3.8 one.
Reply With Quote
  #286  
Old 11-21-2010, 09:43 PM
Peter_AUS Peter_AUS is offline
 
Join Date: Oct 2007
Location: Sydney Australia
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

See post 106.
Reply With Quote
  #287  
Old 11-23-2010, 11:36 PM
Derapata Derapata is offline
 
Join Date: Aug 2007
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by The Coon View Post
Provisional arrangement after upgrading to 4.0.8:

Change template: newalbum_print

Search:
PHP Code:
<h3
Replace with:

PHP Code:
<h3 class="blocksubhead"
In this way, not ok..
Reply With Quote
  #288  
Old 11-24-2010, 07:17 AM
bjarne2 bjarne2 is offline
 
Join Date: Dec 2009
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Replace newalbum_print with this.
This works on our site. Note the new vBullentin class "wgo_subblock section" and "h3 class blocksubhead".

PHP Code:
<div id="wgo_onlineusers" class="wgo_subblock section">
                <
h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/users_online.png" alt="{vb:rawphrase currently_active_users}" />{vb:raw resimlery}</h3>
                <
div align="center">
<
table cellpadding="4" cellspacing="0" border="0" width="100%" align="center">
<
tr>
{
vb:raw resimler}
</
tr>
</
table>

                </
div>
            </
div
Reply With Quote
  #289  
Old 11-24-2010, 10:10 AM
Derapata Derapata is offline
 
Join Date: Aug 2007
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bjarne2 View Post
Replace newalbum_print with this.
This works on our site. Note the new vBullentin class "wgo_subblock section" and "h3 class blocksubhead".

PHP Code:
<div id="wgo_onlineusers" class="wgo_subblock section">
                <
h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/users_online.png" alt="{vb:rawphrase currently_active_users}" />{vb:raw resimlery}</h3>
                <
div align="center">
<
table cellpadding="4" cellspacing="0" border="0" width="100%" align="center">
<
tr>
{
vb:raw resimler}
</
tr>
</
table>

                </
div>
            </
div
Thank's but not ok again...
Help me

Valerio
Reply With Quote
  #290  
Old 11-24-2010, 03:26 PM
Alibass's Avatar
Alibass Alibass is offline
 
Join Date: Mar 2007
Posts: 615
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by PinoyRepublic View Post
i manage to move it on different location (any location you prefer). Here's how:

1. Goto to plugin manager then search for "New Album Picture Forum Home" there are two result select the one under "forumhome_start" hook.

2. Scroll down thru the php code and find this line
PHP Code:
$template_hook['forumhome_wgo_pos1'] .= $templater->render(); 
then replace it with this
PHP Code:
//$template_hook['forumhome_wgo_pos1'] .= $templater->render();
$ad_location['ad_navbar_below'] .= $templater->render(); 
then save it.

The above code means that instead of showing the album under whats going on it will now be shown under the position of the advertisement position below the navigation bar.
Thanks, this works great on 4.0.8 PL2
Reply With Quote
  #291  
Old 11-25-2010, 06:31 PM
Derapata Derapata is offline
 
Join Date: Aug 2007
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Derapata View Post
Thank's but not ok again...
Help me

Valerio
News??

The picture view extra whidt e height.

Help me
Thank
Valerio
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:54 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10870 seconds
  • Memory Usage 2,367KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (6)bbcode_php
  • (8)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete