• Welcome to PHPVIBE Forums. Please log in.

Recent posts

#21
avatar_Marius P.
Upgrades / Re: Security Admin Pin Numbers...
Last post by Marius P. -
Hi! Is this a fresh install?
#22
M
Upgrades / Re: Security Admin Pin Numbers...
Last post by Merv77 -
Hello tweky94, unfortunately that did not work:-)
#23
T
Upgrades / Re: Security Admin Pin Numbers...
Last post by tweky94 -
hi , and sorry for my english  :D
look photo , I think it's a small bug, but it's not a problem, press more and refresh the cache, then put the password and enter
#24
M
Upgrades / Security Admin Pin Numbers Fai...
Last post by Merv77 -
Hello everyone,

              like most of you I've been waiting for the do-over of this amazing CMS.I just insatlled a new version once again , the first install was last evening, and on both installations, using different msql databases. After inserting my security admin numbers, the CMS don't allow me to enter the admin section of my website. Does anyone have any suggestions please? See my new site here:https://mervintimothyreyes.com/

Thanks
Mervin Reyes
https://mervintimothyreyes.com/
#25
H
Help me! / Re: How to restrict visitors t...
Last post by HPR -
Thanks Mario for explanation i ll check it asap ^-^
#26
H
Bug tracker / Share button not working in sm...
Last post by HPR -
Hello
i Installed vibe for test
i found share button not working on smart phone
Also mentined on github few months back

Anyone facing same issue?

#27
H
Bug tracker / Uncaught mysqli_sql_exception:...
Last post by HPR -
Hello
while installing i found following error

Uncaught mysqli_sql_exception: Specified key was too long; max key length is 1000 bytes in /www/wwwroot/test.domain.com/app/classes/ez_sql_mysqli.php:264 Stack trace: #0 /www/wwwroot/test.domain.com/app/classes/ez_sql_mysqli.php(264): mysqli->query() #1 /www/wwwroot/test.domain.com/setup/install.db.php(72): ezSQL_mysqli->query() #2 {main} thrown in
/www/wwwroot/test.domain.com/app/classes/ez_sql_mysqli.php
on line
264

Uncaught mysqli_sql_exception: Field 'id' doesn't have a default value in /www/wwwroot/test.domain.com/app/classes/ez_sql_mysqli.php:264 Stack trace: #0 /www/wwwroot/test.domain.com/app/classes/ez_sql_mysqli.php(264): mysqli->query() #1 /www/wwwroot/test.domain.com/setup/index.php(372): ezSQL_mysqli->query() #2 {main} thrown in /www/wwwroot/test.domain.com/app/classes/ez_sql_mysqli.php on line 264

 :-[
#28
avatar_Marius P.
Style / Re: videoclipuri pe prima pagi...
Last post by Marius P. -
#29
T
Style / Re: videoclipuri pe prima pagi...
Last post by tweky94 -
imi spui te rog cum modific si in pagina de videourile sa nu se vada blurat ?
https://ibb.co/ZHv77BV
#30
avatar_Marius P.
Help me! / Re: How to restrict visitors t...
Last post by Marius P. -
Hi


if (!is_user()) { 
//show something to guests
} else {
//show something else to users
}

You can use this in index.php and load a different component.

https://github.com/PHPVibe/PHPVibe/blob/master/index.php

for example replace :

$router->map('/', 'home', array('methods' => 'GET', 'filters' => array('id' => '(\d+)')));

with

if (!is_user()) { 
$router->map('/', 'guesthome', array('methods' => 'GET', 'filters' => array('id' => '(\d+)')));
} else {
$router->map('/', 'home', array('methods' => 'GET', 'filters' => array('id' => '(\d+)')));
}

and then create your guesthome.route.php in /views

you can clone https://github.com/PHPVibe/PHPVibe/blob/master/views/home.route.php and change

include_once(TPL.'/home.php');

to

include_once(TPL.'/guesthome.php');

and you'll need to build that guesthome.php in the theme folder similar to how home is built, but with your custom content for guests https://github.com/PHPVibe/PHPVibe/blob/master/themes/main/home.php