News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Adk Portal

Started by lucas-ruroken, March 06, 2010, 06:19:55 AM

Previous topic - Next topic

lucas-ruroken

search
   'title' => $txt['foro'],

and replace with:
   'title' => !empty($txt['foro']) ? $txt['foro'] : 'Forum',
Adk Portal 3.1 is coming....

Design your universe!

gbsothere

That took care of it and thanks so much.   ;)
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

lucas-ruroken

Adk Portal 3.1 is coming....

Design your universe!

lucas-ruroken

Adk Portal 3.1 is coming....

Design your universe!


masbuskado

Hello, I have a little issue with this mod or better yet I don't know how or when the portal will create the news pagination like the one is on your main page I let you a message on your website but I haven't receive any answer yet so I will try my luck over here maybe somebody can help me out...

Original message post on ADK Portal website:
QuoteSaludos!!!

Tengo una pregunta muy simple, hoy instale el mod Adk Portal 2.0 RC3-2 porque realmente me gusto cuando lo instale hace un tiempo pero lo tuve que desintalar debido a que no existia ninguna paginacion en las noticias, pero veo que en su pagina principal el bloque de noticias si tiene paginacion pero mi instalacion carece de una paginacion aunque indique en la administracion que puedo introducir la cantidad de noticias por paginas [Number of news per page]

Aqui les dejo una imagenes para ver si me pueden ayudar




Espero que me hayan entendido, muchas gracias!!!

Y gracias por compartir tan fabulosa integracion al SMF!

Now... what I need is the Number of news per page I am not getting it at my portal I test it and input like 8 news with the default setting of 5 news per page... and it didn't show anything only the latest 5 news and the other were vanish but when I delete the first one I was able to see the last one... I hope your understand what I am talking about.

I just need to know how to get he pagination under the news block, thank you!

This is an awesome mod!
Keep it up man!
Learning SMF!!!

lucas-ruroken

yeah... it's real

Please, attach your Subs-adkblocks.php
Adk Portal 3.1 is coming....

Design your universe!

masbuskado

Quote from: lucas-ruroken on August 09, 2010, 01:45:27 PM
yeah... it's real

Please, attach your Subs-adkblocks.php

Thank you for your fast reply!!!
Here is the file you request:
Learning SMF!!!

lucas-ruroken

search:

mysql_free_result($quest);


and add before

echo'<br />';
echo'<div align="right" class="smalltext">'.$enlace.'</div>';


Greetings.
Adk Portal 3.1 is coming....

Design your universe!

masbuskado

Quote from: lucas-ruroken on August 09, 2010, 05:34:46 PM
search:

mysql_free_result($quest);


and add before

echo'<br />';
echo'<div align="right" class="smalltext">'.$enlace.'</div>';


Greetings.

Thank you for your fast response and for helping me out!
I add the code it work, not the way I was expecting but it work

- Now it has a drop down menu to select the pages
- Also when you select page 2 it doesn't go anywhere but when you click next it goes to page 2 (so I think there is an issue there)

Here is the link to my portal www.omg-fb.net

Also I will like to change your arrow style to my own style because I don't like the look of them (can I add Prev and/or Next instead of <<< / >>>)

Thank you!!!

Saludos  ;)
Learning SMF!!!

lucas-ruroken

Ok, it's time to work :P

search:

$paginas = $contador;
$por_pagina = $limit;
$paginado = 0;
while ($paginas >= $por_pagina):
$paginas = $paginas - $por_pagina;
$paginado++;
endwhile;


if ($paginas != 0)
$paginado++;

if ($listar == 1)
{
$antes = 1;
$despues = 2;
$primero = "|<- ";
$fin = '<a href="index.php?pag='.$paginado.'" title="'.$txt['ultima_pagina'].'"> ->|</a>';
$anterior = " <<< ";
$siguiente = '<a href="index.php?pag='.$despues.'" title="'.$txt['pagina_siguiente'].'"> >>> </a>';
}
elseif ($listar == $paginado)
{
$antes = $paginado -1;
$despues = $paginado;
$primero = '<a href="index.php?pag=1" title="'.$txt['1_pag'].'">|<- </a>';
$fin = " ->|";
$anterior = '<a href="index.php?pag='.$antes.'" title="'.$txt['ant_pag'].'"> <<< </a>';
$siguiente = " >>> ";
}
else
{
$antes = $listar - 1;
$despues = $listar + 1;
$primero = '<a href="index.php?pag=1" title="'.$txt['1_pag'].'">|<- </a>';
$fin = '<a href="index.php?pag='.$paginado.'" title="'.$txt['ultima_pagina'].'"> ->|</a>';
$anterior = '<a href="index.php?pag='.$antes.'" title="'.$txt['ant_pag'].'"> <<< </a>';
$siguiente = '<a href="index.php?pag='.$despues.'" title="'.$txt['pagina_siguiente'].'"> >>> </a>';
}



