Seleccionar idioma:
Realizar Donación - Mods Premium - Portfolio



Este sitio utiliza cookies propias y de terceros. Si continúa navegando consideramos que acepta el uso de cookies. OK Más Información.
* How To Insert My Own Links To Personal Menu and Main Menu Block
  Leído 3548 veces
* Viendo el foro
 0 Usuarios y 1 Visitante están viendo este foro.


Tema Solucionado
*
Sep 15 2011


How can I accomplish this? i'm thinking of editing the packaged file or the installed version of adk portal.

any instructions on how-to's?

adkportal 2.0
2.0
rapidhot.co.cc

Mensajes: 17

Ver Perfil 

En línea

*
Sep 21 2011


I'm looking for this as well

what do you want to add? maybe we should build a mod for it.

I want to add:

  • Show unread posts since last visit. (to replace header one)
  • View your topics ( to better header options)
  • Show new replies to your posts.(to replace header one)
  • Upload Image  (with aeva)
  • Help

Green one's are in adk portal's Main Menu in the correct format already, we can borrow from there

Adkportal 2.1.1
2.0.7
http://legionink.com
#1

Mensajes: 8

Ver Perfil 

En línea

*
Sep 23 2011


Some site links and shortucts...

Show Replies
Show Message
View All Unread Topics
See New Replies
My Bookmarks [Mod ba aaron]

it's the subs-adkblocks file... im not a coder... but im learning on my own right now...

adkportal 2.0
2.0
rapidhot.co.cc
#2

Mensajes: 17

Ver Perfil 

En línea

*
Sep 23 2011


you can check Subs-adkfucntion.php file

search
Código: [Seleccionar]
function load_menu_personal()
{

if you still watching... you can view.

Código: [Seleccionar]
$buttons = array(
'profile' => array(
'title' => $txt['profile'],
'style' => 'vertical-align: middle;',
'href' => $scripturl.'?action=profile',
'show' => $context['user']['is_logged'],
'icon' => 'link.png',
'div' => 'windowbg',
),
'pm' => array(
'title' => $txt['pm_short'],
'style' => 'vertical-align: middle;',
'href' => $scripturl.'?action=pm',
'show' => $context['user']['is_logged'] && $context['allow_pm'],
'icon' => 'messages.png',
'div' => 'windowbg2',
),
'admin' => array(
'title' => $txt['admin'],
'style' => 'vertical-align: middle;',
'href' => $scripturl.'?action=admin',
'show' => $context['user']['is_logged'] && $context['allow_admin'],
'icon' => 'admin.png',
'div' => 'windowbg',
),
'logout' => array(
'title' => $txt['logout'],
'style' => 'vertical-align: middle;',
'href' => $scripturl.'?action=logout;'.$context['session_var'].'='. $context['session_id'],
'show' => $context['user']['is_logged'],
'icon' => 'logout.png',
'div' => 'windowbg2',
),
'register' => array(
'title' => $txt['register'],
'style' => 'vertical-align: middle;',
'href' => $scripturl.'?action=register',
'show' => !$context['user']['is_logged'],
'icon' => 'register.png',
'div' => 'windowbg',
),
'login' => array(
'title' => $txt['login'],
'style' => 'vertical-align: middle;',
'href' => $scripturl.'?action=login',
'show' => !$context['user']['is_logged'],
'icon' => 'login.png',
'div' => 'windowbg2',
),
);

you can add multiple buttons, if you follow the estructure of the array.
for example
Citar
   $buttons = array(
      'profile' => array(
         'title' => $txt['profile'],
         'style' => 'vertical-align: middle;',
         'href' => $scripturl.'?action=profile',
         'show' => $context['user']['is_logged'],
         'icon' => 'link.png',
         'div' => 'windowbg',
      ),
      'pm' => array(
         'title' => $txt['pm_short'],
         'style' => 'vertical-align: middle;',
         'href' => $scripturl.'?action=pm',
         'show' => $context['user']['is_logged'] && $context['allow_pm'],
         'icon' => 'messages.png',
         'div' => 'windowbg2',
      ),
      'admin' => array(
         'title' => $txt['admin'],
         'style' => 'vertical-align: middle;',
         'href' => $scripturl.'?action=admin',
         'show' => $context['user']['is_logged'] && $context['allow_admin'],
         'icon' => 'admin.png',
         'div' => 'windowbg',
      ),
      'logout' => array(
         'title' => $txt['logout'],
         'style' => 'vertical-align: middle;',
         'href' => $scripturl.'?action=logout;'.$context['session_var'].'='. $context['session_id'],
         'show' => $context['user']['is_logged'],
         'icon' => 'logout.png',
         'div' => 'windowbg2',
      ),
      'register' => array(
         'title' => $txt['register'],
         'style' => 'vertical-align: middle;',
         'href' => $scripturl.'?action=register',
         'show' => !$context['user']['is_logged'],
         'icon' => 'register.png',
         'div' => 'windowbg',
      ),
      'login' => array(
         'title' => $txt['login'],
         'style' => 'vertical-align: middle;',
         'href' => $scripturl.'?action=login',
         'show' => !$context['user']['is_logged'],
         'icon' => 'login.png',
         'div' => 'windowbg2',
      ),
      'new_button' => array(
         'title' => 'My new button',
         'style' => 'vertical-align: middle;',
         'href' => 'My custom url',
         'show' => true,
         'icon' => 'my_image.png',
         'div' => 'windowbg2',
      ),

   );

ADK Portal 3.0.2
2.0.11
www.smfpersonal.net
#3

Mensajes: 8631

Ver Perfil  SMFPersonal 

En línea

*
Sep 25 2011


wow! great instruction.... thank you!

adkportal 2.0
2.0
rapidhot.co.cc
#4

Mensajes: 17

Ver Perfil 

En línea

*
Sep 25 2011


You're welcome.

If you has another question, you can ask me without any problem :)

ADK Portal 3.0.2
2.0.11
www.smfpersonal.net
#5

Mensajes: 8631

Ver Perfil  SMFPersonal 

En línea

*
Sep 26 2011


alright...

got another question... how about if i want to create my own new sets of links and group them in one portal block.

le'ts say... i want to create a menu block name 'Site Links', that could be added from the upload new block menu.

can i make a new php file and do this

Código: [Seleccionar]
<?php

if (!defined('SMF'))
die('Hacking attempt...');

//Site Links
adk_sitelinksl();


?>


and add the button array into Subs-adkfunction.php

Código: [Seleccionar]
function load_sitelinks()
{
$buttons = array(
 'new_button' => array(
         'title' => 'My new button',
         'style' => 'vertical-align: middle;',
         'href' => 'My custom url',
         'show' => true,
         'icon' => 'my_image.png',
         'div' => 'windowbg2',
      ),
   );



adkportal 2.0
2.0
rapidhot.co.cc
#6

Mensajes: 17

Ver Perfil 

En línea

*
Sep 26 2011


dont forget this:

return $buttons;

Código: [Seleccionar]
function load_sitelinks()
{
$buttons = array(
 'new_button' => array(
         'title' => 'My new button',
         'style' => 'vertical-align: middle;',
         'href' => 'My custom url',
         'show' => true,
         'icon' => 'my_image.png',
         'div' => 'windowbg2',
      ),
   );

return $buttons;
}

and right here
Código: [Seleccionar]
<?php

if (!defined('SMF'))
die('Hacking attempt...');

//Site Links
adk_sitelinksl();


?>


it must be
Código: [Seleccionar]
<?php

if (!defined('SMF'))
die('Hacking attempt...');

//Site Links
parseAdk_buttons(adk_sitelinksl());


?>


ADK Portal 3.0.2
2.0.11
www.smfpersonal.net
#7

Mensajes: 8631

Ver Perfil  SMFPersonal 

En línea

*
Sep 26 2011


ok... i'll apply it.
------------
Update...

im getting error in line 47 of Subs.adkblocks.php >> something about require_once function

and in the site-links.php >> it mentions about undefined function here>> parseAdk_buttons(adk_sitelinksl());

adkportal 2.0
2.0
rapidhot.co.cc
#8

Mensajes: 17

Ver Perfil 

« Última Modificación: Septiembre 26, 2011, 06:29:36 am por lanie »
En línea

*
Sep 26 2011


but..... you can create a php block with that content.....

you can't create that php file in other place

ADK Portal 3.0.2
2.0.11
www.smfpersonal.net
#9

Mensajes: 8631

Ver Perfil  SMFPersonal 

En línea




Otros temas de su interes

Auto News in adk portal, Question about picture size thecoo1est Diciembre 04, 2011, 11:02:12 pm
Subs-adkfunction.php error on index access. go- Agosto 02, 2011, 04:15:42 pm
ADK BLog says "User not allowed to take blog" Sim Febrero 22, 2011, 01:46:01 am *
Help with changing Recent Topics block Nightmaster Octubre 25, 2011, 08:03:02 am *
how can i get your block 'users online'? pjnet Septiembre 18, 2010, 05:57:46 pm *
shoutbox candidosa2 Febrero 13, 2011, 03:15:54 am



Usuario:
Contraseña:
Sesión:
hermes bracelet replica, christian louboutin replica, van cleef and arpels replica, red bottoms replica, cartier love bracelet replica christian louboutin replica, christian louboutin replica, hermes bracelet replica,