remove hyperlink on a username in discussion boards list page - sharepoint-2007

i am having a discussion board. and when we access that discussion board, the default view is flat view. in that view there will be "Posted By" field. On clicking the image or username on that field, sp will redirects to the corresponding user page(about details). in my current project i want to disable all this posted by field. just i want to show picture of the user and username, no hyperlink.
how to do this? its very urgent

Removing the hyper link would not be possible unless until you create the custom webpart for the same; work around could be to disable the hyper links by changing their href by # using JavaScript which would be called below the web part in HTML

Related

Have a link in custom crm report

Is it possible to have a link in a custom crm report?
In the picture, How can I make patientId as link that when it is clicked, the patient form opens?
Turn those labels into hyperlinks, seems to be plenty of questions on this already.
Use this information to set the correct URL to open the patient form
Open forms, views, dialogs and reports with a URL, for example:
http://myorg.crm.dynamics.com/main.aspx?etn=[your entity name goes here]&pagetype=entityrecord&id=[record Id goes here]

Concept for a grails app

I am working on a Grails project, its an accounting project. We have multiple clients and they can have multiple types of accounts. I have to create the 'create' page for client, there should be a way to add multiple types of account to the client.
So I was thinking of making a drop-down list with account types and few text boxes to enter account name and other info about account. Also, as a client can have multiple accounts, so I want to create a 'add' button, when clicked it would display a new row to add a new client. I have done this kind of UI before using javascript but in this case, as there is a drop-down list and other components, I think it would be very hard and may not work.
I was thinking of creating a partial view which would render each time user clicked the 'add' button with additional row, problem with this would be during validation errors, edit page and i would also have to pass all values each time user clicks 'add' button.
Is there any other for doing this?
For the template approach you must use ajax if you don't want to carry on the params that the user has already set.
It is possible to make new drop-down lists appear (or any group of elements inside a <div>) when a user clicks a button, since Grails already comes with jQuery you might want to take a look at the .clone() method.
The problem with the two listed approeaches is that it will be possible to have duplicates.
Now, another option is to use checkboxes, so you can check just the type of account you want.
But to be honest it does seems a bit odd or even inapropiate to let the user choose the type of account he wants with such freedom.

passing variable to jQuery from same Class

I have googled for 2days so far :) Not finding the right answer yet. So expert help is needed.
I am writing the webpage, where I use php and mysql. On the webpage, it display list of products. Next to each product there is a button called "Compare". When user press the button, it should pop up the dialog box and ask user to enter some info then user click submit or cancel in the dialog box. When user click submit in the dialog box, it should take user to another page, where he will be displayed with information he is looking for (hopefully)....
For dialog box I am using jQuery-ui dialog box. The challenge I am facing is when user click on "Compare" button, I need to pass the product information to dialog box. Because all the product info are extracted from mysql and loop with php to display, they all have same class. eg
product 1Compare
product 2Compare
So how do i know which product_info i need to pass? I thought of adding attribute to button and product info with number to distinguish which one is selected, then i need to have multiple multiple dialog function attached to each button.
Any thought will be much appriciated.
Thanks
Create a global variable to store the index.
When we click on any button, we will check it's index and store in it.
After opening the popup or just before showing the popup, access this index. Using this index, access the division in which the product contains. Get required details from there. Update data in dialog box. Show dialog box.
Also clear global variable when you close the dialog box.
You can get more information about index here : http://api.jquery.com/index/
Friends, please suggest better solutions if any.
Thanks.

How to have previous and next button in the django admin (change_form)

I want to modify the django admin for a particular model to provide the following behaviour.
A user make a search on the change_list page. The the user click a specific entry and he lands on the change_form for that entry. Nothing different to the usual.
Now, what I want is a mean to navigate the former search results. Basically next and previous buttons on the edit page.
What would be the best approach to implement this feature without modifying the admin site too much?
I will need to memorize the search in the user session, then when an entry is clicked I will need to known which place it has within the results to place my "cursor" accordingly. But I'm a bit in the cloud as the implementation side.
One way is to just put the next and previous button in the template for that particular model.
This can be implemented using simple javascript.
I ended writing a fully custom admin for that.

How to redirect user to the page they were just at without them noticing?

The website viewer would be at page A, click a link that sends then to page B, but I want them to return to page A without them noticing.
When they click the link it changes the layout the viewer is browsing the site with, so the redirection code shouldn't erase or undo the cookies or whatever are stored with the link click. Thanks!
Edit:
Here's what I'm doing. I have a page called setskin.php that has php code that takes header and footer codes for different layouts and applies them. I don't know how to show code without it going crazy, so there's a screenshot of it here:
http://figmint.uuuq.com/Picture%202.png
I want to change my website so that in a sidebar there will be the same setskin options (so it will be on every page). I was fiddling and managed to make it so when you click the link for the skin you want it changes the skin, but then you end up at the setskin.php page, which I don't want. I was looking for a way to make it so it sends you to the setskin.php page (since I couldn't see how to change that) and then back to where you came from.
You should use AJAX. That way you can do whatever processing is needed behind the scenes with zero impact on the user.
You can check the referer header and return to that. But if that isn't set go to a default page?
Other options include putting the previous url as a parameter, like a 'next' parameter. Then redirect to that after you're done. Quite common pattern used for login.

Resources