Toggle Content Main Menu
 Home Community
 Groups
 Members options Forums Search Web Development Testing

Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

People Online:
Out of 64 total users
Members: 0
Visitors: 3
Staff: 0


Toggle Content Online Users
 Visitors:
1: Blogs
2: Statistics
3: Project Manager

Community Forums
Profile Pro ›› profile pro is this still in the making
All profile pro discussions here (features/requests etc)
Post new topic   Reply to topic     |##| -> |=|
radiogetswild


View user's profile

PostFri May 25, 2007 1:31 pm Reply with quote
Hi guys

I have not heard from you guys in a while and i am wondering hows it going if it is at all ?

please drop me a line if you are still working on this and have a stable beta lined up for testing ..

Also have you made any changes for the new version of dragonfly

cheers All Tim

tim @ radiogetswild.com
antifmradio


View user's profile

PostWed Aug 29, 2007 4:25 pm Reply with quote
same here
i cant get mine working at all

i have the SVN version and all i get is NULL on everyones profile pages.
I have no idea whats missing and as far as i can tell there is no problem with the code

i have a folder called layouts but its empty

is it supposed to be?

@ Radio <--------
someone told me you have been using the module sucessfully.
i think we may need to talk a bit for me to get this working
scetter


View user's profile

PostWed Aug 29, 2007 10:38 pm Reply with quote
Here too, I have been having problems getting it to work. Not getting a null screen but I am getting JS errors and can't save layouts.
I tried both SVN and the other version.

What is strange is it will work fine on my test server but not on a production site.

I think radio and spacebar are the ones to ask. I'm sure they have seen some of these problems and might know a work around.
antifmradio


View user's profile

PostWed Aug 29, 2007 11:17 pm Reply with quote
this may be true but it seems no one has been around here for anywhere from a few months to a full year
spacebar


View user's profile

PostThu Aug 30, 2007 4:53 pm Reply with quote
Saving the layout for me required CHMOD 777 to the layout directory.

Null screen was not getting all of the components loaded. Files were missing from my theme directory.

This has been working for a year for me, so its a bit fuzzy.

Can you turn javascript debugging on and see what you're getting?

_________________
antifmradio


View user's profile

PostThu Aug 30, 2007 5:01 pm Reply with quote
spacebar wrote:
Saving the layout for me required CHMOD 777 to the layout directory.

Null screen was not getting all of the components loaded. Files were missing from my theme directory.

This has been working for a year for me, so its a bit fuzzy.

Can you turn javascript debugging on and see what you're getting?
good point
Ill do that ... silly me
antifmradio


View user's profile

PostThu Aug 30, 2007 5:08 pm Reply with quote
im posting the bugs found only on the files that i had to edit or overwrite
(i might miss one or have one too many here because i dont remember ALL the files i needed to upload)

Here we go
modules/Personal_Home/index.php

* 0.0008 - LINE 219: SELECT bid, name, type, valueInt, valueChar, valueText FROM cms_home_block_config where uid =2
* 0.0011 - LINE 233: SELECT bid, parent, width, b_order, maxheight, incheader, incborder, a.title, showscrollbars,b.title,b.file, b.cache, b.cachetime, b.refresh, b.id FROM cms_home_block_location as a left join cms_home_blocks as b ON a.bid = b.id where uid = 2 ORDER BY parent, b_order

header.php
* 0.0006 - LINE 44: SELECT COUNT(*) FROM cms_session WHERE uname='antifmradio'
* 0.0008 - LINE 45: UPDATE cms_session SET time='1188509886', module='My Account', url='/dragonfly2/index.php?name=Your_Account&profile=antifmradio', guest='2' WHERE uname='antifmradio'

modules/Your_Account/functions.php
* 0.0011 - LINE 116: SELECT COUNT(*) FROM cms_bbprivmsgs WHERE privmsgs_to_userid=2 AND privmsgs_type IN (0, 1, 5)
* 0.0008 - LINE 119: SELECT COUNT(*) FROM cms_bbprivmsgs WHERE privmsgs_from_userid=2 AND privmsgs_type IN (1, 5)
* 0.0007 - LINE 122: SELECT COUNT(*) FROM cms_bbprivmsgs WHERE privmsgs_from_userid=2 AND privmsgs_type = 2
* 0.001 - LINE 126: SELECT COUNT(*) FROM cms_bbprivmsgs WHERE (privmsgs_to_userid=2 AND privmsgs_type = 3) OR (privmsgs_from_userid=2 AND privmsgs_type = 4)

modules/Your_Account/index.php
* Notice line 20: Undefined variable: phpver

modules/Personal_Home/index.php
* Notice line 267: Undefined variable: personalpage
spacebar


View user's profile

PostThu Aug 30, 2007 5:47 pm Reply with quote
Your internet browser itself has a 'display javascript errors' kind of setting.

Can you turn that on. What browser are you using?

_________________
scetter


View user's profile

PostThu Aug 30, 2007 8:04 pm Reply with quote
I will have to reinstall the module again, can't remember what the errors said exactly.
I was using firefox and firebug to see what was going on, why it wasn't working.

I will go ahead and reinstall in the morning and post the firebug errors and warnings that I was getting.

I tried the 777 of that folder but it was still not working because it would stop at the breakpoint.

I will get back to you.
antifmradio


View user's profile

PostFri Aug 31, 2007 4:06 am Reply with quote
spacebar wrote:
Your internet browser itself has a 'display javascript errors' kind of setting.

Can you turn that on. What browser are you using?

i need to copy the lines one at a time as i am using FireFox

This is found in the TOOLS > ERROR CONSOLE screen

Warning: Unknown property 'filter'. Declaration dropped.
Source File: www.antifmradio.com/dr...l_Home.css
Line: 8

Warning: Error in parsing value for property 'cursor'. Declaration dropped.
Source File: www.antifmradio.com/dr...l_Home.css
Line: 48

Warning: Error in parsing value for property 'cursor'. Declaration dropped.
Source File: www.antifmradio.com/dr...l_Home.css
Line: 107

Warning: Error in parsing value for property 'cursor'. Declaration dropped.
Source File: www.antifmradio.com/dr...l_Home.css
Line: 160

Warning: Error in parsing value for property 'font'. Declaration dropped.
Source File: www.antifmradio.com/dr.../style.css
Line: 253

Warning: Error in parsing value for property 'font'. Declaration dropped.
Source File: www.antifmradio.com/dr.../style.css
Line: 440

Warning: Error in parsing value for property 'font'. Declaration dropped.
Source File: www.antifmradio.com/dr.../style.css
Line: 445

Warning: Unknown property 'border-radius'. Declaration dropped.
Source File: www.antifmradio.com/dr...&profile=2
Line: 0

Theres a number of other errors showing in the log but they are linked from my OLD installation
Not to worry about those as it will be reoved shortly anyway
scetter


View user's profile

PostFri Aug 31, 2007 12:15 pm Reply with quote
Ok this is what I am seeing In the error console for firefox when I try to do anything in the page designer.

Deprecated method document.getSelection() called.Please use window.getSelection() intead.

When I click on savepage and persist I get the same thing also in firebug it points to line 768 and that is this line.
configvals += "&user_home_theme=" + document.getElementById("customtheme").value;

As I stated in an earlier post that I did try to hard code a theme in there but it still wouldn't work.
scetter


View user's profile

PostFri Aug 31, 2007 12:26 pm Reply with quote
Ok I did get it working by allowing users to choose a theme. I will need to find a work around though because only club members are supposed to be able to choose a theme.
spacebar


View user's profile

PostFri Aug 31, 2007 1:34 pm Reply with quote
Ah, yes. Users have to be able to choose a theme for this to work. Thats true.

You can work around that by using an if (in_group()) {} statement for your theme chooser in your_account.

_________________
scetter


View user's profile

PostFri Aug 31, 2007 2:58 pm Reply with quote
spacebar wrote:
Ah, yes. Users have to be able to choose a theme for this to work. Thats true.

You can work around that by using an if (in_group()) {} statement for your theme chooser in your_account.

Ahh that's what i was looking for and was my next check.. Smile

I used the in_group() to set a var in pageDesigner3.php to only show some buttons to users group.
I noticed a problem with that also though. I didn't want to let users add blocks either but without the at least one of the id=adable's showing it would stop the page from working.

Ajax type applications seem to confuse me and it takes a while to figure out which way I am going..

WE REALLY SHOULD BE TALKING ABOUT THIS IN A SEPERATE THREAD... Razz

@ antifmradio <--
Did you make all the edits you where supposed to?
If you are using the latest Dragonfly version you need to edit the files manually because they are slightly different from the ones included in the package.
The files that change in the DF core are,
header.php
modules/Your_Account/index.php
modules/Your_Account/functions.php

If you are using the latest DF package 9.1.2.1 then upload the original ones from that package to get them back to normal and do the edits as follows.

Open your header.php and find this bit of code. About line 51
Code:
function head() {
   global $BASEHREF, $METATAGS, $slogan, $sitename, $userinfo, $showblocks, $index,
      $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2,
      $pagetitle, $modheader, $MAIN_CFG, $CPG_SESS, $module_name, $CLASS, $adminindex;
   include_once('themes/'.$CPG_SESS['theme'].'/theme.php');

Change that to this:
Code:
function head() {
   global $BASEHREF, $METATAGS, $slogan, $sitename, $userinfo, $showblocks, $index,
      $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $cpgtpl,
      $pagetitle, $modheader, $MAIN_CFG, $CPG_SESS, $module_name, $CLASS, $adminindex, $personalpage;
   if(isset($personalpage) || isset($CPG_SESS['oldtheme'])){
      if(!isset($CPG_SESS[oldtheme])) $CPG_SESS['oldtheme'] = $CPG_SESS['theme'];
      if(isset($personalpage)){
         $CPG_SESS['theme'] = $personalpage["theme"];
      }else{
         $CPG_SESS['theme'] = $CPG_SESS['oldtheme'];
         unset($CPG_SESS['oldtheme']);
      }
      $cpgtpl->set_template($cpgtpl->static_lang);
   }

   include_once("themes/$CPG_SESS[theme]/theme.php");


Next at about line 116 find this code:
Code:
$cpgtpl->assign_vars(array(
      'IMPORTANT_MESSAGE' => $message,
      'S_TEXTDIR'    => _TEXT_DIR,
      'S_LANGCODE'   => _BROWSER_LANGCODE,
      'S_HEADER_TAGS' => $header,
      'S_LEFTBLOCKS'  => blocks_visible('l'),
      'S_RIGHTBLOCKS' => blocks_visible('r'),
      'I18N'        => 'enctype="multipart/form-data" accept-charset="utf-8"'
   ));
   if (!$home) {
      if (defined('ADMIN_PAGES') && is_admin() && !(isset($_GET['op']) && $_GET['op'] == 'logout')) {
         require_once('includes/classes/cpg_adminmenu.php');
         $adminmenuitems = $CLASS['adminmenu']->display('all', 'jsmenu');
         $admincssmenuitems = $CLASS['adminmenu']->display('all', 'cssmenu');
      }
   }
$cpgtpl->assign_vars(array(
      'PAGE_TITLE'   => ($home || isset($ownpagetitle[$module_name]))?'':$pagetitle,
      'S_ADMIN_MENU' => $adminmenuitems,
      'S_ADMIN_CSSMENU' => $admincssmenuitems
   ));

Replace that bit with this:
Code:
$cpgtpl->assign_vars(array(
      'IMPORTANT_MESSAGE' => $message,
      'S_TEXTDIR'    => _TEXT_DIR,
      'S_LANGCODE'   => _BROWSER_LANGCODE,
      'S_HEADER_TAGS' => $header,
      'S_HEADER_TAGS' => $header,
      'S_LEFTBLOCKS'  => (isset($personalpage))?$personalpage["incleft"]:blocks_visible('l'),
      'S_RIGHTBLOCKS' => (isset($personalpage))?$personalpage["incright"]:blocks_visible('r'),
      'PUBLIC_HEADER' => (isset($personalpage))?$personalpage["incheader"]:!defined('ADMIN_PAGES')
      'I18N'        => 'enctype="multipart/form-data" accept-charset="utf-8"'
   ));
   if (!$home) {
      if (defined('ADMIN_PAGES') && is_admin() && !(isset($_GET['op']) && $_GET['op'] == 'logout')) {
         $pagetitle = '<div><span style="float:left;margin-left:5px"><a href="'.$adminindex.'"><input type="button" value="'._MENU.'" onclick="parent.location=\''.$adminindex.'\'" class="liteoption" /></a></span>'
         .'<span style="float:right;margin-right:5px"><a href="'.adminlink('logout').'"><input type="button" value="'._ADMINLOGOUT.'" onclick="parent.location=\''.adminlink('logout').'\'" class="liteoption" /></a></span></div>'
         .'<span style="text-align:center">'.$pagetitle.'</span>';
         require_once('includes/classes/cpg_adminmenu.php');
         $adminmenuitems = $CLASS['adminmenu']->display('all', 'jsmenu');
         $admincssmenuitems = $CLASS['adminmenu']->display('all', 'cssmenu');
      }
   }
   $pt = ($home || isset($ownpagetitle[$module_name]))?'':$pagetitle;
      if(isset($personalpage['showpagetitle'])){
         $pt = $personalpage['showpagetitle'];
   }
   $cpgtpl->assign_vars(array(
      'PAGE_TITLE'   => $pt,
      'S_ADMIN_MENU' => $adminmenuitems,
      'S_ADMIN_CSSMENU' => $admincssmenuitems
   ));

Save this file and upload back to your site!!

Next open up your modules/Your_Account/index.php
Find at about line 213 this bit of code:
Code:
elseif (isset($_GET['profile']) && !empty($_GET['profile'])) {
   require_once("$filepath/userinfo.php");
   userinfo($_GET['profile']);
}
elseif ($op == 'userinfo' && isset($_GET['username']) && !empty($_GET['username'])) {
   require_once("$filepath/userinfo.php");
   userinfo($_GET['username']);
}

Replace that bit with this:
Code:
elseif (isset($_GET['profile']) && !empty($_GET['profile'])) {
   require_once("modules/Personal_Home/index.php");
   userinfo($_GET['profile']);
}
elseif ($op == 'userinfo' && isset($_GET['username']) && !empty($_GET['username'])) {
   require_once("modules/Personal_Home/index.php");
   userinfo($_GET['username']);
}

Save and upload back to your site

Next open up your modules/Your_Account/functions.php
At about line 87 find this bunch of code:
Code:
function member_block() {
   global $db, $MAIN_CFG, $prefix, $userinfo;
   
   get_lang('Your_Account');

   $op = isset($_GET['op']) ? $_GET['op'] : '';
   $mode = isset($_GET['edit']) ? $_GET['edit'] : (isset($_POST['save']) ? $_POST['save'] : '');
   $content = '<span class="gen">'._TB_INFO.'</span><div style="margin-left: 8px;">'
      .((isset($_GET['profile']) && $_GET['profile'] == $userinfo['user_id']) ? '<b>'._TB_PROFILE_INFO.'</b>' : '<a href="'.getlink('Your_Account&amp;profile='.$userinfo['user_id']).'">'._TB_PROFILE_INFO.'</a>').'<br />'
      .(($mode == 'profile') ? '<b>'._TB_EDIT_PROFILE.'</b>' : '<a href="'.getlink('Your_Account&amp;edit=profile').'">'._TB_EDIT_PROFILE.'</a>').'<br />'
      .(($mode == 'private') ? '<b>'._TB_EDIT_PRIVATE.'</b>' : '<a href="'.getlink('Your_Account&amp;edit=private').'">'._TB_EDIT_PRIVATE.'</a>').'<br />'
      .(($mode == 'reg_details') ? '<b>'._TB_EDIT_REG.'</b>' : '<a href="'.getlink('Your_Account&amp;edit=reg_details').'">'._TB_EDIT_REG.'</a>').'<br />'
   .'</div><span class="gen">'._TB_CONFIG.'</span><div style="margin-left: 8px;">'
      .(($mode == 'prefs') ? '<b>'._TB_EDIT_PREFS.'</b>' : '<a href="'.getlink('Your_Account&amp;edit=prefs').'">'._TB_EDIT_PREFS.'</a>').'<br />'
      .(($op == 'edithome') ? '<b>'._TB_EDIT_HOME.'</b>' : '<a href="'.getlink('Your_Account&amp;op=edithome').'">'._TB_EDIT_HOME.'</a>').'<br />'
      .(($op == 'editcomm') ? '<b>'._TB_EDIT_COMM.'</b>' : '<a href="'.getlink('Your_Account&amp;op=editcomm').'">'._TB_EDIT_COMM.'</a>').'<br />'
   .'</div><span class="gen">'._TB_PERSONAL.'</span><div style="margin-left: 8px;">';

Replace that with this:
Code:
function member_block() {
   global $db, $MAIN_CFG, $prefix, $userinfo;
   $file = $_GET['file'];
   get_lang('Your_Account');

   $op = isset($_GET['op']) ? $_GET['op'] : '';
   $mode = isset($_GET['edit']) ? $_GET['edit'] : (isset($_POST['save']) ? $_POST['save'] : '');
   $content = '<span class="gen">'._TB_INFO.'</span><div style="margin-left: 8px;">'
      .((isset($_GET['profile']) && $_GET['profile'] == $userinfo['user_id']) ? '<b>'._TB_PROFILE_INFO.'</b>' : '<a href="'.getlink('Your_Account&amp;profile='.$userinfo['user_id']).'">'._TB_PROFILE_INFO.'</a>').'<br />'
      .(($file == 'pageDesigner3') ? '<b>'._TB_PAGE_DESIGNER.'</b>' : '<a href="'.getlink('Personal_Home&amp;file=pageDesigner3').'">'._TB_PAGE_DESIGNER.'</a>').'<br />'
      .(($mode == 'profile') ? '<b>'._TB_EDIT_PROFILE.'</b>' : '<a href="'.getlink('Your_Account&amp;edit=profile').'">'._TB_EDIT_PROFILE.'</a>').'<br />'
      .(($mode == 'private') ? '<b>'._TB_EDIT_PRIVATE.'</b>' : '<a href="'.getlink('Your_Account&amp;edit=private').'">'._TB_EDIT_PRIVATE.'</a>').'<br />'
      .(($mode == 'reg_details') ? '<b>'._TB_EDIT_REG.'</b>' : '<a href="'.getlink('Your_Account&amp;edit=reg_details').'">'._TB_EDIT_REG.'</a>').'<br />'
   .'</div><span class="gen">'._TB_CONFIG.'</span><div style="margin-left: 8px;">'
      .(($mode == 'prefs') ? '<b>'._TB_EDIT_PREFS.'</b>' : '<a href="'.getlink('Your_Account&amp;edit=prefs').'">'._TB_EDIT_PREFS.'</a>').'<br />'
      .(($op == 'edithome') ? '<b>'._TB_EDIT_HOME.'</b>' : '<a href="'.getlink('Your_Account&amp;op=edithome').'">'._TB_EDIT_HOME.'</a>').'<br />'
      .(($op == 'editcomm') ? '<b>'._TB_EDIT_COMM.'</b>' : '<a href="'.getlink('Your_Account&amp;op=editcomm').'">'._TB_EDIT_COMM.'</a>').'<br />'
   .'</div><span class="gen">'._TB_PERSONAL.'</span><div style="margin-left: 8px;">';

Save and upload back to your site.

This was just an idea, not knowing how you installed it thought this might help because the newest version of DF is a little different and you may be missing something.
dave


View user's profile

PostThu Sep 06, 2007 3:23 pm Reply with quote
My god! Some people are still interested in this project.

Ok, some quick notes:
- This was originally developed against 9.0.6 (i think). So its a little out of date and the code needs updating all over.
- Yes there are bugs. We stopped working on it due to extreme lack of interest and no one will to help make modules, blocks or even test it for us.
- The community that was driving this project has mainly moved to facebook now, making my personal reason for doing this voided.
- Yes, if I were to start over, I would do it *very* differently. (Including scrapping all the javascript and starting over with the page designer which was very messy).
- No, i'm not sure if I want to start over. I don't mind helping out with bugs right now, but I'm about to go travelling for 3 months, so now is not the time to re-start this project.
- Would I want to restart this project anyway? Lack development (or should I say developers?) in the dragonfly community (and various sub-communities) leads me to think that it would be a lost cause?
- I'm very sorry for my lack of contributions to this project. A promotion at work has kept me out of open source dev work for a little while.

Finally, if you start a new topic with some technical questions or requests for help on this, then I will do my absolute best to help out over the next 3 weeks till I leave. After that, I am quite happy to give svn commit access to anyone who feels they would like to continue the project.

When I get back from travelling I will then assess the situation again and decide on whether or not to persist with this project.

Looking forward to hearing from you,

Dave
Post new topic   Reply to topic     |##| -> |=|  All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum