Advertisement:

Author Topic: Adk Portal  (Read 311327 times)

Offline lucas-ruroken

  • SMF Hero
  • ******
  • Posts: 4,906
  • Gender: Male
  • Adk Developer
    • lucas.ruroken on Facebook
    • lucasruroken on GitHub
Re: Adk Portal V2.0 Rc3-1 (Released)
« Reply #80 on: August 05, 2010, 11:57:16 PM »
search
   'title' => $txt['foro'],

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

Design your universe!

Offline gbsothere

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,780
  • I'm a Pappy!
Re: Adk Portal V2.0 Rc3-1 (Released)
« Reply #81 on: August 06, 2010, 09:17:05 AM »
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.

Offline lucas-ruroken

  • SMF Hero
  • ******
  • Posts: 4,906
  • Gender: Male
  • Adk Developer
    • lucas.ruroken on Facebook
    • lucasruroken on GitHub
Re: Adk Portal V2.0 Rc3-1 (Released)
« Reply #82 on: August 06, 2010, 02:16:25 PM »
You're welcome ;)

Greetings
Adk Portal 3.1 is coming....

Design your universe!

Offline lucas-ruroken

  • SMF Hero
  • ******
  • Posts: 4,906
  • Gender: Male
  • Adk Developer
    • lucas.ruroken on Facebook
    • lucasruroken on GitHub
Re: Adk Portal (2.0 RC4 is now released)
« Reply #83 on: August 08, 2010, 05:26:30 PM »
Adkportal 2.0 RC4 is now released ;)
Adk Portal 3.1 is coming....

Design your universe!

Offline Mods Devs

  • Newbie
  • *
  • Posts: 5
Re: Adk Portal (2.0 RC4 is now released)
« Reply #84 on: August 08, 2010, 07:03:53 PM »
Good work!

Offline masbuskado

  • Semi-Newbie
  • *
  • Posts: 44
  • Gender: Male
    • New Mod City
Re: Adk Portal (2.0 RC4 is now released)
« Reply #85 on: August 09, 2010, 11:31:37 AM »
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:
Quote
Saludos!!!

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!!!

Offline lucas-ruroken

  • SMF Hero
  • ******
  • Posts: 4,906
  • Gender: Male
  • Adk Developer
    • lucas.ruroken on Facebook
    • lucasruroken on GitHub
Re: Adk Portal (2.0 RC4 is now released)
« Reply #86 on: August 09, 2010, 01:45:27 PM »
yeah... it's real

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

Design your universe!

Offline masbuskado

  • Semi-Newbie
  • *
  • Posts: 44
  • Gender: Male
    • New Mod City
Re: Adk Portal (2.0 RC4 is now released)
« Reply #87 on: August 09, 2010, 02:12:51 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!!!

Offline lucas-ruroken

  • SMF Hero
  • ******
  • Posts: 4,906
  • Gender: Male
  • Adk Developer
    • lucas.ruroken on Facebook
    • lucasruroken on GitHub
Re: Adk Portal (2.0 RC4 is now released)
« Reply #88 on: August 09, 2010, 05:34:46 PM »
search:
Code: [Select]
mysql_free_result($quest);

and add before
Code: [Select]
echo'<br />';
echo'<div align="right" class="smalltext">'.$enlace.'</div>';

Greetings.
Adk Portal 3.1 is coming....

Design your universe!

Offline masbuskado

  • Semi-Newbie
  • *
  • Posts: 44
  • Gender: Male
    • New Mod City
Re: Adk Portal (2.0 RC4 is now released)
« Reply #89 on: August 09, 2010, 08:15:53 PM »
search:
Code: [Select]
mysql_free_result($quest);

and add before
Code: [Select]
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!!!

Offline lucas-ruroken

  • SMF Hero
  • ******
  • Posts: 4,906
  • Gender: Male
  • Adk Developer
    • lucas.ruroken on Facebook
    • lucasruroken on GitHub
Re: Adk Portal (2.0 RC4 is now released)
« Reply #90 on: August 09, 2010, 08:22:27 PM »
Ok, it's time to work :P

search:
Code: [Select]
$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:
Code: [Select]
$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!

Offline madman71

  • Full Member
  • ***
  • Posts: 652
Re: Adk Portal (2.0 RC4 is now released)
« Reply #91 on: August 09, 2010, 09:49:00 PM »
lucas,

Does the image carousel get images from forum attachments? or somewhere else?
« Last Edit: August 09, 2010, 09:52:19 PM by madman71 »

Offline masbuskado

  • Semi-Newbie
  • *
  • Posts: 44
  • Gender: Male
    • New Mod City
Re: Adk Portal (2.0 RC4 is now released)
« Reply #92 on: August 09, 2010, 10:30:07 PM »
Ok, it's time to work :P

search:
Code: [Select]
$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:
Code: [Select]
$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!!!

Offline lucas-ruroken

  • SMF Hero
  • ******
  • Posts: 4,906
  • Gender: Male
  • Adk Developer
    • lucas.ruroken on Facebook
    • lucasruroken on GitHub
Re: Adk Portal (2.0 RC4 is now released)
« Reply #93 on: August 10, 2010, 07:59:05 AM »
Thank you man ;)

Greetings ^^
Adk Portal 3.1 is coming....

Design your universe!

Offline madman71

  • Full Member
  • ***
  • Posts: 652
Re: Adk Portal (2.0 RC4 is now released)
« Reply #94 on: August 10, 2010, 11:19:55 AM »
lucas,

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


Does anyone know where the carousel pulls the images from?

Offline masbuskado

  • Semi-Newbie
  • *
  • Posts: 44
  • Gender: Male
    • New Mod City
Re: Adk Portal (2.0 RC4 is now released)
« Reply #95 on: August 10, 2010, 01:19:37 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!!!

Offline madman71

  • Full Member
  • ***
  • Posts: 652
Re: Adk Portal (2.0 RC4 is now released)
« Reply #96 on: August 10, 2010, 01:29:55 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


Offline lucas-ruroken

  • SMF Hero
  • ******
  • Posts: 4,906
  • Gender: Male
  • Adk Developer
    • lucas.ruroken on Facebook
    • lucasruroken on GitHub
Re: Adk Portal (2.0 RC4 is now released)
« Reply #97 on: August 10, 2010, 03:28:19 PM »
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!

Offline masbuskado

  • Semi-Newbie
  • *
  • Posts: 44
  • Gender: Male
    • New Mod City
Re: Adk Portal (2.0 RC4 is now released)
« Reply #98 on: August 10, 2010, 03:35:56 PM »
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!!!

Offline lucas-ruroken

  • SMF Hero
  • ******
  • Posts: 4,906
  • Gender: Male
  • Adk Developer
    • lucas.ruroken on Facebook
    • lucasruroken on GitHub
Re: Adk Portal (2.0 RC4 is now released)
« Reply #99 on: August 10, 2010, 04:02:42 PM »
*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!