Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 12:01:31 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155504 Posts in 21710 Topics by 7736 Members
Latest Member: deenangle
* Home Help Search Login Register
Pages: 1 ... 3 4 [5]   Go Down
Print
Author Topic: New calendar module "concert calendar"  (Read 11319 times)
D72

Offline Offline

Posts: 253


« Reply #100 on: August 30, 2011, 07:11:53 PM »

No, that doesn't solve my problem. i still must type something in the description (concert_desc, textarea) field
i don't know why this is happening. i am kinda surprised that i'm the only one with this problem. Or are there more people with this same issue...?
I have tried to install the concert module on different sites i have made which are hosted on different servers. but they all have this. Isn't it strange? Why is the module/database saving the concert only when there is something typed? I tried to replace the whole php table with just a <textarea> some text </textarea> or echo '<textarea name="'.$name.'" id="'.$id.'" style="width: '.$width.'; height: '.$height.';">'.$content.' some text </textarea>';
But obviously it doesn't have effect.
Meanwhile i will inform the client that they have to type something manual so it saves the concert and hoping this issue will be solved. Thanks anyway dbs.
Logged
dbs
WebsiteBaker Org e.V.

Online Online

Posts: 3714


WWW
« Reply #101 on: August 30, 2011, 07:22:58 PM »

only a try: change in fckeditor > wb_fckconfig.js (line 60)
Code:
// specify HTML tag used for ENTER and SHIFT+ENTER key
   FCKConfig.EnterMode = 'br' ; // allowed tags: p | div | br
   FCKConfig.ShiftEnterMode = 'p' ; // allowed tags: p | div | br

this is the reason why i have every time filled content.
Logged

pcwacht
AddOn Development
*
Online Online

Posts: 2857



WWW
« Reply #102 on: August 30, 2011, 08:59:27 PM »

other option, search the file where the fileds are created and set some default content wich will allways be there unless overwritten.
look in browser to see the file wich is called when editing an item.

Could allso be that programer has designed it this way,
in the script where it saves the entered data there can be a check to see if data was entered.


Have fun,
John
Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
dbs
WebsiteBaker Org e.V.

Online Online

Posts: 3714


WWW
« Reply #103 on: August 31, 2011, 09:09:47 PM »

feature-request:

if a concert has concert_desc (filled) show a little icon on the right side of concert_name (maybe arrows down), else nothing.

at the moment the website-visitor don't know which concert contains more description and must click every concert (toggle).
my user creates many concerts without desc.

any idea?

dbs
Logged

pcwacht
AddOn Development
*
Online Online

Posts: 2857



WWW
« Reply #104 on: September 01, 2011, 07:13:39 AM »

You'll need to edit view.php for that. It is the only way I think

There is a loop wich fetches everything from db and shows it.
There needs to be some code added to show description or not.


John
Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
dbs
WebsiteBaker Org e.V.

Online Online

Posts: 3714


WWW
« Reply #105 on: September 01, 2011, 07:36:02 AM »

had try to add some code like
Code:
$more = ($loop['concert_desc'] != '') ? '<div style="float:right;><img src...></div>' : '';
than add $more in the line with <td>...
but $loop['concert_desc'] or other aren't right.
Logged

dbs
WebsiteBaker Org e.V.

Online Online

Posts: 3714


WWW
« Reply #106 on: September 01, 2011, 08:58:03 AM »

ok, i was in the wrong line. this works for me in view.php line 96 :
Code:
<?php // 1 line with $more added
$more = ($data['concert_desc'] != '<br />') ? '<img title="mehr Informationen" style="float:right;" src="... />' '';
if ($toggle == 1) {
$content .= " <td style='vertical-align:top;' class='cc-toggle'><a class='toggle' onclick='toggle_visibility(".$divtxt.");'>".$more.$data['concert_name']."</a>";
} else {

<br /> is for me in the wb_fckconfig.js default instead <p>
« Last Edit: September 01, 2011, 09:46:02 AM by dbs » Logged

marmot

Offline Offline

Posts: 205


« Reply #107 on: September 10, 2011, 10:40:38 PM »

.....and hoping this issue will be solved. Thanks anyway dbs.
Hi,
this is not a bug - it's a feature. Watch modify.php, lines 36 and 37:
Code:
//removes empty events from the table so they will not be displayed
$database->query("DELETE FROM `".TABLE_PREFIX."mod_concert_dates` WHERE `page_id` = '$page_id' and `section_id` = '$section_id' and `concert_desc`=''");
if you don't like this, comment line 37
regards
Logged
dbs
WebsiteBaker Org e.V.

Online Online

Posts: 3714


WWW
« Reply #108 on: September 11, 2011, 06:34:49 AM »

thx marmot, good hint.

if you add a new concert without title and desc and click cancel, the empty concert will be saved.
maybe a good idea is changing this line for remove emty concert_name instead concert_desc.
« Last Edit: September 11, 2011, 06:54:37 AM by dbs » Logged

marmot

Offline Offline

Posts: 205


« Reply #109 on: September 11, 2011, 08:18:23 PM »

if you add a new concert without title and desc and click cancel, the empty concert will be saved.
maybe a good idea is changing this line for remove emty concert_name instead concert_desc.
Hi,
good idea but the emtpy concert_name is already tested in save_concert.php on line 38. I didn't try that but I think it's not that important to check it once again. But of course you can do that.
regards
Logged
dbs
WebsiteBaker Org e.V.

Online Online

Posts: 3714


WWW
« Reply #110 on: September 12, 2011, 11:05:29 AM »

you're right... i forgot that i have fck for name and so is there every time a <br />.
Logged

Pages: 1 ... 3 4 [5]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!