Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4253
Latest: Ineedsmfhelp
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43242
Total Topics: 7516
Most Online Today: 126
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 109
Total: 109

Author Topic: Issue with Integration with Forum  (Read 2695 times)

0 Members and 1 Guest are viewing this topic.

Offline amwebby

  • Community Suite Customer
  • Sr. Member
  • ******
  • Posts: 306
    • View Profile
Issue with Integration with Forum
« on: February 13, 2013, 03:27:12 am »
I've used "Integrate with the Board Index of the forum" to place my Classifieds listing on the board index and, with your help it looks great.

However there is an issue with behaviour. With regular boards, when you click on them the page reloads at the top, with the board chosen there.

When you integrate classifieds and click on a category in the integrated listings the page stays where it is, meaning the viewer sees a blank page and must scroll up to see the top of the page and the classifieds category chosen.

The reason board indexes do this is because they have the anchor #headerarea at the end of their url.

Is there a simple way to add this to the category listings in the integrated classified listings?

I tried adding the anchor to the urls within my BoardIndexTemplate.php but they don't show.
« Last Edit: February 13, 2013, 03:45:27 am by amwebby »

Offline amwebby

  • Community Suite Customer
  • Sr. Member
  • ******
  • Posts: 306
    • View Profile
Re: Issue with Integration with Forum
« Reply #1 on: February 13, 2013, 04:09:58 am »
Solved! I had the anchor in the wrong place. I just altered this line in BoardIndexTemplate.php

Code: [Select]
<a href="', $scripturl, '?action=classifieds;cat=', $board['ID_CAT'], '" name="class', $board['ID_CAT'], '">'
to

Code: [Select]
<a href="', $scripturl, '?action=classifieds;cat=', $board['ID_CAT'], '#headerarea" name="class', $board['ID_CAT'], '">'
and it works great.

Offline amwebby

  • Community Suite Customer
  • Sr. Member
  • ******
  • Posts: 306
    • View Profile
Re: Issue with Integration with Forum
« Reply #2 on: February 15, 2013, 06:25:13 am »
I'd now like to do the a similar thing for new listings as shown in the Last Posts listing in the board index. Standard new posts have the #new anchor attached so that, when you click on them, you are taken straight to the post in the message index.

I think there's a bit more work to be done to do this with classifieds listing. Guidance please?

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
4950 Views
Last post October 03, 2008, 07:12:27 pm
by SMFHacks
0 Replies
3587 Views
Last post December 06, 2008, 08:35:17 pm
by Beltazar
0 Replies
7143 Views
Last post November 15, 2011, 12:22:08 am
by SMFHacks
1 Replies
5641 Views
Last post April 21, 2013, 07:54:27 am
by SMFHacks
3 Replies
2173 Views
Last post December 09, 2020, 04:47:21 pm
by SMFHacks

+- Recent Topics

is it possible to add support for odysee.com by SMFHacks
March 13, 2024, 10:53:28 pm

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

User Gallery Feature: move / bulk move images by SMFHacks
January 30, 2024, 05:48:25 pm

In the future it may be for smf 2.1.x? by smithloo
January 30, 2024, 12:55:34 am

Powered by EzPortal