if ($contador >= $limit)
{
$enlace = $primero.' '.$anterior;
$enlace .='
<select onchange=\'location.href=this.options[selectedIndex].value\' name="pageselect">';
for ($i = 1; $i <= $paginado; $i++)
{
if($i == $listar)
$enlace .='<option value="index.php?pag="'.$i.'" selected="selected">'.$i.'</option>';
else
$enlace .='<option value="index.php?pag="'.$i.'">'.$i.'</option>';

}

$enlace.="</select>";
$enlace.=$siguiente.' '.$fin;
}
else
$enlace = '
<select onchange=\'location.href=this.options[selectedIndex].value\' name="pageselect">
<option value="index.php?pag=1" selected="selected">1</option>
</select>';


and reeplace with:

$paginas = $contador;
$por_pagina = $limit;
$paginado = 0;
while ($paginas >= $por_pagina):
$paginas = $paginas - $por_pagina;
$paginado++;
endwhile;


if ($paginas != 0)
$paginado++;

if ($contador >= $limit)
{
$enlace = '';
for ($i = 1; $i <= $paginado; $i++)
{
if($i == $listar)
$enlace .='[<strong>'.$i.'</strong>]&nbsp;';
else
$enlace .='<a href="'.$scripturl.'?pag='.$i.'">'.$i.'</a>&nbsp;';
}
}
else
$enlace = '
[<strong>1</strong>]';

Adk Portal 3.1 is coming....

Design your universe!

madman71

#91
lucas,

Does the image carousel get images from forum attachments? or somewhere else?

masbuskado

Quote from: lucas-ruroken on August 09, 2010, 08:22:27 PM
Ok, it's time to work :P

search:

$paginas = $contador;
$por_pagina = $limit;
$paginado = 0;
while ($paginas >= $por_pagina):
$paginas = $paginas - $por_pagina;
$paginado++;
endwhile;


if ($paginas != 0)
$paginado++;

if ($listar == 1)
{
$antes = 1;
$despues = 2;
$primero = "|<- ";
$fin = '<a href="index.php?pag='.$paginado.'" title="'.$txt['ultima_pagina'].'"> ->|</a>';
$anterior = " <<< ";
$siguiente = '<a href="index.php?pag='.$despues.'" title="'.$txt['pagina_siguiente'].'"> >>> </a>';
}
elseif ($listar == $paginado)
{
$antes = $paginado -1;
$despues = $paginado;
$primero = '<a href="index.php?pag=1" title="'.$txt['1_pag'].'">|<- </a>';
$fin = " ->|";
$anterior = '<a href="index.php?pag='.$antes.'" title="'.$txt['ant_pag'].'"> <<< </a>';
$siguiente = " >>> ";
}
else
{
$antes = $listar - 1;
$despues = $listar + 1;
$primero = '<a href="index.php?pag=1" title="'.$txt['1_pag'].'">|<- </a>';
$fin = '<a href="index.php?pag='.$paginado.'" title="'.$txt['ultima_pagina'].'"> ->|</a>';
$anterior = '<a href="index.php?pag='.$antes.'" title="'.$txt['ant_pag'].'"> <<< </a>';
$siguiente = '<a href="index.php?pag='.$despues.'" title="'.$txt['pagina_siguiente'].'"> >>> </a>';
}



if ($contador >= $limit)
{
$enlace = $primero.' '.$anterior;
$enlace .='
<select onchange=\'location.href=this.options[selectedIndex].value\' name="pageselect">';
for ($i = 1; $i <= $paginado; $i++)
{
if($i == $listar)
$enlace .='<option value="index.php?pag="'.$i.'" selected="selected">'.$i.'</option>';
else
$enlace .='<option value="index.php?pag="'.$i.'">'.$i.'</option>';

}

$enlace.="</select>";
$enlace.=$siguiente.' '.$fin;
}
else
$enlace = '
<select onchange=\'location.href=this.options[selectedIndex].value\' name="pageselect">
<option value="index.php?pag=1" selected="selected">1</option>
</select>';


