I can´t find the directory browse nor home when I

Hi guys,

I´ve just installed the module EVENTS and I see that when I try to get, for example, to the option EventsàUpcoming, the following url appears:

 

/modules/?r=events/browse/upcoming

 

-Where is the directory browse then?

- And upcoming?

 

Thank you,

 


Quote · 26 Oct 2010

There is no physical directory, if that's what you're asking.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 27 Oct 2010

Hi,

Yes, That´s what I meant, but...
Where these non physical directories are created?
How could we know which  'php' should be executed if I want to go, for example, to the option 'upcoming' in the events section?

Thank you very much

Greetings
Quote · 27 Oct 2010

 

Hi,

Yes, That´s what I meant, but...
Where these non physical directories are created?
How could we know which  'php' should be executed if I want to go, for example, to the option 'upcoming' in the events section?

Thank you very much

Greetings

I'm afraid I don't really follow what you're saying. You should be able to access upcoming events from the link your posted. If you're asking which file is responsible for displaying these directories, I do not know, but I don't know why it matters.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 27 Oct 2010

He is confused beacsue of the rewrite rules.

/m/events/browse/upcoming is rewritten by  RewriteRule ^m/(.*)$  modules/index.php?r=$1 [QSA,L]

And then it is redirected to modules\boonex\events\request.php

I believe he is try to find these 'folders' from the path on his server.

Light man a fire keep him warm for a night, light him ON fire & he will be warm the rest of his life
Quote · 28 Oct 2010

 

He is confused beacsue of the rewrite rules.

/m/events/browse/upcoming is rewritten by  RewriteRule ^m/(.*)$  modules/index.php?r=$1 [QSA,L]

And then it is redirected to modules\boonex\events\request.php

Ah, thank you. My head hurts today.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 28 Oct 2010

I bet you'll be pleasantly surprised if you actually add an event to the mod....

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 28 Oct 2010

Hi everyone,

Thank you all for having answered. I´ve understood, but...

How could I copy, for example, the page "events home" or any other, make my own changes of format and, later on, call it?

I´m not sure If I´ve explained clearly enough. 

Thank you

Quote · 3 Nov 2010

prologic,

Not sure what your issue really is but you are not going to find an actual directory for this, so don't worry you are not missing files.  you also might want to consider enabling your friendly permlinks from your admin screen.

 

Are you trying to add an event and you get an error that the directory cannot be found?

Please visit michaelsofmaryland.com & fatwow.com
Quote · 3 Nov 2010

Everything is dynamic.  The files for the events module are located in the modules/boonex/events/ directory.  The URLs that you are seeing of generated from the rewrite rules in you .htaccess file.

It seems that you are thinking of the website as static html pages where you just have html and some css controlling it.  Dolphin has many files controlling each page (js, html, css, php mainly).  When you call on a module such as trying to go to Events, Photos, Videos, etc.mt he .htaccess file in the root directory of Dolphin rewrites the url and redirects the browser to the relevant modules page.  Example...if I click on the menu that says Photos, the htaccess file directs me to the Photos modules and them generates a nice pretty permalink in the URL address bars so my users don't get all confused as to where they are and the search engines read the address of some of my dynamic pages.

At the head of each module are include or require functions that pull in other files that are required to make the modules run.  Those files call other files which call other files.  Unfortunately, it's not going be be a simple as cut and paste one page to create another.

Ok, now that I've probably confused you thoroughly with my gibberish, let me try to give you some more useful information.

When I want to create a custom page but don't want to go through the process of creating a Dolphin Module from top to bottom, what I do is use the Dolphin Create Page functions.  With the aid of gorpus' PHP Block Mod, I can them program my page to do whatever I want to do from within the blocks themselves.  If I want to create a pages that displays my events in a different way that Dolphin Displays them I start out by writing code directly in the boxes.

For example, let say, one of my clients wanted to display the tour schedule of their Recording Artists on a particular page and didn't like the way Dolphin presented the events.  What I did was created a function such as:

/*

echo "<div style='background-color:#999999; width:450px; padding-bottom:50px;'> <br/>
<div style='margin:10px 0px 10px 20px; font-weight:bold; font-family:Arial,Verdana,Times New Roman;'>Tour & Event Dates</div>
";


$query1 = mysql_query("SELECT * FROM bx_events_main");
while($row3=mysql_fetch_assoc($query1))

{
$ID = $row3['ID'] ;
$Title = $row3['Title'];
$EntryUri = $row3['EntryUri'];
$Description = $row3['Description'];
$Status = $row3['Status'];
$Country = $row3['Country'];
$City = $row3['City'];
$Place = $row3['Place'];
$PrimPhoto = $row3['PrimPhoto'];
$Date = $row3['Date'];
$EventStart = $row3['EventStart'];
$EventEnd = $row3['EventEnd'];
$ResponsibleID = $row3['ResponsibleID'];
$Tags = $row3['Tags'];
$Categories = $row3['Categories'];
$Views = $row3['Views'];


// TURN THE EPOCH DATES IN TO REAL DATES
$thedate = getdate($EventStart);

//GET HUMAN READABLE TIME IN 12 HOUR FORMAT
$human_starttime = date("g:i a", $EventStart);

$prenumbermonth = $thedate['mon'];

if($prenumbermonth < (10)) {
$numbermonth = "0" . $prenumbermonth;
} else {
$numbermonth = $thedate['mon'];
}

$thetextmonth = $thedate['month'];
$thedayoftheweek = $thedate['weekday'];

$thenumericday = $thedate['mday'];
$theyear = $thedate['year'];
$fulldate = $thedayoftheweek . " " . $thetextmonth . " " . $thenumericday . ", " . $theyear;


$numberdate = $thenumericday . "-" . $numbermonth . "-" . $theyear;

//GET THE EXTENSION OF THE PHOTO
$photoquery = mysql_query("SELECT * FROM bx_photos_main WHERE ID = $PrimPhoto");
while($myrow = mysql_fetch_assoc($photoquery)) {
$ext = '.' . $myrow['Ext'];
}

$eventspath = "../m/events/view/";
$pathtoimages = "../modules/boonex/photos/data/files/";
$tourphoto = "<img src='" . $pathtoimages . $PrimPhoto . $ext . "'/>";

echo "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1' />
<link href='css/tourdates.css' rel='stylesheet' type='text/css' />

</head>

<body>

<div id='tourdatewrapper'>
<table width='100%' border='1'>
<tr>
<td class='photocolumn'><div class='tourphoto'> $tourphoto </div></td>
<td>
<div class='tourinfo'>
<div style='font-weight:bold; color:#003399;'><a href='$domain"."m/events/view/$EntryUri' target='_parent'>Event Name: $Title</a></div>
<div>Venue Name: $Place</div>
<div>City: $City</div>
<div>Country: $Country</div>
<div style='font-weight:bold; color:#CC0033;'>Date: $fulldate</div>
</div>
</td>
</tr>
</table>
</div>";


}

echo "</div>";


*/

 

Quote · 3 Nov 2010
Now, because the code is kinda' messy, I don't put the whole code in the box at the end of the day. I actually create a directory on my server to place the file in. I then wrap the code in a function and call the function from the PHP Block. At the end of the day, the only thing that you'll see in my PHP Block is something like /* include('mytourevents/tourevents.php); getTourEvents('Atlanta); */
Quote · 3 Nov 2010

Hi,

Thank you for all your answeres. I would like to give a special thanks to chap1978 for the time dedicated to write the post.

The thing is that I don´t know nothing about PHP. That´s why, if it would be possible, I would like to copy the page, change the distribution and add some blogs html.

Thanks a lot

Quote · 4 Nov 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.