Advertisement:

Author Topic: [Tricks] Bender default to gallery view  (Read 16187 times)

Proventa

  • Newbie
  • *
  • Posts: 34
Re: [Tricks] Bender default to gallery view
« Reply #15 on: May 16, 2013, 03:06:00 am »
well, what exactly did you do? because mine looks great!?

I got all mad about so I decided to stay with the list view but I tweaked it to look a bit better... Add shadows and tooltips, I think I like better now. Check it out: http://web.mallpatagonia.cl/

Thanks anyway!

xPxxRx

  • Jr. Member
  • **
  • Posts: 81
Re: [Tricks] Bender default to gallery view
« Reply #16 on: May 23, 2013, 10:58:30 pm »
well, what exactly did you do? because mine looks great!?

I got all mad about so I decided to stay with the list view but I tweaked it to look a bit better... Add shadows and tooltips, I think I like better now. Check it out: http://web.mallpatagonia.cl/

Thanks anyway!

so I found the problem.... I DIDN'T change

Code: [Select]
<ul class="listing-card-list" id="listing-card-list">
to

Code: [Select]
<ul class="listing-grid" id="listing-card-list">
and now it works fine! :)

before it was looking like that:



... now it works! :)

greeeetz
« Last Edit: May 23, 2013, 11:24:32 pm by xPxxRx »

stiffe

  • Full Member
  • ***
  • Posts: 128
Re: [Tricks] Bender default to gallery view - new simple way
« Reply #17 on: June 02, 2013, 07:32:31 pm »

Now for who clicks the button to go to table mode you will notice in the url it will lead you to the search page.
If you would like it to stay on the main page, you should change the url. Look after this part:
Code: [Select]
<span class="doublebutton etc. of the main.php page, and change the parts that says (there are 2):
Code: [Select]
<?php echo osc_update_search_urlto:
Code: [Select]
<?php echo osc_base_url. /*with index.php in browser adres bar*/
or:
Code: [Select]
<?php echo osc_base_url($with_index false) /* without index.php in browser adres bar */



doesnt seems to work good... I mean, when you enter the page the grid looks all messy.


Thanks for this trick!


But when I change those 2


<?php osc_update_search_url


to


<?php echo osc_base_url($with_index = false)


I got server error...


<?php osc_base_url


Works OK but as said with *index.php in browser bar/url-field


I would be glad if I don't get *index.php in the browser url-bar/field...

Maybe I'm doing something wrong here?
« Last Edit: June 02, 2013, 07:40:14 pm by stiffe »

byteGator

  • Osclass Hero
  • Sr. Member
  • *
  • Posts: 346
  • Simple Mind is a Beautiful Mind
Re: [Tricks] Bender default to gallery view
« Reply #18 on: June 03, 2013, 04:58:21 am »
stiffe, I think we replace 
Code: [Select]
<a href="<?php echo osc_update_search_url(array('sShowAs'=> 'gallery')); ?>
with
Code: [Select]
<a href="<?php echo osc_base_url($with_index false); ?>
NOT with
Code: [Select]
<a href="<?php echo osc_base_url($with_index false)(array('sShowAs'=> 'gallery')); ?>

stiffe

  • Full Member
  • ***
  • Posts: 128
Re: [Tricks] Bender default to gallery view
« Reply #19 on: June 03, 2013, 07:07:51 am »
stiffe, I think we replace 
Code: [Select]
<a href="<?php echo osc_update_search_url(array('sShowAs'=> 'gallery')); ?>
with
Code: [Select]
<a href="<?php echo osc_base_url($with_index false); ?>
NOT with
Code: [Select]
<a href="<?php echo osc_base_url($with_index false)(array('sShowAs'=> 'gallery')); ?>


Yes, you're right, I did miss that.


Works ok now.


Thank you for pointing it out.

JOSEISON

  • Newbie
  • *
  • Posts: 12
Re: [Tricks] Bender default to gallery view
« Reply #20 on: June 15, 2013, 10:23:39 pm »
When I go to my dashboard, though it's in gallery view but it's missing the pagination at the bottom.

I have to refresh the page to get the pagination. How do i solve this? thanks

searchweb

  • Jr. Member
  • **
  • Posts: 69
Re: [Tricks] Bender default to gallery view
« Reply #21 on: September 28, 2013, 07:42:27 pm »
sorry for disturb this thread. I post more easy solution, hope that can help

http://forums.osclass.org/themes/easy-way-to-set-default-as-gallery-for-all-pages-%28bender-theme%29

plesk

  • Full Member
  • ***
  • Posts: 188
Re: [Tricks] Bender default to gallery view
« Reply #22 on: October 29, 2013, 01:05:54 am »
good evening
I take what the theme bender tutorial thank you

Hello

  • Full Member
  • ***
  • Posts: 174
Re: [Tricks] Bender default to gallery view
« Reply #23 on: October 30, 2013, 02:55:41 pm »
not working

zoopla

  • Guest
Re: [Tricks] Bender default to gallery view
« Reply #24 on: December 20, 2013, 05:59:27 pm »
Thanks for the tip :)

tomshaft

  • Hero Member
  • *****
  • Posts: 862
  • Osshaft for Osclass - Add 650 posts to my total
Re: [Tricks] Bender default to gallery view
« Reply #25 on: December 31, 2013, 03:40:18 pm »
@mmcsus  - Thanks for the tip.
 ;)
« Last Edit: January 26, 2014, 12:39:15 pm by tomshaft »