PHP-Fusion U.S.A Official NSS
AU_CENTER
View Thread
Who is here? 1 guest(s)
 Print Thread
Issue how events are view day of event on main page
penehoff
Example goto http://worldwide....tbands.com and take a look what i mean. I want on the output to put line breaks , seperateing videos, images etc .. From the text ..

I think the fix might be in the viewevent.php file.

Download source  Code
  /***************************************************************************
 *   awEventCalendar                                                       *
 *                                                                         *
 *   Copyright (C) 2006-2012 Artur Wiebe                                   *
 *                                                             *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 ***************************************************************************/
require_once('include/common.php');


if(!isset($_GET['id']) || !isNum($_GET['id'])) {
   ff_redirect('index.php');
}

if(iGUEST) {
   $userdata['user_id']='0';
}



/****************************************************************************
 * GET
 */
if(iAWEC_ADMIN) {
   $user_access = '';
} else {
   $user_access = \\\" AND ((ev_status='\\\".AWEC_PUBLISHED.\\\"'
      AND ev_private='0')
      OR ev.user_id='\\\".$userdata['user_id'].\\\"')\\\";
}
$res = dbquery(\\\"SELECT ev.*, user_name,
   DATE_FORMAT(ev_start, '\\\".$awec_settings['date_fmt'].\\\"') AS date,
   DATE_FORMAT(ev_end, '\\\".$awec_settings['date_fmt'].\\\"') AS end_date,
   DATE_FORMAT(ev_end_time, '\\\".$awec_settings['time_fmt'].\\\"') AS end_time,
   DATE_FORMAT(ev_start_time, '\\\".$awec_settings['time_fmt'].\\\"') AS start_time
   FROM \\\".AWEC_DB_EVENTS.\\\" AS ev
   LEFT JOIN \\\".DB_USERS.\\\" AS fu USING(user_id)
   WHERE event_id='\\\".$_GET['id'].\\\"' $user_access\\\");
if(dbrows($res)==0) {
   ff_redirect('index.php');
}
$event = dbarray($res);
if(!empty($user_access) && !checkgroup($event['ev_access'])) {
   ff_redirect('index.php');
}



$event['date'] = ''
   .$event['date'].'
';


// update the visited counter
if(isset($_COOKIE['awecal_visited'])) {
   $visited_counters = @unserialize(stripslashes($_COOKIE['awecal_visited']));
   if(!is_array($visited_counters)) {
      $visited_counters = array();
   }
} else {
   $visited_counters = array();
}
if(!in_array($_GET['id'], $visited_counters)) {
   dbquery(\\\"UPDATE \\\".AWEC_DB_EVENTS.\\\"
      SET visited_counter=visited_counter+1
      WHERE event_id=\\\".$_GET['id']);
   $visited_counters[] = $_GET['id'];
   $event['visited_counter'] += 1;
   setcookie(\\\"awecal_visited\\\", serialize($visited_counters),
      time() + 3600*24*365, \\\"/\\\", \\\"\\\", \\\"0\\\");
}



/****************************************************************************
 * GUI
 */
//opentable($locale['EC300']);
opentable($event['ev_title']);
awec_menu();

if($event['ev_status']) {
   show_info($locale['awec_status_longdesc'][$event['ev_status']]);
}

awec_render_event($event, '&time='.$event['ctime']);
closetable();


/*
require_once INCLUDES.\\\"comments_include.php\\\";
showcomments(\\\"E\\\",\\\"aw_ec_events\\\",\\\"event_id\\\",$event['event_id'],FUSION_SELF.'?id='.$event['event_id']);
*/


$can_login = checkgroup($event['ev_login_access']);
if($event['ev_allow_logins'] && ($can_login || !$event['hide_logins'])) {
   require_once('include/event_logins.php');
}


require_once('include/die.php');
?>
 



Edited by penehoff on 03-20-2015 06:33
 
NetriX
You would need to find where the functions are and add a break attribute "
".

Or, use a simple css edit that may resolve your issue.

/themes/Gillette/styles.css

Find and Edit .quote

Download source  Code
.quote {
   font-size: 14px;
   color: #555;
   background-color: #f8f8f8;
   padding: 4px;
   margin: 0px 20px 0px 20px;
   border: 1px solid #bbb;
}




Alter the margin values:

Download source  Code
.quote {
   font-size: 14px;
   color: #555;
   background-color: #f8f8f8;
   padding: 4px;
   margin: 20px 20px 20px 20px;
   border: 1px solid #bbb;
}




margin: 20px 20px 20px 20px;

Change to meet your liking, the values are margin: top right bottom left;

Hope this helps!
Need help? Having trouble?
» View our Documentation for guides, functions and more - including the [url=https://php-fusion.co.uk/articles.php?cat_
 
penehoff
sweet that worked ..
 
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
Opinion tatty issue medicament General Support 1 02-09-2019 20:11
Mobile view Themes Support 5 02-13-2018 02:05
External Page Wrapper General Chat 4 01-13-2018 07:45
Blank Page When Opening Site Errors and Bugs 2 10-17-2017 18:15
PHPF 9 - Page into page w/o iframe [7.02.XX] Code Snippets 1 07-28-2017 11:16
BL_CENTER