and reeplace with:

$paginas = $contador;
$por_pagina = $limit;
$paginado = 0;
while ($paginas >= $por_pagina):
$paginas = $paginas - $por_pagina;
$paginado++;
endwhile;


if ($paginas != 0)
$paginado++;

if ($contador >= $limit)
{
$enlace = '';
for ($i = 1; $i <= $paginado; $i++)
{
if($i == $listar)
$enlace .='[<strong>'.$i.'</strong>]&nbsp;';
else
$enlace .='<a href="'.$scripturl.'?pag='.$i.'">'.$i.'</a>&nbsp;';
}
}
else
$enlace = '
[<strong>1</strong>]';


wowww that work flawlessly, you are the man lucas :)
If someday you need help with some graphics or translation spanish to english or viceversa just let me know man!!!

Also where we can report any bug with your mod I will like to help you to get better this is one of the most amazing mod out there!  8)

Thank you so much!!!  :D
Learning SMF!!!

lucas-ruroken

Adk Portal 3.1 is coming....

Design your universe!

madman71

Quote from: madman71 on August 09, 2010, 09:49:00 PM
lucas,

Does the image carousel get images from forum attachments? or somewhere else?


Does anyone know where the carousel pulls the images from?

masbuskado

Quote from: madman71 on August 10, 2010, 11:19:55 AM
Quote from: madman71 on August 09, 2010, 09:49:00 PM
lucas,

Does the image carousel get images from forum attachments? or somewhere else?


Does anyone know where the carousel pulls the images from?

Yes, if you go to lucas support website you will know but I was reading that you have to upload all the image to a folder or put them all together in a folder and then edit a file with the name of your image and then upload it but I think your question is "If the image are parse automatically or manual?" so I think is manual right now maybe lucas will clear any doubt later.

By the way keeping in the same topic, am using the image gallery mod if I want a block to display the recent image or random image from the gallery it can be possible or not?

Also the Auto News comes without pagination right?

;)
Learning SMF!!!

madman71

Quote from: masbuskado on August 10, 2010, 01:19:37 PM
Quote from: madman71 on August 10, 2010, 11:19:55 AM
Quote from: madman71 on August 09, 2010, 09:49:00 PM
lucas,

Does the image carousel get images from forum attachments? or somewhere else?


Does anyone know where the carousel pulls the images from?

Yes, if you go to lucas support website you will know but I was reading that you have to upload all the image to a folder or put them all together in a folder and then edit a file with the name of your image and then upload it but I think your question is "If the image are parse automatically or manual?" so I think is manual right now maybe lucas will clear any doubt later.

By the way keeping in the same topic, am using the image gallery mod if I want a block to display the recent image or random image from the gallery it can be possible or not?

Also the Auto News comes without pagination right?

;)

thanks for response. I was hoping that it pulled images from the actual posts with attachments.  maybe i'll request it over at his site


lucas-ruroken

Sory, I didn't see your posts.

If you want manage the carrousel block... go to Adkportal-->Modules-->Advnaced Images

Greetings and Excuse me again.
Adk Portal 3.1 is coming....

Design your universe!

masbuskado

Perdona que tome atribuciones que no me tocan pero lo que  madman71 trata de saber es de donde son llamadas las imagenes en el bloque del carrusel.  Y en mi post yo queria saber como funciona el Auto News si tiene algun sistema de paginacion como el las News o no y si se puede crear un bloque para presentar las ultimas o imagenes aleatorias de la galeria de imagenes.

Graxias!!! :)
Learning SMF!!!

lucas-ruroken

*Masbuskado
You can view this topic: http://www.smfpersonal.net/espanol/ayuda-para-paginar-el-bloque-autonews-que-trae-por-defecto-adkportal-t759.0.html

*madman71
If you want to add a new custom image in the carrousel block... you can create a new image in Modules-->Advanced images...


PD: Soy bastante malo en el ingles, pero trato de defenderme :P
Adk Portal 3.1 is coming....

Design your universe!

Advertisement: