Topics

User Functions

Events

There are no upcoming events

What's New

Stories

No new stories

Comments last 2 weeks

No new comments

Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Thursday, May 23 2013 @ 12:49 AM EDT


 Forum Index > Support > Theming Support New Topic Post Reply
 Home page to the style Joomla
First | Previous | 1 2 | Next | Last
   
koalasoft
 09/26/08 02:58PM (Read 4782 times)  
+++++
Full Member

Status: offline


Registered: 03/09/05
Posts: 236
Hello !!

In theme Geeklog the new view in form the cell .. but ..

I would like that my news appeared in the form of blocks, as well as the Home Page of cms joomla .. for example .. this image
PHP Formatted Code
http://i33.tinypic.com/24erm82.jpg


Somebody can give an idea me of how I can do so that it only appears in the Home Page the news like in the image??

Grettings !! Mr. Green

**Cuando el Alumno esta listo, el Maestro Aparece ** ::Geeklog support in Spanish::
 
Profile Email Website
 Quote
beewee
 09/26/08 05:26PM  
+++++
Full Member

Status: offline


Registered: 08/05/03
Posts: 969
Have a look over here. I'm afraid it doesn't work with newer Geeklog versions.

Dutch Geeklog sites about camping/hiking: www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 
Profile Email Website
 Quote
koalasoft
 09/26/08 06:44PM  
+++++
Full Member

Status: offline


Registered: 03/09/05
Posts: 236
god !! but ..

this hack is for geeklog 1.3 .. and my site have Geeklog 1.5.1 ..

this hack I do not working in 1.5.1 .. y very very change in index.php ... Cry

Grettings !!

**Cuando el Alumno esta listo, el Maestro Aparece ** ::Geeklog support in Spanish::
 
Profile Email Website
 Quote
1000ideen
 09/27/08 02:36PM  
+++++
Full Member

Status: offline


Registered: 08/04/03
Posts: 1273
You mean a two columns layout of the stories? http://www.geeklog.net/forum/viewtopic.php?showtopic=71001
http://www.geeklog.net/forum/viewtopic.php?showtopic=38522

Seems to be a feature that is being asked for every now and again.

 
Profile Email Website
 Quote
koalasoft
 09/30/08 01:46PM  
+++++
Full Member

Status: offline


Registered: 03/09/05
Posts: 236
Quote by: 1000ideen

You mean a two columns layout of the stories? http://www.geeklog.net/forum/viewtopic.php?showtopic=71001
http://www.geeklog.net/forum/viewtopic.php?showtopic=38522

Seems to be a feature that is being asked for every now and again.



I do not way . but in GK 1.5.1 not working !! Cry

**Cuando el Alumno esta listo, el Maestro Aparece ** ::Geeklog support in Spanish::
 
Profile Email Website
 Quote
koalasoft
 10/17/08 06:52PM  
+++++
Full Member

Status: offline


Registered: 03/09/05
Posts: 236
and .. !!

other idea for my ??? :pray:


Grettings !! Mr. Green

**Cuando el Alumno esta listo, el Maestro Aparece ** ::Geeklog support in Spanish::
 
Profile Email Website
 Quote
Anonymous: hfd
 10/17/08 11:24PM  



Quote by: koalasoft

and .. !!

other idea for my ??? :pray:


Grettings !! Mr. Green


how about create a static page and set to featured with no right block. insert the news menully in the table.

PHP Formatted Code
<tr>
<th><center>Page 1 title</center></th>
<th><center>Page 2 title</center></th>
</tr>
<tr>
<td bgcolor="#ff9966" valign=top>
<ul><li>put your first news here.
<li>feature news 2.
<li>feature news 3.
<li><a href="http://yoursite.com/staticpages/index.php?page=2008101714094xxxx">feature news 3</a>
<li>news tible 4.
<li><a href="http://yoursite.com/staticpages/index.php?page=200810171354xxxx">news tible here</a>
</td>
<td bgcolor="#99CC33" valign=top>
<ul><li>Myspace
<li>Yahoo
<li>Google
<li>Window Live
<li>Your page2
<li>Your page3
</td>
</tr>
</table>
 



 
 Quote
hfd
 10/17/08 11:27PM  
++---
Junior

Status: offline


Registered: 06/19/08
Posts: 16
how about create a static page and set to featured with no right block. insert the news menully in the table.

PHP Formatted Code

