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)

Polymat 11-04-2010 06:43 PM

Quote:

Originally Posted by Octavius. (Post 2110520)
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.

8thos 11-05-2010 03:27 AM

Quote:

Originally Posted by ivanp (Post 2117574)
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.

ivanp 11-05-2010 07:07 PM

Quote:

Originally Posted by Octavius. (Post 2118146)
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.

Gav-n-Tn 11-18-2010 10:13 PM

Quote:

Originally Posted by MikesSite (Post 1919226)
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.

Peter_AUS 11-21-2010 09:43 PM

See post 106.

Derapata 11-23-2010 11:36 PM

Quote:

Originally Posted by The Coon (Post 2113186)
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..

bjarne2 11-24-2010 07:17 AM

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


Derapata 11-24-2010 10:10 AM

Quote:

Originally Posted by bjarne2 (Post 2125264)
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

Alibass 11-24-2010 03:26 PM

Quote:

Originally Posted by PinoyRepublic (Post 1957066)
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

Derapata 11-25-2010 06:31 PM

Quote:

Originally Posted by Derapata (Post 2125295)
Thank's but not ok again...
Help me

Valerio

News??

The picture view extra whidt e height.

Help me
Thank
Valerio

tele955848 11-25-2010 06:39 PM

Danke l?uft einwandfrei:D

weexto 12-05-2010 05:44 PM

hello,
have you thought of adding a rating photos?

SBKTR 12-14-2010 04:18 AM

Quote:

Originally Posted by mobe00 (Post 2005793)
I did some changes in my coding here to get the result i wanted

Replace the templates with the following code.

Template Newalbum_print

Code:

<div id="test" class="block collapse">
    <h3 class="blockhead">
        <b>{vb:raw resimlery}</b>
        <a class="collapse" id="collapse_album_content" href="{vb:raw relpath}#top"><img src="{vb:stylevar imgdir_button}/collapse{vb:raw vbcollapse.collapseimg_album_content_img}_40b.png" alt="{vb:rawphrase collapse_this_category}" /></a>
    </h3>

    <div id="album_content" class="childforum forumbit_post">
        <div class="forumrow table" style="padding-right:0px">
            <table class="block" cellpadding="6" cellspacing="6" border="0" width="100%" align="center">
<br />
                <tr>
                    {vb:raw resimler}
                </tr>
            </table>
<br />
        </div>
    </div>
</div>

Template Newalbum_picture

Code:

<td align="center">       
                <a class="picture" href="album.php?albumid={vb:raw lpicture.albumid}&amp;attachmentid={vb:raw lpicture.attachmentid}"><img  src="attachment.php?attachmentid={vb:raw lpicture.attachmentid}&amp;thumb=1&amp;d=1258906442" alt="269" border="0" /></a>
<br />
<a href="member.php?u={vb:raw lpicture.userid}">{vb:raw lpicture.musername}</a>
<br />
{vb:raw lpicture.title}
</td>

In pluginmanager - find New Album Picture Forum Home

find the code

Code:

$template_hook['forumhome_wgo_pos1'] .= $templater->render();
and change it with

Code:

$template_hook['forumhome_above_forums'] .= $templater->render();
And voila ..you got this :D

Worked perfectly.. thank you

bada_bing 12-22-2010 04:10 AM

Will this mod be updated to vb 4.1 I noticed that it works with 4.1 but the table wrap is missing now

kfyonur 12-22-2010 08:18 AM

Quote:

Originally Posted by bada_bing (Post 2137492)
Will this mod be updated to vb 4.1 I noticed that it works with 4.1 but the table wrap is missing now

album names and usernames are not written.

VBUsers 12-29-2010 05:38 AM

if i want to add this to the side bar column , is it possible ?

everywhere sidebar

Davey-UK 12-29-2010 04:08 PM

1 Attachment(s)
Right then, after reading and reading the many solutions, of how to get this thing styled, Above forums, camera icon instead of the green man, etc, i have reworked the files slightly, and hopefully the owner will not mind.
Below is a screenshot of my new styling, and position change etc.
https://vborg.vbsupport.ru/

I have zipped all the files up, so as to keep things simple.
Attachment 124998
All you need to do is uninstall the product and start again, by adding the xml file in your admincp.
Dont forget to upload the images provided into your forum/images/misc folder.

hope this clears a few things up, and maybe the mod author could update the front page with these files. :)

