View Full Version : How do i put a menulink that directs users...
ybaker
02-08-2006, 03:44 PM
I have a folder with subfolders in my public_html directory that contains files (pdf mostly) for my visitors to download. There is a PHP script in the main folder and all of the subfolders that makes the index fancy. I was wondering if and how i might be able to have a menu link that will direct users to a page with my soho frame and this script which indexes the other directories. Further, i wold like it to be that----should a user click on one of the folders in that indexing script, they will be able to access that folder and its index and not lose the soho frame.
I do this so that i may FTP files easily, without going through soho upload.
for an example of what I mean, please see my site:
rpmmph.com (http://www.rpmmph.com)
As well as the index that i use
Rpmmph.com ------files (http://www.rpmmph.com/AP)
Thanks for any help.
jcnelson
02-20-2006, 11:01 PM
Hi ybaker,
You could use the redirect script located at the following post to create a button that will open your index page.
http://forum.soholaunch.com/showthread.php?t=645&highlight=redirect
You could also create a page and drop an iframe into the html code that would allow visitors to view the page within your site. Here is an iframe example that you could use. Just adjust the width and height to fit your needs.
<IFRAME src="http://www.rpmmph.com/AP/" frameBorder=0 width=500 height=500></IFRAME>
ybaker
03-05-2006, 10:10 AM
thanks alot, i will try that.
ybaker
03-05-2006, 10:41 AM
thanks alot, i will try that.
The iframe solution works great and is exactly what I wanted thanks alot and feel free to check it out.
Dan7LS
04-02-2006, 02:45 PM
Hi ybaker,
You could use the redirect script located at the following post to create a button that will open your index page.
http://forum.soholaunch.com/showthread.php?t=645&highlight=redirect
You could also create a page and drop an iframe into the html code that would allow visitors to view the page within your site. Here is an iframe example that you could use. Just adjust the width and height to fit your needs.
<IFRAME src="http://www.rpmmph.com/AP/" frameBorder=0 width=500 height=500></IFRAME>
Do you know of a way to display the full height of the content within the frame without creating such a large height in the IFRAME tag?
I have content hosted on another site that has variable page length/height. Is there a way to get the framed content to size or 'float' automatically to fill my mage template?
Thanks,
Dan
m4him
05-30-2006, 10:18 AM
Where did you put the iframe code? I tried putting it into the html section of a text editor but it is gone after I save and redit the page.
When I view the page from within the text editor I see my page load and then the page goes blank, showing nothing.
Did you find the solution for the iframe size?
lwyau
05-30-2006, 05:36 PM
Save the iframe code as an .inc file, upload it, and drag and drop the "Custom Code" object in Page Editor.
Eduardo
06-05-2006, 02:12 PM
I did a MySQL database for real estate properties and a php script that produces the table out of a query. What I would like to do is to replace my old Soholaunch pages with the table produced by my script. I am not advanced in PHP, bud did some visual basic. What I tried to do is to edit the soholaunch index.php and catch the pr="house" variable first and then redirect to the page generated by my script.
2 Problems:
1. the redirect script would open my a.php?type=house script in the whole page, and I want it to appear in the content frame
2. If I edit the soholaunch index.php and place my if(pr=="house"){redirect script} I would mess up the soholaunch script a little so I get:"cannot send session cache limiter headers already sent. But still the page would still load. Is there a better place in soholaunch index.php file to place this new code?
lwyau
06-05-2006, 03:38 PM
You can upload your php script via File Manger, and then open the soho page and drag and drop the custom code object to the page and select the php code you uploaded. The script will then occupy the #CONTENT# area of your soho page.
Eduardo
06-08-2006, 02:52 PM
I appreciate your answer. It was such a simple one. My page loaded well, including all the links to the images EXCEPT THE BACKGROUND <body bgcolor=white background="../fotos/fondo.gif" lang=ES link="#660000"
Is the background overidden by soholaunch?
If I wanted to at least change the background color, would I have to edit the template I used? or can I do it from my custom php code?
lwyau
06-08-2006, 03:58 PM
Since there is only one <body> tag per page and is obviously used by the template, I'd suggest that you remove the <body></body> tag pair and use
<table><tr><td background="...">(the main part of the php script here)</td></tr></table>
in its place.
Eduardo
06-20-2006, 12:27 PM
I am having trouble figuring out how to write the link for a jpg image so that it loads on the same frame (within the same soholaunch template) and not in a new window. I have tried the _self attribute but does not work. Sould I use Javascript so that the link goes to a name within the code and then to an Iframe?
Right now my custom code links look like this:
echo '<p class=MsoNormal><a href="'.$linkfoto.'"><IMG src="'.$nomfoto.'" o:title="'.$foto.'"';
and my text links look like:
<a href=$linkfoto target=\"_self\"><font face=\"Verdana\" size=\"2\">$nombre</a></b></p>";
Here is the page as it is right now:
http://www.lindacasa.com/index.php?pr=Casa
notice that when you click a foto the new page loads without the template.
lwyau
06-20-2006, 07:51 PM
It appears that "ver3.php" is the PHP script you made into the .inc file.
In this case, you need to verify that $linkfoto is set to something like: "formulario/ver3.php?numero=4&varios=si".
If this is the case, you need to somehow make it to be "index.php?pr=Casa?numero=4&various=si".
Note that the value of "numero" is different for each image.
We are now getting to an area where working PHP knowledge is needed.
Joe Lain
06-21-2006, 05:18 AM
Looks like there is plenty of help here but just incase, V4.9 was just released and the external menu link option has been added. Go here (http://info.soholaunch.com/index.php?pr=Product_Details) to see a list of the main features that were added.
ybaker
11-01-2006, 10:53 PM
Looks like there is plenty of help here but just incase, V4.9 was just released and the external menu link option has been added. Go here (http://info.soholaunch.com/index.php?pr=Product_Details) to see a list of the main features that were added.
Will the Freebie version of 4.9 be available direct from soholaunch.com anytime soon?
My host got rid of fantastico.
Mike Morrison
11-02-2006, 05:59 PM
Will the Freebie version of 4.9 be available direct from soholaunch.com anytime soon?
It already is. Go grab our free auto-installer/updater (http://info.soholaunch.com/Download_Now.php). ;)
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.