<table border="0" height="160" width="550" align="center">
<tr>
<th><center>Page 1 title</center></th>
<th><center>Page 2 title</center></th>
</tr>
<tr>
<td bgcolor="#ff9966" valign=top>
<ul><li>put your first news here.
<li>feature news 2.
<li>feature news 3.
<li><a href="http://yoursite.com/staticpages/index.php?page=2008101714094xxxx">feature news 3</a>
<li>news tible 4.
<li><a href="http://yoursite.com/staticpages/index.php?page=200810171354xxxx">news tible here</a>
</td>
<td bgcolor="#99CC33" valign=top>
<ul><li>Myspace
<li>Yahoo
<li>Google
<li>Window Live
<li>Your page2
<li>Your page3
</td>
</tr>
</table>
 



 
Profile Email
 Quote
koalasoft
 10/18/08 12:16PM  
+++++
Full Member

Status: offline


Registered: 03/09/05
Posts: 236
Good… this example is good, but it is not what I look for, I put as it in the image, I want to see if there is the possibility that the articles in the main page appear in the form of columns to the Joomla style but that is made automatically.

Grettings !! Mr. Green

**Cuando el Alumno esta listo, el Maestro Aparece ** ::Geeklog support in Spanish::
 
Profile Email Website
 Quote
hfd
 10/18/08 01:18PM  
++---
Junior

Status: offline


Registered: 06/19/08
Posts: 16
Quote by: koalasoft

Good… this example is good, but it is not what I look for, I put as it in the image, I want to see if there is the possibility that the articles in the main page appear in the form of columns to the Joomla style but that is made automatically.

Grettings !! Mr. Green


I think Geeklog can't do that way. because joomla and geeklog are difference code, form and much more. what you looking for is a new rebuild geeklog. I guess geeklog have to do some thing difference from joomla. they will not follow joomla style any way.

if you really what to use geeklog as the way joomla do. I think you have to pay for a programmer to rebuild geeklog as joomla for you. (my opinion).

I am waiting to see Geeklog 2 to see how the look.

thanks.

 
Profile Email
 Quote
::Ben
 10/18/08 06:18PM  
+++++
Full Member

Status: offline


Registered: 01/14/05
Posts: 1359
Hi Koalasoft,

With a hack of the index.php you could enclose the render of the first half of the stories in a div (float left and width 50%) witch will display stories on the left and for the second half another div for stories on the right.

If you have 6 stories per pages:
for story 1 to 3 > display left
for story 4 to 6 > display right

Like this, every page (page=1, page=2... topic=1, topic=2...) will be 2 colons like on Joomla.

::Ben

We speak french on http://geeklog.fr
 
Profile Email Website
 Quote
ironmax
 10/18/08 07:33PM  
MMMMM
Moderator

Status: offline


Registered: 06/20/03
Posts: 645
Quote by: cordiste

Hi Koalasoft,

With a hack of the index.php you could enclose the render of the first half of the stories in a div (float left and width 50%) witch will display stories on the left and for the second half another div for stories on the right.

If you have 6 stories per pages:
for story 1 to 3 > display left
for story 4 to 6 > display right

Like this, every page (page=1, page=2... topic=1, topic=2...) will be 2 colons like on Joomla.

::Ben



I wonder, could it be possible to use a variable in place of the hack you made above and place the changes in the functions.php file of the theme? Cuz then this could go a long ways. All the admin would have to do is just change out that index file or make the changes in it. Then theme devs could program for that in the themes.

Just my :twocents: worth

Michael

Have you seen the Geeklog Demo site? Check it out by clicking on the Demo Site link to the left under Resources - Getting started.
 
Profile Email Website
 Quote
::Ben
 10/19/08 12:33PM  
+++++
Full Member

Status: offline


Registered: 01/14/05
Posts: 1359
Hi,

Another idea, if your don't want to hack the index.php file, is to make a plugin and with the function PLG_showCenterblock you could replace the entire index page.

::Ben


We speak french on http://geeklog.fr
 
Profile Email Website
 Quote
::Ben
 10/19/08 02:55PM  
+++++
Full Member

Status: offline


Registered: 01/14/05
Posts: 1359
Michael (sorry for my late response),

To replace the normal content by another in the index page and because it's not only a variable, a easy way is to get code from a hack, a static page or a plugin.

functions.php in the template folder is more for content order and template variables.

::Ben

We speak french on http://geeklog.fr
 
Profile Email Website
 Quote
::Ben
 10/19/08 06:11PM  
+++++
Full Member

Status: offline


Registered: 01/14/05
Posts: 1359
William,

This hack is working. Maybe you will have to theme the divs.

In index.php near line 317
PHP Formatted Code

    // get remaining stories
       
        $storycount = 2;
        $limit = 1+((int)($nrows/2));
               
        $display .= '<div id="columnleft" style="float:left; width:48%;padding-right:10px;">';
               
    while ($A = DB_fetchArray ($result)) {
        $display .= $storycount . "/" . $nrows . ' ' . $limit;
        $story = new Story();
        $story->loadFromArray($A);
        $display .= STORY_renderArticle ($story, 'y');
        if ($storycount >= $limit)
                    break;
        $storycount++;
    }
        $display .= '</div>';
        $display .= '<div id="columnright" style="float:right; width:48%;padding-right:10px;">';
               
    while ($A = DB_fetchArray ($result)) {
        $display .= $storycount . "/" . $nrows;
        $story = new Story();
        $story->loadFromArray($A);
        $display .= STORY_renderArticle ($story, 'y');
        $storycount++;
    }

        $display .= '</div><div style="clear:both"></div>';
                       
    // get plugin center blocks that follow articles


::Ben

We speak french on http://geeklog.fr
 
Profile Email Website
 Quote
Anonymous: Zmxn
 11/03/08 04:10AM  



Quote by: cordiste

William,

This hack is working. Maybe you will have to theme the divs.

In index.php near line 317


::Ben



Thank you, Cordiste! It work great in GL 1.5.1. But can you made code that will working in GL 1.4.1 or what I need to do that it works? thank you

 
 Quote
beewee
 11/03/08 11:06AM  
+++++
Full Member

Status: offline


Registered: 08/05/03
Posts: 969
That looks like a great hack Big Grin . Is a featured article still full width? When yes, this would be nice to make this a standard feature for GL 1.52. I'm no developer Mr. Green , but I'm sure there is a way to put this in the config. options.

Dutch Geeklog sites about camping/hiking: www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 
Profile Email Website
 Quote
koalasoft
 11/03/08 12:51PM  
+++++
Full Member

Status: offline


Registered: 03/09/05
Posts: 236
Working .. perflectly

Super perfecto .. !!

Thank's Cordise !!

Grettings !!

**Cuando el Alumno esta listo, el Maestro Aparece ** ::Geeklog support in Spanish::
 
Profile Email Website
 Quote
::Ben
 11/03/08 02:01PM  
+++++
Full Member

Status: offline


Registered: 01/14/05
Posts: 1359
Hello,

That looks like a great hack Big Grin


Just a little one Smile

I'm working to a new plugin call "Blocks plugin" witch allow to replace content by a block... and in a block you can put a hack. So this hack would be available if you need it.

I'm looking for some cool old php blocks and will add them to this Blocks manager plugin. There will be a place for this one too before the next media gallery release.

Maybe it's a good way to allow hacks without hacking the core.

::Ben

We speak french on http://geeklog.fr
 
Profile Email Website
 Quote
KungfuBeer
 12/05/08 12:58PM  
+----
Newbie

Status: offline


Registered: 01/11/06
Posts: 14
Quote by: cordiste

William,

This hack is working. Maybe you will have to theme the divs.

In index.php near line 317

PHP Formatted Code

    // get remaining stories
       
        $storycount = 2;
        $limit = 1+((int)($nrows/2));
               
        $display .= '<div id="columnleft" style="float:left; width:48%;padding-right:10px;">';
               
    while ($A = DB_fetchArray ($result)) {
        //$display .= $storycount . "/" . $nrows . ' ' . $limit;
        $story = new Story();
        $story->loadFromArray($A);
        $display .= STORY_renderArticle ($story, 'y');
        if ($storycount >= $limit)
                    break;
        $storycount++;
    }
        $display .= '</div>';
        $display .= '<div id="columnright" style="float:right; width:48%;padding-right:10px;">';
               
    while ($A = DB_fetchArray ($result)) {
        //$display .= $storycount . "/" . $nrows;
        $story = new Story();
        $story->loadFromArray($A);
        $display .= STORY_renderArticle ($story, 'y');
        $storycount++;
    }

        $display .= '</div><div style="clear:both"></div>';
                       
    // get plugin center blocks that follow articles


::Ben



This works great!!! Thanks for the code!

I did comment out both of these, so the story count does not show.
PHP Formatted Code
$display .= $storycount . "/" . $nrows . ' ' . $limit;

 
Profile Email
 Quote
First | Previous | 1 2 | Next | Last
Content generated in: 1.66 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to post 
Filtered HTML Allowed 
Censored Content