Welcome to vbmods.rocks! Get FREE and paid vBulletin mods, plugins, addons, API extensions, custom modules, custom BB Codes, vBCloud mods, CORE hacks, JS hacks, custom coding by Glenn, an ex-vBulletin Developer. You must register before you can post, download the files or copy the code from the free plugins.
The values for the module settings must come from when the admin edits and sets the module configuration settings. The module template code itself doesn't need to be modified. It is already expecting to get the search options from the module configuration settings.
Oh, ok, that's a good point.
So I should use the <widgets></widgets> part of the product xml and add a <definition> ?
Do you know what would be the definition writeup ? I don't think the current search module is stored as an xml file anywhere right ? (If so I could have studied & copy it's coding)
Of course this is only a test, I don't want to "hard code" the search arguments, but I wanted to see where I should implement them in the code.
Problem now : I only get the full search result in the page, without any pagination at all, so I guess there's something I'm doing wrong here or I am missing other declaration elsewhere.
What do you think glennrocksvb ? I can post the full widget here if that more convenient for you to look at ?
I've managed to find out how to control pagination :
{vb:set widgetConfig.resultsPerPage, '10'}
Which will of course be provided via widget options.
Now I'm facing another problem, and there I think I'll have a hard time circumventing it, if possible at all : when switching page of research, the page load a new one in the form of http://URL/search?r=XXX&p=X
Meaning that the whole previous page build alongside with the other module in it are rendered useless since we're just on step 1 again with the "View all" opening another page
glennrocksvb Am I correct in assuming that the search function isn't using ajax to display results ?
I tested with the regular search page and the page is loading a new URL in the form I've posted above, in order to switch pages.
I find it weird that the member list is fully using ajax to switch pages but something like the search results are not...
Correct, no quick fix. But loading pagination without AJAX is better for SEO.
Not unless each page can still be generated on the server-side if accessed directly. This is what it does on multi-paged topics. It loads the topic pages using AJAX when clicking the pagination controls. But it also loads the topic pages via server-side when pages are accessed directly.
Targeting the div inside widgetcontnt, to try to refresh them and only them.
I have no error but if I hit my refresh button, the div does refresh, I have the working indicator, but then the div is blank.
In the console, everytime I hit the button I have this output :
The above code which is used in the sample code you linked is incorrect and doesn't do anything. The parameter for that load method is url [, data ] [, complete ] where url is the ajax URL.
You need to post your actual code in order for me to find the issue or at least understand exactly what you're trying to do.
The above code which is used in the sample code you linked is incorrect and doesn't do anything. The parameter for that load method is url [, data ] [, complete ] where url is the ajax URL.
You need to post your actual code in order for me to find the issue or at least understand exactly what you're trying to do.
I've just changed the targeted div, but in a regular page, with two divs fetching each one another php content, this technique in the snippet works flawlessly.
This above example is doing exactly what I want : reloading only the div targeted and nothing else.
I'm trying to reproduce that for the search result on this Vb module, by targeting the widget ID div
I can send you the xml file by PM if that help
The current page I'm using is the search result module mentioned above in this thread
Managed to fix my error, and it does refresh the content of the div on Vbulletin (it's not optimal at all, but it's some progress).
glennrocksvb Do you know where I could find how the memberlist ajax is coded ? I would like to see if I can find something in there that would allow me to do an ajax pagination of the search results (or if you have a better idea on how to achieve that)
Yep, find it but didn't take the time to post it here, thanks for looking at that still I'm making some progress in the addition of Ajax on this, If I get somewhere, I'll post what I've found here
As the title states, would you consider creating a mod that removes single post links from the home page? This would be for SEO purposes, search engines...
Yesterday, 01:20 PM
Working...
X
Searching...Please wait.
An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.
Please push the back button and reload the previous window.'
An unexpected error was returned: 'Your submission could not be processed because the token has expired.
Please push the back button and reload the previous window.'
An internal error has occurred and the module cannot be displayed.
Comment