| 
Welcome, Guest

Ponygallery does not allow guests to view details
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: Ponygallery does not allow guests to view details

Ponygallery does not allow guests to view details 5 years ago #37186

  • ltmwalter
  • ltmwalter
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 2
  • Karma: -
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

Re:Ponygallery does not allow guests to view details 5 years ago #37187

  • ltmwalter
  • ltmwalter
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 2
  • Karma: -
ok it gets even weirder. Even when Im logged in I still get the message???!

Re:Ponygallery does not allow guests to view detai 4 years, 2 months ago #58417

  • scanhead25
  • scanhead25
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 19
  • Karma: 2
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: This e-mail address is being protected from spambots. You need JavaScript enabled to view it

Re:Ponygallery does not allow guests to view detai 4 years, 2 months ago #58530

  • jelero1
  • jelero1
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 1
  • Karma: -
it works fine. so fare so good.

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

Anybody knows how it works and what to do?

Re:Ponygallery does not allow guests to view detai 4 years ago #61829

  • Keithejr
  • Keithejr
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 3
  • Karma: -
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

Re:Ponygallery does not allow guests to view detai 4 years ago #61831

  • Keithejr
  • Keithejr
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 3
  • Karma: -
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;
  • Page:
  • 1
  • 2
Time to create page: 0.81 seconds