Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Joomlapolis Forums  


<< Start < Prev 1 2 Next > End >>
Re:itemID issue after editing profile
Date: 2007/08/05 02:24 By: mbajames Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 8
graphgraph
Can anyone share how to do it in the currently released version? My homepage has plenty of information that gets overwritten and I would rather be able to tell it to go to a static page.
Click here to see the profile of this user The administrator has disabled public write access.

Re:itemID issue after editing profile
Date: 2007/08/05 02:25 By: mbajames Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 8
graphgraph
I have figured out how to do part of it. If I modify line 750 in comprofiler.php I can get redirection to a set page upon a user "saving" changes to the profile. Still nothing with regards to how to stop going to Itemid=1 when cancel is used.

For anyone who may want to know the first part, I replaced
Code:

 "index.php?option=option=com_comprofiler".getCBprofileItemid()


with
Code:

 index.php?option=com_content&task=view&id=61&Itemid=123


the new page it references was a static content page I made to provide a different location to say all changes were made without it overwriting my maincontent on the front page.

Any help available with the cancel button sending to itemid=1 is greatly appreciated.

Post edited by: mbajames, at: 2007/08/05 02:57
Click here to see the profile of this user The administrator has disabled public write access.

Re:itemID issue after editing profile
Date: 2007/08/05 02:25 By: mbajames Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 8
graphgraph
OK..I figured out the rest. For anyone who wants to know, to get the "cancel" button to redirect to a set page rather than itemid=1, there is a change that can be made on line 263 of comprofiler.html.php.

Change:
Code:

 index.php?option=".htmlspecialchars($_REQUEST['option']).getCBprofileItemid()



to

Code:

 "index.php?option=com_content&task=view&id=62&Itemid=123"



Again, this is a direct link to the static content page I had created to show the profiles.

So, between the last two posts I made two static pages. One for "update" and one for "cancel". The cancel one does not show the profile, but for the business I am using CB for (mainly for integration with Account Expiration Control) it works. So long as the
Code:

 .getCBprofileItemid()

is removed and not put back in it will work. If that code is placed back in it will reset it.

If anyone has a better fix, please share. Regardless, maybe this will help someone.

Post edited by: mbajames, at: 2007/08/05 03:20
Click here to see the profile of this user The administrator has disabled public write access.

Re:itemID issue after editing profile
Date: 2007/11/18 09:37 By: goodman123 Status: User  
Karma: -3  
Junior Joomlapolitan

Posts: 35
graphgraph
cb 1.1 is still having the problem onjoomla 1.0.13. that is, when a user is editing the profile, everyhting comes to the frontpage.
Click here to see the profile of this user The administrator has disabled public write access.

Re:itemID issue after editing profile
Date: 2007/12/14 13:10 By: Folkbear Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 1
graphgraph
it seems that this problem only arises when accessing the profile through firefox, coz with IE 7 this problem does not arise...
Click here to see the profile of this user The administrator has disabled public write access.

<< Start < Prev 1 2 Next > End >>

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC2)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC3, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers at this time.

CB Login