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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,970
  • Latest: bynw
Stats
  • Total Posts: 196,055
  • Total Topics: 21,337
  • Online today: 572
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 147
  • Total: 147

how to hide rigth column in Search and Calendar

Started by growl, July 18, 2007, 08:44:46 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

growl

hi!

as of the original default template of smf, how would i hide the right column in search and calendar?
didn't find a button to do so and also couldn't find something corresponding in the code, which doesn't necessarily mean that it isn't there;-)

G6Cad

You have to manually add a short string of code under the first global statment in the calendar.php and search.php in the sources directory.

the string you add right under the global statment is
tp_hidebars();

sources/Calendar.php find

// Show the calendar.
function CalendarMain()
{
   global $txt, $context, $modSettings, $scripturl, $options;


Right under it add
tp_hidebars();

Then the same for the /Sources/search.php

Find
// Ask the user what they want to search for.
function PlushSearch1()
{
   global $txt, $scripturl, $db_prefix, $modSettings, $user_info, $context;


Right under it add
tp_hidebars();

growl

thanks a lot.
ok, this works fine, but is there also a possibility to only hide the right column and leave the rest there?

growl

ok, i've just added the "right" argument and it works fine, so no further assistance is needed. THANKS!

G6Cad


Ianedres

I tried this technique with my 'Gallery' function but was unable to hide any of the columns. It works with the calendar, of course.

I'm using the iFrame method to load the Coppermine gallery. Placed it in the gallery.php and gallery.template.php files...

Any ideals?

growl

you could simply include the gallery iframe thing into an article of tinyportal, and then you have all the options whether to show columns, intro etc.

Ianedres

Certainly a viable solution for most applications.

I have my top menu displaying a "Gallery" button; the script modifies that one link so that unregistered members are linked to a page that explains this and prompts for registration... registered members are directed to the gallery as such.

I could, in the article solution, move that code to determine the viewers registration status and remove it altogether from the main menu. That would allow for controlling the columns and would also prevent menu problems with other themes... very interesting.

I use a graphic menu in the left column for a majority of my board's functions... which stays regardless of what theme I use.

Thanks for the suggestion- though I still wonder if it can be done as I have it now. Going to work and try to implement all this.

G6Cad

This method will only work on mods that using the SMF source files, not a standalone script like coppermine.
You need to implement coppermine to your SMF.
There is a guide on SMF forums on how to make that happend.
http://www.simplemachines.org/community/index.php?topic=113488.msg727373#msg727373
It's for SMF 1.1rc3, but should be working with 1.1.3 to

Ianedres

Now that I'm utilizing a PHP article to determine a guest or member, it loads the Coppermine in an IFRAME. Only difference is that SMF/TP determines what columns are displayed prior to loading the frame.

This is more portable and versatile and does not require the loaded frame's script to be integrated with SMF. So I believe that is a better solution as it does not require modification to the loaded script- which reduces errors (and subsequent support problems!)...

This website is proudly hosted on Crocweb Cloud Website Hosting.