TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

June 17, 2024, 08:30:28 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,254
  • Total Topics: 21,225
  • Online today: 149
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 154
  • Total: 155
  • davo88

Help!

Started by RvG, December 18, 2006, 08:34:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

RvG

sorry to bother asking this...  ::)

I saw someone posted a new block for Gallery 2 (with random pic) but I can't find it now... was it deleted?

Thanks a lot!  :up:

RvG

Sorry I found it!

http://galleryproject.oldiesmann.us/index.php?topic=124.0

DEMO


Sidebar in a Block with TP #Updated 10/DEC/06

BEFORE WE GET STARTED YOU MUST GO INTO
YOUR SMF GALLERY OPTIONS PAGE, AND PUT A CHECK IN "Hide Gallery Sidebar" OR THIS WILL NOT WORK

STEP1:
gallery.php or galleryRC2.php (I dont think RC2 is used anymore since 1.1 come out)
location:/SMF FORUM/Sources/
Search for
Code:

$context['galleryBody'] = $g2data['bodyHtml'];


REPLACE with
Code:

{
      $context['galleryBody'] = $g2data['bodyHtml'];
      $context['g2sidebar'] = $g2data['sidebarBlocksHtml'];
      }


STEP2:
style.css
location: /SMF FORUM/Themes/YOUR THEME/
Note: You must add this to every theme that you use on your site, reason being is so that you can alter its appearance depending on what the theme looks like.
Insert at the end of the file
Code:

/* ********************************************************************************
* Tiny Portal Sections
* .gcBorderTP      Palette of borders
* #gsSidebarTP     Sidebar - Edit this to change width to prevent overflows with Tinyport
               Also to adjust font size etc
*/



.gcBorderTP2 { border: 0 solid #3A81F3; }

#gsSidebarTP2 {
   border-right-width: 0px;
   width: 140px;
   overflow: hidden;
   margin: 0px 0px 0px 0px;
   font-size: x-small;
   
}

#gsSidebarTP2 h3{
   border-right-width: 0px;
   width: 140px;
   overflow: hidden;
   margin: 0px 0px 0px 0px;
   font-size: small;
   
}

#gsSidebarTP2 Col {
  border: #666 0px solid;
  padding-bottom: 0px;
  width: 1%; /* Expand to fit content ("0" bad4 firefox, "1px" bad4 opera) */
}

#gallery #gsSidebarTP2 ul { font-size: 1em; }

#gsSidebarTP2 div ul {   /* no > in IE */
  font-size: 1.1em;
  font-weight: bold;
}

#gsSidebarTP2 hr {   /* no > in IE */

   height: 1px;
   border: 0;
   color: #3a81f3;
   background-color: #3a81f3;

}

#gsSidebarTP2 div ul ul { font-size: 1.0em; }

#gsSidebarTP2 ul span { color: #999; }

div#gsSidebarTP2 div.block-core-ItemLinks a { display: block; }

div#gsSidebarTP2 div.block-core-PeerList a {
  display: block;
  padding: 0px;
}

div#gsSidebarTP2 div.block-core-PeerList span {
  font-weight: bold;
  display: block;
  padding: 0px;
}

div#gsSidebarTP2 div.block-core-PeerList span.current { color: #ccc; }


STEP3:
Make a new phpbox block
Title:Gallery Menu
Body:
Code:

echo '<div  id="gsSidebarTP2" class="gcBorderTP2"> '.implode('',$context['g2sidebar']).'</div>';


Show for this action:  gallery
**THIS IS AN IMPORTANT STEP AS THEN THE BLOCK WILL ONLY SHOW IF THE USER IS IN THE GALLERY.
**YOU MAY HAVE TO SAVE THEN EDIT THE BLOCK TO SEE THIS OPTION.

Thurnok

Not sure what you meant by block for Gallery 2 (with random pic), but I did a block just for a random pic from SMF Gallery (actually, you choose the number of random pics you want displayed, and how many columns, as well as other info) you can find that one here.

That Gallery Menu you have looks pretty cool though.

RvG

this uses the gallery 2 (gallery.menalto.com) + smf + tp.

Quote from: Thurnok on December 18, 2006, 08:57:45 PM
That Gallery Menu you have looks pretty cool though.

Thurnok

Quote from: SeksMeyts on December 18, 2006, 08:42:53 PM
YOUR SMF GALLERY OPTIONS PAGE, AND PUT A CHECK IN "Hide Gallery

Sorry.. the line where it said SMF GALLERY threw me off.  I thought this was regarding the SMF Gallery mod by vbgamer45.