NNJJ 12-29-2010 07:12 PM

the zip file not working well

Davey-UK 12-29-2010 08:03 PM

Try again, i think it was a renamed rar file. Updated.

NNJJ 12-30-2010 12:39 PM

it looks much better thanks!!!

problem is that its show 2 lines of them

Davey-UK 12-30-2010 01:27 PM

Quote:

Originally Posted by NNJJ (Post 2141286)
it looks much better thanks!!!

problem is that its show 2 lines of them

Did you remove an old installation? Including the plugins and template files?

NNJJ 12-30-2010 04:42 PM

i did uninstall the old one? what else do i need to do???

Davey-UK 12-30-2010 05:07 PM

OK, here is all the files, and how they should look.

New Posting Templates -> newalbum_picture:
Code:

<td align="center" height="140px" style="background: url('images/misc/picbg.gif') no-repeat bottom; height:125px"><a class="picture" href="album.php?albumid={vb:raw lpicture.albumid}&amp;attachmentid={vb:raw lpicture.attachmentid}"><img  src="attachment.php?attachmentid={vb:raw lpicture.attachmentid}&amp;thumb=1&amp;d=1258906442" alt="{vb:raw lpicture.title}" border="0" height="70px" /></a><br /><a href="member.php?u={vb:raw lpicture.userid}">{vb:raw lpicture.musername}</a></td>
New Posting Templates -> newalbum_print:
Code:

<div class="blockhead"><img src="{vb:stylevar imgdir_misc}/camera.png"/>&nbsp;{vb:raw resimlery}</div><div class="blockbody formcontrols floatcontainer"><table class="block" cellpadding="2" cellspacing="2" border="0" width="100%" align="center"><tr>{vb:raw resimler}</tr></table></div>
Now go to plugin manager and look for
New Album Picture Forum Home ->> forumhome_start ->> Edit

Paste the following code in the plugin php code box:
Code:

if (
        (
                $vbulletin->options['socnet'] & $vbulletin->bf_misc_socnet['enable_albums']
                AND
                $permissions['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['canviewmembers']
                AND
                $permissions['albumpermissions'] & $vbulletin->bf_ugp_albumpermissions['canviewalbum']
                AND
                $vbulletin->options['new_enable_albums']
        )
)
{
  $displayrecords = ($vbulletin->options['new_afm_sayi'] ? $vbulletin->options['new_afm_sayi'] : 4);
    switch ($vbulletin->options['new_afm_dt'])
    {
      case 1:
      $sorgu = "ORDER BY dateline DESC LIMIT 0, $displayrecords";
      $resimlery = $vbphrase['new_afm_sec5'];
      break;
      case 2:
      $sorgu = "ORDER BY rand(NOW()) DESC LIMIT 0, $displayrecords";
      $resimlery = $vbphrase['new_afm_sec6'];
      break;
    } 
  $lpictures = $db->query("
  SELECT albumpicture.*, album.*, user.username, user.usergroupid,
  IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
  FROM " . TABLE_PREFIX . "attachment AS albumpicture
  LEFT JOIN " . TABLE_PREFIX . "album AS album ON(album.albumid = albumpicture.contentid)
  LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = album.userid)
  WHERE album.state = 'public' and albumpicture.contenttypeid = 8
  $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') . '";');
        $templater_x1 = vB_Template::create('newalbum_picture');
        $templater_x1->register('lpicture',$lpicture);
  $resimler .= $templater_x1->render();

        }
       
        $templater = vB_Template::create('newalbum_print');
        $templater->register('resimler',$resimler);
        $templater->register('resimlery',$resimlery);
        $template_hook['forumhome_above_forums'] .= $templater->render();

  }
  $db->free_result($lpictures);
}

The code in red is the name of the hook. If you know anything about how to place your own hook, you can show this wherever you wish!

Hope this helps.

NNJJ 12-31-2010 07:07 PM

i did all correct yet its etting 2 lines of album :(

NNJJ 01-01-2011 01:54 PM

1 Attachment(s)
kindly check attached

Davey-UK 01-01-2011 07:50 PM

It is only one out of your four skins that has the double row problem.
The mod is working ok.

akxt660 01-02-2011 12:03 AM

Hello colleagues, I need a help!

The blocks of the forum are superimposed on the thumbnails of this plugin.
I like to put the right blocks on the side of the forums block, as shown in red line.
Can anyone help me do this? The layout is drastically compromised.

Thanks in advance.
Grettings and Happy 2011!


See the image:
https://vborg.vbsupport.ru/external/2011/01/59.jpg

Davey-UK 01-02-2011 08:42 AM

Quote:

Originally Posted by xt660.com.br (Post 2142545)
Hello colleagues, I need a help!

The blocks of the forum are superimposed on the thumbnails of this plugin.
I like to put the right blocks on the side of the forums block, as shown in red line.
Can anyone help me do this? The layout is drastically compromised.

Goto your forumhome template and search for this:
Code:

<div id="pagetitle">
                <h1>{vb:raw vboptions.bbtitle}</h1>
                <p id="welcomemessage" class="description">{vb:rawphrase welcome_to_the_x, {vb:raw vboptions.bbtitle}}</p>
        </div>

Underneath that, put this:
Code:

{vb:raw template_hook.forumhome_above_forumsandsidebar}
Now goto your plugins manager. Look for
New Album Picture Forum Home Forumhome_start

Click edit, and look near the bottom of the php code for:
Code:

forumhome_above_forums
Change it to:
Code:

forumhome_above_forumsandsidebar
That should work.

I think its about time this was re written with options in ACP. Not seen the original author around here though.

NNJJ

I would need to see your forumhome template code to see what the problem with your skin is.

NNJJ 01-02-2011 04:50 PM

Davey!!!

thank you sooooooooooo much for help it was style issue :) as you said

denman75 01-03-2011 11:11 AM

some of my users that use internet explorer see red crosses and no image chrome is oke firefox is oke only not internet explorer
,i dont get it

Davey-UK 01-03-2011 12:22 PM

Quote:

Originally Posted by denman75 (Post 2143222)
some of my users that use internet explorer see red crosses and no image chrome is oke firefox is oke only not internet explorer
,i dont get it

Right click on the red cross, and click properties, or image info, and make sure that the path to the image actually has an image in it. Firefox doesnt show a missing image cross thats all.

If you are using my adapted version, have you uploaded the enclosed background image?

denman75 01-03-2011 12:48 PM

Quote:

Originally Posted by Davey-UK (Post 2143251)
Right click on the red cross, and click properties, or image info, and make sure that the path to the image actually has an image in it. Firefox doesnt show a missing image cross thats all.

If you are using my adapted version, have you uploaded the enclosed background image?

the image is in the correct path if u like i can send u my details

i do not use your adapted version
or wil it help if i do use your version ?

in firefox chrome opera all work fine except in that IE its broken , with others browsers i can look in every album .no problem what so ever .but since most of my users still use ie i cant let it like this
i really dont know whats up here

Davey-UK 01-03-2011 04:19 PM

Quote:

Originally Posted by denman75 (Post 2143264)
the image is in the correct path if u like i can send u my details

i do not use your adapted version
or wil it help if i do use your version ?

in firefox chrome opera all work fine except in that IE its broken , with others browsers i can look in every album .no problem what so ever .but since most of my users still use ie i cant let it like this
i really dont know whats up here

Send me a link. I will take a look for you.

denman75 01-04-2011 08:02 AM

this is what i see
difference between Firefox and Iternet Explorer

http://img205.imageshack.us/img205/6163/firefoxx.th.jpg
http://img839.imageshack.us/img839/8...plorers.th.jpg



edit
Davey-UK send link and login to u
thanks for helping me out a bit here

ehsanix 01-04-2011 10:56 AM

How can I
Latest images do show the B-side?

Davey-UK 01-04-2011 02:45 PM

Quote:

Originally Posted by ehsanix (Post 2143816)
How can I
Latest images do show the B-side?

B-Side?

explain

ehsanix 01-04-2011 06:26 PM

sorry
Latest images do show the SIDEBAR
help pls

denman75 01-04-2011 07:34 PM

jay i fixed it finally

some where on the way it seems that some old settings had to be renewed in the attachment manager ;)

Content-type: unknown/unknown images in some IE browsers show as red X

Content-type: image/jpeg new setting and its working now

MAdotcom 01-04-2011 09:04 PM

Very Nice Thank you!

ehsanix 01-05-2011 11:34 AM

How can I
Latest images do show the sidebar?
help pls :(


All times are GMT. The time now is 09:32 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.01626 seconds
  • Memory Usage 1,877KB
  • 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
  • (12)bbcode_code_printable
  • (6)bbcode_php_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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