Skip to Content Skip to Menu

Ponygallery does not allow guests to view details

  • ltmwalter
  • ltmwalter
  • OFFLINE
  • Posts: 2
  • Thanks: 0
  • Karma: 0
17 years 5 months ago #37186 by ltmwalter
Hi, I installed ponygallery ML and the ponygallery plugin for CB. The uploading and gallery work. But when not logged in it doesnt want to show the picture details and asks to log in. I know you can turn this on or off with: Show Detail Page.

However I already gave:"Show Detail Page" the value YES but STILL it doesnt want to show the details page????

Im really in the dark about this. Can anybody help me out here??

Many thanks in advance

Please Log in or Create an account to join the conversation.

  • ltmwalter
  • ltmwalter
  • OFFLINE
  • Posts: 2
  • Thanks: 0
  • Karma: 0
17 years 5 months ago #37187 by ltmwalter
ok it gets even weirder. Even when Im logged in I still get the message???!

Please Log in or Create an account to join the conversation.

16 years 7 months ago #58417 by scanhead25
i got a solution to our problem follow the steps carefully.

1. open your /components/com_ponygallery/ponygallery.php

2. look for this code:

case 'detail':
if ( $my->gid==0 && $ag_showdetailpage==0) {
echo '<script> alert("'._PONYGALLERY_NO_DETAILS_ALERT.'"); </script>';
// mosRedirect(sefRelToAbs("index.php?option=com_ponygallery&amp;Itemid=".$Itemid), _PONYGALLERY_NO_DETAILS);
die();

} elseif($ag_detailpic_open!=0) {

echo '<script> alert("'._PONYGALLERY_NO_DETAILS_ALERT.'"); </script>';
// mosRedirect(sefRelToAbs("index.php?option=com_ponygallery&amp;Itemid=".$Itemid), _PONYGALLERY_NO_DETAILS);
die();

} else {
GalleryHeader();
include( _PONY_FRONTEND_PATH . '/sub_viewdetails.php' );
}
break;


3. Replace the codes in red with these:

GalleryHeader();
include( _PONY_FRONTEND_PATH . '/sub_viewdetails.php' );

hope you got it my friend: email me for concerns: scanhead25@yahoo.com

Please Log in or Create an account to join the conversation.

  • jelero1
  • jelero1
  • OFFLINE
  • Posts: 1
  • Thanks: 0
  • Karma: 0
16 years 7 months ago #58530 by jelero1
it works fine. so fare so good.

i think it would be nicer to open in new window....but i don´t knwo how :blink:

Anybody knows how it works and what to do?

Please Log in or Create an account to join the conversation.

  • Keithejr
  • Keithejr
  • OFFLINE
  • Posts: 2
  • Thanks: 0
  • Karma: 0
16 years 5 months ago #61829 by Keithejr
i'm having this same problem, even as admin i cannot see the detailed mode.

pony gallery 2.5ml
community builder 1.1
joomla 1.03
i have gallery tab and pony gallery tab installed
i have random image installed

Does anyone konw???
the fix below worked but brought it to a popup that looked horrible and had errors on it

Please Log in or Create an account to join the conversation.

  • Keithejr
  • Keithejr
  • OFFLINE
  • Posts: 2
  • Thanks: 0
  • Karma: 0
16 years 5 months ago #61831 by Keithejr
ok, i messed around for a bit, really my first time ever editing a php file.

The edit below will allow visitors to see a misformated page but allow register users to view the real page. Not what i wanted at all.

This edit will not allow visitors (if you define it that way in pony gallery) and allow only registered members to see the real thing. Which was my intention in the first place. Replace the portion of your file described below with this:

case 'detail':
if ( $my->gid==0 && $ag_showdetailpage==0) {
echo '<script> alert("'._PONYGALLERY_NO_DETAILS_ALERT.'"); </script>';
// mosRedirect(sefRelToAbs("index.php?option=com_ponygallery&amp;Itemid=".$Itemid), _PONYGALLERY_NO_DETAILS);
die();
} elseif($ag_detailpic_open!=0) {
GalleryHeader();
include( _PONY_FRONTEND_PATH . '/sub_viewdetails.php' );
}
break;

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum