News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Adding new pages

Started by suresh1983, April 22, 2014, 02:12:09 PM

Previous topic - Next topic

suresh1983

Hi,

I am trying to add new pages to my website and used custom pages plugin but got a database error.

Please help on creating new pages.

The reason behind creating new pages is because I am planning of creating a tutorial for my website users. If you have any suggestions for the same, please share.

Thanking you in advance,
Suresh

kat

Try posting the errors in the mod's support topic, Suresh. They might be able to help you. If you read through the topic, you could find that someone's already had the problem that you have and got a solution. :)

suresh1983

#2
Hi,

I have posted in the support page but the problem is that it is for nearly 120 days the topic is not active.... :( :(

However, I tried pages mod and was successful in installing it and in creating pages.

Request you to kindly help me the code for creating some thing as mentioned below.

I would actually like to add a drop down menu to the page with a button (Go).

In the drop down, I want to add page 1, page 2, page 3

When a specific page is selected in the drop down and when "go" button is used the user should be taken to that page.

I used the code as mentioned below but when the go button is clicked nothing happens  :(

<script>
function goToNewPage(dropdownlist)
{
var url = dropdownlist.options(dropdownlist.selectedIndex).value;
if (url != "")
{
window.open(url);
}
}
</script>
<form name="dropdown">
<label>Search <u>E</u>ngines</label>
<select name="list" accesskey="E">
<option selected>Please select one</option>
<option value="http://forum.officeadministration.info/index.php?action=page;id=1">Page 1</option>
<option value="http://forum.officeadministration.info/index.php?action=page;id=1">Page 2</option>
<option value="http://forum.officeadministration.info/index.php?action=page;id=1">Page 3</option>
<option value="http://forum.officeadministration.info/index.php?action=page;id=1">Page 4</option>
<select>
<input type=button value="Go" onclick="goToNewPage(document.dropdown.list)">
</form>

With regards,
Suresh.

Kindred

If a mod is not actively supported,that, unfortunately does not change the fact that we don't and can't support mods here...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

suresh1983

Hi,

My apologize, I just updated by post

Advertisement: